persistent_settings 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module PersistentSettings
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -1,8 +1,10 @@
1
+ require "rails/version"
2
+ require "rails/engine"
1
3
  require "active_record"
2
4
  require "persistent_settings/version"
3
5
  require "settings"
4
6
 
5
- unless ::Rails.version < "3.1"
7
+ unless Rails::VERSION::STRING < "3.1"
6
8
  require "persistent_settings/rails/engine"
7
9
  require "generators/persistent_settings/migration_generator"
8
10
  end
@@ -18,7 +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 'rails', '~> 3.0'
21
+ s.add_dependency 'railties', '~> 3.0'
22
+ s.add_dependency 'activerecord', '~> 3.0'
22
23
  s.add_development_dependency "cucumber" , "~> 1.1.4"
23
24
  s.add_development_dependency "rake"
24
25
  s.add_development_dependency "rspec" , "~> 2.7.0"
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'rails'
2
- require 'active_record'
3
1
  require 'persistent_settings'
4
2
 
5
3
  ::ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persistent_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,8 +12,8 @@ cert_chain: []
12
12
  date: 2011-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rails
16
- requirement: &70176505804880 !ruby/object:Gem::Requirement
15
+ name: railties
16
+ requirement: &70348682989280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,21 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70176505804880
24
+ version_requirements: *70348682989280
25
+ - !ruby/object:Gem::Dependency
26
+ name: activerecord
27
+ requirement: &70348682988780 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70348682988780
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: cucumber
27
- requirement: &70176505804380 !ruby/object:Gem::Requirement
38
+ requirement: &70348682988280 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ~>
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: 1.1.4
33
44
  type: :development
34
45
  prerelease: false
35
- version_requirements: *70176505804380
46
+ version_requirements: *70348682988280
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: rake
38
- requirement: &70176505804000 !ruby/object:Gem::Requirement
49
+ requirement: &70348682987800 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: '0'
44
55
  type: :development
45
56
  prerelease: false
46
- version_requirements: *70176505804000
57
+ version_requirements: *70348682987800
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: rspec
49
- requirement: &70176505803460 !ruby/object:Gem::Requirement
60
+ requirement: &70348682987200 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ~>
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: 2.7.0
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *70176505803460
68
+ version_requirements: *70348682987200
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: sqlite3
60
- requirement: &70176505802960 !ruby/object:Gem::Requirement
71
+ requirement: &70348683003000 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ~>
@@ -65,7 +76,7 @@ dependencies:
65
76
  version: '1.3'
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *70176505802960
79
+ version_requirements: *70348683003000
69
80
  description: Simple global Settings class for ActiveRecord based applications
70
81
  email:
71
82
  - david@crowdint.com