ramen-rails 0.6.1 → 0.6.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: 821f8dd4918426182f359794387fbd8a2f4bab85
4
- data.tar.gz: 880aa7f4bc2641f5b46fdfa7da1a836b3a2f03cc
3
+ metadata.gz: 03f334ab3f1a1e865db88436a4da9b209afbeaf8
4
+ data.tar.gz: c328982e708ee1eebcf102132065da2b75c952f0
5
5
  SHA512:
6
- metadata.gz: 4da047101f00a72ac635f44cd00f20c64cd9241e59c5e651a97f845c2b916a8b303c36ba229227c6fc18af80c0c4c32b1220dd2540e2ed0d090b08799d16599e
7
- data.tar.gz: 3fe409e377cba1f2e669d7fc0ebf92ec1cae4c89f354c612ad297260deb3813a42a389a68fe2b178c1e9fa8abf653c00e845bca21f8ea9a7908525f171fc5741
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.debug "Exception in ramen-rails script tag method. Not rendering Ramen script tag. Error details: #{e.inspect}"
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("<", "&lt;").gsub(">", "&gt;")
249
250
  end
250
251
 
251
252
  end
@@ -1,3 +1,3 @@
1
1
  module RamenRails
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -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.1
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-10 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack