bumper_pusher 0.2.5 → 0.3.0

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
  SHA256:
3
- metadata.gz: 89f2dd45b1559766564fbc41c6a779e044f0be4d0499eabe4c5884178487945a
4
- data.tar.gz: a000eb02fd0bf20510eb177e82182c2c0f0d133bc61436f78aea346e6399a62e
3
+ metadata.gz: db38db97376c4c4c61623ee61eb056f04f5ab24484baf266171b70e94a9b3e32
4
+ data.tar.gz: fc96753649a60c36e4757fc3a72673948ba7b12b6240a016a368817b28dde8bd
5
5
  SHA512:
6
- metadata.gz: '08e49bf13c1d521a9de94450dce49cb41b1604fcc704084feda4bd35575f3c06e14fd6fc0f7527beb5bdb7e820aafb157123ab858ea47708fba038b7b5195902'
7
- data.tar.gz: 3223779b597f5c51192fbeca98e318a476c4ffb9ae9453cc458988e034592138b8a51e2799b704c5e52bbfa7cce262f603e79c44baafbcfdc9fb81840931519e
6
+ metadata.gz: eaf744f5a4c1f74672ad467a398a996d57df2645ed0f3d598c821cded761a816152742b866074c606223c0f789f6ce50e65caea895428e5ba771e6ba3b113407
7
+ data.tar.gz: 010fe1661c6ddac160858bd0000cd79702e8e895c0708c09635750adbfe2338960c9dc475a47993c803282aac36e41cc9f3328db7d0131783fd28c69fd91fe10
data/README.md CHANGED
@@ -24,32 +24,32 @@ This gem make bumping and pushing your ruby gems easy and fast!
24
24
 
25
25
  - To install locally your gemspec `bumper_pusher -b`
26
26
 
27
- ### Params
28
- Usage: bumper_pusher [options]
29
- -d, --dry-run Dry run
30
- --release Bump release version
31
- -m, --minor Bump minor version
32
- -p, --patch Bump patch version
33
- -r, --revert Revert last bump
34
- -i, --[no-]install Install this gem after push it. Default is true.
35
- -b, --beta Build beta gem without commit and push
36
- -v, --version Print version number
37
- -c, --[no]-changelog Auto generation of changelog and pushing it origin. Default is true
38
-
39
- ## Alternatives
40
- - https://github.com/peritus/bumpversion
41
- - https://github.com/vojtajina/grunt-bump
42
- - https://github.com/gregorym/bump
43
- - https://github.com/svenfuchs/gem-release
27
+ ### Params (`bumper_pusher -h`)
28
+ -d, --dry-run Dry run
29
+ --release Bump release version
30
+ -m, --minor Bump minor version
31
+ -p, --patch Bump patch version
32
+ -r, --revert Revert last bump
33
+ -i, --[no-]install Install this gem after push it. Default is true.
34
+ -b, --beta Build beta gem without commit and push
35
+ -v, --version Print version number
36
+ -g, --gen-changelog Auto generation of changelog and pushing it origin. Default is false
44
37
 
45
38
  ## Features & Benefits of this project
46
39
 
40
+ ##
41
+
42
+ _Prerequirements (optional)
43
+ This tool usess `git flow` three structure.
44
+ Before run, please consider to run `git flow init` (default options is fine)._
45
+
46
+
47
47
  - **Very easy to use**: just type `bumper_pusher` in your repo folder
48
48
  - Supports version storage directly in `gemspec` file and in `version.rb`
49
49
  - Checks that you're bumping from the `master` branch (otherwise prints a warning with confirmation)
50
50
  - Checks that your `git status` is clean
51
- - Ability to easily test build your gem `bumper_pusher -b`
52
- - Ability to generate changelog for the new version using [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)
51
+ - Ability to easily test build your gem `bumper_pusher -b` (it adds extra verions prefix to avoind version collising with release veriosions)
52
+ - Ability to generate changelog for the new version using [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator) (but broken with latest gcg releases)
53
53
  - Supports both `gemspec` and `podspec` files
54
54
 
55
55
  ## Debug
@@ -58,7 +58,6 @@ This gem make bumping and pushing your ruby gems easy and fast!
58
58
  Follow by [this instructions](https://dev.to/dnamsons/ruby-debugging-in-vscode-3bkj)
59
59
  ```
60
60
  gem install ruby-debug-ide
61
- gem install debase
62
61
  ```
63
62
 
64
63
  ## Contributing
@@ -68,3 +67,11 @@ gem install debase
68
67
  3. Commit your changes (`git commit -am 'Add some feature'`)
69
68
  4. Push to the branch (`git push origin my-new-feature`)
70
69
  5. Create a new Pull Request
70
+
71
+
72
+ ### Alternatives
73
+ - https://github.com/peritus/bumpversion
74
+ - https://github.com/vojtajina/grunt-bump
75
+ - https://github.com/gregorym/bump
76
+ - https://github.com/svenfuchs/gem-release
77
+
@@ -38,13 +38,13 @@ module BumperPusher
38
38
  if is_git_flow_installed
39
39
  # supposed, that with git flow you should release from develop branch
40
40
  if current_branch != "develop" && !is_branch_hotfix?
41
- puts "Warning: You're in branch (#{current_branch})!".yellow
41
+ puts "Warning: You're in branch (#{current_branch})!\n(supposed, that with git flow you should release from develop branch)".yellow
42
42
  ask_sure_y
43
43
  end
44
44
  else
45
45
  # supposed, that w/o git flow you should release from master or release branch
46
46
  if current_branch != "master" || !/release/.match(current_branch)[0].nil?
47
- puts "Warning: You're in branch (#{current_branch})!".yellow
47
+ puts "Warning: You're in branch (#{current_branch})!\n)(supposed, that you release from master or release branch usually)".yellow
48
48
  ask_sure_y
49
49
  end
50
50
  end
@@ -7,7 +7,7 @@ module BumperPusher
7
7
  end
8
8
 
9
9
  def parse_options
10
- options = { dry_run: false, bump_number: :patch, changelog: true, bump: true, commit: true, build: true, push: true, install: true }
10
+ options = { dry_run: false, bump_number: :patch, changelog: false, bump: true, commit: true, build: true, push: true, install: true }
11
11
 
12
12
  OptionParser.new do |opts|
13
13
  opts.banner = "Usage: bumper_pusher [options]"
@@ -41,12 +41,9 @@ module BumperPusher
41
41
  puts "Version: #{BumperPusher::VERSION}"
42
42
  exit
43
43
  end
44
- opts.on("-c", "--[no]-changelog", "Auto generation of changelog and pushing it origin. Default is true") do |v|
44
+ opts.on("-g", "--gen-changelog", "Auto generation of changelog and pushing it origin. Default is false") do |v|
45
45
  options[:changelog] = v
46
- end
47
- opts.on("-nc", "--no-changelog", "Auto generation of changelog and pushing it origin. Default is true") do |v|
48
- options[:changelog] = !v
49
- end
46
+ end
50
47
  end.parse!
51
48
  options
52
49
  end
@@ -1,3 +1,3 @@
1
1
  module BumperPusher
2
- VERSION = "0.2.5"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bumper_pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-26 00:00:00.000000000 Z
11
+ date: 2019-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler