graphiform 0.1.4 → 0.2.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: 5ad540c4e174f075ab85b85f40e4dd63ebb4568ff0617b3c5dd6785410f55c63
4
- data.tar.gz: a6b5a49c31a806ff942a87fef6ef4d1554f2cb9fc9867ad442f99501fc736025
3
+ metadata.gz: f568ee911e1cd7c4dc85decd8913292d3abcfb2d6038ff247e7a99b861168060
4
+ data.tar.gz: 74eef82837648da958be37d5bd8672a03e27b618321a9ef0ea6cf6ee440eb164
5
5
  SHA512:
6
- metadata.gz: 2bb21cd22cdcecb06d9ff58c32ba0697cecf604bc8a0eb162fe846d0cd37dec604c082bd3d39bc744f8f418372629b7883d71da2e8cf5fc35bfe68e8a26b2639
7
- data.tar.gz: d2abcff1ee1e4dd8e2b7703b5d73864082ce554895e0b6d34fc118afb2b11d942789de11af26410b6c82230dcfd71a1a96d22f7503dd3f3d7b46dc5a209bd324
6
+ metadata.gz: 6e42cf06adab34fb2db93633578b2418b8127749a16b25488fc9a8abd8ea3b2b529d49310b8cb2e437c7f04e1812242b40b530b443131dd8e489b6b85d79cb03
7
+ data.tar.gz: 656299a9d3c659197dc5650e93bea7f193043e1f6d2e0690a6e1c9e40a9b83111e3e20560fb8f57bde32860d91bdf63407a7b1ab9afff6a38be2b57fd6f2b916
@@ -138,11 +138,10 @@ module Graphiform
138
138
  return unless argument_type
139
139
 
140
140
  argument_type = Helpers.graphql_type(argument_type)
141
- camelized_attribute = scope_def.attribute.to_s.camelize(:lower)
141
+ argument_attribute = scope_def.attribute
142
142
  argument_prefix = scope_def.prefix
143
- argument_suffix = scope_def.suffix
144
- argument_suffix = argument_suffix == '_is' ? '' : argument_suffix
145
- argument_name = "#{argument_prefix}#{camelized_attribute}#{argument_suffix}"
143
+ argument_suffix = scope_def.suffix == '_is' ? '' : scope_def.suffix
144
+ argument_name = "#{argument_prefix}#{argument_attribute}#{argument_suffix}".underscore
146
145
  scope_name = scope_def.name
147
146
 
148
147
  graphql_filter.class_eval do
@@ -150,7 +149,6 @@ module Graphiform
150
149
  argument_name,
151
150
  argument_type,
152
151
  required: false,
153
- camelize: false,
154
152
  as: scope_name
155
153
  )
156
154
  end
@@ -1,3 +1,3 @@
1
1
  module Graphiform
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jayce.pulsipher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-29 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord