bumpversion 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db4033959ab58db875982202404f8d99338ef478
4
- data.tar.gz: d06210b74f134f5f73f4fa78c8acd37586022309
3
+ metadata.gz: a583f181e8fa65d58b13c7aa9d7c8444e05ab7d5
4
+ data.tar.gz: 150f4f40d44860769b9f2160ffd0790bb1a0eb09
5
5
  SHA512:
6
- metadata.gz: fb4a79443b9941a062c230af0ae95ac8d0b413a29cddb2bde8093f479dd656f18636dba16a061bf59686a81bedc128777e9c443a9a47e5340623dc7537852f2f
7
- data.tar.gz: 8cc9b80d31fe03d49dbe5ff11027eead71733589e79ac2eab2012d8bca08d865d8e4cc6c4c1e7e940e62dd3c42cce2baae3fdc90fe0bc48bf97996033acb5e9a
6
+ metadata.gz: 00532156bfd8ab63ba24bc024af71656b1f9f2941b9b9f965e02061c2dec3bbe2902ad5a64058c303c9275a1bec6cad7a9820eed5595541792dc02cf32568dfe
7
+ data.tar.gz: 32bb4710a7d86d08d6feb7e3465b3faf7f042a66113d636f54813713ea858b3dbd6e6ee6e33a898621c7918b7a5ffcf4e79dfeab7953c4bc69f0ff151e076599
data/README.md CHANGED
@@ -39,7 +39,7 @@ Build Status|[![Travis](https://img.shields.io/travis/dlanileonardo/bumpversion.
39
39
  2. Run command with argument [major, minor, patch]:
40
40
 
41
41
  ```
42
- $ bumpversion patch
42
+ $ bumpversion --part patch
43
43
  ```
44
44
 
45
45
  3. Enjoy
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
+ require 'bundler'
1
2
  require 'bundler/gem_tasks'
3
+ require 'rubocop/rake_task'
2
4
  require 'rspec/core/rake_task'
3
5
 
4
- RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
7
+ RSpec::Core::RakeTask.new
5
8
 
6
- task default: :spec
9
+ task :default => %w(spec)
@@ -28,7 +28,7 @@ module Bumpversion
28
28
 
29
29
  def push!
30
30
  @git.push if @options[:git_push]
31
- @git.push(@git.remote.name, @git.branch.name, {:tags => true}) if @options[:git_push] && @options[:git_tag]
31
+ @git.push(@git.remote.name, @git.branch.name, :tags => true) if @options[:git_push] && @options[:git_tag]
32
32
  end
33
33
 
34
34
  def do!
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Bumpversion
3
3
  class Hook
4
- def self.call_system(key_hook,options)
4
+ def self.call_system(key_hook, options)
5
5
  return false unless options[key_hook]
6
6
  command = options[key_hook] % options
7
7
  PrettyOutput.info "Executing command: #{command}"
@@ -27,16 +27,16 @@ module Bumpversion
27
27
 
28
28
  opt :git_commit, 'Whether to create a commit using Git.', required: false, default: false, type: :boolean
29
29
  opt :git_tag, 'Whether to create a tag, that is the new version, prefixed with the character "v". If you are using git',
30
- required: false, default: false, type: :boolean
30
+ required: false, default: false, type: :boolean
31
31
  opt :git_push, 'Pushes Tags and Commit to origin Git', reuired: false, default: false, type: :boolean
32
32
  opt :git_user, 'Name from User to Create Commit', required: false, default: "Auto Bump", type: :string
33
33
  opt :git_email, 'Email from User to Create Email', required: false, default: "auto@bump.io", type: :string
34
34
  opt :git_extra_add, 'Extra files to add in git commit', required: false, default: "", type: :string
35
35
 
36
36
  opt :pre_commit_hooks, 'Call sh commands before commits after Bumpversion separated by ;',
37
- required: false, type: :string
37
+ required: false, type: :string
38
38
  opt :pos_commit_hooks, 'Call sh commands after commits separated by ;',
39
- required: false, type: :string
39
+ required: false, type: :string
40
40
  end
41
41
  end
42
42
 
@@ -9,7 +9,7 @@ module Bumpversion
9
9
 
10
10
  def validate!
11
11
  files_to_write.each do |file_to_write|
12
- fail "Current Version not found in #{file_to_write[:filename]} file" unless file_to_write[:content].include? @options[:current_version]
12
+ raise "Current Version not found in #{file_to_write[:filename]} file" unless file_to_write[:content].include? @options[:current_version]
13
13
  end
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Bumpversion
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'.freeze
3
3
  end
@@ -20,7 +20,7 @@ module Bumpversion
20
20
  file_current_version_match = file_has_current_version && content_config_file.include?(@options[:current_version])
21
21
  valid = !file_exists || !file_has_current_version || file_current_version_match
22
22
 
23
- fail "Version File does not Match with Current Version" unless valid
23
+ raise "Version File does not Match with Current Version" unless valid
24
24
  end
25
25
 
26
26
  def update_config_file!
@@ -0,0 +1,133 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bumpversion::Bumpversion do
4
+ it 'has a version number' do
5
+ expect(Bumpversion::VERSION).not_to be nil
6
+ end
7
+
8
+ context 'no params' do
9
+ it 'raise error' do
10
+ # expect { Bumpversion::Bumpversion.new }.to raise_error SystemExit
11
+ end
12
+ end
13
+
14
+ describe 'wihout file' do
15
+ context 'with current and new version' do
16
+ let(:arguments) { ['--new-version=1.1.0', '--current-version=1.0.0'] }
17
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
18
+ subject { bump_instance.instance_variable_get(:@options) }
19
+
20
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
21
+ it { is_expected.to be_a Hash }
22
+ it { is_expected.to include :help }
23
+ it { is_expected.to include :part }
24
+ it { is_expected.to include :file }
25
+ it { is_expected.to include current_version: '1.0.0' }
26
+ it { is_expected.to include new_version: '1.1.0' }
27
+ end
28
+ context 'minor' do
29
+ let(:arguments) { ['--current-version=1.0.1'] }
30
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
31
+ subject { bump_instance.instance_variable_get(:@options) }
32
+
33
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
34
+ it { is_expected.to be_a Hash }
35
+ it { is_expected.to include :help }
36
+ it { is_expected.to include :part }
37
+ it { is_expected.to include :file }
38
+ it { is_expected.to include current_version: '1.0.1' }
39
+ it { is_expected.to include new_version: '1.1.0' }
40
+ end
41
+ context 'major' do
42
+ let(:arguments) { ['--current-version=1.0.1', '--part=major'] }
43
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
44
+ subject { bump_instance.instance_variable_get(:@options) }
45
+
46
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
47
+ it { is_expected.to be_a Hash }
48
+ it { is_expected.to include :help }
49
+ it { is_expected.to include :part }
50
+ it { is_expected.to include :file }
51
+ it { is_expected.to include current_version: '1.0.1' }
52
+ it { is_expected.to include new_version: '2.0.0' }
53
+ end
54
+ context 'patch' do
55
+ let(:arguments) { ['--current-version=1.1.1', '--part=patch'] }
56
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
57
+ subject { bump_instance.instance_variable_get(:@options) }
58
+
59
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
60
+ it { is_expected.to be_a Hash }
61
+ it { is_expected.to include :help }
62
+ it { is_expected.to include :part }
63
+ it { is_expected.to include :file }
64
+ it { is_expected.to include current_version: '1.1.1' }
65
+ it { is_expected.to include new_version: '1.1.2' }
66
+ end
67
+ end
68
+
69
+ describe 'with file' do
70
+ before do
71
+ File.write('./spec/files/bumpversion.cfg', "[bumpversion]\ncurrent-version=2.1.1\n")
72
+ File.write('./spec/files/VERSION', "version=2.1.1\n")
73
+ end
74
+ after(:all) do
75
+ File.write('./spec/files/bumpversion.cfg', '')
76
+ File.write('./spec/files/VERSION', '')
77
+ end
78
+ context 'patch' do
79
+ let(:arguments) { ['--config-file=./spec/files/bumpversion.cfg', '--file=./spec/files/VERSION', '--part=patch'] }
80
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
81
+ let!(:bump_run) { bump_instance.run }
82
+ subject { bump_instance.instance_variable_get(:@options) }
83
+
84
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
85
+ it { is_expected.to be_a Hash }
86
+ it { is_expected.to include :help }
87
+ it { is_expected.to include :part }
88
+ it { is_expected.to include :file }
89
+ it { is_expected.to include current_version: '2.1.1' }
90
+ it { is_expected.to include new_version: '2.1.2' }
91
+ it "do bump file" do
92
+ expect(File.read('./spec/files/bumpversion.cfg')).to include("current-version=2.1.2")
93
+ expect(File.read('./spec/files/VERSION')).to include("version=2.1.2")
94
+ end
95
+ end
96
+ context 'minor' do
97
+ let(:arguments) { ['--config-file=./spec/files/bumpversion.cfg', '--file=./spec/files/VERSION', '--part=minor'] }
98
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
99
+ let!(:bump_run) { bump_instance.run }
100
+ subject { bump_instance.instance_variable_get(:@options) }
101
+
102
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
103
+ it { is_expected.to be_a Hash }
104
+ it { is_expected.to include :help }
105
+ it { is_expected.to include :part }
106
+ it { is_expected.to include :file }
107
+ it { is_expected.to include current_version: '2.1.1' }
108
+ it { is_expected.to include new_version: '2.2.0' }
109
+ it "do bump file" do
110
+ expect(File.read('./spec/files/bumpversion.cfg')).to include("current-version=2.2.0")
111
+ expect(File.read('./spec/files/VERSION')).to include("version=2.2.0")
112
+ end
113
+ end
114
+ context 'major' do
115
+ let(:arguments) { ['--config-file=./spec/files/bumpversion.cfg', '--file=./spec/files/VERSION', '--part=major'] }
116
+ let(:bump_instance) { Bumpversion::Bumpversion.new arguments }
117
+ let!(:bump_run) { bump_instance.run }
118
+ subject { bump_instance.instance_variable_get(:@options) }
119
+
120
+ it { expect(bump_instance).to be_a Bumpversion::Bumpversion }
121
+ it { is_expected.to be_a Hash }
122
+ it { is_expected.to include :help }
123
+ it { is_expected.to include :part }
124
+ it { is_expected.to include :file }
125
+ it { is_expected.to include current_version: '2.1.1' }
126
+ it { is_expected.to include new_version: '3.0.0' }
127
+ it "do bump file" do
128
+ expect(File.read('./spec/files/bumpversion.cfg')).to include("current-version=3.0.0")
129
+ expect(File.read('./spec/files/VERSION')).to include("version=3.0.0")
130
+ end
131
+ end
132
+ end
133
+ end
File without changes
File without changes
@@ -0,0 +1,39 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ require "codeclimate-test-reporter"
4
+ require "simplecov"
5
+ require "coveralls"
6
+
7
+ # This module is only used to check the environment is currently a testing env
8
+ module SpecHelper
9
+ end
10
+
11
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
12
+ Coveralls::SimpleCov::Formatter,
13
+ SimpleCov::Formatter::HTMLFormatter,
14
+ CodeClimate::TestReporter::Formatter
15
+ ]
16
+ SimpleCov.start
17
+
18
+ require 'bumpversion'
19
+
20
+ RSpec.configure do |config|
21
+ # config.expect_with :rspec do |expectations|
22
+ # expectations.include_chain_clauses_in_custom_matcher_descriptions = true
23
+ # end
24
+
25
+ config.mock_with :rspec do |mocks|
26
+ mocks.verify_partial_doubles = true
27
+ end
28
+
29
+ config.filter_run :focus
30
+ config.run_all_when_everything_filtered = true
31
+
32
+ config.warnings = true
33
+
34
+ config.default_formatter = "doc" if config.files_to_run.one?
35
+
36
+ config.order = :random
37
+
38
+ Kernel.srand config.seed
39
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumpversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dlani Mendes
@@ -106,14 +106,28 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: 3.0.0
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '0'
116
+ version: 3.0.0
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec-core
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 3.0.0
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 3.0.0
117
131
  description: Bump version by params or config file with Hooks! :).
