Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
bump v0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
minddust committed Mar 5, 2014
1 parent 6088f87 commit 2a78795
Show file tree
Hide file tree
Showing 91 changed files with 2,746 additions and 3,188 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
bower_components
node_modules

npm-debug.log
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

### 0.7.1 (2014-03-05)

* Add bootstrap 3.1.1 styles
* Switch to Gulp
* Remove bs dotfiles
* Fix #30 compile errors with old markup
* Fix #29 wrong style generation
* Fix #28 element creation which will brick with `django-compressor`

### 0.7.0 (2014-02-11)

* Add bootstrap 3.0.0-3.1.0 styles
Expand Down
127 changes: 0 additions & 127 deletions Gruntfile.js

This file was deleted.

74 changes: 74 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
var gulp = require('gulp');
var util = require('gulp-util');

var clean = require('gulp-clean');
var header = require('gulp-header');
var less = require('gulp-less');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');

var pkg = require('./package.json');
var currentYear = util.date(new Date(), 'yyyy');

var paths = {
scripts: [
'./bootstrap-progressbar.js'
],
styles: [
'./resources/bootstrap-progressbar-2.0.0.less',
'./resources/bootstrap-progressbar-2.0.1.less',
'./resources/bootstrap-progressbar-2.0.2.less',
'./resources/bootstrap-progressbar-2.0.3.less',
'./resources/bootstrap-progressbar-2.0.4.less',
'./resources/bootstrap-progressbar-2.1.0.less',
'./resources/bootstrap-progressbar-2.1.1.less',
'./resources/bootstrap-progressbar-2.2.0.less',
'./resources/bootstrap-progressbar-2.2.1.less',
'./resources/bootstrap-progressbar-2.2.2.less',
'./resources/bootstrap-progressbar-2.3.0.less',
'./resources/bootstrap-progressbar-2.3.1.less',
'./resources/bootstrap-progressbar-2.3.2.less',
'./resources/bootstrap-progressbar-3.0.0-rc1.less',
'./resources/bootstrap-progressbar-3.0.0-rc2.less',
'./resources/bootstrap-progressbar-3.0.0.less',
'./resources/bootstrap-progressbar-3.0.1.less',
'./resources/bootstrap-progressbar-3.0.2.less',
'./resources/bootstrap-progressbar-3.0.3.less',
'./resources/bootstrap-progressbar-3.1.0.less',
'./resources/bootstrap-progressbar-3.1.1.less'
]
};

var banner = '/*! <%= pkg.name %> v<%= pkg.version %> | Copyright (c) 2012-<%= currentYear %> <%= pkg.author %> | <%= pkg.license %> license | <%= pkg.homepage %> */\n';

gulp.task('scripts', function() {
return gulp.src(paths.scripts)
.pipe(uglify())
.pipe(header(banner, {pkg: pkg, currentYear: currentYear}))
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('.'));
});

gulp.task('styles', function() {
return gulp.src(paths.styles)
.pipe(less())
.pipe(header(banner, {pkg: pkg, currentYear: currentYear}))
.pipe(gulp.dest('./css'));
});

gulp.task('styles-min', function() {
return gulp.src(paths.styles)
.pipe(less())
.pipe(minifyCss())
.pipe(header(banner, {pkg: pkg, currentYear: currentYear}))
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('./css'));
});

gulp.task('clean', function() {
return gulp.src('./css', {read: false})
.pipe(clean());
});

gulp.task('default', ['clean', 'scripts', 'styles', 'styles-min']);
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2012-2013 Stephan Groß
Copyright (c) 2012-2014 Stephan Groß

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# bootstrap-progressbar - 0.7.0 [![Build Status](https://secure.travis-ci.org/minddust/bootstrap-progressbar.png)](http://travis-ci.org/minddust/bootstrap-progressbar)
# bootstrap-progressbar - 0.7.1 [![Build Status](https://secure.travis-ci.org/minddust/bootstrap-progressbar.png)](http://travis-ci.org/minddust/bootstrap-progressbar)

`bootstrap-progressbar` is a [jQuery](http://jquery.com) plugin which extends the basic [twitter-bootstrap](https://github.com/twbs/bootstrap) progressbar. It provides the ability to animate the progressbar by adding Javascript in combination with the preexisting css transitions. Additionally you can display the current progress information in the bar or get the value via callback.


## What's new in v0.7.0?
## What's new in v0.7.1?

* Add bootstrap 3.0.0-3.1.0 styles
* Fix #22 wrong vertical styles for bootstrap 2.x
* Add bootstrap 3.1.1 styles
* Switch to Gulp
* Remove bs dotfiles
* Fix #30 compile errors with old markup
* Fix #29 wrong style generation
* Fix #28 element creation which will brick with `django-compressor`

> Note: this version sets (fixes) some vertical styles which may affect (or brick) your styles. Please checkout the css or less before updating.
Expand All @@ -18,7 +22,7 @@

## Installation

* Download the latest release: [v0.7.0](https://github.com/minddust/bootstrap-progressbar/archive/v0.7.0.zip)
* Download the latest release: [v0.7.1](https://github.com/minddust/bootstrap-progressbar/archive/v0.7.1.zip)
* Clone the repository: `git clone [email protected]:minddust/bootstrap-progressbar.git`
* Install with [Bower](http://bower.io): `bower install bootstrap-progressbar`

Expand Down
6 changes: 3 additions & 3 deletions bootstrap-progressbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-progressbar v0.7.0 by @minddust
* bootstrap-progressbar v0.7.1 by @minddust
* Copyright (c) 2012-2014 Stephan Gross
*
* https://www.minddust.com/bootstrap-progressbar
Expand Down Expand Up @@ -52,8 +52,8 @@
var percentage = Math.round(100 * (aria_valuetransitiongoal - aria_valuemin) / (aria_valuemax - aria_valuemin));

if (options.display_text === 'center' && !$back_text && !$front_text) {
this.$back_text = $back_text = $('<span>', {class: 'progressbar-back-text'}).prependTo($parent);
this.$front_text = $front_text = $('<span>', {class: 'progressbar-front-text'}).prependTo($this);
this.$back_text = $back_text = $('<span>').addClass('progressbar-back-text').prependTo($parent);
this.$front_text = $front_text = $('<span>').addClass('progressbar-front-text').prependTo($this);

var parent_size;

Expand Down
Loading

0 comments on commit 2a78795

Please sign in to comment.