ramen-rails 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/ramen-rails/ramen_after_filter.rb +6 -5
- data/lib/ramen-rails/version.rb +1 -1
- data/spec/lib/ramen_after_filter_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03f334ab3f1a1e865db88436a4da9b209afbeaf8
|
4
|
+
data.tar.gz: c328982e708ee1eebcf102132065da2b75c952f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8faffdd4eb39751fe3a2b3d049cb12fdf995ba5819fc83bcf95186a25556fb7eb9a11f539751a9e856302ce17538a59dae8208c5f8531b5b141b7b51f3e60d94
|
7
|
+
data.tar.gz: 8b6ee5097f99cad59285f654aeb35fa34a063ae573f09bf84fc4fdf832b41d5d474b884150fce0f3c30099fe0878c09c85862330043011cb6894766bafcfd89c
|
data/CHANGELOG
CHANGED
@@ -26,3 +26,6 @@ Support sending custom `trait` data into Ramen for Users & Companies.
|
|
26
26
|
Version 0.6.1
|
27
27
|
Check to see if `current_user` responds to `#persisted?` and, if so, and if it returns `false`,
|
28
28
|
don't render `ramenSettings`
|
29
|
+
|
30
|
+
Version 0.6.2
|
31
|
+
Add more information to the 'exception in script tag' comment code
|
@@ -240,12 +240,13 @@ module RamenRails
|
|
240
240
|
|
241
241
|
super(obj, organization_secret: ramen_org_secret)
|
242
242
|
|
243
|
-
rescue InvalidUserObject => e
|
244
|
-
::Rails.logger.debug "InvalidUserObject exception. Not rendering Ramen script tag. Error details: #{e.inspect}"
|
245
|
-
"<!-- Exception in ramen script tag. See logs. -->"
|
246
243
|
rescue => e
|
247
|
-
::Rails.logger.
|
248
|
-
"<!-- Exception in ramen script tag. See logs. -->"
|
244
|
+
::Rails.logger.fatal "Exception in ramen-rails script tag method. Not rendering Ramen script tag. #{e.class.to_s}: #{e.inspect}"
|
245
|
+
"<!-- Exception in ramen script tag. #{h e.class.to_s}: #{h e.to_s}. See your Rails logs. -->"
|
246
|
+
end
|
247
|
+
|
248
|
+
def h str
|
249
|
+
str.gsub("<", "<").gsub(">", ">")
|
249
250
|
end
|
250
251
|
|
251
252
|
end
|
data/lib/ramen-rails/version.rb
CHANGED
@@ -49,6 +49,8 @@ describe 'After filter' do
|
|
49
49
|
class LogProxy
|
50
50
|
def debug(msg)
|
51
51
|
end
|
52
|
+
|
53
|
+
alias fatal debug
|
52
54
|
end
|
53
55
|
|
54
56
|
def self.env
|
@@ -96,7 +98,7 @@ describe 'After filter' do
|
|
96
98
|
|
97
99
|
it "should render a comment error" do
|
98
100
|
RamenRails::RamenAfterFilter.filter(@dummy)
|
99
|
-
expect(@dummy.response.body).to include("See logs")
|
101
|
+
expect(@dummy.response.body).to include("See your Rails logs")
|
100
102
|
end
|
101
103
|
end
|
102
104
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ramen-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Angilly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|