grape-msgpack 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/grape-msgpack.gemspec +6 -6
- data/lib/grape/msgpack.rb +3 -11
- data/lib/grape/msgpack/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b541aaca7d3f5c40e08e329a2a572e7f81e56a
|
4
|
+
data.tar.gz: e5eaab6db8303cd40333a96398c56bf8c1c687d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0575ec0130208fd8550448c1190a69010d50dc223a84bfc8641a6327423c34d8a20369e3339580cb1f9f22e91e3f5be833640a1e0bfffd550f1eacde3b8559f7
|
7
|
+
data.tar.gz: 5392118846105a0950420145ea4e12b93234955ed8ebd35da6fb63c098af8cd5ac6f1147c31b44ee7b98d7b5c2481ede306baf5feb03a383aa3468eb637ae1dd
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Grape::Msgpack
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/grape-msgpack.
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/grape-msgpack.svg)](http://badge.fury.io/rb/grape-msgpack) [![Build Status](https://travis-ci.org/rosylilly/grape-msgpack.svg?branch=master)](https://travis-ci.org/rosylilly/grape-msgpack) [![Coverage Status](https://coveralls.io/repos/rosylilly/grape-msgpack/badge.svg?branch=master)](https://coveralls.io/r/rosylilly/grape-msgpack?branch=master) [![Code Climate](https://codeclimate.com/github/rosylilly/grape-msgpack.svg)](https://codeclimate.com/github/rosylilly/grape-msgpack)
|
4
4
|
|
5
5
|
Message pack formatter for grape.
|
6
6
|
|
data/grape-msgpack.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Grape::Msgpack::VERSION
|
9
9
|
spec.authors = ["Sho Kusano"]
|
10
10
|
spec.email = ["rosylilly@aduca.org"]
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
11
|
+
spec.summary = %q{Messagepack formatter for grape}
|
12
|
+
spec.description = %q{Messagepack formatter for grape}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency 'bundler'
|
22
22
|
spec.add_development_dependency 'rake'
|
23
|
-
spec.add_development_dependency 'rspec', '~>
|
23
|
+
spec.add_development_dependency 'rspec', '~> 3.4'
|
24
24
|
spec.add_development_dependency 'rack-test', '~> 0.6.2'
|
25
|
-
spec.add_development_dependency 'grape-entity', '~> 0.
|
25
|
+
spec.add_development_dependency 'grape-entity', '~> 0.5.0'
|
26
26
|
|
27
|
-
spec.add_dependency 'grape', '>= 0.
|
28
|
-
spec.add_dependency 'msgpack', '
|
27
|
+
spec.add_dependency 'grape', '>= 0.16.1'
|
28
|
+
spec.add_dependency 'msgpack', '>= 0.7.4'
|
29
29
|
end
|
data/lib/grape/msgpack.rb
CHANGED
@@ -36,17 +36,9 @@ module Grape
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
class << Grape::ErrorFormatter::Base
|
44
|
-
FORMATTERS[:msgpack] = Grape::Msgpack::ErrorFormatter
|
45
|
-
end
|
46
|
-
|
47
|
-
class << Grape::Parser::Base
|
48
|
-
PARSERS[:msgpack] = Grape::Msgpack::Parser
|
49
|
-
end
|
39
|
+
Grape::Formatter.register(:msgpack, Grape::Msgpack::Formatter)
|
40
|
+
Grape::ErrorFormatter.register(:msgpack, Grape::Msgpack::ErrorFormatter)
|
41
|
+
Grape::Parser.register(:msgpack, Grape::Msgpack::Parser)
|
50
42
|
|
51
43
|
Grape::ContentTypes::CONTENT_TYPES[:msgpack] = 'application/x-msgpack'
|
52
44
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-msgpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Kusano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '3.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:
|
54
|
+
version: '3.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rack-test
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,43 +72,43 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.5.0
|
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.5.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: grape
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.16.1
|
90
90
|
type: :runtime
|
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.16.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: msgpack
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.7.4
|
104
104
|
type: :runtime
|
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: 0.
|
111
|
-
description:
|
110
|
+
version: 0.7.4
|
111
|
+
description: Messagepack formatter for grape
|
112
112
|
email:
|
113
113
|
- rosylilly@aduca.org
|
114
114
|
executables: []
|
@@ -149,10 +149,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.5.1
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
|
-
summary:
|
155
|
+
summary: Messagepack formatter for grape
|
156
156
|
test_files:
|
157
157
|
- spec/grape/msgpack_spec.rb
|
158
158
|
- spec/spec_helper.rb
|