sinatra-problem_details 0.2.0 → 0.2.1

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: e7443c252c9868a3e7d2d2c14948bb43fd29f15c
4
- data.tar.gz: fcf3881597498ba215d9dc196d03d7ac49f3f85a
3
+ metadata.gz: c64c4ac67fc2eea953312c5b5588edcf7c4e0ec2
4
+ data.tar.gz: 067f47b43edfc0cf7d2a102d93fc35a8f7e7d3b0
5
5
  SHA512:
6
- metadata.gz: 3bf98b75a4f4e0e7a157293ef83375204e721d2085a42cda4380b35dda360d7a463982861ee9d924e3e064af092867964d668aab33fffd8dc6af52f31488eb18
7
- data.tar.gz: 26e391260eb75ae85d56c019f5e360587cee4f5f5270b30c22a839eb8b96ac7520a62df0caff54f9bba4b1cf53f4913c83c3f54ab731c36c36fe39adb3ea0e15
6
+ metadata.gz: 8f96e32be58a79a642ddba2bcdc16e8dde053ba7c26973d97ba0865bd84e7c3acd9ee72e2292fb6ae54ce2c18f9a752f2806ba88916db28bad5a2bf674e161ed
7
+ data.tar.gz: 16c90aa61bd56d9ba9f6002e43075a70a1d5e72e7baec1f6aee06ee9e3cb0486937692ea471457ee69fed96e2cb7b2191cd11877221bad5ccf5a27b06547f8e0
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Sinatra::ProblemDetails [![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.svg)](https://badge.fury.io/rb/problem_details)
1
+ # Sinatra::ProblemDetails [![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/sinatra-problem_details.svg)](https://badge.fury.io/rb/sinatra-problem_details)
2
2
 
3
3
  Sinatra::ProblemDetails adds a helper method, called `problem`, for "problem detail" json response,
4
4
  described in [RFC7807 Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807).
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sinatra
4
4
  module ProblemDetails
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  version = File.read(File.expand_path('../VERSION', __dir__)).strip
4
-
5
4
  lib = File.expand_path('lib', __dir__)
6
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
6
 
@@ -10,12 +9,10 @@ Gem::Specification.new do |spec|
10
9
  spec.version = version
11
10
  spec.authors = ['Nobuhiro Nikushi']
12
11
  spec.email = ['deneb.ge@gmail.com']
13
-
14
12
  spec.summary = 'Sinatra extention to add +problem+ method to respond with RFC 7807 Problem Details form'
15
13
  spec.description = spec.summary
16
14
  spec.homepage = 'https://github.com/nikushi/problem_details'
17
15
  spec.license = 'MIT'
18
-
19
16
  spec.files = Dir['lib/**/*.rb'] + %w[
20
17
  LICENSE.txt
21
18
  README.md
@@ -24,8 +21,10 @@ Gem::Specification.new do |spec|
24
21
  ]
25
22
  spec.require_paths = ['lib']
26
23
 
24
+ spec.required_ruby_version = '>= 2.0.0'
25
+
27
26
  spec.add_runtime_dependency 'problem_details', version
28
- spec.add_runtime_dependency 'sinatra-contrib'
27
+ spec.add_runtime_dependency 'sinatra-contrib', '>= 1.4.1'
29
28
  spec.add_development_dependency 'bundler', '~> 1.16'
30
29
  spec.add_development_dependency 'rake', '~> 10.0'
31
30
  spec.add_development_dependency 'rspec', '~> 3.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-problem_details
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nobuhiro Nikushi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-29 00:00:00.000000000 Z
11
+ date: 2018-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: problem_details
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.2.1
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.2.0
26
+ version: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra-contrib
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.4.1
34
34
  type: :runtime
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: '0'
40
+ version: 1.4.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 2.0.0
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="