nextver 0.1.1 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c362a06dd22de7a07aa0828ce466ef992056a3d2805f3c55e64ef284f2a35262
4
- data.tar.gz: 18b753dbf747914d374a9ee031654d00a231f734289067899a9457dbddf543c9
3
+ metadata.gz: 2e6894a5f36486ee9b1edf138db8db97a9e8e2b5ee500332fe6665aa059bc719
4
+ data.tar.gz: 5c66d173cb29b4ffead6695080a655f44d63332d2555a982dd2849cd7da791e7
5
5
  SHA512:
6
- metadata.gz: dacce37fd2e50624ae8cdadc34d86a3f20a3129746c58c4fae30c991f1846c789295384df591797664440d52bf817d6a1ddd1ad1f3a8043e6520d59dc5fcd6b5
7
- data.tar.gz: 3ce8545521596259f898c595c3d416df5be8c8b61d68fc34a9754cfbbaf9bebfe3450f703110d4731415acbb78511b32d7c60af79d1dc714e5b9372c51713303
6
+ metadata.gz: 7d2f9f763ba8048e3408fe66993ad18a5f5a63a048bb9ecc4c2919b9e0694dc4e93418858a8877c398459333695228d6c997c3171e0d88a6565fd55017deb000
7
+ data.tar.gz: fd44002a1827f6d5beb0b898b11615db6ae1a942148c3a11278b214c0bbd2606cefbc68c07df11e652f581f58b38874a68aad3693cec5ef45fc3795ad5503490
data/README.md CHANGED
@@ -11,13 +11,13 @@ gem "nextver", require: false, group: :development
11
11
 
12
12
  or `gem install nextver`.
13
13
 
14
- To get `bin/nextver` created on every `bundle install`, set this once in your app and commit `.bundle/config`:
14
+ In a Rails app, create `bin/nextver` once and commit it:
15
15
 
16
16
  ```
17
- bundle config set --local bin bin
17
+ bin/rails generate nextver:install
18
18
  ```
19
19
 
20
- Or run `bundle binstubs nextver` once and commit `bin/nextver`.
20
+ Outside Rails, `bundle binstubs nextver` does the same.
21
21
 
22
22
  ## Usage
23
23
 
@@ -0,0 +1,17 @@
1
+ require "rails/generators"
2
+
3
+ module Nextver
4
+ # rails generate nextver:install
5
+ class InstallGenerator < Rails::Generators::Base
6
+ desc "Creates bin/nextver binstub."
7
+
8
+ def create_binstub
9
+ create_file "bin/nextver", <<~RUBY
10
+ #!/usr/bin/env ruby
11
+ require "bundler/setup"
12
+ load Gem.bin_path("nextver", "nextver")
13
+ RUBY
14
+ chmod "bin/nextver", 0o755
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Nextver
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chonlasith Jucksriporn
@@ -19,6 +19,7 @@ files:
19
19
  - LICENSE.txt
20
20
  - README.md
21
21
  - bin/nextver
22
+ - lib/generators/nextver/install_generator.rb
22
23
  - lib/nextver.rb
23
24
  - lib/nextver/version.rb
24
25
  homepage: https://github.com/chonla/nextver-gem