118
132
  email:
119
133
  - dlanileonardo@gmail.com
@@ -122,20 +136,9 @@ executables:
122
136
  extensions: []
123
137
  extra_rdoc_files: []
124
138
  files:
125
- - ".bumpversion.cfg"
126
- - ".gitignore"
127
- - ".rspec"
128
- - ".rubocop.yml"
129
- - ".rubocop_todo.yml"
130
- - ".travis.yml"
131
- - CHANGELOG.md
132
- - CODE_OF_CONDUCT.md
133
- - Gemfile
134
- - LICENSE.txt
135
139
  - README.md
136
140
  - Rakefile
137
141
  - bin/bumpversion
138
- - bumpversion.gemspec
139
142
  - lib/bumpversion.rb
140
143
  - lib/bumpversion/bump_string.rb
141
144
  - lib/bumpversion/git_operation.rb
@@ -146,6 +149,10 @@ files:
146
149
  - lib/bumpversion/reader.rb
147
150
  - lib/bumpversion/version.rb
148
151
  - lib/bumpversion/writer.rb
152
+ - spec/bumpversion_spec.rb
153
+ - spec/files/VERSION
154
+ - spec/files/bumpversion.cfg
155
+ - spec/spec_helper.rb
149
156
  homepage: https://github.com/dlanileonardo/bumpversion
