problem_detail 0.0.7 → 0.0.8

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
- SHA1:
3
- metadata.gz: 1c48d34bd23a4fac2967fb379aaf9caba102022b
4
- data.tar.gz: 9434a0365304cc2ea66c6f9bf5ce02ed10316204
2
+ SHA256:
3
+ metadata.gz: 6f93f8bd4a05db0683122a6602d6da61aae51bf7a0a988d4b039bbd00e9adeb0
4
+ data.tar.gz: b20ad356ec47e2d65c5720954ce7cdbb31e3ea16c153182318cb28cb22b61e4a
5
5
  SHA512:
6
- metadata.gz: d2a19c79d47240d77dc6eac7c5e85116006c43e34cda3e50c8f02bc75a15dd18517c4a724394faad44663e5e615b475a66eca296a4a3d98231fb34881f6b186c
7
- data.tar.gz: 8b665ed9b61522a38027f7203a0903027d343b3ae38632f180747a3767a83c5ff19bc5056dbf0707bcb8d767f3a49ae85fe608ff06f738e7cf1eb37e4d2dac59
6
+ metadata.gz: f3e4ecc431efa0f15459dfb7218fd8f1d0efd94dc8491d7cab1cf9f1c7b97352dcf6d395bf5621777a170a2948d5381e15c7909e45a768c7150c1f83cafade0f
7
+ data.tar.gz: fb19cd6d9af7db1316b1d4fb88c003170f81bad22c12ab80ad0d0911341c0ad0babba380332e3096cf52a9eff6b039c95a882a31a92622fe4ea3895c9d6a80f8
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Cyril Wack
3
+ Copyright (c) 2015 Cyril Kato
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # Problem Detail
2
2
 
