serial_preference 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTg2MDk3MjVlNzI5YjExOGNjODQ3YTAzMGMxNWM2MTg4NWJkZWRiOQ==
5
- data.tar.gz: !binary |-
6
- NGI5NzA3ZTA1ODg4ZjEyNjMzZWE0ZDk3NzBmMTgxZDUxOWM3MTYzNw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ODFlNTNlZjgzZGYyODUyNzkzMzE0MGM0ZmQ0NDk2ZjgxMDc2MGE4YmNlNjIw
10
- MTM0YjY4NzRlYWM5Y2M4N2RiODMyZjM0MDg5YjdlMmJhMDIxNTg1ODczMjAx
11
- YzUzOGY1YjE3NWY2NzE4YWVhOWIyMWRjNGNiNzM0OWZmNmMzYjQ=
12
- data.tar.gz: !binary |-
13
- NjYwMTEwYTQ4MWQ5OGQ2NzY4NzI5YTNiMDIzOTY1ZWUwN2FlODJjOWU5NTMx
14
- MWI2M2NiZDRmZGU5NWM0ZjIyMTQyNzI5ZjljYzY3ZWRiOWY3NDA1NzY3ZjJh
15
- YjkxN2Q5MGM4NjE4ZTk5ZjcwMmQ1ODRjOTAzNDg1M2RiNDU3M2U=
2
+ SHA1:
3
+ metadata.gz: 54d18b94b81b67bd4f2a7e19c47f8f819c46f1d9
4
+ data.tar.gz: 4b31822a24f545b87e1893dc034c507899219bec
5
+ SHA512:
6
+ metadata.gz: 0f22e658f3cb638346a27474364c2515276e53bf7c79ab097348ad04313b7d6736f0fd433a8d75c066064e187c84a0046bd43ef06167c1caaac46676782ad549
7
+ data.tar.gz: d70a54b80d64763d1e5b5d78e6ef577f818de0ea2f82bc6765df2ce847506705aa104a081f71f23b811064f6d1980a5d440672420a3c617bf911f4c734e46a6f
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in serial_preference.gemspec
4
4
  gemspec
5
5
 
6
- gem 'debugger'
6
+ # gem 'debugger'
data/README.md CHANGED
@@ -76,6 +76,9 @@ Or install it yourself as:
76
76
  end
77
77
  ````
78
78
 
79
+ ````ruby
80
+ # List of Preferences
81
+ Company.preference_names # => [:income_ledger_id]
79
82
 
80
83
  ## Contributing
81
84
 
@@ -25,6 +25,10 @@ module SerialPreference
25
25
  _preference_map.definition_for(name)
26
26
  end
27
27
 
28
+ def preference_names
29
+ _preference_map.all_preference_names.map(&:to_sym)
30
+ end
31
+
28
32
  private
29
33
 
30
34
  def build_preference_definitions
@@ -1,3 +1,3 @@
1
1
  module SerialPreference
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -29,6 +29,10 @@ describe SerialPreference::HasSerialPreferences do
29
29
  it "should be possble to retrieve preference groups from class" do
30
30
  DummyClass.respond_to?(:preference_groups).should be_true
31
31
  end
32
+
33
+ it "should be possble to retrieve preference names from class" do
34
+ DummyClass.respond_to?(:preference_names).should be_true
35
+ end
32
36
  end
33
37
 
34
38
 
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serial_preference
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditya Sanghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-13 00:00:00.000000000 Z
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.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
26
  version: 3.0.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
33
  version: 3.0.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
40
  version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
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: rspec-rails
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: shoulda
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
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: '0'
83
83
  description: Serialized Preferences for your models
@@ -87,8 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .rspec
90
+ - ".gitignore"
91
+ - ".rspec"
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -114,17 +114,17 @@ require_paths:
114
114
  - lib
115
115
  required_ruby_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ! '>='
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.0.3
127
+ rubygems_version: 2.4.5.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Serialized Preferences for your models