bump 0.1.3 → 0.1.4

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.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source :rubygems
2
+ gemspec
3
+
4
+ gem 'rake'
5
+ gem 'rspec', '~>2'
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bump (0.1.3)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.1.3)
10
+ rake (0.9.2.2)
11
+ rspec (2.11.0)
12
+ rspec-core (~> 2.11.0)
13
+ rspec-expectations (~> 2.11.0)
14
+ rspec-mocks (~> 2.11.0)
15
+ rspec-core (2.11.1)
16
+ rspec-expectations (2.11.3)
17
+ diff-lcs (~> 1.1.3)
18
+ rspec-mocks (2.11.3)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ bump!
25
+ rake
26
+ rspec (~> 2)
data/README.textile CHANGED
@@ -18,6 +18,4 @@ Bump version 0.1.2 to 0.1.3
18
18
  h1. Todo
19
19
 
20
20
  * Handle options properly
21
- * I really need to write tests!
22
- * Some code can be refactored
23
21
 
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ task :default do
4
+ sh "rspec spec/"
5
+ end
6
+
data/bin/bump CHANGED
File without changes
data/bump.gemspec CHANGED
@@ -1,26 +1,14 @@
1
- Gem::Specification.new do |s|
2
- s.name = "bump"
3
- s.version = "0.1.3"
1
+ Gem::Specification.new "bump" do |s|
2
+ s.version = "0.1.4"
4
3
  s.author = "Gregory Marcilhacy"
5
4
  s.email = "g.marcilhacy@gmail.com"
6
- s.homepage = "http://github.com/gregorymp/bump"
5
+ s.homepage = "https://github.com/gregorym/bump"
7
6
  s.summary = "Bump your gem version file"
8
7
 
9
- s.files = %w(
10
- README.textile
11
- bump.gemspec
12
- bin/bump
13
- lib/bump.rb
14
- )
15
-
16
- s.test_files = %w(
17
- test/bump_spec.rb
18
- test/fixture/fixture.gemspec
19
- )
20
-
8
+ s.files = `git ls-files`.split("\n")
9
+ s.license = "MIT"
21
10
  s.require_path = "lib"
22
11
  s.executables = ["bump"]
23
-
24
12
  end
25
13
 
26
14
 
@@ -1,7 +1,19 @@
1
1
  require File.dirname(__FILE__) + "/../lib/bump.rb"
2
2
 
3
3
  describe Bump do
4
-
4
+
5
+ around do |example|
6
+ gemspec = <<-RUBY.sub(" "*6, "")
7
+ Gem::Specification.new do |s|
8
+ s.version = "1.0.0"
9
+ end
10
+ RUBY
11
+ path = File.expand_path("../fixture/fixture.gemspec", __FILE__)
12
+ File.open(path, 'w') {|f| f.write(gemspec) }
13
+ example.call
14
+ File.open(path, 'w') {|f| f.write("") }
15
+ end
16
+
5
17
  it "should find current version" do
6
18
  bump = Bump::Bump.new("current")
7
19
  bump.gemspec_path = File.dirname(__FILE__) + "/fixture/fixture.gemspec"
@@ -30,4 +42,4 @@ describe Bump do
30
42
  output.include?("2.0.0").should be_true
31
43
  end
32
44
 
33
- end
45
+ end
File without changes
metadata CHANGED
@@ -1,73 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bump
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 3
10
- version: 0.1.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Gregory Marcilhacy
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-23 00:00:00 +02:00
19
- default_executable:
12
+ date: 2012-10-09 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
14
  description:
23
15
  email: g.marcilhacy@gmail.com
24
- executables:
16
+ executables:
25
17
  - bump
26
18
  extensions: []
27
-
28
19
  extra_rdoc_files: []
29
-
30
- files:
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - Gemfile.lock
31
24
  - README.textile
32
- - bump.gemspec
25
+ - Rakefile
33
26
  - bin/bump
27
+ - bump.gemspec
34
28
  - lib/bump.rb
35
- - test/bump_spec.rb
36
- - test/fixture/fixture.gemspec
37
- has_rdoc: true
38
- homepage: http://github.com/gregorymp/bump
39
- licenses: []
40
-
29
+ - spec/bump_spec.rb
30
+ - spec/fixture/fixture.gemspec
31
+ homepage: https://github.com/gregorym/bump
32
+ licenses:
33
+ - MIT
41
34
  post_install_message:
42
35
  rdoc_options: []
43
-
44
- require_paths:
36
+ require_paths:
45
37
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
38
+ required_ruby_version: !ruby/object:Gem::Requirement
47
39
  none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- hash: 3
52
- segments:
53
- - 0
54
- version: "0"
55
- required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
45
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
64
50
  requirements: []
65
-
66
51
  rubyforge_project:
67
- rubygems_version: 1.6.2
52
+ rubygems_version: 1.8.23
68
53
  signing_key:
69
54
  specification_version: 3
70
55
  summary: Bump your gem version file
71
- test_files:
72
- - test/bump_spec.rb
73
- - test/fixture/fixture.gemspec
56
+ test_files: []
@@ -1,21 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = "fixture"
3
- s.version = "2.0.0"
4
- s.author = "Gregory Marcilhacy"
5
- s.email = "g.marcilhacy@gmail.com"
6
- s.homepage = "http://github.com/gregorymp/bump"
7
- s.summary = "Bump your gem version file"
8
-
9
- s.files = %w(
10
- README.textile
11
- bump.gemspec
12
- bin/bump
13
- lib/bump.rb
14
- )
15
-
16
- s.require_path = "lib"
17
- s.executables = ["bump"]
18
-
19
- end
20
-
21
-