HornsAndHooves-moribus 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/HornsAndHooves-moribus.gemspec +1 -1
- data/lib/moribus/macros.rb +2 -2
- data/lib/moribus/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc7f179d301fc0456db4d78a0d75d54b11a6d02e
|
4
|
+
data.tar.gz: 3e03e126a009c205683e710d5c5aee4c22bca363
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb9b09a579cb4e8c2265785d5f3f971ca73ee20cfda8f4cf129f970e837d6e3c9b6fb408f1a8a6e5935eb9975517e171dfcee4d00e2bb305d68a5e13db486ae6
|
7
|
+
data.tar.gz: 4d637e308246c0976a656386095fcd178b24c3532946be587fb3c6aae8f07328dd2ca4efc940fd96e46ee1e0ea8bbe366dcddba9558235d82a2ce195e67d28bd
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
22
|
# specify any dependencies here; for example:
|
23
|
-
s.add_dependency "rails", "> 4.0", "<
|
23
|
+
s.add_dependency "rails", "> 4.0", "< 5"
|
24
24
|
s.add_dependency "power_enum", ">= 2.7.0"
|
25
25
|
s.add_dependency "yard", ">= 0"
|
26
26
|
|
data/lib/moribus/macros.rb
CHANGED
@@ -93,7 +93,7 @@ module Moribus
|
|
93
93
|
|
94
94
|
reflection = has_one(name, scope, options)
|
95
95
|
# Rails 4.1 compatibility fix:
|
96
|
-
reflection = reflection[name] if reflection.respond_to? :[]
|
96
|
+
reflection = reflection["#{name}"] if reflection.respond_to? :[]
|
97
97
|
reflection.options[:is_current] = true
|
98
98
|
accepts_nested_attributes_for name
|
99
99
|
define_effective_reader_for name
|
@@ -109,7 +109,7 @@ module Moribus
|
|
109
109
|
def has_aggregated(name, options = {})
|
110
110
|
reflection = belongs_to(name, options)
|
111
111
|
# Rails 4.1 compatibility fix:
|
112
|
-
reflection = reflection[name] if reflection.respond_to? :[]
|
112
|
+
reflection = reflection["#{name}"] if reflection.respond_to? :[]
|
113
113
|
reflection.options[:aggregated] = true
|
114
114
|
accepts_nested_attributes_for name
|
115
115
|
define_effective_reader_for name
|
data/lib/moribus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HornsAndHooves-moribus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HornsAndHooves
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '4.0'
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
24
|
+
version: '5'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: '4.0'
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '5'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: power_enum
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
210
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.
|
211
|
+
rubygems_version: 2.4.8
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Introduces Aggregated and Tracked behavior to ActiveRecord::Base models
|