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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd6054e76e011057a8862362538096a93e561ab1
4
- data.tar.gz: 4aba542cca9591c5766a24a6513dc8b793545e80
3
+ metadata.gz: bc7f179d301fc0456db4d78a0d75d54b11a6d02e
4
+ data.tar.gz: 3e03e126a009c205683e710d5c5aee4c22bca363
5
5
  SHA512:
6
- metadata.gz: 8f53fb45401fc981d4add1c06d91ffdf6aa15276a203a5ddfd318b4a6154520942436d2ffdb22243f47000a09afdae364ee1c42619eaa40d9240f1257b226092
7
- data.tar.gz: 24f83c44a0e8a9d4abaae44f2167a77110b86ab8766bfb44be54e45ffdc93919f00e4daeded5d5a0d33bfe00b7874a31006bb19d4144bacbb939c8e10750e58a
6
+ metadata.gz: fb9b09a579cb4e8c2265785d5f3f971ca73ee20cfda8f4cf129f970e837d6e3c9b6fb408f1a8a6e5935eb9975517e171dfcee4d00e2bb305d68a5e13db486ae6
7
+ data.tar.gz: 4d637e308246c0976a656386095fcd178b24c3532946be587fb3c6aae8f07328dd2ca4efc940fd96e46ee1e0ea8bbe366dcddba9558235d82a2ce195e67d28bd
@@ -1 +1 @@
1
- 2.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", "< 4.2"
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Moribus # :nodoc:
2
- VERSION = "0.3.0" # :nodoc:
2
+ VERSION = "0.4.0" # :nodoc:
3
3
  end
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.3.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: 2015-09-29 00:00:00.000000000 Z
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: '4.2'
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: '4.2'
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.2.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