incr 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/incr +37 -0
- metadata +90 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 600eb25f266c808d3c32b7eab2e481885f190cc1
|
4
|
+
data.tar.gz: b9ade3ad2723109146a902b3cfe456125d86b74a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 07ceb3860abcc1649b2b3cb061769f860be46c743240aff034e9a760253c039f35ead74f103f46e869fdb00197b94da818b2780f970066b82ceed708c181d868
|
7
|
+
data.tar.gz: 794c65b33bb6dbf25f53b0e027e357cf82f6c0c9d865c66995ff7631998e4aac6c169e28501b4405fc78c06c63e38bd7350ec737036af07f35a880d6a7585ed3
|
data/bin/incr
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'incr'
|
4
|
+
require 'gli'
|
5
|
+
|
6
|
+
include GLI::App
|
7
|
+
|
8
|
+
program_desc('Tasteful utility to increment the version number and create a corresponding git tag.')
|
9
|
+
version(Incr::VERSION)
|
10
|
+
|
11
|
+
pre do |global, command, options, args|
|
12
|
+
if args.length != 1 || !['major', 'minor', 'patch'].any? {|segment| args.include?(segment)}
|
13
|
+
STDERR.puts('Expecting a single argument: major, minor or patch.')
|
14
|
+
return false
|
15
|
+
end
|
16
|
+
true
|
17
|
+
end
|
18
|
+
|
19
|
+
# NPM Support
|
20
|
+
desc('Increment the version of your NPM package.')
|
21
|
+
command :npm do |cmd|
|
22
|
+
cmd.action do |global_options, options, args|
|
23
|
+
npm = Incr::Command::Npm.new(args)
|
24
|
+
npm.execute
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# Elixir Support
|
29
|
+
desc('Increment the version of your Mix package.')
|
30
|
+
command :mix do |cmd|
|
31
|
+
cmd.action do |global_options, options, args|
|
32
|
+
mix = Incr::Command::Mix.new(args)
|
33
|
+
mix.execute
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
exit(run(ARGV))
|
metadata
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: incr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jean-Philippe Couture
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gli
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.17.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.17.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sem_version
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rugged
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.26.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.26.0
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- jcouture@gmail.com
|
58
|
+
executables:
|
59
|
+
- incr
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- bin/incr
|
64
|
+
homepage: https://github.com/jcouture/incr
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.6.13
|
86
|
+
signing_key:
|
87
|
+
specification_version: 4
|
88
|
+
summary: Tasteful utility to increment the version number and create a corresponding
|
89
|
+
git tag.
|
90
|
+
test_files: []
|