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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 531e0d0ab7c318aa830b7fae7e8345c431997eac
4
- data.tar.gz: f2208e621889dc0d28ea114fe89d8915bbf3cda1
3
+ metadata.gz: 3b24bee844c672404fb7b13c8e4f0b60b3f42ad8
4
+ data.tar.gz: bfa568676be332dbbf9e5ac0c7195e1009a81f92
5
5
  SHA512:
6
- metadata.gz: 0f96bd006ec470bfbd0445ddfca29f0e1967bb2f4f94a925c04e26b85a6c91db121111057ed30c94ca371b622ef70aa4d3274eb649334af8c1311ae46aef9743
7
- data.tar.gz: fc974acde63a27c7df58aca1ece014f837b8a699b5e3582e849e9c76e7dc17019b8786f66c8fa73416088add2159090b8b0637c27ca54cb9a5543b1dc63d4b74
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
@@ -1,8 +1,3 @@
1
- json.errors do
2
- json.array! do
3
- json.status @status_code
4
- json.title @reason_phrase
5
- json.detail @message
6
- # json.source
7
- end
8
- end
1
+ json.status_code @status_code
2
+ json.reason_phrase @reason_phrase
3
+ json.message @message
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module RestfulError
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
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
@@ -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', "> 3.1"
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
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
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: 2016-08-06 00:00:00.000000000 Z
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: '3.1'
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: '3.1'
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.2.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