google-protobuf 3.20.3-x86-linux → 3.21.0.rc.1-x86-linux

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: 59385feeb85f6d11ed9e259fcd89e3d5094016942ff16cc54a74f08d4612e902
4
- data.tar.gz: abe706e472c2da8c474fa433193f7408cb944b0b6e3137eab9957681ee44a7cc
3
+ metadata.gz: 14be95079a78f7a06c5f34a4551c5d520e426baa178bb8a37450ce86db280580
4
+ data.tar.gz: aff205e9506f5243fe6b70a56869001e7bc1d03fd66bc665891b90e7184fc23d
5
5
  SHA512:
6
- metadata.gz: b0a1c2eea16406ecdc399c02f49ade429be036e84bd6b1e78a63e0fefbee5d95d096c60a5dfbae6028a08a60b76c3608b5fd341a87a3ccff6d540c1ff5bf0ff8
7
- data.tar.gz: 4f643bdb3d3b9c9ccccbaba7150166c9108f1a2a57eb980cd5f560ff044b48d5cdcedb6a90524e32a5abe0161653b1cb16057f8dd4129e234dda90821e572393
6
+ metadata.gz: 654f212d7c639b54f9dfb1f9a8409d4440d5ff8b3ad55e7fd88b2935135ff0512b991f5d8294f5014034028d4c847d4ae751323764b29c8e59435daebdb2ceb9
7
+ data.tar.gz: 413b6f72a225216e0936ae1be77cba584a358ed8056bd40f3cf74c6718423b8c1b61716b66cbd9e92cb7b0312cd61ef83745e0d8a58085d8d2ebb8810c15b780
@@ -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);
@@ -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: x86-linux
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
@@ -113,7 +113,7 @@ homepage: https://developers.google.com/protocol-buffers
113
113
  licenses:
114
114
  - BSD-3-Clause
115
115
  metadata:
116
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.20.3/ruby
116
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.0-rc1/ruby
117
117
  post_install_message:
118
118
  rdoc_options: []
119
119
  require_paths:
@@ -128,9 +128,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
128
  version: 3.2.dev
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ">="
131
+ - - ">"
132
132
  - !ruby/object:Gem::Version
133
- version: '0'
133
+ version: 1.3.1
134
134
  requirements: []
135
135
  rubygems_version: 3.3.4
136
136
  signing_key: