google-protobuf 3.20.1.rc.1-x86_64-linux → 3.21.0.rc.2-x86_64-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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76e206d280d590f3c0c13cf4cbc5b255d92b88731e984fd16c84f3ff48ab746b
|
4
|
+
data.tar.gz: 89fa528091520e0cac09475266053e150bc254a1aab020ae9bb5cd29cf8839ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c298f4ba87998b1011e9fb63a5bd03eb4da963be2dfa37ddfb69b0989b99631a042cf0389dd766f6d31e0bf56e0bcc9c8ceeb41ab4a55a80466d8278377350
|
7
|
+
data.tar.gz: c6607773e3887fe671abcd572695dd52bbd3947bae4b97e806f6f3888d4acbb0fa5501f7160d6db91b528e13e318fe32abc443e23d92ff34abc2025b4bb2ffff
|
@@ -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
|
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
|
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.
|
4
|
+
version: 3.21.0.rc.2
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-19 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.
|
116
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.0-rc2/ruby
|
117
117
|
post_install_message:
|
118
118
|
rdoc_options: []
|
119
119
|
require_paths:
|