spina 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f6490ad94233191e21aa0c5b2046015e13506e2
4
- data.tar.gz: 476f5f09ef0b432217f44f8dc962496fde5f1850
3
+ metadata.gz: ce0f3a20b138822aa726b886e56ff3c317a1f615
4
+ data.tar.gz: 87bd0136e150c5fee8db38ad272c6c33fe496961
5
5
  SHA512:
6
- metadata.gz: 550674f6bb65a39444201cc739c82f6623e00f0d1582420347e249aaff95e00e76681f49afa07ada5e93eae90f209305343ecbbdc2afb79f5774408c4141e4fe
7
- data.tar.gz: e55c2700c2e32a2521d383eddc2857770204f9bfdbc90d673c1960bb325c96a4e787c9ea7f5f9ad9aa83a785250c96759c04c8336b4093852e60172a000effe0
6
+ metadata.gz: 063a6dcd34a0909284461709b8709c6a465d66f853348114bc39a2c1425b62505e0661affe3778b73e3f5763a93f7fae0fe6f9283d679f434cbd3254066f096d
7
+ data.tar.gz: f493921a5890c4069a0e95b386a6b30d08e92e6605b4e585c4642dfb5ad65b2387cfa085bbfa055aa7f397f595ae4b57c30dcc68ab5d022a066f56d5b5534984
@@ -22,6 +22,23 @@ module Spina
22
22
  layout_part.try(:content)
23
23
  end
24
24
 
25
+ def self.serialized_attr_accessor(*args)
26
+ args.each do |method_name|
27
+ eval "
28
+ def #{method_name}
29
+ (self.preferences || {})[:#{method_name}]
30
+ end
31
+
32
+ def #{method_name}=(value)
33
+ self.preferences ||= {}
34
+ self.preferences[:#{method_name}] = value
35
+ end
36
+ "
37
+ end
38
+ end
39
+
40
+ serialized_attr_accessor :google_analytics, :google_site_verification, :facebook, :twitter, :google_plus, :theme, :aviary_api_key, :aviary_language, :ngrok_address
41
+
25
42
  private
26
43
 
27
44
  def bootstrap_website
@@ -49,22 +66,5 @@ module Spina
49
66
  Page.where(view_template: theme.config.view_templates.keys).update_all(active: true)
50
67
  end
51
68
 
52
- def self.serialized_attr_accessor(*args)
53
- args.each do |method_name|
54
- eval "
55
- def #{method_name}
56
- (self.preferences || {})[:#{method_name}]
57
- end
58
-
59
- def #{method_name}=(value)
60
- self.preferences ||= {}
61
- self.preferences[:#{method_name}] = value
62
- end
63
- "
64
- end
65
- end
66
-
67
- serialized_attr_accessor :google_analytics, :google_site_verification, :facebook, :twitter, :google_plus, :theme, :aviary_api_key, :aviary_language, :ngrok_address
68
-
69
69
  end
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module Spina
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Jetten