parse_gemspec 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -9
- data/changelog.md +10 -0
- data/lib/parse_gemspec/specification.rb +1 -1
- data/lib/parse_gemspec/version.rb +1 -1
- data/parse_gemspec.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bb7fccb340557afee8f71bb6c2c55ccabd5dbbc
|
4
|
+
data.tar.gz: 7ef4cec62a24a3032d2e0a5c9bf3f3aa4a3189d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f1c2391282f5f60001f8e5a8530a2986156cd6f448202249069f1a101a5c89ed6f60ce56948dbe9548014aa9ddf1475754a2281d22be5c6d6684f2385390d8a
|
7
|
+
data.tar.gz: 9d0cec6967ef29eb882e6a59a5f1c92a0b8e3dc7dd4452c810f29a75d68c8c030d3423ef0bf18cb578239e99ff13f9758e5260b5c24712983df83a61837adccb
|
data/README.md
CHANGED
@@ -2,9 +2,45 @@
|
|
2
2
|
|
3
3
|
[![Gem version][gem-image]][gem-url] [![Travis-CI Status][travis-image]][travis-url]
|
4
4
|
|
5
|
-
|
5
|
+
> Parse *.gemspec file. Convert to Hash object.
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'parse_gemspec'
|
12
|
+
|
13
|
+
gemspec_path = 'path/to/you_want_to_parse.gemspec'
|
14
|
+
ParseGemspec::Specification.load(gemspec_path).to_hash_object
|
15
|
+
=> {:name=>"you_want_to_parse",
|
16
|
+
:version=>"1.3.0",
|
17
|
+
:homepage=>"https://github.com/example/you_want_to_parse"}
|
18
|
+
```
|
19
|
+
|
20
|
+
|
21
|
+
## API
|
22
|
+
|
23
|
+
### ParseGemspec::Specification.load(file) -> ParseGemspec::Specification
|
24
|
+
|
25
|
+
#### file
|
26
|
+
|
27
|
+
*Required*
|
28
|
+
Type: `string`
|
29
|
+
|
30
|
+
`*.gemspec`'s path.
|
31
|
+
|
32
|
+
### ParseGemspec::Specification#to_hash_object -> Hash
|
33
|
+
|
34
|
+
#### Hash's keys
|
35
|
+
|
36
|
+
* name
|
37
|
+
* version
|
38
|
+
* homepage
|
39
|
+
|
40
|
+
|
41
|
+
## Changelog
|
42
|
+
|
43
|
+
[changelog.md](./changelog.md).
|
8
44
|
|
9
45
|
|
10
46
|
## Installation
|
@@ -24,25 +60,22 @@ Or install it yourself as:
|
|
24
60
|
$ gem install parse_gemspec
|
25
61
|
|
26
62
|
|
27
|
-
## Usage
|
28
|
-
|
29
|
-
TODO: Write usage instructions here
|
30
|
-
|
31
|
-
|
32
63
|
## Development
|
33
64
|
|
34
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake
|
65
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
35
66
|
|
36
67
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
37
68
|
|
38
69
|
|
39
70
|
## Contributing
|
40
71
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
72
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/packsaddle/ruby-parse_gemspec. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
42
73
|
|
43
74
|
|
44
75
|
## License
|
45
76
|
|
77
|
+
© [sanemat](http://sane.jp)
|
78
|
+
|
46
79
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
47
80
|
|
48
81
|
[travis-url]: https://travis-ci.org/packsaddle/ruby-parse_gemspec
|
data/changelog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
<a name="0.4.0"></a>
|
2
|
+
# [0.4.0](https://github.com/packsaddle/ruby-parse_gemspec/compare/v0.3.0...v0.4.0) (2015-09-24)
|
3
|
+
|
4
|
+
|
5
|
+
### Features
|
6
|
+
|
7
|
+
* **specification:** remove argument for format ([b109b29](https://github.com/packsaddle/ruby-parse_gemspec/commit/b109b29))
|
8
|
+
|
9
|
+
|
10
|
+
|
1
11
|
<a name="0.3.0"></a>
|
2
12
|
# [0.3.0](https://github.com/packsaddle/ruby-parse_gemspec/compare/v0.2.0...v0.3.0) (2015-09-24)
|
3
13
|
|
data/parse_gemspec.gemspec
CHANGED
@@ -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.'
|
14
|
+
'Parse *.gemspec file. Convert to Hash object.'
|
15
15
|
spec.description =
|
16
|
-
'Parse *.gemspec file.'
|
16
|
+
'Parse *.gemspec file. Convert to 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
|
+
version: 0.4.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.
|
55
|
+
description: Parse *.gemspec file. Convert to 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.
|
108
|
+
summary: Parse *.gemspec file. Convert to Hash object.
|
109
109
|
test_files: []
|