parse_gemspec 0.4.0 → 0.5.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: 9bb7fccb340557afee8f71bb6c2c55ccabd5dbbc
4
- data.tar.gz: 7ef4cec62a24a3032d2e0a5c9bf3f3aa4a3189d9
3
+ metadata.gz: be6b760e7031b45fd7f74d63b110b8a60be059f6
4
+ data.tar.gz: e04833ff185d39f8831493e9db00bc745a2d238b
5
5
  SHA512:
6
- metadata.gz: 9f1c2391282f5f60001f8e5a8530a2986156cd6f448202249069f1a101a5c89ed6f60ce56948dbe9548014aa9ddf1475754a2281d22be5c6d6684f2385390d8a
7
- data.tar.gz: 9d0cec6967ef29eb882e6a59a5f1c92a0b8e3dc7dd4452c810f29a75d68c8c030d3423ef0bf18cb578239e99ff13f9758e5260b5c24712983df83a61837adccb
6
+ metadata.gz: ed3a5dff661fee3e7ff380618f16ab1a8b897f07b7b8b4276bf7ca618bbc1b640ed6ec7c1a9793a0f679a6037d2ba369829b274383d715dfdd6aad25a5e73ae7
7
+ data.tar.gz: 054b688d4d0bff0443d925bd3563f92ee2f466858ce3df273ee60b9640fdaf1a82ae195d30a58ef61e7a56bf3f78cd6fe492db07aee6f724451efb419265b071
@@ -10,4 +10,3 @@ matrix:
10
10
  before_install:
11
11
  - "gem update bundler"
12
12
  - "bin/setup"
13
- script: "bundle exec rubocop && rake"
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [![Gem version][gem-image]][gem-url] [![Travis-CI Status][travis-image]][travis-url]
4
4
 
5
- > Parse *.gemspec file. Convert to Hash object.
5
+ > Parse *.gemspec file. Convert to Ruby Hash object.
6
+
7
+ See [parse_gemspec-cli](https://rubygems.org/gems/parse_gemspec-cli) ([repo](https://github.com/packsaddle/ruby-parse_gemspec-cli)) for the command-line version.
6
8
 
7
9
 
8
10
  ## Usage
@@ -14,7 +16,13 @@ gemspec_path = 'path/to/you_want_to_parse.gemspec'
14
16
  ParseGemspec::Specification.load(gemspec_path).to_hash_object
15
17
  => {:name=>"you_want_to_parse",
16
18
  :version=>"1.3.0",
17
- :homepage=>"https://github.com/example/you_want_to_parse"}
19
+ :authors=>["sanemat"],
20
+ :description=>"Description you want to parse.",
21
+ :email=>["you_want_to_parse@example.com"],
22
+ :homepage=>"https://example.com/you_want_to_parse",
23
+ :licenses=>["MIT"],
24
+ :metadata=>{},
25
+ :summary=>"Summary you want to parse."}
18
26
  ```
19
27
 
20
28
 
@@ -35,7 +43,13 @@ Type: `string`
35
43
 
36
44
  * name
37
45
  * version
46
+ * authors
47
+ * description
48
+ * email
38
49
  * homepage
50
+ * licences
51
+ * metadata
52
+ * summary
39
53
 
40
54
 
41
55
  ## Changelog
@@ -80,5 +94,5 @@ The gem is available as open source under the terms of the [MIT License](http://
80
94
 
81
95
  [travis-url]: https://travis-ci.org/packsaddle/ruby-parse_gemspec
82
96
  [travis-image]: https://img.shields.io/travis/packsaddle/ruby-parse_gemspec/master.svg?style=flat-square&label=build%20%28linux%29
83
- [gem-url]: http://badge.fury.io/rb/parse_gemspec
97
+ [gem-url]: https://rubygems.org/gems/parse_gemspec
84
98
  [gem-image]: http://img.shields.io/gem/v/parse_gemspec.svg?style=flat-square
@@ -1,3 +1,18 @@
1
+ <a name="0.5.0"></a>
2
+ # [0.5.0](https://github.com/packsaddle/ruby-parse_gemspec/compare/v0.4.0...v0.5.0) (2015-09-24)
3
+
4
+
5
+ ### Features
6
+
7
+ * **specification:** add authors ([7e9c33b](https://github.com/packsaddle/ruby-parse_gemspec/commit/7e9c33b))
8
+ * **specification:** add description ([e440bd1](https://github.com/packsaddle/ruby-parse_gemspec/commit/e440bd1))
9
+ * **specification:** add email ([965d4db](https://github.com/packsaddle/ruby-parse_gemspec/commit/965d4db))
10
+ * **specification:** add licenses ([da04bac](https://github.com/packsaddle/ruby-parse_gemspec/commit/da04bac))
11
+ * **specification:** add metadata ([447c597](https://github.com/packsaddle/ruby-parse_gemspec/commit/447c597))
12
+ * **specification:** add summary ([9323a79](https://github.com/packsaddle/ruby-parse_gemspec/commit/9323a79))
13
+
14
+
15
+
1
16
  <a name="0.4.0"></a>
2
17
  # [0.4.0](https://github.com/packsaddle/ruby-parse_gemspec/compare/v0.3.0...v0.4.0) (2015-09-24)
3
18
 
@@ -1,7 +1,8 @@
1
1
  module ParseGemspec
2
2
  class Specification
3
3
  extend Forwardable
4
- def_delegators :@spec, :name, :version, :homepage
4
+ def_delegators :@spec, :name, :version, :authors, :description, :homepage
5
+ def_delegators :@spec, :email, :metadata, :summary, :licenses
5
6
 
6
7
  def self.load(file)
7
8
  fail GemspecFileNotFoundError, "file: #{file}" unless File.file?(file)
@@ -14,11 +15,17 @@ module ParseGemspec
14
15
  @spec = spec
15
16
  end
16
17
 
17
- def to_hash_object
18
+ def to_hash_object # rubocop:disable Metrics/MethodLength
18
19
  {
19
20
  name: name,
20
21
  version: version.version,
21
- homepage: homepage
22
+ authors: authors,
23
+ description: description,
24
+ email: email,
25
+ homepage: homepage,
26
+ licenses: licenses,
27
+ metadata: metadata,
28
+ summary: summary
22
29
  }
23
30
  end
24
31
  end
@@ -1,3 +1,3 @@
1
1
  module ParseGemspec
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
@@ -11,9 +11,9 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ['o.gata.ken@gmail.com']
12
12
 
13
13
  spec.summary =
14
- 'Parse *.gemspec file. Convert to Hash object.'
14
+ 'Parse *.gemspec file. Convert to Ruby Hash object.'
15
15
  spec.description =
16
- 'Parse *.gemspec file. Convert to Hash object.'
16
+ 'Parse *.gemspec file. Convert to Ruby Hash object.'
17
17
  spec.homepage = ParseGemspec::HOMEPAGE
18
18
  spec.license = 'MIT'
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_gemspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanemat
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Parse *.gemspec file. Convert to Hash object.
55
+ description: Parse *.gemspec file. Convert to Ruby Hash object.
56
56
  email:
57
57
  - o.gata.ken@gmail.com
58
58
  executables: []
@@ -105,5 +105,5 @@ rubyforge_project:
105
105
  rubygems_version: 2.4.5
106
106
  signing_key:
107
107
  specification_version: 4
108
- summary: Parse *.gemspec file. Convert to Hash object.
108
+ summary: Parse *.gemspec file. Convert to Ruby Hash object.
109
109
  test_files: []