bumpy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/bumpy +6 -2
  2. data/lib/bumpy/version.rb +1 -1
  3. metadata +53 -31
data/bin/bumpy CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ require 'rubygems'
2
3
  require 'trollop'
3
4
  require 'bumpy'
4
5
 
@@ -32,7 +33,9 @@ Dir['./lib/**/version.rb'].each do |name|
32
33
  contents.sub!(EXPR, "VERSION = \"#{opts[:new_version]}\"")
33
34
 
34
35
  unless opts[:dryrun]
35
- File.write(name, contents)
36
+ File.open(name, 'w+') do |f|
37
+ f.write(contents)
38
+ end
36
39
 
37
40
  # create git commit
38
41
  if File.exists?('./.git') && !opts[:no_git]
@@ -41,7 +44,8 @@ Dir['./lib/**/version.rb'].each do |name|
41
44
  end
42
45
  end
43
46
 
44
- break
47
+ # done!
48
+ exit 0
45
49
  end
46
50
  end
47
51
 
data/lib/bumpy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bumpy
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,35 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bumpy
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 2
10
+ version: 0.1.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Hendrik Mans
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-05-31 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-05-31 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: trollop
16
- requirement: &70208455180780 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
17
25
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
22
33
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70208455180780
34
+ version_requirements: *id001
25
35
  description: Bumpy bumps your gem's version number.
26
- email:
36
+ email:
27
37
  - hendrik@mans.de
28
- executables:
38
+ executables:
29
39
  - bumpy
30
40
  extensions: []
41
+
31
42
  extra_rdoc_files: []
32
- files:
43
+
44
+ files:
33
45
  - .gitignore
34
46
  - Gemfile
35
47
  - LICENSE
@@ -39,29 +51,39 @@ files:
39
51
  - bumpy.gemspec
40
52
  - lib/bumpy.rb
41
53
  - lib/bumpy/version.rb
42
- homepage: ''
54
+ has_rdoc: true
55
+ homepage: ""
43
56
  licenses: []
57
+
44
58
  post_install_message:
45
59
  rdoc_options: []
46
- require_paths:
60
+
61
+ require_paths:
47
62
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
63
+ required_ruby_version: !ruby/object:Gem::Requirement
49
64
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
71
+ version: "0"
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
73
  none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 0
80
+ version: "0"
60
81
  requirements: []
82
+
61
83
  rubyforge_project:
62
- rubygems_version: 1.8.11
84
+ rubygems_version: 1.6.2
63
85
  signing_key:
64
86
  specification_version: 3
65
87
  summary: Bumpy bumps your gem's version number.
66
88
  test_files: []
67
- has_rdoc:
89
+