refinerycms-settings 0.9.9.16 → 0.9.9.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,10 @@ class RefinerySetting < ActiveRecord::Base
13
13
  # Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
14
14
  acts_as_indexed :fields => [:name]
15
15
 
16
+ attr_accessible :name, :value, :destroyable,
17
+ :scoping, :restricted, :callback_proc_as_string,
18
+ :form_value_type
19
+
16
20
  before_save do |setting|
17
21
  setting.restricted = false if setting.restricted.nil?
18
22
  end
@@ -131,18 +135,6 @@ class RefinerySetting < ActiveRecord::Base
131
135
  # Return the value
132
136
  setting.value
133
137
  end
134
-
135
- # DEPRECATED for removal at >= 0.9.9
136
- def []=(name, value)
137
- warning = ["\n*** DEPRECATION WARNING ***"]
138
- warning << "You should not use this anymore: RefinerySetting[#{name.inspect}] = #{value.inspect}."
139
- warning << "\nInstead, you should use RefinerySetting.set(#{name.inspect}, #{value.inspect})"
140
- warning << ""
141
- warning << "Called from: #{caller.first.inspect}\n\n"
142
- $stdout.puts warning.join("\n")
143
-
144
- set(name, value)
145
- end
146
138
  end
147
139
 
148
140
  # prettier version of the name.
@@ -20,7 +20,7 @@ module Refinery
20
20
  ::Refinery::Plugin.register do |plugin|
21
21
  plugin.name = "refinery_settings"
22
22
  plugin.url = {:controller => "/admin/refinery_settings"}
23
- plugin.version = %q{0.9.9.13}
23
+ plugin.version = %q{0.9.9.17}
24
24
  plugin.menu_match = /(refinery|admin)\/(refinery_)?settings$/
25
25
  end
26
26
  end
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-settings}
5
- s.version = %q{0.9.9.16}
5
+ s.version = %q{0.9.9.17}
6
6
  s.summary = %q{Settings engine for Refinery CMS}
7
7
  s.description = %q{The default settings engine that is required by Refinery CMS core. Adds programmer creatable, user editable settings for each engine.}
8
- s.date = %q{2011-04-07}
8
+ s.date = %q{2011-04-15}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -83,5 +83,5 @@ Gem::Specification.new do |s|
83
83
  'spec/models/refinery_setting_spec.rb'
84
84
  ]
85
85
 
86
- s.add_dependency 'refinerycms-base', '= 0.9.9.16'
86
+ s.add_dependency 'refinerycms-base', '= 0.9.9.17'
87
87
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-settings
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.16
5
+ version: 0.9.9.17
6
6
  platform: ruby
7
7
  authors:
8
8
  - Resolve Digital
@@ -13,8 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-04-07 00:00:00 +12:00
17
- default_executable:
16
+ date: 2011-04-15 00:00:00 Z
18
17
  dependencies:
19
18
  - !ruby/object:Gem::Dependency
20
19
  name: refinerycms-base
@@ -24,7 +23,7 @@ dependencies:
24
23
  requirements:
25
24
  - - "="
26
25
  - !ruby/object:Gem::Version
27
- version: 0.9.9.16
26
+ version: 0.9.9.17
28
27
  type: :runtime
29
28
  version_requirements: *id001
30
29
  description: The default settings engine that is required by Refinery CMS core. Adds programmer creatable, user editable settings for each engine.
@@ -83,7 +82,6 @@ files:
83
82
  - license.md
84
83
  - refinerycms-settings.gemspec
85
84
  - spec/models/refinery_setting_spec.rb
86
- has_rdoc: true
87
85
  homepage: http://refinerycms.com
88
86
  licenses:
89
87
  - MIT
@@ -107,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
105
  requirements: []
108
106
 
109
107
  rubyforge_project: refinerycms
110
- rubygems_version: 1.6.1
108
+ rubygems_version: 1.7.2
111
109
  signing_key:
112
110
  specification_version: 3
113
111
  summary: Settings engine for Refinery CMS