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 +4 -4
- data/README.md +3 -3
- data/lib/generators/nextver/install_generator.rb +17 -0
- data/lib/nextver/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e6894a5f36486ee9b1edf138db8db97a9e8e2b5ee500332fe6665aa059bc719
|
|
4
|
+
data.tar.gz: 5c66d173cb29b4ffead6695080a655f44d63332d2555a982dd2849cd7da791e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
14
|
+
In a Rails app, create `bin/nextver` once and commit it:
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
|
|
17
|
+
bin/rails generate nextver:install
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
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
|
data/lib/nextver/version.rb
CHANGED
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.
|
|
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
|