ramen-rails 0.6.2 → 0.6.3

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: 03f334ab3f1a1e865db88436a4da9b209afbeaf8
4
- data.tar.gz: c328982e708ee1eebcf102132065da2b75c952f0
3
+ metadata.gz: 436444c10b31bc4d33f2a4ae5a36b42a5b9954ac
4
+ data.tar.gz: f975754fc33d4f7f350fef88f158ea89b2e829b2
5
5
  SHA512:
6
- metadata.gz: 8faffdd4eb39751fe3a2b3d049cb12fdf995ba5819fc83bcf95186a25556fb7eb9a11f539751a9e856302ce17538a59dae8208c5f8531b5b141b7b51f3e60d94
7
- data.tar.gz: 8b6ee5097f99cad59285f654aeb35fa34a063ae573f09bf84fc4fdf832b41d5d474b884150fce0f3c30099fe0878c09c85862330043011cb6894766bafcfd89c
6
+ metadata.gz: 2f47bd6bdf3f5a15867bd69329e507477ec7ea5b15d17282252f4b0760f289fb3559aaded949043a21f8a91039ccfff0f9ac7ff7dec8d2fc30918ac0f9dea1b9
7
+ data.tar.gz: 569bc48cfee7d22f12b0aeae89a705c7f2048de20178dd66182479c706677e233ae6e0727f2d0acadb3f8895dad8d814ed7741bcb4e6e0860e7485467363ec56
data/CHANGELOG CHANGED
@@ -29,3 +29,8 @@ don't render `ramenSettings`
29
29
 
30
30
  Version 0.6.2
31
31
  Add more information to the 'exception in script tag' comment code
32
+
33
+ Version 0.6.3
34
+ Since we fallback on `current_company` if it is not provided, we shouldn't throw an exception if that
35
+ object doesn't conform to the interface we're expecting. Try to get name, url, and id, but don't force
36
+ it.
@@ -226,7 +226,7 @@ module RamenRails
226
226
  obj[:company] = {}
227
227
 
228
228
  [:url, :name, :id].each do |attr|
229
- obj[:company][attr] = company.send(attr)
229
+ obj[:company][attr] = company.send(attr) if company.respond_to?(attr)
230
230
  end
231
231
 
232
232
  if company.respond_to?(:traits) && company.send(:traits).present?
@@ -1,3 +1,3 @@
1
1
  module RamenRails
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ramen-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Angilly