opushon 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/README.md +33 -8
- data/Rakefile +4 -2
- data/VERSION.semver +1 -1
- data/checksum/opushon-0.2.1.gem.sha512 +1 -0
- data/checksum/opushon-0.2.gem.sha512 +1 -0
- data/opushon.gemspec +10 -9
- data/pkg_checksum +11 -0
- metadata +19 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d478dd02277f97c91f3767f7f3455157b030ba89
|
4
|
+
data.tar.gz: c8470e81def24155c2c1a8588b172ca4024f5c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b8940675e9f52519378842d28c473342d0ec7a6cb9e9b1ba93f3fd982678119358a546a242817db9a9092a5b26f8a93ea59799dae90e6fbb19d355c8f46a7be
|
7
|
+
data.tar.gz: 5b9dc5cc63f0664c74a04b0af0486d54073b266a6ff348704c0bd9f7a0f7d2da515de75779c712329a06443899315268ba907e67f214e4e2509dd98818fcbdec
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
# Opushon
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/cyril/opushon.svg?branch=master)]
|
4
|
-
[![
|
5
|
-
[![
|
6
|
-
[![
|
7
|
-
[![Documentation](http://img.shields.io/:yard-docs-38c800.svg)](http://rubydoc.info/gems/opushon/frames)
|
3
|
+
[![Build Status](https://travis-ci.org/cyril/opushon.rb.svg?branch=master)][travis]
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/opushon.svg)][gem]
|
5
|
+
[![Inline docs](http://inch-ci.org/github/cyril/opushon.rb.svg?branch=master)][inchpages]
|
6
|
+
[![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
|
8
7
|
|
9
8
|
> An [Opushon's body](https://github.com/cyril/opushon) parser and emitter.
|
10
9
|
|
11
10
|
## Contact
|
12
11
|
|
13
|
-
* Home page: https://github.com/cyril/opushon
|
14
|
-
* Bugs/issues: https://github.com/cyril/opushon/issues
|
12
|
+
* Home page: https://github.com/cyril/opushon.rb
|
13
|
+
* Bugs/issues: https://github.com/cyril/opushon.rb/issues
|
15
14
|
* Support: https://stackoverflow.com/questions/tagged/opushon
|
16
15
|
|
17
16
|
## Rubies
|
@@ -58,9 +57,26 @@ opushon = Opushon.load('{
|
|
58
57
|
}') # => an Opushon instance
|
59
58
|
|
60
59
|
# Emit some Opushon
|
61
|
-
Opushon.dump(opushon) # =>
|
60
|
+
Opushon.dump(opushon) # => "{\"GET\":null,\"PATCH\":null,\"PUT\":null,\"POST\":null,\"DELETE\":{\"title\":\"Delete issues\",\"description\":\"Remove every issues.\",\"request\":{\"headers\":{},\"query_string\":{},\"body\":{}},\"response\":{\"headers\":{},\"body\":{}}}}"
|
62
61
|
```
|
63
62
|
|
63
|
+
## Security
|
64
|
+
|
65
|
+
As a basic form of security __Opushon__ provides a set of SHA512 checksums for
|
66
|
+
every Gem release. These checksums can be found in the `checksum/` directory.
|
67
|
+
Although these checksums do not prevent malicious users from tampering with a
|
68
|
+
built Gem they can be used for basic integrity verification purposes.
|
69
|
+
|
70
|
+
The checksum of a file can be checked using the `sha512sum` command. For
|
71
|
+
example:
|
72
|
+
|
73
|
+
$ sha512sum pkg/opushon-0.2.gem
|
74
|
+
17173a517daa21256cc2391ba275f6977086ecda0e6f750fbb380ad08430bb748d5cdc927b8e904850b15fe47a121985dafa74a6b15df46100b86decf40c8cda pkg/opushon-0.2.gem
|
75
|
+
|
76
|
+
## Versioning
|
77
|
+
|
78
|
+
__Opushon__ follows [Semantic Versioning 2.0](http://semver.org/).
|
79
|
+
|
64
80
|
## Contributing
|
65
81
|
|
66
82
|
1. [Fork it](https://github.com/cyril/opushon.rb/fork)
|
@@ -68,3 +84,12 @@ Opushon.dump(opushon) # => '{"DELETE":{"title":"Delete issues","description":"Re
|
|
68
84
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
69
85
|
4. Push to the branch (`git push origin my-new-feature`)
|
70
86
|
5. Create a new Pull Request
|
87
|
+
|
88
|
+
## License
|
89
|
+
|
90
|
+
See `LICENSE.md` file.
|
91
|
+
|
92
|
+
[gem]: https://rubygems.org/gems/opushon
|
93
|
+
[travis]: https://travis-ci.org/cyril/opushon.rb
|
94
|
+
[inchpages]: http://inch-ci.org/github/cyril/opushon.rb/
|
95
|
+
[rubydoc]: http://rubydoc.info/gems/opushon/frames
|
data/Rakefile
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rake/testtask'
|
3
|
+
require 'rubocop/rake_task'
|
4
|
+
|
5
|
+
RuboCop::RakeTask.new
|
3
6
|
|
4
7
|
Rake::TestTask.new do |t|
|
5
|
-
t.pattern = File.join 'test', '**', 'test_*.rb'
|
6
8
|
t.verbose = true
|
7
9
|
t.warning = true
|
8
10
|
end
|
@@ -15,4 +17,4 @@ namespace :test do
|
|
15
17
|
end
|
16
18
|
|
17
19
|
task(:doc_stats) { ruby '-S yard stats' }
|
18
|
-
task default: [:test, :doc_stats]
|
20
|
+
task default: [:test, :doc_stats, :rubocop]
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2
|
1
|
+
0.2.1
|
@@ -0,0 +1 @@
|
|
1
|
+
2fea491c8831b812f043453fac898ae2b33d9b01c1b5a130c4cbe886a1d8b8b371f1b5b10d04fad59138f6adab688e5a111e5402b71c40eeb2163d83092f6765
|
@@ -0,0 +1 @@
|
|
1
|
+
17173a517daa21256cc2391ba275f6977086ecda0e6f750fbb380ad08430bb748d5cdc927b8e904850b15fe47a121985dafa74a6b15df46100b86decf40c8cda
|
data/opushon.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'opushon'
|
3
|
-
spec.version = File.read('VERSION.semver')
|
3
|
+
spec.version = File.read('VERSION.semver').chomp
|
4
4
|
spec.authors = ['Cyril Wack']
|
5
5
|
spec.email = ['contact@cyril.email']
|
6
6
|
|
@@ -9,16 +9,17 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.homepage = 'https://github.com/cyril/opushon.rb'
|
10
10
|
spec.license = 'MIT'
|
11
11
|
|
12
|
-
spec.files
|
13
|
-
|
12
|
+
spec.files =
|
13
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
|
14
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
14
15
|
spec.require_paths = ['lib']
|
15
16
|
|
16
|
-
spec.add_dependency 'virtus', '~> 1.0.
|
17
|
+
spec.add_dependency 'virtus', '~> 1.0.5'
|
17
18
|
|
18
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
19
|
-
spec.add_development_dependency 'rake', '~> 10.
|
19
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
20
|
+
spec.add_development_dependency 'rake', '~> 10.4'
|
20
21
|
spec.add_development_dependency 'yard', '~> 0.8'
|
21
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
22
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
23
|
-
spec.add_development_dependency '
|
22
|
+
spec.add_development_dependency 'simplecov', '~> 0.10'
|
23
|
+
spec.add_development_dependency 'rubocop', '~> 0.33'
|
24
|
+
spec.add_development_dependency 'spectus', '~> 2.1'
|
24
25
|
end
|
data/pkg_checksum
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'digest/sha2'
|
4
|
+
|
5
|
+
gemname = :opushon
|
6
|
+
ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
|
7
|
+
built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
|
8
|
+
checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
|
9
|
+
checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
|
10
|
+
|
11
|
+
File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opushon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Wack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.
|
26
|
+
version: 1.0.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.10'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '10.
|
47
|
+
version: '10.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '10.
|
54
|
+
version: '10.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: '0.10'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: '0.10'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
89
|
+
version: '0.33'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
96
|
+
version: '0.33'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: spectus
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '2.1'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '2.1'
|
111
111
|
description: An Opushon's body parser and emitter.
|
112
112
|
email:
|
113
113
|
- contact@cyril.email
|
@@ -126,6 +126,8 @@ files:
|
|
126
126
|
- VERSION.semver
|
127
127
|
- bin/console
|
128
128
|
- bin/setup
|
129
|
+
- checksum/opushon-0.2.1.gem.sha512
|
130
|
+
- checksum/opushon-0.2.gem.sha512
|
129
131
|
- lib/opushon.rb
|
130
132
|
- lib/opushon/body.rb
|
131
133
|
- lib/opushon/option.rb
|
@@ -134,6 +136,7 @@ files:
|
|
134
136
|
- lib/opushon/response.rb
|
135
137
|
- lib/opushon/restricted_value.rb
|
136
138
|
- opushon.gemspec
|
139
|
+
- pkg_checksum
|
137
140
|
homepage: https://github.com/cyril/opushon.rb
|
138
141
|
licenses:
|
139
142
|
- MIT
|
@@ -154,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
157
|
version: '0'
|
155
158
|
requirements: []
|
156
159
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.4.5
|
160
|
+
rubygems_version: 2.4.5.1
|
158
161
|
signing_key:
|
159
162
|
specification_version: 4
|
160
163
|
summary: A HTTP Opushon parser and emitter
|