restful_error 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/app/views/restful_error/show.html.erb +0 -0
- data/app/views/restful_error/show.html.haml +0 -0
- data/app/views/restful_error/show.json.jbuilder +3 -8
- data/app/views/restful_error/show.xml.erb +0 -0
- data/config/locales/en.restful_error.yml +0 -0
- data/config/locales/ja.restful_error.yml +0 -0
- data/lib/restful_error/engine.rb +0 -0
- data/lib/restful_error/version.rb +1 -1
- data/lib/restful_error/wrapper.rb +0 -0
- data/lib/restful_error.rb +1 -1
- data/restful_error.gemspec +2 -2
- data/spec/rack_spec.rb +0 -0
- data/spec/restful_error_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b24bee844c672404fb7b13c8e4f0b60b3f42ad8
|
4
|
+
data.tar.gz: bfa568676be332dbbf9e5ac0c7195e1009a81f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c93f166e5735088441f391b3d6240e8b3c729895fb62fd6f12412679f5c477dfb7cce304beeb81c8c45a22c4409efd757c2ba2f5cced707582f6068bc188a803
|
7
|
+
data.tar.gz: 24f2772074e1702fe689d303fe3b0284022f825a612530b83575d48e661594cca7afefe85fa118c73d0ac154a18b8f074835602da08cea17cb4aef0487e7e6ea
|
data/.gitignore
CHANGED
File without changes
|
data/.rspec
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/restful_error/engine.rb
CHANGED
File without changes
|
File without changes
|
data/lib/restful_error.rb
CHANGED
@@ -28,7 +28,7 @@ module RestfulError
|
|
28
28
|
module ActionController
|
29
29
|
def render_exception(ex)
|
30
30
|
@exception = ex.extend(Helper)
|
31
|
-
ex.restful.set_env(env)
|
31
|
+
ex.restful.set_env(request.env)
|
32
32
|
@status_code = ex.restful.status_code
|
33
33
|
@reason_phrase = ex.restful.reason_phrase
|
34
34
|
@message = ex.restful.message
|
data/restful_error.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'rails', "
|
21
|
+
spec.add_dependency 'rails', "~> 4", '~> 5'
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
|
-
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rake", '~> 0'
|
25
25
|
spec.add_development_dependency "rspec", "~> 3"
|
26
26
|
end
|
data/spec/rack_spec.rb
CHANGED
File without changes
|
data/spec/restful_error_spec.rb
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_error
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kuboon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4'
|
20
|
+
- - "~>"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '5'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
29
|
+
version: '4'
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,14 +48,14 @@ dependencies:
|
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- - "
|
58
|
+
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
@@ -115,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
121
|
version: '0'
|
116
122
|
requirements: []
|
117
123
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.6.11
|
119
125
|
signing_key:
|
120
126
|
specification_version: 4
|
121
127
|
summary: Define your error with status code. Raise it and you will get formatted response
|