progress 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +18 -25
  2. data/VERSION +1 -1
  3. data/lib/progress.rb +2 -2
  4. data/progress.gemspec +11 -1
  5. metadata +50 -7
data/Rakefile CHANGED
@@ -1,34 +1,27 @@
1
- begin
2
- require 'jeweler'
3
-
4
- name = 'progress'
5
- summary = 'Show progress of long running tasks'
6
-
7
- jewel = Jeweler::Tasks.new do |j|
8
- j.name = name
9
- j.summary = summary
10
- j.homepage = "http://github.com/toy/#{name}"
11
- j.authors = ["Boba Fat"]
12
- end
13
-
14
- Jeweler::GemcutterTasks.new
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'jeweler'
4
+ require 'rake/gem_ghost_task'
5
+ require 'spec/rake/spectask'
15
6
 
16
- require 'pathname'
17
- desc "Replace system gem with symlink to this folder"
18
- task 'ghost' do
19
- gem_path = Pathname(Gem.searcher.find(name).full_gem_path)
20
- current_path = Pathname('.').expand_path
21
- system('rm', '-r', gem_path)
22
- system('ln', '-s', current_path, gem_path)
23
- end
7
+ name = 'progress'
24
8
 
25
- rescue LoadError
26
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
9
+ Jeweler::Tasks.new do |gem|
10
+ gem.name = name
11
+ gem.summary = %Q{Show progress of long running tasks}
12
+ gem.homepage = "http://github.com/toy/#{name}"
13
+ gem.license = 'MIT'
14
+ gem.authors = ['Boba Fat']
15
+ gem.add_development_dependency 'jeweler', '~> 1.5.1'
16
+ gem.add_development_dependency 'rake-gem-ghost'
17
+ gem.add_development_dependency 'rspec'
27
18
  end
19
+ Jeweler::RubygemsDotOrgTasks.new
20
+ Rake::GemGhostTask.new
28
21
 
29
- require 'spec/rake/spectask'
30
22
  Spec::Rake::SpecTask.new(:spec) do |spec|
31
23
  spec.libs << 'lib' << 'spec'
24
+ spec.spec_opts = ['--colour --format progress --loadby mtime --reverse']
32
25
  spec.spec_files = FileList['spec/**/*_spec.rb']
33
26
  end
34
27
  task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -91,7 +91,6 @@ class Progress
91
91
  elsif block
92
92
  block.call
93
93
  end
94
- self.note = nil
95
94
  end
96
95
 
97
96
  def set(value, &block)
@@ -103,6 +102,7 @@ class Progress
103
102
  levels.last.current = Float(value)
104
103
  end
105
104
  print_message
105
+ self.note = nil
106
106
  ret
107
107
  elsif block
108
108
  block.call
@@ -215,7 +215,7 @@ class Progress
215
215
  message = "#{parts.reverse * ' > '}#{eta_string}"
216
216
  message_cl = "#{parts_cl.reverse * ' > '}#{eta_string}"
217
217
 
218
- if note = levels.last.note
218
+ if note = levels.last && levels.last.note
219
219
  message << " - #{note}"
220
220
  message_cl << " - #{note}"
221
221
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{progress}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Boba Fat"]
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "spec/spec_helper.rb"
30
30
  ]
31
31
  s.homepage = %q{http://github.com/toy/progress}
32
+ s.licenses = ["MIT"]
32
33
  s.require_paths = ["lib"]
33
34
  s.rubygems_version = %q{1.3.7}
34
35
  s.summary = %q{Show progress of long running tasks}
@@ -42,9 +43,18 @@ Gem::Specification.new do |s|
42
43
  s.specification_version = 3
43
44
 
44
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
47
+ s.add_development_dependency(%q<rake-gem-ghost>, [">= 0"])
48
+ s.add_development_dependency(%q<rspec>, [">= 0"])
45
49
  else
50
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
51
+ s.add_dependency(%q<rake-gem-ghost>, [">= 0"])
52
+ s.add_dependency(%q<rspec>, [">= 0"])
46
53
  end
47
54
  else
55
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
56
+ s.add_dependency(%q<rake-gem-ghost>, [">= 0"])
57
+ s.add_dependency(%q<rspec>, [">= 0"])
48
58
  end
49
59
  end
50
60
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: progress
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Boba Fat
@@ -17,8 +17,51 @@ cert_chain: []
17
17
 
18
18
  date: 2010-12-07 00:00:00 +03:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: jeweler
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 1
30
+ segments:
31
+ - 1
32
+ - 5
33
+ - 1
34
+ version: 1.5.1
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake-gem-ghost
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: rspec
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :development
64
+ version_requirements: *id003
22
65
  description:
23
66
  email:
24
67
  executables: []
@@ -43,8 +86,8 @@ files:
43
86
  - spec/spec_helper.rb
44
87
  has_rdoc: true
45
88
  homepage: http://github.com/toy/progress
46
- licenses: []
47
-
89
+ licenses:
90
+ - MIT
48
91
  post_install_message:
49
92
  rdoc_options: []
50
93