problem_details-rails 0.1.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE.txt +21 -0
- data/README.md +5 -0
- data/Rakefile +8 -0
- data/lib/problem_details/rails/version.rb +7 -0
- data/lib/problem_details/rails.rb +1 -0
- data/problem_details-rails.gemspec +12 -9
- metadata +12 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8120e636ba74fc19611108d790d6e9a78a860beea5d6b97ff252dfd95e9c76cb
|
4
|
+
data.tar.gz: 247ee123ee5eda9d24756fed1f804d53a25c7193a9730fc88f4430395ecd2e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20aa49888a3eb8381bbf6865c3f3131869cde0a7776e6b3ce3f321bc5d052c46157d300b3515dd41b118fd36984b17226e12cd61072a0453cc62c4db3da95b3c
|
7
|
+
data.tar.gz: a0ca0488e0a38038dd1edf6f593cbaecc6d7254862dd8a5605bd87669243831280197ca9703bacd1fea09f847ce29b154aabf1eb2a01de2fe30eb30740adf76f
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Nobuhiro Nikushi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# ProblemDetails::Rails [![Build Status](https://travis-ci.org/nikushi/problem_details.svg?branch=master)](https://travis-ci.org/nikushi/problem_details) [![Gem Version](https://badge.fury.io/rb/problem_details-rails.svg)](https://badge.fury.io/rb/problem_details-rails)
|
2
|
+
|
3
|
+
This gem helps Rails systems to render "problem detail" json form described in [RFC7807 Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807).
|
4
|
+
|
5
|
+
See the detail at [nikushi/problem_details](https://github.com/nikushi/problem_details).
|
data/Rakefile
ADDED
@@ -1,29 +1,32 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
version = File.read(File.expand_path('../VERSION', __dir__)).strip
|
3
4
|
lib = File.expand_path('lib', __dir__)
|
4
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'problem_details/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'problem_details-rails'
|
9
|
-
spec.version =
|
9
|
+
spec.version = version
|
10
10
|
spec.authors = ['Nobuhiro Nikushi']
|
11
11
|
spec.email = ['deneb.ge@gmail.com']
|
12
|
-
|
13
12
|
spec.summary = 'Add a :problem renderer that renponds with RFC 7807 Problem Details format'
|
14
13
|
spec.description = spec.summary
|
15
14
|
spec.homepage = 'https://github.com/nikushi/problem_details'
|
16
15
|
spec.license = 'MIT'
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
spec.files = Dir['lib/**/*.rb'] + %w[
|
17
|
+
LICENSE.txt
|
18
|
+
README.md
|
19
|
+
Rakefile
|
20
|
+
problem_details-rails.gemspec
|
21
|
+
]
|
21
22
|
spec.require_paths = ['lib']
|
22
23
|
|
23
|
-
spec.
|
24
|
+
spec.required_ruby_version = '>= 2.0.0'
|
25
|
+
|
26
|
+
spec.add_runtime_dependency 'problem_details', version
|
24
27
|
spec.add_dependency 'actionpack', '>= 4.0'
|
25
28
|
spec.add_dependency 'activesupport', '>= 4.0'
|
26
|
-
spec.add_development_dependency 'bundler', '
|
29
|
+
spec.add_development_dependency 'bundler', '>= 1.16'
|
27
30
|
spec.add_development_dependency 'rake', '~> 10.0'
|
28
31
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: problem_details-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nobuhiro Nikushi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: problem_details
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.3
|
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: 0.
|
26
|
+
version: 0.2.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.16'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.16'
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -101,11 +101,15 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- LICENSE.txt
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
104
107
|
- lib/problem_details-rails.rb
|
105
108
|
- lib/problem_details/rails.rb
|
106
109
|
- lib/problem_details/rails/config.rb
|
107
110
|
- lib/problem_details/rails/railtie.rb
|
108
111
|
- lib/problem_details/rails/render_option_builder.rb
|
112
|
+
- lib/problem_details/rails/version.rb
|
109
113
|
- problem_details-rails.gemspec
|
110
114
|
homepage: https://github.com/nikushi/problem_details
|
111
115
|
licenses:
|
@@ -119,15 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
123
|
requirements:
|
120
124
|
- - ">="
|
121
125
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
126
|
+
version: 2.0.0
|
123
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
128
|
requirements:
|
125
129
|
- - ">="
|
126
130
|
- !ruby/object:Gem::Version
|
127
131
|
version: '0'
|
128
132
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.5.1
|
133
|
+
rubygems_version: 3.0.3
|
131
134
|
signing_key:
|
132
135
|
specification_version: 4
|
133
136
|
summary: Add a :problem renderer that renponds with RFC 7807 Problem Details format
|