3
- [![Build Status](https://travis-ci.org/cyril/problem_detail.rb.svg?branch=master)][travis]
4
- [![Code Climate](https://codeclimate.com/github/cyril/problem_detail.rb/badges/gpa.svg)][codeclimate]
5
- [![Dependency Status](https://gemnasium.com/cyril/problem_detail.rb.svg)][gemnasium]
6
- [![Gem Version](https://badge.fury.io/rb/problem_detail.rb.svg)][gem]
7
- [![Inline docs](http://inch-ci.org/github/cyril/problem_detail.rb.svg?branch=master)][inchpages]
3
+ [![Build Status](https://api.travis-ci.org/cyril/problem_detail.rb.svg?branch=master)][travis]
4
+ [![Code Climate](https://api.codeclimate.com/v1/badges/760884492bbfa493ef97/maintainability.svg)][codeclimate]
5
+ [![Gem Version](https://badge.fury.io/rb/problem_detail.svg)][gem]
6
+ [![Inline docs](https://inch-ci.org/github/cyril/problem_detail.rb.svg?branch=master)][inchpages]
8
7
  [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
9
- [![Gitter](https://badges.gitter.im/Join%20Chat.svg)][gitter]
10
8
 
11
9
  > Problem Details for HTTP APIs.
12
10
 
@@ -14,7 +12,7 @@ A structure to define a *problem detail* as a way to carry machine-readable deta
14
12
 
15
13
  To read more: [Indicating Problems in HTTP APIs](http://www.mnot.net/blog/2013/05/15/http_problem).
16
14
 
17
- Supported version: [draft-nottingham-http-problem-07](https://www.ietf.org/archive/id/draft-nottingham-http-problem-07.txt).
15
+ Supported version: [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807).
18
16
 
19
17
  ## Rubies
20
18
 
@@ -24,16 +22,7 @@ Supported version: [draft-nottingham-http-problem-07](https://www.ietf.org/archi
24
22
 
25
23
  ## Installation
26
24
 
27
- __ProblemDetail__ is cryptographically signed.
28
-
29
- To be sure the gem you install hasn't been tampered with, add my public key (if you haven't already) as a trusted certificate:
30
-
31
- $ gem cert --add <(curl -Ls https://raw.github.com/cyril/problem_detail.rb/master/certs/gem-cyril-public_cert.pem)
32
- $ gem install problem_detail -P HighSecurity
33
-
34
- The `HighSecurity` trust profile will verify all gems. All of __ProblemDetail__'s dependencies are signed.
35
-
36
- Or add this line to your application's Gemfile:
25
+ Add this line to your application's Gemfile:
37
26
 
38
27
  ```ruby
39
28
  gem 'problem_detail'
@@ -43,6 +32,10 @@ And then execute:
43
32
 
44
33
  $ bundle
45
34
 
35
+ Or install it yourself as:
36
+
37
+ $ gem install problem_detail
38
+
46
39
  ## Usage
47
40
 
48
41
  ```ruby
@@ -94,6 +87,5 @@ See `LICENSE.md` file.
94
87
  [gem]: https://rubygems.org/gems/problem_detail
95
88
  [travis]: https://travis-ci.org/cyril/problem_detail.rb
96
89
  [codeclimate]: https://codeclimate.com/github/cyril/problem_detail.rb
97
- [gemnasium]: https://gemnasium.com/cyril/problem_detail.rb
98
- [inchpages]: http://inch-ci.org/github/cyril/problem_detail.rb
99
- [rubydoc]: http://rubydoc.info/gems/problem_detail/frames
90
+ [inchpages]: https://inch-ci.org/github/cyril/problem_detail.rb
91
+ [rubydoc]: https://rubydoc.info/gems/problem_detail/frames
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'uri'
2
4
 
3
5
  # A parser and emitter for Problem Details for HTTP APIs.
4
- # Version: https://www.ietf.org/archive/id/draft-nottingham-http-problem-07.txt
6
+ # @see https://tools.ietf.org/html/rfc7807
5
7
  module ProblemDetail
6
8
  # This document defines a "problem detail" as a way to carry machine-readable
7
9
  # details of errors in a HTTP response, to avoid the need to define new error
@@ -43,12 +45,12 @@ module ProblemDetail
43
45
 
44
46
  # @return [Fixnum, nil] The HTTP status code generated by the origin server.
45
47
  def status
46
- @options[:status].to_i unless @options[:status].nil?
48
+ @options[:status]&.to_i
47
49
  end
48
50
 
49
51
  # @return [String, nil] An human readable explanation.
50
52
  def detail
51
- @options[:detail].to_s unless @options[:detail].nil?
53
+ @options[:detail]&.to_s
52
54
  end
53
55
 
54
56
  # @return [URI, nil] The specific occurrence of the problem.
metadata CHANGED
@@ -1,144 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: problem_detail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
- - Cyril Wack
7
+ - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
14
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
15
- bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
16
- bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
17
- YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6hUEYoxnn1mtoaiK
18
- NiwjzVPqPgQCR9ZeYdWjLJ3UUG2h5Q6awJCnbaGr8LGGcKtveCDbOJRjtdKNuOTH
19
- O2FLTkf46nrMGiF+6/j//qh8o0EQHBRKIVMYkxZxZe4Fcqtdf1bWNMZuXeyoDjdt
20
- 4yiGfizbbTOu0gBf7Yrsv5DsL0a5CU/We7zxMfgGXCVb9PYkD+OWUMcTARYDKfYa
21
- nN9ECI7CFm/yXcsof/eIQA5EmJNmQnhx8B+8L6jDqQeSUAUrBZnC9CdloKOoqmEL
22
- weqM2g6LM932Ba74rEl4QlFRYDcs8kjr71UcvseHRCUkFr36j26OU8+gKelsTNdO
23
- 7OZNKQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
24
- LSJTN9h29D6bqOhp+vyvhyM0AF4wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
25
- bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
26
- BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
27
- caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
28
- P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
29
- JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
30
- dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
- 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
- -----END CERTIFICATE-----
33
- date: 2015-12-18 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2019-11-29 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
- name: fix
14
+ name: bundler
37
15
  requirement: !ruby/object:Gem::Requirement
38
16
  requirements:
39
17
  - - "~>"
40
18
  - !ruby/object:Gem::Version
41
- version: 0.17.0
42
- type: :runtime
19
+ version: '2.0'
20
+ type: :development
43
21
  prerelease: false
44
22
  version_requirements: !ruby/object:Gem::Requirement
45
23
  requirements:
46
24
  - - "~>"
47
25
  - !ruby/object:Gem::Version
48
- version: 0.17.0
26
+ version: '2.0'
49
27
  - !ruby/object:Gem::Dependency
50
- name: bundler
28
+ name: rake
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
31
  - - "~>"
54
32
  - !ruby/object:Gem::Version
55
- version: '1.10'
33
+ version: '13.0'
56
34
  type: :development
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
38
  - - "~>"
61
39
  - !ruby/object:Gem::Version
62
- version: '1.10'
40
+ version: '13.0'
63
41
  - !ruby/object:Gem::Dependency
64
- name: rake
42
+ name: rubocop
65
43
  requirement: !ruby/object:Gem::Requirement
66
44
  requirements:
67
- - - "~>"
45
+ - - ">="
68
46
  - !ruby/object:Gem::Version
69
- version: '10.4'
47
+ version: '0'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
51
  requirements:
74
- - - "~>"
52
+ - - ">="
75
53
  - !ruby/object:Gem::Version
76
- version: '10.4'
54
+ version: '0'
77
55
  - !ruby/object:Gem::Dependency
78
- name: yard
56
+ name: rubocop-performance
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - "~>"
59
+ - - ">="
82
60
  - !ruby/object:Gem::Version
83
- version: '0.8'
61
+ version: '0'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - "~>"
66
+ - - ">="
89
67
  - !ruby/object:Gem::Version
90
- version: '0.8'
68
+ version: '0'
91
69
  - !ruby/object:Gem::Dependency
92
70
  name: simplecov
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
73
  - - "~>"
96
74
  - !ruby/object:Gem::Version
97
- version: '0.10'
75
+ version: '0.17'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
80
  - - "~>"
103
81
  - !ruby/object:Gem::Version
104
- version: '0.10'
82
+ version: '0.17'
105
83
  - !ruby/object:Gem::Dependency
106
- name: rubocop
84
+ name: yard
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
87
  - - "~>"
110
88
  - !ruby/object:Gem::Version
111
- version: '0.35'
89
+ version: '0.9'
112
90
  type: :development
113
91
  prerelease: false
114
92
  version_requirements: !ruby/object:Gem::Requirement
115
93
  requirements:
116
94
  - - "~>"
117
95
  - !ruby/object:Gem::Version
118
- version: '0.35'
96
+ version: '0.9'
119
97
  description: A "problem detail" as a way to carry machine-readable details of errors
120
98
  in a HTTP response, to avoid the need to define new error response formats for HTTP
121
99
  APIs.
122
- email:
123
- - contact@cyril.email
100
+ email: contact@cyril.email
124
101
  executables: []
125
102
  extensions: []
126
103
  extra_rdoc_files: []
127
104
  files:
128
- - ".gitignore"
129
- - ".travis.yml"
130
- - CODE_OF_CONDUCT.md
131
- - Gemfile
132
105
  - LICENSE.md
133
106
  - README.md
134
- - Rakefile
135
- - VERSION.semver
136
- - bin/console
137
- - bin/setup
138
- - certs/gem-cyril-public_cert.pem
139
107
  - lib/problem_detail.rb
140
- - pkg_checksum
141
- - problem_detail.gemspec
142
108
  homepage: https://github.com/cyril/problem_detail.rb
143
109
  licenses:
144
110
  - MIT
@@ -158,10 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
124
  - !ruby/object:Gem::Version
159
125
  version: '0'
160
126
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.4.5.1
127
+ rubygems_version: 3.0.6
163
128
  signing_key:
164
129
  specification_version: 4
165
130
  summary: Problem Details for HTTP APIs.
166
131
  test_files: []
167
- has_rdoc:
@@ -1,2 +0,0 @@
1
- �s`�U%�I2[���}u��/ NM�p��[�����۷N�������7!*B�]?ݞ!5`i|�}�������<!�(��qu���2'|8T����֮�7d2|rEcq�s�J���-�b�h�/W@}d?��ي&v�!k���c�l�V^�+�]���0�k��SʳB�
2
- ����!�Ci4ܡ ]*�|�O˔���8:v'#��ׂ̈��Q����NE򗁧sj�f��^��/���%G�P��ۧTɷ��Ց�t�儂�
data.tar.gz.sig DELETED
Binary file
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
@@ -1,17 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- script: 'bundle exec rake test:coverage --trace'
5
- before_install:
6
- - gem install bundler
7
- rvm:
8
- - 2.2
9
- - ruby-head
10
- - jruby
11
- - jruby-head
12
- - rbx-2
13
- matrix:
14
- allow_failures:
15
- - rvm: rbx-2
16
- - rvm: jruby-head
17
- - rvm: ruby-head
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at contact@cyril.email. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Rakefile DELETED
@@ -1,21 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
3
- require 'rubocop/rake_task'
4
-
5
- RuboCop::RakeTask.new
6
-
7
- Rake::TestTask.new do |t|
8
- t.verbose = true
9
- t.warning = true
10
- t.pattern = File.join('test', '**', '*_fix.rb')
11
- end
12
-
13
- namespace :test do
14
- task :coverage do
15
- ENV['COVERAGE'] = 'true'
16
- Rake::Task['test'].invoke
17
- end
18
- end
19
-
20
- task(:doc_stats) { ruby '-S yard stats' }
21
- task default: [:test, :doc_stats, :rubocop]
@@ -1 +0,0 @@
1
- 0.0.7
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'problem_detail'
5
-
6
- require 'irb'
7
- IRB.start
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRAwDgYDVQQDDAdjb250
3
- YWN0MRUwEwYKCZImiZPyLGQBGRYFY3lyaWwxFTATBgoJkiaJk/IsZAEZFgVlbWFp
4
- bDAeFw0xNTA3MzExMjExMDZaFw0xNjA3MzAxMjExMDZaMEAxEDAOBgNVBAMMB2Nv
5
- bnRhY3QxFTATBgoJkiaJk/IsZAEZFgVjeXJpbDEVMBMGCgmSJomT8ixkARkWBWVt
6
- YWlsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6hUEYoxnn1mtoaiK
7
- NiwjzVPqPgQCR9ZeYdWjLJ3UUG2h5Q6awJCnbaGr8LGGcKtveCDbOJRjtdKNuOTH
8
- O2FLTkf46nrMGiF+6/j//qh8o0EQHBRKIVMYkxZxZe4Fcqtdf1bWNMZuXeyoDjdt
9
- 4yiGfizbbTOu0gBf7Yrsv5DsL0a5CU/We7zxMfgGXCVb9PYkD+OWUMcTARYDKfYa
10
- nN9ECI7CFm/yXcsof/eIQA5EmJNmQnhx8B+8L6jDqQeSUAUrBZnC9CdloKOoqmEL
11
- weqM2g6LM932Ba74rEl4QlFRYDcs8kjr71UcvseHRCUkFr36j26OU8+gKelsTNdO
12
- 7OZNKQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
13
- LSJTN9h29D6bqOhp+vyvhyM0AF4wHgYDVR0RBBcwFYETY29udGFjdEBjeXJpbC5l
14
- bWFpbDAeBgNVHRIEFzAVgRNjb250YWN0QGN5cmlsLmVtYWlsMA0GCSqGSIb3DQEB
15
- BQUAA4IBAQArqCC1rUyGJlF0DF9ZhUOgggyROvO0/WroSI5zWgzdB8EU7RJpsDIV
16
- caGnpji7h0rQIGWQuJ6TL2fTFLfeGRFdIzRZwWC7TeXhcXngJHZxSjDBt2OpfM8A
17
- P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
18
- JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
19
- dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
20
- 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
21
- -----END CERTIFICATE-----
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'digest/sha2'
4
-
5
- gemname = 'problem_detail'.to_sym
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") }
@@ -1,31 +0,0 @@
1
- Gem::Specification.new do |spec|
2
- spec.name = 'problem_detail'
3
- spec.version = File.read('VERSION.semver').chomp
4
- spec.authors = ['Cyril Wack']
5
- spec.email = ['contact@cyril.email']
6
-
7
- spec.summary = 'Problem Details for HTTP APIs.'
8
- spec.description = 'A "problem detail" as a way to carry machine-readable' \
9
- ' details of errors in a HTTP response, to avoid the' \
10
- ' need to define new error response formats for HTTP' \
11
- ' APIs.'
12
- spec.homepage = 'https://github.com/cyril/problem_detail.rb'
13
- spec.license = 'MIT'
14
-
15
- spec.files =
16
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
17
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
- spec.require_paths = ['lib']
19
-
20
- spec.add_dependency 'fix', '~> 0.17.0'
21
-
22
- spec.add_development_dependency 'bundler', '~> 1.10'
23
- spec.add_development_dependency 'rake', '~> 10.4'
24
- spec.add_development_dependency 'yard', '~> 0.8'
25
- spec.add_development_dependency 'simplecov', '~> 0.10'
26
- spec.add_development_dependency 'rubocop', '~> 0.35'
27
-
28
- spec.cert_chain = ['certs/gem-cyril-public_cert.pem']
29
- private_key = File.expand_path('~/.ssh/gem-cyril-private_key.pem')
30
- spec.signing_key = private_key if File.exist?(private_key)
31
- end
metadata.gz.sig DELETED
Binary file