progress 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,7 @@
1
+ v0.0.7 2009-03-24 moved to echoe
2
+ v0.0.6 2009-02-19 printing messages to stderr
3
+ v0.0.5 2008-11-07 piping result of block execution, changed default step count to 1 (from 100)
4
+ v0.0.4 2008-11-06 step now accept count of steps made
5
+ v0.0.3 2008-11-01 recreated with newgem, created specs, autospec now runs well, created documentation
6
+ v0.0.2 2008-10-31 added enclosed progress possibility
7
+ v0.0.1 initial release
@@ -1,10 +1,10 @@
1
- History.txt
2
- Manifest.txt
3
- README.rdoc
4
- Rakefile
5
- lib/progress.rb
1
+ CHANGELOG
6
2
  lib/progress/enumerable.rb
7
3
  lib/progress/integer.rb
4
+ lib/progress.rb
5
+ Manifest
6
+ Rakefile
7
+ README.rdoc
8
8
  script/console
9
9
  script/destroy
10
10
  script/generate
data/Rakefile CHANGED
@@ -1,21 +1,12 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
- require File.dirname(__FILE__) + '/lib/progress'
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'rake/clean'
4
+ require 'fileutils'
5
+ require 'echoe'
3
6
 
4
- $hoe = Hoe.new('progress', Progress::VERSION) do |p|
5
- p.developer('toy', 'email')
6
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
7
- p.rubyforge_name = p.name
8
- # p.extra_deps = [
9
- # ['activesupport','>= 2.0.2'],
10
- # ]
11
- p.extra_dev_deps = [
12
- ['newgem', ">= #{::Newgem::VERSION}"]
13
- ]
7
+ require File.dirname(__FILE__) + '/lib/progress'
14
8
 
15
- p.clean_globs |= %w[**/.DS_Store tmp *.log]
16
- path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
17
- p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
18
- p.rsync_args = '-av --delete --ignore-errors'
9
+ Echoe.new('progress', Progress::VERSION) do |p|
10
+ p.author = "toy"
11
+ p.summary = "A library to show progress of long running tasks."
19
12
  end
20
-
21
- require 'newgem/tasks'
data/lib/progress.rb CHANGED
@@ -4,7 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'singleton'
5
5
 
6
6
  class Progress
7
- VERSION = '0.0.5'
7
+ VERSION = '0.0.7'
8
8
 
9
9
  include Singleton
10
10
 
@@ -82,7 +82,7 @@ protected
82
82
 
83
83
  def self.print_message
84
84
  message = levels.map{ |level| level.message } * ' > '
85
- @io ||= $stdout
85
+ @io ||= $stderr
86
86
  @io.sync = true
87
87
  @io.print "\r" + message.ljust(@previous_length || 0).gsub(/\d+\.\d+/){ |s| s == '100.0' ? s : "\e[1m#{s}\e[0m" }
88
88
  @previous_length = message.length
data/progress.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{progress}
5
+ s.version = "0.0.7"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["toy"]
9
+ s.date = %q{2009-03-24}
10
+ s.description = %q{A library to show progress of long running tasks.}
11
+ s.email = %q{}
12
+ s.extra_rdoc_files = ["CHANGELOG", "lib/progress/enumerable.rb", "lib/progress/integer.rb", "lib/progress.rb", "README.rdoc", "tasks/rspec.rake"]
13
+ s.files = ["CHANGELOG", "lib/progress/enumerable.rb", "lib/progress/integer.rb", "lib/progress.rb", "Manifest", "Rakefile", "README.rdoc", "script/console", "script/destroy", "script/generate", "spec/progress_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake", "progress.gemspec"]
14
+ s.has_rdoc = true
15
+ s.homepage = %q{}
16
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Progress", "--main", "README.rdoc"]
17
+ s.require_paths = ["lib"]
18
+ s.rubyforge_project = %q{progress}
19
+ s.rubygems_version = %q{1.3.1}
20
+ s.summary = %q{A library to show progress of long running tasks.}
21
+
22
+ if s.respond_to? :specification_version then
23
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
+ s.specification_version = 2
25
+
26
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
+ else
28
+ end
29
+ else
30
+ end
31
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: progress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - toy
@@ -9,48 +9,31 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-07 00:00:00 +03:00
12
+ date: 2009-03-24 00:00:00 +03:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: newgem
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.0.3
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.8.0
34
- version:
35
- description: Class to show progress during console script run
36
- email:
37
- - email
14
+ dependencies: []
15
+
16
+ description: A library to show progress of long running tasks.
17
+ email: ""
38
18
  executables: []
39
19
 
40
20
  extensions: []
41
21
 
42
22
  extra_rdoc_files:
43
- - History.txt
44
- - Manifest.txt
23
+ - CHANGELOG
24
+ - lib/progress/enumerable.rb
25
+ - lib/progress/integer.rb
26
+ - lib/progress.rb
45
27
  - README.rdoc
28
+ - tasks/rspec.rake
46
29
  files:
47
- - History.txt
48
- - Manifest.txt
49
- - README.rdoc
50
- - Rakefile
51
- - lib/progress.rb
30
+ - CHANGELOG
52
31
  - lib/progress/enumerable.rb
53
32
  - lib/progress/integer.rb
33
+ - lib/progress.rb
34
+ - Manifest
35
+ - Rakefile
36
+ - README.rdoc
54
37
  - script/console
55
38
  - script/destroy
56
39
  - script/generate
@@ -58,10 +41,15 @@ files:
58
41
  - spec/spec.opts
59
42
  - spec/spec_helper.rb
60
43
  - tasks/rspec.rake
44
+ - progress.gemspec
61
45
  has_rdoc: true
62
- homepage: http://github.com/toy/progress/tree/master
46
+ homepage: ""
63
47
  post_install_message:
64
48
  rdoc_options:
49
+ - --line-numbers
50
+ - --inline-source
51
+ - --title
52
+ - Progress
65
53
  - --main
66
54
  - README.rdoc
67
55
  require_paths:
@@ -76,14 +64,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
64
  requirements:
77
65
  - - ">="
78
66
  - !ruby/object:Gem::Version
79
- version: "0"
67
+ version: "1.2"
80
68
  version:
81
69
  requirements: []
82
70
 
83
71
  rubyforge_project: progress
84
- rubygems_version: 1.2.0
72
+ rubygems_version: 1.3.1
85
73
  signing_key:
86
74
  specification_version: 2
87
- summary: Class to show progress during console script run
75
+ summary: A library to show progress of long running tasks.
88
76
  test_files: []
89
77
 
data/History.txt DELETED
@@ -1,23 +0,0 @@
1
- == 0.0.5 2008-11-07
2
-
3
- * piping result of block execution
4
- * changed default step count to 1 (from 100)
5
-
6
- == 0.0.4 2008-11-06
7
-
8
- * step now accept count of steps made
9
-
10
- == 0.0.3 2008-11-01
11
-
12
- * recreated with newgem
13
- * created specs
14
- * autospec now runs well
15
- * created documentation
16
-
17
- == 0.0.2 2008-10-31
18
-
19
- * added enclosed progress possibility
20
-
21
- == 0.0.1
22
-
23
- * initial release