shell-spinner 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -6,9 +6,9 @@ It basically wraps any code and show spinner until code isn't completed.
6
6
  ## Installation
7
7
 
8
8
  gem install shell-spinner
9
-
10
- In Rails 3, add this to your Gemfile and run the bundle command.
11
-
9
+
10
+ In **Rails 3**, add this to your Gemfile and run the ```bundle``` command.
11
+
12
12
  gem "shell-spinner"
13
13
 
14
14
  ## Usage
@@ -39,4 +39,6 @@ This code produces output similar to:
39
39
 
40
40
  > Positive result... done
41
41
  > Code with exception... fail
42
- > <exception message and backtrace>
42
+ > <exception message and backtrace>
43
+
44
+ I can't show you a spinner there, but promise - it appears :)
data/lib/shell-spinner.rb CHANGED
@@ -40,9 +40,9 @@ module ShellSpinner
40
40
 
41
41
  def self.re_raise_exception e
42
42
  raise begin
43
- e.class.new(e.message).tap do |exception|
44
- exception.set_backtrace e.backtrace
45
- end
43
+ new_exception = e.class.new(e.message)
44
+ new_exception.set_backtrace e.backtrace
45
+ new_exception
46
46
  end
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module ShellSpinner
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,35 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: shell-spinner
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 1
10
+ version: 1.0.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Ivan Garmatenko
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-02-23 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: colorize
16
- requirement: &84013340 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *84013340
25
- description: Gem provides animated spinner for UNIX shell and could be used with rake
26
- tasks and any console scripts
27
- email:
33
+ version_requirements: *id001
34
+ description: Gem provides animated spinner for UNIX shell and could be used with rake tasks and any console scripts
35
+ email:
28
36
  - cheef.che@gmail.ru
29
37
  executables: []
38
+
30
39
  extensions: []
40
+
31
41
  extra_rdoc_files: []
32
- files:
42
+
43
+ files:
33
44
  - .gitignore
34
45
  - Gemfile
35
46
  - README.markdown
@@ -39,26 +50,36 @@ files:
39
50
  - shell-spinner.gemspec
40
51
  homepage: https://github.com/cheef/shell-spinner
41
52
  licenses: []
53
+
42
54
  post_install_message:
43
55
  rdoc_options: []
44
- require_paths:
56
+
57
+ require_paths:
45
58
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
59
+ required_ruby_version: !ruby/object:Gem::Requirement
47
60
  none: false
48
- requirements:
49
- - - ! '>='
50
- - !ruby/object:Gem::Version
51
- version: '0'
52
- required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ hash: 3
65
+ segments:
66
+ - 0
67
+ version: "0"
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
69
  none: false
54
- requirements:
55
- - - ! '>='
56
- - !ruby/object:Gem::Version
57
- version: '0'
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
58
77
  requirements: []
78
+
59
79
  rubyforge_project:
60
- rubygems_version: 1.8.10
80
+ rubygems_version: 1.7.2
61
81
  signing_key:
62
82
  specification_version: 3
63
83
  summary: Animated spinner for shell
64
84
  test_files: []
85
+