grpc-rest 0.1.9 → 0.1.10

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: 7c7a934225c1fcc137c0f3e23288449750bf0f8722ad3579bff745e562c68719
4
- data.tar.gz: 0b32234f87d4f8412861c44387a346ef098fd2e23d75b6a66189e5665606ad6f
3
+ metadata.gz: 7cd53f44aee783542e52eb72b647d8070a88038ae5248fda1ede02ad8c9d9fea
4
+ data.tar.gz: 883a2f69f05b0e40e895fa3bd4a82f571c722ca5a2099862d767ac60ebf6ce85
5
5
  SHA512:
6
- metadata.gz: a246d9fbc64cb361345518a96b60a7cff65a075aa2b7b44dbaf83fb57745546d0f7ca02314be07e5a2137618b0fa430739ce6c421387d9f127c99ccfd2b1c4fc
7
- data.tar.gz: b423986c46cf0eaff5b9fb1c735c93045ab8557c312ab83e30fa6f8c339d5dcab00c7bb7116a351dd36538a48d7e6040b889a9cbc2f4eb357ce7eb33a3a77706
6
+ metadata.gz: 1e252cbb74d82d8730141ac33c7284d5db40cb759c1ad5f0a19b66e2d8317c27c3678244af019f7865d97a908243c5dbd6d709f5213657868ff042cc000414e2
7
+ data.tar.gz: 31478108c117b7db638bc7b75908c07aaf67664cfe8ae6d229ddc15e5c96a701e8cdb156d72ea5412e8a27e931a85981cff884afe93986c785db4b044925dc25
data/CHANGELOG CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 0.1.10 - 2024-04-06
11
+ - Fix incorrect decoding of enum descriptors.
12
+
10
13
  # 0.1.9 - 2024-04-09
11
14
  - Added tests.
12
15
  - Fixed some bugs around path globbing.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grpc-rest (0.1.6)
4
+ grpc-rest (0.1.9)
5
5
  grpc
6
6
  rails (>= 6.0)
7
7
 
data/README.md CHANGED
@@ -125,7 +125,7 @@ Rails.application.routes.draw do
125
125
  draw(:grpc) # Add this line
126
126
  end
127
127
  ```
128
-
128
+
129
129
  ## Caveats
130
130
 
131
131
  This gem does not currently support the full path expression capabilities of grpc-gateway or the Google [http proto](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto). It only supports very basic single wildcard globbing (`*`). Contributions are welcome for more complex cases if they are needed.
@@ -1,3 +1,3 @@
1
1
  module GrpcRest
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
data/lib/grpc_rest.rb CHANGED
@@ -41,6 +41,7 @@ module GrpcRest
41
41
  field = descriptor.name
42
42
  val = params[field]
43
43
  next if val.nil?
44
+ next if descriptor.subtype.is_a?(Google::Protobuf::EnumDescriptor)
44
45
 
45
46
  case descriptor.subtype&.name
46
47
  when 'google.protobuf.Struct'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc