google-protobuf 3.20.1-x86-linux → 3.21.0-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: 452ea3a599bd05d204ff11d6091f87075b6c66ae8e3dcdc049e6cf9e7839cc73
4
- data.tar.gz: d8dc4bdd04c4c32b29a5c273e6f1a471c0b4db2ff3cdd65f242172136453b471
3
+ metadata.gz: ace478bbee6b2f1ff6923aecbc6853036c33cd5b09d439f5d9ed5698cc82023c
4
+ data.tar.gz: 8df568ad24a7940232dd932caa5fafe884dbd3ffd443605ec58d1d7ea092e167
5
5
  SHA512:
6
- metadata.gz: 68c0f590094764948decaf7a08d0525263a0ec4a685b78d0c2c54e017051ac0aeb8a658653704f9fb8a0f0274179fe12f362b7e15e6e9e47155bc3919acf6b05
7
- data.tar.gz: ba10fe5cb6a3f6fa091670c67273e0d1173cc119bf25a773efbd45f614d70579ab3420ed3075b19ebbae90cda15fe8731f4f555628a35e0f2278e2e9c7eb405f
6
+ metadata.gz: 9fdbb2ce3e4b7a59d299fb2010a1ce37b65ab1c89192ed150003c6bb63ac400c59d7a2ee7cad57a930b0b91447a76c79c4c60bb5c93c38edbb6baaf8a538ff67
7
+ data.tar.gz: 70f2cb71aa8a13bfb6262bfb918698ef5e9903e2e405ec1670b05036a3a62ea14e6a984437cec25cba52b450ce15c7f8db356fca5dd0e4d2ac02f87484c20984
@@ -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.1
4
+ version: 3.21.0
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-04-21 00:00:00.000000000 Z
11
+ date: 2022-05-25 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.1/ruby
116
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.0/ruby
117
117
  post_install_message:
118
118
  rdoc_options: []
119
119
  require_paths: