ruby-progressbar 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,12 @@ describe ProgressBar::Components::Bar do
17
17
  end
18
18
  end
19
19
 
20
+ describe '#remainder_mark' do
21
+ it 'returns the default remainder mark' do
22
+ @progressbar.remainder_mark.should eql ProgressBar::Components::Bar::DEFAULT_REMAINDER_MARK
23
+ end
24
+ end
25
+
20
26
  context 'and the bar has not been started' do
21
27
  describe '#progress' do
22
28
  it 'returns the default beginning position' do
@@ -47,7 +53,7 @@ describe ProgressBar::Components::Bar do
47
53
  end
48
54
 
49
55
  context 'and options are passed' do
50
- before { @progressbar = ProgressBar::Components::Bar.new(:total => 12, :progress_mark => 'x') }
56
+ before { @progressbar = ProgressBar::Components::Bar.new(:total => 12, :progress_mark => 'x', :remainder_mark => '.') }
51
57
 
52
58
  describe '#total' do
53
59
  it 'returns the overridden total' do
@@ -60,6 +66,12 @@ describe ProgressBar::Components::Bar do
60
66
  @progressbar.progress_mark.should eql 'x'
61
67
  end
62
68
  end
69
+
70
+ describe '#remainder_mark' do
71
+ it 'returns the overridden mark' do
72
+ @progressbar.remainder_mark.should eql '.'
73
+ end
74
+ end
63
75
  end
64
76
  end
65
77
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-progressbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-13 00:00:00.000000000 Z
13
+ date: 2013-12-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -91,34 +91,25 @@ extra_rdoc_files:
91
91
  - README.md
92
92
  - LICENSE
93
93
  files:
94
- - .gitignore
95
- - .rspec
96
- - .ruby-version
97
- - .travis.yml
98
- - CHANGELOG.md
99
- - Gemfile
100
- - Gemfile.lock
101
- - LICENSE
102
- - README.md
103
- - Rakefile
104
- - lib/ruby-progressbar.rb
105
94
  - lib/ruby-progressbar/base.rb
106
- - lib/ruby-progressbar/components.rb
107
95
  - lib/ruby-progressbar/components/bar.rb
108
96
  - lib/ruby-progressbar/components/elapsed_timer.rb
109
97
  - lib/ruby-progressbar/components/estimated_timer.rb
110
98
  - lib/ruby-progressbar/components/progressable.rb
111
99
  - lib/ruby-progressbar/components/throttle.rb
112
100
  - lib/ruby-progressbar/components/timer.rb
113
- - lib/ruby-progressbar/format.rb
101
+ - lib/ruby-progressbar/components.rb
114
102
  - lib/ruby-progressbar/format/base.rb
115
103
  - lib/ruby-progressbar/format/molecule.rb
104
+ - lib/ruby-progressbar/format.rb
116
105
  - lib/ruby-progressbar/formatter.rb
117
106
  - lib/ruby-progressbar/length_calculator.rb
118
107
  - lib/ruby-progressbar/running_average_calculator.rb
119
108
  - lib/ruby-progressbar/time.rb
120
109
  - lib/ruby-progressbar/version.rb
121
- - ruby-progressbar.gemspec
110
+ - lib/ruby-progressbar.rb
111
+ - README.md
112
+ - LICENSE
122
113
  - spec/fixtures/benchmark.rb
123
114
  - spec/lib/ruby-progressbar/base_spec.rb
124
115
  - spec/lib/ruby-progressbar/components/bar_spec.rb
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- *.gem
2
- tags
3
- *.rbc
4
- .bundle
5
- .config
6
- .yardoc
7
- Gemfile.lock
8
- _yardoc
9
- coverage
10
- lib/bundler/man
11
- pkg
12
- spec/reports
13
- tmp
14
- tags
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
@@ -1 +0,0 @@
1
- 1.9.3
@@ -1,8 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.8.7
4
- - 1.9.2
5
- - 1.9.3
6
- - jruby-18mode # JRuby in 1.8 mode
7
- - jruby-19mode # JRuby in 1.9 mode
8
- script: bundle exec rspec spec
@@ -1,10 +0,0 @@
1
- Changelog
2
- ================================================================================
3
-
4
- v1.2.0
5
- --------------------------------------------------------------------------------
6
- * Finally removed deprecation warning and made folder structure consistent
7
- * Add #log which will properly handle the display of the bar when sending
8
- a string of output to the screen.
9
- * Add unknown progress. See the README for more details.
10
- * Add proper output for non-TTY IO streams
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem 'rake'
4
- gem 'json', '~> 1.7.7'
5
-
6
- platforms :ruby do
7
- gem 'ruby-prof', '~> 0.13.0'
8
- end
9
-
10
- gemspec
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
@@ -1,39 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "ruby-progressbar/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.rubygems_version = '1.3.5'
7
-
8
- s.name = 'ruby-progressbar'
9
- s.rubyforge_project = 'ruby-progressbar'
10
-
11
- s.version = ProgressBar::VERSION
12
- s.platform = Gem::Platform::RUBY
13
-
14
- s.authors = ["thekompanee", "jfelchner"]
15
- s.email = 'support@thekompanee.com'
16
- s.date = Time.now
17
- s.homepage = 'https://github.com/jfelchner/ruby-progressbar'
18
-
19
- s.summary = 'Ruby/ProgressBar is a flexible text progress bar library for Ruby.'
20
- s.description = <<-THEDOCTOR
21
- Ruby/ProgressBar is an extremely flexible text progress bar library for Ruby.
22
- The output can be customized with a flexible formatting system including:
23
- percentage, bars of various formats, elapsed time and estimated time remaining.
24
- THEDOCTOR
25
-
26
- s.rdoc_options = ['--charset', 'UTF-8']
27
- s.extra_rdoc_files = %w[README.md LICENSE]
28
-
29
- #= Manifest =#
30
- s.files = `git ls-files`.split($/)
31
- s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
32
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
33
- s.require_paths = ["lib"]
34
-
35
- s.add_development_dependency('rspec', '~> 2.13')
36
- s.add_development_dependency('rspectacular', '~> 0.13')
37
- s.add_development_dependency('timecop', '~> 0.6')
38
- s.add_development_dependency('simplecov', '~> 0.8pre')
39
- end