persistent_settings 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f3122732ebcae0279a52320d9b602c9bf5ca97b9
4
+ data.tar.gz: 1cc1f5f79b2046a486b2a92946e54200ea48ba4b
5
+ SHA512:
6
+ metadata.gz: 9c7eb6fdd46dfaa1b59c0019e9a965fa51498383c092d5fd6993b66bf9633b54429714837c882f6b0653c121b8de2285bbbcb79f96e83a4b769d4d80bdb67a8d
7
+ data.tar.gz: 3aa3f049823c7f6de7a50ca4c8c50e49da9655e01e16d804aed078875d01bb12b6d44c4388eb9e4cdc50a9ad0f2b526fc93acb2377f4f9241e51eec8ea6ff542
data/README.md CHANGED
@@ -49,6 +49,12 @@ add an initializer to your Rails app.
49
49
 
50
50
  Settings.load_from_persistance
51
51
 
52
+
53
+ # Important
54
+
55
+ Starting from version 1.4 this gem is compatible with Rails 4.0 or better, if you are looking for a version compatible with Rails 3.x then use version 1.3 of this gem.
56
+
57
+
52
58
  # License
53
59
 
54
60
  MIT License. Copyright 2011, Crowd Interactive http://www.crowdint.com
@@ -12,9 +12,7 @@ ActiveRecord::Base.logger = Logger.new("test.log")
12
12
  end
13
13
  end
14
14
 
15
- module Rails
16
- RAILS_CACHE = ActiveSupport::Cache::MemoryStore.new
17
- end
15
+ ::Rails.cache = ActiveSupport::Cache::MemoryStore.new
18
16
 
19
17
  class Settings < ActiveRecord::Base
20
18
  include Persistent::Settings
@@ -1,15 +1,19 @@
1
+ require 'persistent/settings/caching'
2
+ require 'persistent/settings/persistance'
3
+
1
4
  module Persistent
2
5
  module Settings
3
6
  include ActiveModel::Serialization
4
7
 
5
8
  def self.included(base)
6
- base.send :extend, Persistent::Settings::ClassMethods
7
- base.send :extend, Persistent::Settings::Caching
8
- base.send :extend, Persistent::Settings::Persistance
9
+ base.send :extend, ClassMethods
9
10
  base.send :serialize, :value
10
11
  end
11
12
 
12
13
  module ClassMethods
14
+ include Persistent::Settings::Caching
15
+ include Persistent::Settings::Persistance
16
+
13
17
  @@mutex = Mutex.new
14
18
  @@accessors = []
15
19
 
@@ -8,10 +8,6 @@ require "generators/persistent_settings/create_generator"
8
8
 
9
9
  module Persistent
10
10
  autoload :Settings, 'persistent/settings'
11
- module Settings
12
- autoload :Caching, 'persistent/settings/caching'
13
- autoload :Persistance, 'persistent/settings/persistance'
14
- end
15
11
  end
16
12
 
17
13
  module PersistentSettings ; end
@@ -1,3 +1,3 @@
1
1
  module PersistentSettings
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -18,12 +18,12 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency 'railties', '~> 3.0'
22
- s.add_dependency 'activerecord', '~> 3.0'
21
+ s.add_dependency 'railties', '~> 4.0.0'
22
+ s.add_dependency 'activerecord', '~> 4.0.0'
23
23
  s.add_development_dependency "autotest"
24
24
  s.add_development_dependency "autotest-growl"
25
- s.add_development_dependency "cucumber" , "~> 1.1.4"
25
+ s.add_development_dependency "cucumber" , "~> 1.3.8"
26
26
  s.add_development_dependency "rake"
27
- s.add_development_dependency "rspec" , "~> 2.7.0"
27
+ s.add_development_dependency "rspec" , "~> 2.14.1"
28
28
  s.add_development_dependency "sqlite3" , "~> 1.3"
29
29
  end
metadata CHANGED
@@ -1,132 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persistent_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
5
- prerelease:
4
+ version: 1.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Padilla
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
11
+ date: 2013-10-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: 4.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
26
+ version: 4.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activerecord
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: '3.0'
33
+ version: 4.0.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: '3.0'
40
+ version: 4.0.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: autotest
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: autotest-growl
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: cucumber
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
85
- version: 1.1.4
75
+ version: 1.3.8
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
93
- version: 1.1.4
82
+ version: 1.3.8
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rake
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rspec
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
117
- version: 2.7.0
103
+ version: 2.14.1
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
125
- version: 2.7.0
110
+ version: 2.14.1
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: sqlite3
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
@@ -174,33 +157,26 @@ files:
174
157
  - spec/support/warnings_helper.rb
175
158
  homepage: ''
176
159
  licenses: []
160
+ metadata: {}
177
161
  post_install_message:
178
162
  rdoc_options: []
179
163
  require_paths:
180
164
  - lib
181
165
  required_ruby_version: !ruby/object:Gem::Requirement
182
- none: false
183
166
  requirements:
184
- - - ! '>='
167
+ - - '>='
185
168
  - !ruby/object:Gem::Version
186
169
  version: '0'
187
- segments:
188
- - 0
189
- hash: 3906203279350267935
190
170
  required_rubygems_version: !ruby/object:Gem::Requirement
191
- none: false
192
171
  requirements:
193
- - - ! '>='
172
+ - - '>='
194
173
  - !ruby/object:Gem::Version
195
174
  version: '0'
196
- segments:
197
- - 0
198
- hash: 3906203279350267935
199
175
  requirements: []
200
176
  rubyforge_project: persistent_settings
201
- rubygems_version: 1.8.23
177
+ rubygems_version: 2.0.3
202
178
  signing_key:
203
- specification_version: 3
179
+ specification_version: 4
204
180
  summary: Simple global Settings class for ActiveRecord based applications
205
181
  test_files:
206
182
  - features/settings.feature