cartoonist 0.0.20.1 → 0.0.20.2

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: 8a547b484bba5f06b00935318125ae0492bb43e3
4
- data.tar.gz: 8d74b1700294705c5789422d9ba448f9f27c531c
3
+ metadata.gz: c7e87f8a9a685fa371eafb5f62e655d220a39b78
4
+ data.tar.gz: 97592e79bfa16da70473e9cb45aa8677b94dfeaa
5
5
  SHA512:
6
- metadata.gz: 61f202054d63476afae2ca033fa660241784ddd8d0a9040397d8ccc6896c04f94fe32be3e8cda104f17472d4913ce22d176900c3e918a2b77eea1cb936340799
7
- data.tar.gz: 54c46a838fa90f6c283ce740362cba5c12689f7cbd6839138ba523d6dce244567b31208f9a883282bc493f6dbec7e47578881aea5b5d9a3de8db76f10dfc8fd5
6
+ metadata.gz: f00e21700300e890edc8ab72942634ebc1180c8f16a3fcaac088fa4ec10b4579c2221ac674994fc9310cb1d8ea63ef323ce886cef944865a69ec1d0e52f07988
7
+ data.tar.gz: dbd0d1be579a102c02b62d24ed33342b8630bd9228f52694c888c8236de4567b0e5c324e716cfb44e4b0a6e1ee8f49879ead49cb2ecee13b5694963366986fa5
@@ -154,8 +154,12 @@ class Setting < ActiveRecord::Base
154
154
  end
155
155
 
156
156
  class << self
157
+ def include?(label)
158
+ @@settings[label.to_sym].present?
159
+ end
160
+
157
161
  def [](label)
158
- raise "Missing setting '#{label}'" unless @@settings[label.to_sym]
162
+ raise "Missing setting '#{label}'" unless include?(label)
159
163
  @@settings[label.to_sym]
160
164
  end
161
165
 
data/cartoonist.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cartoonist"
3
- s.version = "0.0.20.1"
3
+ s.version = "0.0.20.2"
4
4
  s.date = Time.now.strftime "%Y-%m-%d"
5
5
  s.summary = "Cartoonist Core"
6
6
  s.description = "This provides the main functionality and plugin api for Cartoonist."
@@ -2,7 +2,7 @@ module Cartoonist
2
2
  class Version
3
3
  class << self
4
4
  def to_s
5
- "0.0.20.1"
5
+ "0.0.20.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20.1
4
+ version: 0.0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Virata-Stone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2013-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack-page_caching