persistent_settings 1.4.0 → 1.5.0

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: f3122732ebcae0279a52320d9b602c9bf5ca97b9
4
- data.tar.gz: 1cc1f5f79b2046a486b2a92946e54200ea48ba4b
3
+ metadata.gz: 7067739942791ac1b8592f4509475fb3b2570dad
4
+ data.tar.gz: 75d755e11239b96858c0e2167be865c9ac4b10ec
5
5
  SHA512:
6
- metadata.gz: 9c7eb6fdd46dfaa1b59c0019e9a965fa51498383c092d5fd6993b66bf9633b54429714837c882f6b0653c121b8de2285bbbcb79f96e83a4b769d4d80bdb67a8d
7
- data.tar.gz: 3aa3f049823c7f6de7a50ca4c8c50e49da9655e01e16d804aed078875d01bb12b6d44c4388eb9e4cdc50a9ad0f2b526fc93acb2377f4f9241e51eec8ea6ff542
6
+ metadata.gz: 9db18a160b7a4ec58d72238f8fe82fd26b47915c445d5768b82dc8ded5090ba0661d5705def0d37a344f82106ee113a27c3fbfb4429d1417016451f99350312b
7
+ data.tar.gz: 0f4b78cd4f2f387b0ccd18186879a1b94c7b0ec8f970465a15d3f266fd189c1e9898845562533a4b6d439b1364d0f34ec47374b7b93eb1fba0b5cbcf5902b320
data/.gitignore CHANGED
@@ -1,6 +1,6 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
3
+ Gemfile*.lock
4
4
  pkg/*
5
5
  tmp/
6
6
  test.log
@@ -1,5 +1,9 @@
1
+ language: ruby
2
+
1
3
  rvm:
2
- - 1.9.2
3
- - 1.9.3
4
- - rbx
5
- - 1.8.7
4
+ - 2.0.0
5
+ - 2.1.0
6
+
7
+ gemfile:
8
+ - Gemfile.4.0
9
+ - Gemfile.4.1
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in persistent_settings.gemspec
4
4
  gemspec
5
+
6
+ gem 'railties', '~> 4.1.0'
7
+ gem 'activerecord', '~> 4.1.0'
@@ -0,0 +1,7 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in persistent_settings.gemspec
4
+ gemspec
5
+
6
+ gem 'railties', '~> 4.0.4'
7
+ gem 'activerecord', '~> 4.0.4'
@@ -0,0 +1,7 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in persistent_settings.gemspec
4
+ gemspec
5
+
6
+ gem 'railties', '~> 4.1.0'
7
+ gem 'activerecord', '~> 4.1.0'
@@ -10,12 +10,12 @@ module PersistentSettings
10
10
 
11
11
  source_root File.expand_path('../templates', __FILE__)
12
12
 
13
- def create_model
13
+ def create_model_file
14
14
  @klass_name = class_name.classify
15
15
  template 'model.rb.erb', "models/#{class_name}.rb", :verbose => (verbose == 1)
16
16
  end
17
17
 
18
- def create_migration
18
+ def create_migration_file
19
19
  @table_name = class_name.pluralize.gsub("/", "_")
20
20
  @migration_class = @table_name.camelize
21
21
  migration_template "create_table.rb.erb", "db/migrate/create_#{@table_name}_table.rb", :verbose => (verbose == 1)
@@ -1,3 +1,3 @@
1
1
  module PersistentSettings
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
@@ -18,8 +18,8 @@ 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', '~> 4.0.0'
22
- s.add_dependency 'activerecord', '~> 4.0.0'
21
+ s.add_dependency 'railties', '~> 4.0'
22
+ s.add_dependency 'activerecord', '~> 4.0'
23
23
  s.add_development_dependency "autotest"
24
24
  s.add_development_dependency "autotest-growl"
25
25
  s.add_development_dependency "cucumber" , "~> 1.3.8"
@@ -72,7 +72,7 @@ describe Persistent::Settings do
72
72
  describe :persist do
73
73
  context "a value already persisted" do
74
74
  before :each do
75
- @setting = mock(Config)
75
+ @setting = double(Config)
76
76
  Config.stub_chain(:where, :last).and_return(@setting)
77
77
  end
78
78
 
@@ -107,7 +107,7 @@ describe Persistent::Settings do
107
107
  end
108
108
 
109
109
  context "cache" do
110
- let(:cache) { mock }
110
+ let(:cache) { double }
111
111
 
112
112
  before do
113
113
  Rails.should_receive(:cache).and_return cache
@@ -141,7 +141,7 @@ describe Persistent::Settings do
141
141
  context "method that does not end with =" do
142
142
  context "already persisted" do
143
143
  before :each do
144
- @setting = mock(Config, :var => 'persisted_method', :value => 'some value')
144
+ @setting = double(Config, :var => 'persisted_method', :value => 'some value')
145
145
  Config.stub(:all).and_return([@setting])
146
146
  end
147
147
 
@@ -170,7 +170,7 @@ describe Persistent::Settings do
170
170
 
171
171
  describe :keys do
172
172
  let(:settings) do
173
- [ mock(:var => 'a_key'), mock(:var => 'another_key') ]
173
+ [ double(:var => 'a_key'), double(:var => 'another_key') ]
174
174
  end
175
175
 
176
176
  before do
@@ -1,5 +1,6 @@
1
1
  require 'persistent_settings'
2
2
  require 'logger'
3
+ require 'rails'
3
4
 
4
5
  ActiveRecord::Migration.verbose = false
5
6
  ActiveRecord::Base.logger = Logger.new("test.log")
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persistent_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Padilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2014-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: autotest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: autotest-growl
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cucumber
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.3.8
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.3.8
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.14.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.14.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sqlite3
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.3'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.3'
125
125
  description: Simple global Settings class for ActiveRecord based applications
@@ -129,11 +129,13 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - .autotest
133
- - .gitignore
134
- - .rspec
135
- - .travis.yml
132
+ - ".autotest"
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".travis.yml"
136
136
  - Gemfile
137
+ - Gemfile.4.0
138
+ - Gemfile.4.1
137
139
  - README.md
138
140
  - Rakefile
139
141
  - config/cucumber.yml
@@ -164,17 +166,17 @@ require_paths:
164
166
  - lib
165
167
  required_ruby_version: !ruby/object:Gem::Requirement
166
168
  requirements:
167
- - - '>='
169
+ - - ">="
168
170
  - !ruby/object:Gem::Version
169
171
  version: '0'
170
172
  required_rubygems_version: !ruby/object:Gem::Requirement
171
173
  requirements:
172
- - - '>='
174
+ - - ">="
173
175
  - !ruby/object:Gem::Version
174
176
  version: '0'
175
177
  requirements: []
176
178
  rubyforge_project: persistent_settings
177
- rubygems_version: 2.0.3
179
+ rubygems_version: 2.2.0
178
180
  signing_key:
179
181
  specification_version: 4
180
182
  summary: Simple global Settings class for ActiveRecord based applications