json_http_error 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bb39d32eeabbe2434f84a30ca083bd6ae5df8ab
4
- data.tar.gz: d04b762d8d3f9d16d8722d671c60c3de3bea867f
3
+ metadata.gz: 8f2d3f04058e00fbf6f7750c1075226d1dc690da
4
+ data.tar.gz: 12fef04fefd54f1b02cc50e2b6b550505a6ba77c
5
5
  SHA512:
6
- metadata.gz: 9101fe1be3b7ddf12a0860a066461999409709d1d7f71e3e40eb45e355553e7547a5ed4dda65ec48e11c10dd98ab917bf09bb5508d39d0ef168e7f9666a01e4b
7
- data.tar.gz: 493cda77fae4179b81a56d3f91e970301a9110686742df38eb1378155327da688ce5a6f8a19ce8d4c37c8f99cd07750956e66192ca192b3f6831469144947bb8
6
+ metadata.gz: 9b3d81b4ea69781086396be8eb280ec15f34cba3b8108cf248c70787a3a897c5ff942651e01c4a2dca33eedd2b387749d06641eded86e79a6fa56baa33e0a1a1
7
+ data.tar.gz: 8307a924a109fb7ac1385aeca403de4b73eb7be0da38e61ba6e820210eb17a28e14fc242fd0e2d3d954440727f477b3348e97df99f104e06e23a70e2188d9e90
data/.gitignore ADDED
@@ -0,0 +1,35 @@
1
+ *.rbc
2
+ capybara-*.html
3
+ .rspec
4
+ /log
5
+ /tmp
6
+ /db/*.sqlite3
7
+ /db/*.sqlite3-journal
8
+ /public/system
9
+ /coverage/
10
+ /spec/tmp
11
+ **.orig
12
+ rerun.txt
13
+ pickle-email-*.html
14
+
15
+ # TODO Comment out these rules if you are OK with secrets being uploaded to the repo
16
+ config/initializers/secret_token.rb
17
+ config/secrets.yml
18
+
19
+ ## Environment normalisation:
20
+ /.bundle
21
+ /vendor/bundle
22
+
23
+ # these should all be checked in to normalise the environment:
24
+ # Gemfile.lock, .ruby-version, .ruby-gemset
25
+
26
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
27
+ .rvmrc
28
+
29
+ # if using bower-rails ignore default bower_components path bower.json files
30
+ /vendor/assets/bower_components
31
+ *.bowerrc
32
+ bower.json
33
+
34
+ # Ignore pow environment settings
35
+ .powenv
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015
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 all
13
+ 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 THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # JSON HTTP Error
2
+ DRY module for APIs to render HTTP errors in JSON
3
+
4
+ Placeholder. No tests, no description,... Don't use until at least 0.1.0.
@@ -0,0 +1,17 @@
1
+ $:.push File.expand_path('../lib', __FILE__)
2
+ require 'json_http_error'
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'json_http_error'
6
+ s.version = JsonHttpError::VERSION.dup
7
+ s.platform = Gem::Platform::RUBY
8
+ s.licenses = ['MIT']
9
+ s.summary = 'DRY module for APIs to render HTTP errors in JSON'
10
+ s.homepage = 'https://github.com/savemysmartphone/json_http_error'
11
+ s.description = 'DRY module for APIs to render HTTP errors in JSON'
12
+ s.authors = ["Arnaud 'red' Rouyer"]
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.require_paths = ['lib']
16
+ s.required_ruby_version = '>= 2.0.0'
17
+ end
@@ -1,5 +1,5 @@
1
1
  class JsonHttpError < StandardError
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
 
4
4
  attr_accessor :code, :opts
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_http_error
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud 'red' Rouyer
@@ -16,10 +16,15 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - ".gitignore"
20
+ - LICENSE
21
+ - README.md
19
22
  - config/locales/en.yml
23
+ - json_http_error.gemspec
20
24
  - lib/json_http_error.rb
21
25
  homepage: https://github.com/savemysmartphone/json_http_error
22
- licenses: []
26
+ licenses:
27
+ - MIT
23
28
  metadata: {}
24
29
  post_install_message:
25
30
  rdoc_options: []