grape-client-generator 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: e1440ac428e8dfa62e2c5d3830d52302c62c6177
4
- data.tar.gz: b08326853d697b3702786112a3a71f9bd0bfa12e
3
+ metadata.gz: 8eebd19c68f48eeb55b4a94220dd453d85bb29a2
4
+ data.tar.gz: 508f6dd7c141b89d6be3ca72a41b4330766716e8
5
5
  SHA512:
6
- metadata.gz: 7b4953df47d1a4f8616356dc0c298349a483b7981fa72449c3768a4a80e2e7b3772c5eaf3767f612d315d130812a5cec105168899b4f6a40bc8992b805ae9942
7
- data.tar.gz: bd2177d78d1fe557418b8eeeb1bc2fc04f023000c88cd09a5e20501efdd2fa042d7d8b836737363c75d96ef6b29f4f363b1a1cd01383ddf6fc7c5ba17de42c9b
6
+ metadata.gz: 68b63ee89e46660e06b1bbf8c7be7faf8fe4691c12f705051460dd263541c895c16e972c550e8009ab8c6a5e4307e37f31a9c2d8b3876268dcb2b3a0fc29351b
7
+ data.tar.gz: 83261005096cf5b3a542aa6f057be6fd8150714909adaf6ab9a690c916f562d024b2aa31740776fd238539083b713f69e7959bf81f3b05c955f4944452635c8d
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.2
2
+
3
+ * Agnostically replace path params (i.e. try both string/symbol as hash key).
4
+
1
5
  == 1.0.1
2
6
 
3
7
  * Handle real Grape paths, including namespaces.
@@ -61,7 +61,7 @@ module {{namespace}}
61
61
  path = path_params.inject(path) do |final_path, param|
62
62
  final_path.gsub(":#{param}") do |match|
63
63
  # only remove from params if gsub finds a match
64
- params.delete(param)
64
+ params.delete(param.to_s) || params.delete(param.to_sym)
65
65
  end
66
66
  end
67
67
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Grape
4
4
  module ClientGenerator
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-client-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro