google-protobuf 3.20.3-x64-mingw32 → 3.21.0.rc.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28cf819bdd3aab764021149526447641ab97032c1a91723586ffd61d6a0d672d
4
- data.tar.gz: 4301cd1d7983f558d298f95cca3bf82b003ea5d514bef6cfc2619ef9a0ceaf9f
3
+ metadata.gz: 7da8b3377faaa40372c83eb14bda1cda591f9f63173b12039ee1ab30507f10c0
4
+ data.tar.gz: 44c6dd5cf06e212b881cbd664c1f0c911e384646fd1b9bb91c40fcbc702075f3
5
5
  SHA512:
6
- metadata.gz: 8a58ed67651e014d548846ea88ca50efae255515c46a9726defe3fc7d4d372d626568f5aa3a3c466bfabf0eca37183c3f364ebc135a2c5b14e2d1505e6c72733
7
- data.tar.gz: b30d8c3b4505438363069b32c7d25238d867809334063c831a2a5a846e0415d311de15646dc914a6d34ed787cb3bced084a83525767f03e619af88434a9f6523
6
+ metadata.gz: 8adf1975c4e668bc2c3637754e0474a65af40a001c0dccd098bf1a392750dfad57bc664a81fe4e9a6979c6569bbe3508c473abb023adc9a39bb6b4d0fe356e69
7
+ data.tar.gz: 85df7636a0cb9c1416a124079f728e3acdad0f5756b4947625df7fdb2d367d79e1f59069949d722cea8c79c268ec5842ee9d18b7211cba015e6e54aa58d3d1c1
@@ -1,5 +1,5 @@
1
1
 
2
- #if (defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)
2
+ #if ((defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)) && !defined(TRUFFLERUBY)
3
3
  int utf8_range2(const unsigned char* data, int len);
4
4
  #else
5
5
  int utf8_naive(const unsigned char* data, int len);
Binary file
Binary file
Binary file
Binary file
@@ -79,12 +79,25 @@ module Google
79
79
 
80
80
 
81
81
  def first(n=nil)
82
- n ? self[0...n] : self[0]
82
+ if n.nil?
83
+ return self[0]
84
+ elsif n < 0
85
+ raise ArgumentError, "negative array size"
86
+ else
87
+ return self[0...n]
88
+ end
83
89
  end
84
90
 
85
91
 
86
92
  def last(n=nil)
87
- n ? self[(self.size-n-1)..-1] : self[-1]
93
+ if n.nil?
94
+ return self[-1]
95
+ elsif n < 0
96
+ raise ArgumentError, "negative array size"
97
+ else
98
+ start = [self.size-n, 0].max
99
+ return self[start...self.size]
100
+ end
88
101
  end
89
102
 
90
103
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.20.3
4
+ version: 3.21.0.rc.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -112,7 +112,7 @@ homepage: https://developers.google.com/protocol-buffers
112
112
  licenses:
113
113
  - BSD-3-Clause
114
114
  metadata:
115
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.20.3/ruby
115
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.0-rc1/ruby
116
116
  post_install_message:
117
117
  rdoc_options: []
118
118
  require_paths:
@@ -127,9 +127,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: 3.1.dev
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ">="
130
+ - - ">"
131
131
  - !ruby/object:Gem::Version
132
- version: '0'
132
+ version: 1.3.1
133
133
  requirements: []
134
134
  rubygems_version: 3.3.4
135
135
  signing_key: