user_preferences 0.0.2 → 0.0.3

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: 078d282b5e594a72481fe9171036ec0eb2a2bdf7
4
- data.tar.gz: 108dacbd1ab6e4b779c06fd9b3faae93bd605b39
3
+ metadata.gz: 79eae692bdc8ae7a55e3d051e1a1410d107f2e40
4
+ data.tar.gz: 2ddb651befe78053081eb5f38c6676f2e1e0d926
5
5
  SHA512:
6
- metadata.gz: feca9d60a34b47368cc80004f04cfb81b927abafae6ed54d84424484ba83dbccc9859b864be4cdae80338a46dadc4bde8ef5e03866366e812cac042ee11e9ba3
7
- data.tar.gz: 600aa16b0390dbd7a594e25c8f6877f16babf2b45efdcc27645542ee530b327a89b732e60782402310a35027d2f277aab3095c75c97f5f6e6a9564ab4ce3542c
6
+ metadata.gz: 6249b2348c71609f89f107716a7c54a77f6d3ee40c137418514c389f3e4d9a29f43c56c9fadb9dd849f1afd4a1413f539d445b865d6d99afd50571eb848fcf19
7
+ data.tar.gz: e4d8f5ce0240d47ddc78c6c40ab7c1828fd30107b19fd4446b9aca45127d46dea37fce97fc61197118dd9a8c1a9cbd9b51ffb8cdd737a28ac5d8fdc138b75373
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ /gemfiles/*.lock
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.1.3
5
+ gemfile:
6
+ - gemfiles/rails_3.gemfile
7
+ - gemfiles/rails_4.gemfile
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "rails-3" do
2
+ gem "rails", "~> 3.2.0"
3
+ end
4
+
5
+ appraise "rails-4" do
6
+ gem "rails", "~> 4.0.0"
7
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.0.3 2015-06-15
4
+
5
+ * Fix Rails 4 deprecation of ActiveRecord::Relation#all
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.0.0"
6
+
7
+ gemspec :path => "../"
@@ -37,7 +37,7 @@ module UserPreferences
37
37
  end
38
38
 
39
39
  def saved_preferences
40
- @_saved_preferences ||= @scope.select([:id, :category, :name, :value, :user_id]).all
40
+ @_saved_preferences ||= @scope.select([:id, :category, :name, :value, :user_id])
41
41
  end
42
42
 
43
43
  def find_or_init_preference(name)
@@ -60,4 +60,4 @@ module UserPreferences
60
60
  end
61
61
  end
62
62
  end
63
- end
63
+ end
@@ -1,3 +1,3 @@
1
1
  module UserPreferences
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency 'activerecord', '>= 3.0'
23
- spec.add_dependency 'activesupport', '>= 3.0'
24
23
 
24
+ spec.add_development_dependency "appraisal"
25
25
  spec.add_development_dependency "bundler", "~> 1.7"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
27
  spec.add_development_dependency 'rspec', '~> 2.14'
28
28
  spec.add_development_dependency 'sqlite3', '~> 1.3'
29
- end
29
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_preferences
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Dust
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: activesupport
28
+ name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
34
- type: :runtime
33
+ version: '0'
34
+ type: :development
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: '3.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -104,10 +104,15 @@ extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
106
  - ".gitignore"
107
+ - ".travis.yml"
108
+ - Appraisals
109
+ - CHANGELOG.md
107
110
  - Gemfile
108
111
  - LICENSE.txt
109
112
  - README.md
110
113
  - Rakefile
114
+ - gemfiles/rails_3.gemfile
115
+ - gemfiles/rails_4.gemfile
111
116
  - lib/generators/user_preferences/install_generator.rb
112
117
  - lib/generators/user_preferences/templates/migration.rb
113
118
  - lib/generators/user_preferences/templates/user_preferences.yml