parse_gemspec-cli 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +8 -0
- data/lib/parse_gemspec/cli.rb +2 -0
- data/lib/parse_gemspec/cli/cli.rb +6 -1
- data/lib/parse_gemspec/cli/version.rb +1 -1
- data/parse_gemspec-cli.gemspec +2 -0
- metadata +29 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 710aff438dfb2e4e4e135098175d13949f951f09
|
4
|
+
data.tar.gz: 054c2aba74586ad31555d9212b43c45c2839704b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9d6c7bc25e9a3b1a271fe4fea4e7a97ac09fa3edeb1ad674ee08a05c44f4f7d745dd4bfca6bb5d9d684b04bd5364f1a8f771e0e2818c2ad83cb27172496bbb0
|
7
|
+
data.tar.gz: be4ecd053aef431413ab988c0486cbc603e88435ff7edc8190462816ce3f6fe99f5c9d721fd19af9263eafa9756ce99d591325eb05b5c8d09057362494fc4745
|
data/changelog.md
CHANGED
data/lib/parse_gemspec/cli.rb
CHANGED
@@ -17,9 +17,14 @@ module ParseGemspec
|
|
17
17
|
desc 'parse', 'Parse *.gemspec'
|
18
18
|
option :debug, type: :boolean, default: false
|
19
19
|
option :verbose, type: :boolean, default: false
|
20
|
-
option :load, type: :string
|
20
|
+
option :load, type: :string, required: true, aliases: '-l'
|
21
21
|
def parse
|
22
22
|
setup_logger(options)
|
23
|
+
puts MultiJson.dump(
|
24
|
+
ParseGemspec::Specification.load(
|
25
|
+
options[:load]
|
26
|
+
).to_hash_object
|
27
|
+
)
|
23
28
|
rescue StandardError => e
|
24
29
|
suggest_messages(options)
|
25
30
|
raise e
|
data/parse_gemspec-cli.gemspec
CHANGED
@@ -29,6 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
31
|
spec.add_dependency 'thor'
|
32
|
+
spec.add_dependency 'parse_gemspec'
|
33
|
+
spec.add_dependency 'multi_json'
|
32
34
|
spec.add_development_dependency 'bundler'
|
33
35
|
spec.add_development_dependency 'rake'
|
34
36
|
spec.add_development_dependency 'test-unit'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parse_gemspec-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: parse_gemspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: multi_json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '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'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: bundler
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|