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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7509c3d3409425d50e6cae2f649e5ad7e1f8934
4
- data.tar.gz: 84f48d0586dab2fb6b3e199f73814ffa0b1b9f06
3
+ metadata.gz: 710aff438dfb2e4e4e135098175d13949f951f09
4
+ data.tar.gz: 054c2aba74586ad31555d9212b43c45c2839704b
5
5
  SHA512:
6
- metadata.gz: 09b150109de9d6429b0bd7a6325c4e7f110c87154c34141a4c46cee79706c890a1e87c9e412b65ccaf7294b5b23b4b549ad2d79b1d87ad12e395fb53371f0f6a
7
- data.tar.gz: 529527a282128bef3dbb8b5f2aa5c2da91dae174bdba21891170a944565f7dd94c6bfeaf50312a6c8257002cb461a51aa48e2fc70a07c586463e5bf0b47225d4
6
+ metadata.gz: e9d6c7bc25e9a3b1a271fe4fea4e7a97ac09fa3edeb1ad674ee08a05c44f4f7d745dd4bfca6bb5d9d684b04bd5364f1a8f771e0e2818c2ad83cb27172496bbb0
7
+ data.tar.gz: be4ecd053aef431413ab988c0486cbc603e88435ff7edc8190462816ce3f6fe99f5c9d721fd19af9263eafa9756ce99d591325eb05b5c8d09057362494fc4745
data/changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ <a name"0.3.0"></a>
2
+ ### 0.3.0 (2015-09-24)
3
+
4
+ #### Features
5
+
6
+ * **cli:** parse gemspec and output json
7
+
8
+
1
9
  <a name"0.2.0"></a>
2
10
  ### 0.2.0 (2015-09-23)
3
11
 
@@ -1,4 +1,6 @@
1
1
  require 'logger'
2
+ require 'parse_gemspec'
3
+ require 'multi_json'
2
4
 
3
5
  require 'parse_gemspec/cli/constants'
4
6
  require 'parse_gemspec/cli/version'
@@ -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
@@ -1,5 +1,5 @@
1
1
  module ParseGemspec
2
2
  module Cli
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -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.2.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