rpmchange 0.0.2 → 0.0.3

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWQwMjkyNjBmNGE1Zjg4MzU0MjVlNGQxNDAwY2Y0NWE5NWVmYmNlZg==
4
+ MDk2Mjg3ODZkMzgxYTkyZjcwNjdkYzYwM2U0MTZlZmNmOWExY2FlOQ==
5
5
  data.tar.gz: !binary |-
6
- ODJkNDFhM2M1ZTdkYjgwMjY3ODk5N2Q1OTIwMjExOGI3N2NmNjRiZA==
6
+ YjRkN2E1YWY4ZTlhN2QxNjlhOGZkM2YwYzY0YTRlMTU2NzM2NDU1Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjJkN2VmZjViMTdmNGExZTg4ZGQ0ZmRhNDQzMDE1Mzk2Zjg4ODhlNmNkZTM4
10
- ZWE2OThmNTdiMzY2NjI0N2E4ZTIyMDIzYmE5YzliZDdlOGVhYWIyMTU5NjM4
11
- Y2VhZmI1MzdhNGIzMGE0MzY5MmI2Yzc1NDhkMDEzYjQwNTJkMGI=
9
+ MzVhZjEzYTY3MWVkYzdiYmU5M2UzZmJhZmMzNGE0MzA1OTg2NWQ4ZmYwMWM2
10
+ NDExODRhNmJmM2RhNGVlODU3NjgzYTlmOTIwOTM3MzgyNTdlNTM2ODhhZGEx
11
+ ZjMxM2I4ZmYwN2Q2ZDcxNThkNDI1MGE5ZjQwNDZjZjAzMThmYTg=
12
12
  data.tar.gz: !binary |-
13
- ZWY1MjYzYmVhNjRhYjA0Yjc3YWZkNDdjMTdiMjM4NDk5MDZjY2EyOWQ5ZGZh
14
- YzRkMThhYWZkMjdiNDMyYjY4ZTQxNzU4YWFiZjU4NTcxNmNhZjQxYjUzNGU3
15
- NDQyNDUzNzBjNzEwNjc5ZTkxYzYxNmZlMzkyNTgzMjRiMWQ1MmQ=
13
+ N2ZhZTdjY2U2OWEyMTg5YTg5ZTFhNTI3NzZhN2NjOTczOWVkMjQ3ZWUxODQw
14
+ NjRmYjFmMzRjODIzOGIyMTYyNGQyMGM5YjFjYjBhYWVhMDNkZGNjZThkNTQ0
15
+ MDc5OWIyZmM2ZjU2MTBiZTUwMDk1YTlhZTFhMjRkZjIyNDliZDc=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rpmchange (0.0.2)
4
+ rpmchange (0.0.3)
5
5
  diffy (>= 3.1.0, < 4.0)
6
6
  thor (>= 0.19.1, < 1.0)
7
7
 
data/lib/rpmchange/cli.rb CHANGED
@@ -39,7 +39,7 @@ module Rpmchange
39
39
  end
40
40
  end
41
41
 
42
- desc "tag", "Get or set spec tag"
42
+ desc "tag", "get or set spec tag"
43
43
  shared_options
44
44
  method_option :name, {type: :string, desc: "tag name", required: true}
45
45
  method_option :value, {type: :string, desc: "tag value"}
@@ -56,5 +56,14 @@ module Rpmchange
56
56
  end
57
57
  end
58
58
  end
59
+
60
+ desc "patch", "append patch"
61
+ shared_options
62
+ method_option :name, {type: :string, desc: "patch name", required: true}
63
+ def patch
64
+ spec = self.class.spec_construct options
65
+ spec.append_patch(options['name'])
66
+ self.class.spec_write! spec, options
67
+ end
59
68
  end # Cli
60
69
  end # Rpmchange
@@ -1,3 +1,3 @@
1
1
  module Rpmchange
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end # Rpmchange
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpmchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - flant