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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fixably/argument_parameterisation.rb +3 -2
- data/lib/fixably/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e4e8b3bdb813f1781af0bcd8e2bd951ed3ca42017822d2f6b3aa1935cf3916
|
4
|
+
data.tar.gz: c6676e9d5885be1240c1999dc19027c40db61f66f989c58ce5448129e95b2913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18d4aead39fb05da8b03984cb31ca4f212e9467380df1d092824e8851aaaee70a607cfcc40ee63543981dc2755b34c0735d30b358a1123542ed492bf0c180d79
|
7
|
+
data.tar.gz: 6d4df22c896df9ec925b1057d8502eec3ef8ec2600d3eee321bef340a512f5d133fb6d614b8c8474c6bdd182fd7a98d6d8bdce89ef456869317a0516cece025a
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
40
|
+
association_name
|
40
41
|
when :has_many
|
41
|
-
"#{
|
42
|
+
"#{association_name}(items)"
|
42
43
|
else
|
43
44
|
raise ArgumentError, "Unknown relationship, #{relationship}"
|
44
45
|
end
|
data/lib/fixably/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|