egregious 0.2.6 → 0.2.7
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 +8 -8
- data/README +9 -2
- data/egregious.gemspec +1 -1
- data/lib/egregious/version.rb +1 -1
- data/spec/egregious_spec.rb +5 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTgxOGU3ZjYwMjEzMDAwNWNhZTZjYjZlOWMxYWJlZTk1NWQ5YTU5Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjcyMzA1YmY2YTkwYmFlNDc0NDMxMThjZTdjOTUxMWE0ODA1NzZkYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGM0OWM4MWU4OGI5NmY0ZDJkYjIyNGQzNWE4YjhlYWRlYzFkNTNjZThkMGI0
|
10
|
+
MGExNGM4YzAyMzViOWJhZmMzZjE3NmQzMDJmZDdlMmE5NDAyNTBkMzcwMTE3
|
11
|
+
ZTY3MTk2ZDRlMTQ3NWYyODU3ZmRjNjFkZjU2ODQ3ZDIwZjNjNDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2FlM2VmMTlkMGI1MjEwNjQ0YWRmZmFiNmI1ZmNiYmNiNzgyODA2YTFhMTE1
|
14
|
+
YThkOWVjYWJhYTMwZmI3OWQ1OGNlN2UxN2ExMGUwODM2OGRlY2ZmNDEwNzdl
|
15
|
+
ZWJlYWE5MzYwMjFhMTgyODZiNzA1OTkzM2Q2ODk2OTk2OWZjYjE=
|
data/README
CHANGED
@@ -1,14 +1,21 @@
|
|
1
1
|
Update Log:
|
2
|
-
Version 0.2.
|
2
|
+
Version 0.2.7 released to https://rubygems.org/gems/egregious on 5.28.2015
|
3
|
+
Merged pull request:
|
4
|
+
Compatibility with Rails 4.2 #13
|
5
|
+
|
6
|
+
Version 0.2.6 released to https://rubygems.org/gems/egregious on 7.22.2014
|
3
7
|
Merged pull request:
|
4
8
|
Rails 4 support (#11,#12)
|
5
|
-
|
9
|
+
|
10
|
+
Version 0.2.4 released to https://rubygems.org/gems/egregious on 7.23.2013
|
6
11
|
Added MIT License
|
12
|
+
|
7
13
|
Version 0.2.3 released to https://rubygems.org/gems/egregious on 7.23.2013
|
8
14
|
Merged pull requests:
|
9
15
|
Mongoid integration (#6)
|
10
16
|
Bug Fix: Bad Rails test
|
11
17
|
Updated rails and rack dependencies
|
18
|
+
|
12
19
|
Version 0.2.2 released to https://rubygems.org/gems/egregious on 2.15.2013
|
13
20
|
Merged pull requests:
|
14
21
|
Compatibility with Rails::API (#5)
|
data/egregious.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
|
22
|
-
s.add_runtime_dependency "rails", '> 3.0', '<
|
22
|
+
s.add_runtime_dependency "rails", '> 3.0', '< 5'
|
23
23
|
s.add_runtime_dependency "rack", '>= 1.3.6'
|
24
24
|
s.add_runtime_dependency "htmlentities"
|
25
25
|
|
data/lib/egregious/version.rb
CHANGED
data/spec/egregious_spec.rb
CHANGED
@@ -32,7 +32,7 @@ describe Egregious do
|
|
32
32
|
begin
|
33
33
|
raise Exception.new
|
34
34
|
rescue Exception=>exception
|
35
|
-
|
35
|
+
Rails.instance_eval do
|
36
36
|
def self.root
|
37
37
|
__FILE__
|
38
38
|
end
|
@@ -75,7 +75,6 @@ describe Egregious do
|
|
75
75
|
if defined?(ActiveRecord)
|
76
76
|
it "should return expected errors for ActiveRecord" do
|
77
77
|
exception_codes[ActiveRecord::AttributeAssignmentError].should == Egregious.status_code(:bad_request)
|
78
|
-
exception_codes[ActiveRecord::HasAndBelongsToManyAssociationForeignKeyNeeded].should == Egregious.status_code(:bad_request)
|
79
78
|
exception_codes[ActiveRecord::MultiparameterAssignmentErrors].should == Egregious.status_code(:bad_request)
|
80
79
|
exception_codes[ActiveRecord::ReadOnlyAssociation].should == Egregious.status_code(:forbidden)
|
81
80
|
exception_codes[ActiveRecord::ReadOnlyRecord].should == Egregious.status_code(:forbidden)
|
@@ -128,10 +127,10 @@ describe Egregious do
|
|
128
127
|
|
129
128
|
describe "build_html_file_path" do
|
130
129
|
it "should build a valid path" do
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
130
|
+
Rails.instance_eval do
|
131
|
+
def self.root
|
132
|
+
__FILE__
|
133
|
+
end
|
135
134
|
end
|
136
135
|
build_html_file_path('500').should == File.join(__FILE__, 'public', '500.html')
|
137
136
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egregious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Edens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.0'
|
20
20
|
- - <
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.0'
|
30
30
|
- - <
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rack
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|