nextver 0.1.0 → 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: fa333b84952919e31e0f15823a5828df46d8559518279f1357ff9213f431dd32
4
- data.tar.gz: 0752c983002b4fbd7c670fa620b832f2b9b4c0cb9d6ee212d7c105ebabcc3be1
3
+ metadata.gz: 2e6894a5f36486ee9b1edf138db8db97a9e8e2b5ee500332fe6665aa059bc719
4
+ data.tar.gz: 5c66d173cb29b4ffead6695080a655f44d63332d2555a982dd2849cd7da791e7
5
5
  SHA512:
6
- metadata.gz: 0bc20baaef047cfaadfcab64296e628d8a887cfe392d478617c219f0781267691fa60cf2d4073d69cbc969586ce5b4d79bdbcd352448cd1884f07db79f69d1cb
7
- data.tar.gz: dfabc6924f7c54152800603416d3bf13e5f50814abb9f18291ab01a554791d688f89add5a367161c7f57c962916bca0c2f2cd43bea299f7473378e962cd4c4a2
6
+ metadata.gz: 7d2f9f763ba8048e3408fe66993ad18a5f5a63a048bb9ecc4c2919b9e0694dc4e93418858a8877c398459333695228d6c997c3171e0d88a6565fd55017deb000
7
+ data.tar.gz: fd44002a1827f6d5beb0b898b11615db6ae1a942148c3a11278b214c0bbd2606cefbc68c07df11e652f581f58b38874a68aad3693cec5ef45fc3795ad5503490
data/README.md CHANGED
@@ -11,10 +11,18 @@ gem "nextver", require: false, group: :development
11
11
 
12
12
  or `gem install nextver`.
13
13
 
14
+ In a Rails app, create `bin/nextver` once and commit it:
15
+
16
+ ```
17
+ bin/rails generate nextver:install
18
+ ```
19
+
20
+ Outside Rails, `bundle binstubs nextver` does the same.
21
+
14
22
  ## Usage
15
23
 
16
24
  ```
17
- bundle exec nextver [options...] [dir]
25
+ bin/nextver [options...] [dir]
18
26
 
19
27
  -d Debug mode, print considering steps.
20
28
  -e Suppress trailing new line. Print only version out.
@@ -33,7 +41,7 @@ Nextver::Repo.new(".").next_version # => "v1.1.0"
33
41
  ## Test
34
42
 
35
43
  ```
36
- ruby -Ilib test/nextver_test.rb
44
+ rake test
37
45
  ```
38
46
 
39
47
  ## License
@@ -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.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chonlasith Jucksriporn
8
- autorequire:
9
- bindir: exe
8
+ bindir: bin
10
9
  cert_chain: []
11
- date: 2026-09-24 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description:
14
12
  email:
15
13
  - chonlasith@gmail.com
16
14
  executables:
@@ -20,14 +18,14 @@ extra_rdoc_files: []
20
18
  files:
21
19
  - LICENSE.txt
22
20
  - README.md
23
- - exe/nextver
21
+ - bin/nextver
22
+ - lib/generators/nextver/install_generator.rb
24
23
  - lib/nextver.rb
25
24
  - lib/nextver/version.rb
26
25
  homepage: https://github.com/chonla/nextver-gem
27
26
  licenses:
28
27
  - MIT
29
28
  metadata: {}
30
- post_install_message:
31
29
  rdoc_options: []
32
30
  require_paths:
33
31
  - lib
@@ -42,8 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
40
  - !ruby/object:Gem::Version
43
41
  version: '0'
44
42
  requirements: []
45
- rubygems_version: 3.0.3.1
46
- signing_key:
43
+ rubygems_version: 4.0.16
47
44
  specification_version: 4
48
45
  summary: Evaluate next SemVer version from conventional commit messages.
49
46
  test_files: []
File without changes