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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -0
- data/Appraisals +7 -0
- data/CHANGELOG.md +5 -0
- data/gemfiles/rails_3.gemfile +7 -0
- data/gemfiles/rails_4.gemfile +7 -0
- data/lib/user_preferences/api.rb +2 -2
- data/lib/user_preferences/version.rb +1 -1
- data/user_preferences.gemspec +2 -2
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79eae692bdc8ae7a55e3d051e1a1410d107f2e40
|
4
|
+
data.tar.gz: 2ddb651befe78053081eb5f38c6676f2e1e0d926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6249b2348c71609f89f107716a7c54a77f6d3ee40c137418514c389f3e4d9a29f43c56c9fadb9dd849f1afd4a1413f539d445b865d6d99afd50571eb848fcf19
|
7
|
+
data.tar.gz: e4d8f5ce0240d47ddc78c6c40ab7c1828fd30107b19fd4446b9aca45127d46dea37fce97fc61197118dd9a8c1a9cbd9b51ffb8cdd737a28ac5d8fdc138b75373
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Appraisals
ADDED
data/CHANGELOG.md
ADDED
data/lib/user_preferences/api.rb
CHANGED
@@ -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])
|
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
|
data/user_preferences.gemspec
CHANGED
@@ -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.
|
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-
|
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:
|
28
|
+
name: appraisal
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :
|
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: '
|
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
|