150
157
  licenses:
151
158
  - MIT
@@ -170,4 +177,8 @@ rubygems_version: 2.6.4
170
177
  signing_key:
171
178
  specification_version: 4
172
179
  summary: Auto Bump Version to any project
173
- test_files: []
180
+ test_files:
181
+ - spec/bumpversion_spec.rb
182
+ - spec/files/VERSION
183
+ - spec/files/bumpversion.cfg
184
+ - spec/spec_helper.rb
data/.bumpversion.cfg DELETED
@@ -1,9 +0,0 @@
1
- [bumpversion]
2
- current-version=0.3.1
3
- file=lib/bumpversion/version.rb
4
- git-commit=yes
5
- git-tag=yes
6
- git-push=yes
7
- pre-commit-hooks=github_changelog_generator --future-release %{new_version}
8
- pos-commit-hooks=gem build bumpversion.gemspec; gem push *.gem; rm *.gem
9
- git-extra-add=CHANGELOG.md
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- spec/files/VERSION
11
- spec/files/bumpversion.cfg
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,16 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- Metrics/LineLength:
4
- Enabled: false
5
-
6
- Style/StringLiterals:
7
- EnforcedStyle: double_quotes
8
-
9
- Metrics/ClassLength:
10
- Enabled: false
11
-
12
- Metrics/MethodLength:
13
- Enabled: false
14
-
15
- Documentation:
16
- Enabled: false
data/.rubocop_todo.yml DELETED
@@ -1,105 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2015-09-18 03:18:40 +0000 using RuboCop version 0.34.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # Cop supports --auto-correct.
11
- Lint/UnusedBlockArgument:
12
- Exclude:
13
- - 'lib/bumpversion/bump_string.rb'
14
-
15
- # Offense count: 6
16
- # Configuration parameters: AllowURI, URISchemes.
17
- Metrics/LineLength:
18
- Max: 161
19
-
20
- # Offense count: 1
21
- # Configuration parameters: CountComments.
22
- Metrics/MethodLength:
23
- Max: 13
24
-
25
- # Offense count: 1
26
- # Cop supports --auto-correct.
27
- Performance/StringReplacement:
28
- Exclude:
29
- - 'lib/bumpversion/parser_file.rb'
30
-
31
- # Offense count: 2
32
- # Cop supports --auto-correct.
33
- Style/ColonMethodCall:
34
- Exclude:
35
- - 'lib/bumpversion/parser.rb'
36
-
37
- # Offense count: 5
38
- Style/Documentation:
39
- Exclude:
40
- - 'lib/bumpversion.rb'
41
- - 'lib/bumpversion/bump_string.rb'
42
- - 'lib/bumpversion/parser.rb'
43
- - 'lib/bumpversion/parser_file.rb'
44
- - 'lib/bumpversion/version.rb'
45
-
46
- # Offense count: 8
47
- # Cop supports --auto-correct.
48
- # Configuration parameters: AllowForAlignment.
49
- Style/ExtraSpacing:
50
- Exclude:
51
- - 'spec/bumpversion_spec.rb'
52
-
53
- # Offense count: 9
54
- # Cop supports --auto-correct.
55
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
56
- Style/HashSyntax:
57
- Enabled: false
58
-
59
- # Offense count: 3
60
- # Cop supports --auto-correct.
61
- Style/NegatedIf:
62
- Exclude:
63
- - 'lib/bumpversion/bump_string.rb'
64
- - 'lib/bumpversion/parser_file.rb'
65
-
66
- # Offense count: 2
67
- # Cop supports --auto-correct.
68
- # Configuration parameters: PreferredDelimiters.
69
- Style/PercentLiteralDelimiters:
70
- Exclude:
71
- - 'bumpversion.gemspec'
72
-
73
- # Offense count: 2
74
- # Cop supports --auto-correct.
75
- # Configuration parameters: EnforcedStyle, SupportedStyles.
76
- Style/SignalException:
77
- Exclude:
78
- - 'bumpversion.gemspec'
79
- - 'lib/bumpversion/parser.rb'
80
-
81
- # Offense count: 4
82
- # Cop supports --auto-correct.
83
- # Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles.
84
- Style/SpaceAroundBlockParameters:
85
- Exclude:
86
- - 'lib/bumpversion/bump_string.rb'
87
- - 'lib/bumpversion/parser_file.rb'
88
-
89
- # Offense count: 2
90
- # Cop supports --auto-correct.
91
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
92
- Style/SpaceInsideHashLiteralBraces:
93
- Enabled: false
94
-
95
- # Offense count: 46
96
- # Cop supports --auto-correct.
97
- # Configuration parameters: EnforcedStyle, SupportedStyles.
98
- Style/StringLiterals:
99
- Enabled: false
100
-
101
- # Offense count: 2
102
- # Cop supports --auto-correct.
103
- Style/UnneededPercentQ:
104
- Exclude:
105
- - 'bumpversion.gemspec'
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- language: ruby
2
- before_install: gem update --system
3
- rvm:
4
- - 2.2.2
5
- script:
6
- - bundle exec rake
7
- notifications:
8
- email:
9
- recipients:
10
- - dlanileonardo@gmail.com
11
- on_success: never
12
- on_failure: change
13
- addons:
14
- code_climate:
15
- repo_token: d4414bf80101ee909af5f04154416c9cccc5cd4c5d779c8a0f9aa2c4036cf68b
data/CHANGELOG.md DELETED
@@ -1,29 +0,0 @@
1
- # Change Log
2
-
3
- ## [v0.3.0](https://github.com/dlanileonardo/bumpversion/tree/v0.3.0) (2016-04-28)
4
- **Implemented enhancements:**
5
-
6
- - Push tag to Remote [\#15](https://github.com/dlanileonardo/bumpversion/issues/15)
7
- - Improve Output [\#10](https://github.com/dlanileonardo/bumpversion/issues/10)
8
- - Git Commits and Tags [\#2](https://github.com/dlanileonardo/bumpversion/issues/2)
9
- - System Hooks [\#1](https://github.com/dlanileonardo/bumpversion/issues/1)
10
- - Update README.md [\#19](https://github.com/dlanileonardo/bumpversion/pull/19) ([dlanileonardo](https://github.com/dlanileonardo))
11
- - Pretty Output [\#18](https://github.com/dlanileonardo/bumpversion/pull/18) ([dlanileonardo](https://github.com/dlanileonardo))
12
- - Git Extra file to commit [\#11](https://github.com/dlanileonardo/bumpversion/pull/11) ([dlanileonardo](https://github.com/dlanileonardo))
13
- - Git Operations [\#9](https://github.com/dlanileonardo/bumpversion/pull/9) ([dlanileonardo](https://github.com/dlanileonardo))
14
- - Pre commit Hook [\#8](https://github.com/dlanileonardo/bumpversion/pull/8) ([dlanileonardo](https://github.com/dlanileonardo))
15
- - Improve Rspec [\#4](https://github.com/dlanileonardo/bumpversion/pull/4) ([dlanileonardo](https://github.com/dlanileonardo))
16
-
17
- **Merged pull requests:**
18
-
19
- - Bumpversion [\#20](https://github.com/dlanileonardo/bumpversion/pull/20) ([dlanileonardo](https://github.com/dlanileonardo))
20
- - Remove unecessary files [\#17](https://github.com/dlanileonardo/bumpversion/pull/17) ([dlanileonardo](https://github.com/dlanileonardo))
21
- - Adjusts to Work [\#16](https://github.com/dlanileonardo/bumpversion/pull/16) ([dlanileonardo](https://github.com/dlanileonardo))
22
- - Adjusts to Work [\#14](https://github.com/dlanileonardo/bumpversion/pull/14) ([dlanileonardo](https://github.com/dlanileonardo))
23
- - Adjusts to Work [\#13](https://github.com/dlanileonardo/bumpversion/pull/13) ([dlanileonardo](https://github.com/dlanileonardo))
24
- - Author and Spec [\#12](https://github.com/dlanileonardo/bumpversion/pull/12) ([dlanileonardo](https://github.com/dlanileonardo))
25
- - waffle.io Badge [\#6](https://github.com/dlanileonardo/bumpversion/pull/6) ([waffle-iron](https://github.com/waffle-iron))
26
-
27
-
28
-
29
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in bumpversion.gemspec
4
- gemspec
5
-
6
- gem 'trollop', '>= 2.1'
7
- gem 'parseconfig', '>= 1.0'
8
- gem 'colorize', '>= 0.7'
9
- gem 'git', '>= 1.2.9'
10
-
11
- group :test do
12
- gem 'rubocop', '~>0.31'
13
- gem 'coveralls', '~>0.8', require: false
14
- gem 'simplecov', '~>0.10', require: false
15
- gem "codeclimate-test-reporter", "~>0.4"
16
- end
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 TODO: Write your name
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/bumpversion.gemspec DELETED
@@ -1,33 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'bumpversion/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'bumpversion'
8
- spec.version = Bumpversion::VERSION
9
- spec.default_executable = "bumpversion"
10
- spec.authors = ['Dlani Mendes']
11
- spec.email = ['dlanileonardo@gmail.com']
12
- spec.date = `date +"%Y-%m-%d"`.strip!
13
-
14
- spec.summary = 'Auto Bump Version to any project'
15
- spec.description = 'Bump version by params or config file with Hooks! :).'
16
- spec.homepage = 'https://github.com/dlanileonardo/bumpversion'
17
- spec.license = 'MIT'
18
-
19
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
- spec.bindir = 'bin'
21
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
23
- spec.require_paths = ['lib']
24
-
25
- spec.add_runtime_dependency("trollop", ["~> 2.1"])
26
- spec.add_runtime_dependency("parseconfig", ["~> 1.0"])
27
- spec.add_runtime_dependency("colorize", ["~> 0.7"])
28
- spec.add_runtime_dependency("git", ['~> 1.2', '>= 1.2.9'])
29
-
30
- spec.add_development_dependency('bundler', ['~> 1.10'])
31
- spec.add_development_dependency('rake', ['~> 10.0'])
32
- spec.add_development_dependency('rspec', ['~> 0'])
33
- end