opinionated 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/opinionated.rb +1 -1
  3. metadata +43 -71
  4. data/Gemfile.lock +0 -95
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7904d927c6ef8cc139e6368ca0b437408e2c26fd
4
+ data.tar.gz: e6ca3edf4fcc6a91fd570ada817e79694797c35c
5
+ SHA512:
6
+ metadata.gz: d764fa118ea0a8119c7dc011948d3207c20e28a0e97014336af0bbab0cf3b400f688c54d1f6a52228721fffdd35e61b23ed246693d8713cd5211fe6206498224
7
+ data.tar.gz: 28d57e02c5984fcd1a979e81d6d133dfede094b819db88be08a068f8f3f18e199bb5a17749ae7145f1493d7c276f34b1cd98f4db6f1bfe34fc29624967a78474
@@ -133,7 +133,7 @@ module Reamaze
133
133
  pref = prefs[name]
134
134
 
135
135
  # If the pref isn't found, try to fallback on a default
136
- if pref.blank? and definition
136
+ if pref.nil? and definition
137
137
  # TODO break all these nested if statements out into helper methods, i like prettier code
138
138
  # TODO raise an exception if we don't respond to default_through or the resulting object doesn't respond to the preferential
139
139
  if definition.has_default_through and respond_to?(definition.default_through) and (through = send(definition.default_through)).blank? == false
metadata CHANGED
@@ -1,64 +1,50 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: opinionated
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- version: 0.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Lu Wang
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-03-19 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 3
31
- - 1
32
- - 0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
33
19
  version: 3.1.0
34
20
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: activerecord-postgres-hstore
38
21
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 19
45
- segments:
46
- - 0
47
- - 3
48
- - 0
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord-postgres-hstore
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
49
33
  version: 0.3.0
50
34
  type: :runtime
51
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.0
52
41
  description:
53
- email:
42
+ email:
54
43
  - lwang@reamaze.com
55
44
  executables: []
56
-
57
45
  extensions: []
58
-
59
46
  extra_rdoc_files: []
60
-
61
- files:
47
+ files:
62
48
  - lib/opinionated/configuration.rb
63
49
  - lib/opinionated/definition.rb
64
50
  - lib/opinionated/hash.rb
@@ -67,42 +53,28 @@ files:
67
53
  - MIT-LICENSE
68
54
  - README.md
69
55
  - Gemfile
70
- - Gemfile.lock
71
56
  - Rakefile
72
57
  homepage: http://github.com/lunaru/opinionated
73
58
  licenses: []
74
-
59
+ metadata: {}
75
60
  post_install_message:
76
61
  rdoc_options: []
77
-
78
- require_paths:
62
+ require_paths:
79
63
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
89
- required_rubygems_version: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- hash: 23
95
- segments:
96
- - 1
97
- - 3
98
- - 6
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
99
73
  version: 1.3.6
100
74
  requirements: []
101
-
102
75
  rubyforge_project:
103
- rubygems_version: 1.8.11
76
+ rubygems_version: 2.0.14
104
77
  signing_key:
105
- specification_version: 3
78
+ specification_version: 4
106
79
  summary: Adds defaults and a sensible interface to activerecord-postgres-hstore
107
80
  test_files: []
108
-
@@ -1,95 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- opinionated (0.0.1)
5
- activerecord-postgres-hstore (>= 0.3.0)
6
- rails (>= 3.1.0)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- actionmailer (3.2.3)
12
- actionpack (= 3.2.3)
13
- mail (~> 2.4.4)
14
- actionpack (3.2.3)
15
- activemodel (= 3.2.3)
16
- activesupport (= 3.2.3)
17
- builder (~> 3.0.0)
18
- erubis (~> 2.7.0)
19
- journey (~> 1.0.1)
20
- rack (~> 1.4.0)
21
- rack-cache (~> 1.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.1.2)
24
- activemodel (3.2.3)
25
- activesupport (= 3.2.3)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.3)
28
- activemodel (= 3.2.3)
29
- activesupport (= 3.2.3)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activerecord-postgres-hstore (0.3.0)
33
- activerecord
34
- rake
35
- activeresource (3.2.3)
36
- activemodel (= 3.2.3)
37
- activesupport (= 3.2.3)
38
- activesupport (3.2.3)
39
- i18n (~> 0.6)
40
- multi_json (~> 1.0)
41
- arel (3.0.2)
42
- builder (3.0.0)
43
- erubis (2.7.0)
44
- hike (1.2.1)
45
- i18n (0.6.0)
46
- journey (1.0.3)
47
- json (1.7.3)
48
- mail (2.4.4)
49
- i18n (>= 0.4.0)
50
- mime-types (~> 1.16)
51
- treetop (~> 1.4.8)
52
- mime-types (1.18)
53
- multi_json (1.3.6)
54
- polyglot (0.3.3)
55
- rack (1.4.1)
56
- rack-cache (1.2)
57
- rack (>= 0.4)
58
- rack-ssl (1.3.2)
59
- rack
60
- rack-test (0.6.1)
61
- rack (>= 1.0)
62
- rails (3.2.3)
63
- actionmailer (= 3.2.3)
64
- actionpack (= 3.2.3)
65
- activerecord (= 3.2.3)
66
- activeresource (= 3.2.3)
67
- activesupport (= 3.2.3)
68
- bundler (~> 1.0)
69
- railties (= 3.2.3)
70
- railties (3.2.3)
71
- actionpack (= 3.2.3)
72
- activesupport (= 3.2.3)
73
- rack-ssl (~> 1.3.2)
74
- rake (>= 0.8.7)
75
- rdoc (~> 3.4)
76
- thor (~> 0.14.6)
77
- rake (0.9.2.2)
78
- rdoc (3.12)
79
- json (~> 1.4)
80
- sprockets (2.1.3)
81
- hike (~> 1.2)
82
- rack (~> 1.0)
83
- tilt (~> 1.1, != 1.3.0)
84
- thor (0.14.6)
85
- tilt (1.3.3)
86
- treetop (1.4.10)
87
- polyglot
88
- polyglot (>= 0.3.1)
89
- tzinfo (0.3.33)
90
-
91
- PLATFORMS
92
- ruby
93
-
94
- DEPENDENCIES
95
- opinionated!