fixably 0.2.0 → 0.3.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
  SHA256:
3
- metadata.gz: 5f29bd52c1bffd5295a5166642706b8520ec60f030a224b91a289e65a6f57c2f
4
- data.tar.gz: b0cff7c565e74ef04ed8d827e9e78c2bed1bb559e79a8b530584220bb8ac96d2
3
+ metadata.gz: 24e4e8b3bdb813f1781af0bcd8e2bd951ed3ca42017822d2f6b3aa1935cf3916
4
+ data.tar.gz: c6676e9d5885be1240c1999dc19027c40db61f66f989c58ce5448129e95b2913
5
5
  SHA512:
6
- metadata.gz: 2fa6840875acab195e03712b89353a989440a1b8e9cd6ff5063090da999f1028533f7601a12a30cccfde07f6f853e3abc6daf9d78084bab6dba6fa1cbf7ea8d2
7
- data.tar.gz: 66adc06a408eff0fed3e8ed18f27855ddadd4cbaa84fb933469d7fee36ccbbb0d2124852506e67b3ddc27d5a391b0ec8e97834e7f60a6ee7cc97fe000815ad76
6
+ metadata.gz: 18d4aead39fb05da8b03984cb31ca4f212e9467380df1d092824e8851aaaee70a607cfcc40ee63543981dc2755b34c0735d30b358a1123542ed492bf0c180d79
7
+ data.tar.gz: 6d4df22c896df9ec925b1057d8502eec3ef8ec2600d3eee321bef340a512f5d133fb6d614b8c8474c6bdd182fd7a98d6d8bdce89ef456869317a0516cece025a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixably (0.2.0)
4
+ fixably (0.3.0)
5
5
  activeresource (~> 5)
6
6
 
7
7
  GEM
@@ -33,12 +33,13 @@ module Fixably
33
33
  end
34
34
 
35
35
  def expand_association(association)
36
+ association_name = association.to_s.camelize(:lower)
36
37
  relationship = reflections.fetch(association).macro
37
38
  case relationship
38
39
  when :has_one
39
- association
40
+ association_name
40
41
  when :has_many
41
- "#{association}(items)"
42
+ "#{association_name}(items)"
42
43
  else
43
44
  raise ArgumentError, "Unknown relationship, #{relationship}"
44
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fixably
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixably
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Rice
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-13 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource