boltless 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f940665b4a33a7a4c25bd7d4e45d0ac6d8497acfb3197d595fd1457a806d77ed
4
- data.tar.gz: d7c9f614d8b73399a42fea0b7d906b440526bd1231c03835e816ff443bbabc80
3
+ metadata.gz: 16dd75111cb7df88726a592a03d68630879a096cdcdfc958e59c0195bffc2a2c
4
+ data.tar.gz: 82265aca3cfe2da3b10918671b6f8166b0db1ce39872bb3c81cfa043240feea2
5
5
  SHA512:
6
- metadata.gz: 8eeaf59a3a82dcc01e5ecad0c3e899df8763eaba5b996f94efa28efb8f254caeb113add4f4b2257c10f2ccbaa5e360b1bc1a97b3aebb0973a5d4880e0c575863
7
- data.tar.gz: d91818fbdd2251ff5282778beb07d304c3a15d261673bb92a11b0d795914a44d4bcb71fd5e1fa5039b29ec1ab038e66d4711fa41c79d25c062dcc5926c944af6
6
+ metadata.gz: 2e6f408ec3675f8236accc7c90daab48e478c15470aba816d288c5ead918b82bb1a6091178f6c0f2a0925366e1e697b1eb26a8845140a1c3d75e6c73e8432183
7
+ data.tar.gz: 8052fddd86d556438345366bd37e392d9ca8dd4aaaa2f2db311240a3dbe2fd5437041bdf04356e3e7f1dcbd7509acd03c3f69c73a00196bc8f8d3fe8cb9f9fd6
@@ -41,14 +41,10 @@ module Boltless
41
41
  replacements = replacements
42
42
  .stringify_keys
43
43
  .each_with_object({}) do |(key, val), memo|
44
- if key.match?(/_labels?$|^labels?$/)
45
- val = prepare_label(val)
46
- end
47
- if key.match?(/_types?$|^types?$/)
48
- val = prepare_type(val)
49
- end
50
- val = prepare_string(val) if key.match?(/_strs?$/)
51
- memo[key.to_sym] = val
44
+ val = prepare_label(val) if key.match?(/_labels?$|^labels?$/)
45
+ val = prepare_type(val) if key.match?(/_types?$|^types?$/)
46
+ val = prepare_string(val) if key.match?(/_strs?$/)
47
+ memo[key.to_sym] = val
52
48
  end
53
49
 
54
50
  # Then evaluate the given block to get the Cypher template
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Boltless
5
5
  # The version of the +boltless+ gem
6
- VERSION = '2.8.0'
6
+ VERSION = '2.9.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
@@ -31,7 +31,7 @@ end
31
31
  # @param suffixes [Array<String, Symbol>] additional file suffixes, check the
32
32
  # +spec/fixtures/files/+ directory for all available variants
33
33
  def raw_result_fixture(*suffixes)
34
- suffixes = suffixes.map(&:to_s).join('_')
34
+ suffixes = suffixes.join('_')
35
35
  suffixes = "_#{suffixes}" unless suffixes.empty?
36
36
  file = "raw_result#{suffixes}.yml"
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boltless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer