protoc 2.6.1.2 → 2.6.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/protoc +9 -2
- data/bin/protoc-2.6.1-aix-powerpc +0 -0
- data/bin/{protoc-2.6.1-linux-x86_32.exe → protoc-2.6.1-linux-x86_32} +0 -0
- data/bin/{protoc-2.6.1-linux-x86_64.exe → protoc-2.6.1-linux-x86_64} +0 -0
- data/bin/{protoc-2.6.1-osx-x86_32.exe → protoc-2.6.1-osx-x86_32} +0 -0
- data/bin/{protoc-2.6.1-osx-x86_64.exe → protoc-2.6.1-osx-x86_64} +0 -0
- data/ext/protoc/extconf.rb +14 -4
- data/lib/protoc/version.rb +1 -1
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168845d2c60a9d640185df9fb22336d598468bcf
|
4
|
+
data.tar.gz: a5a99a21557c600ce410c1fc85dde382f72b5d43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc5f882236d568cdd532e1a2d6f133b6eb08851703e28a50ac7215cf250a24e38ea6244be7104362e9cb9c21e3fe9755090763bd76f5a9c45cc56bd038bf59a
|
7
|
+
data.tar.gz: 2c4cc488096c399363138ffb3b85c8e564482acbf4f3a7cd5b15dfe7dded345d3f73ab3d764208a0a4efc99ef051fddf5360942fb9760bf4a55da877e3c265c5
|
data/bin/protoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'platform'
|
4
4
|
require 'protoc/version'
|
5
5
|
|
6
|
-
PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64}
|
6
|
+
PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64, :powerpc => :powerpc}
|
7
7
|
|
8
8
|
# Work around for lack of x86_64 support in Platform 0.4.0, which is the
|
9
9
|
# latest in rubygems.org. https://github.com/mmower/platform/issues/3
|
@@ -16,7 +16,12 @@ def platform_arch
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def exec_protoc_for_os(os)
|
19
|
-
|
19
|
+
case Platform::OS
|
20
|
+
when :win32
|
21
|
+
exec("#{File.dirname(__FILE__)}/protoc-#{Protoc::PROTOBUF_VERSION}-#{os}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe", *ARGV)
|
22
|
+
else
|
23
|
+
exec("#{File.dirname(__FILE__)}/protoc-#{Protoc::PROTOBUF_VERSION}-#{os}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}", *ARGV)
|
24
|
+
end
|
20
25
|
end
|
21
26
|
|
22
27
|
case Platform::OS
|
@@ -28,6 +33,8 @@ case Platform::OS
|
|
28
33
|
exec_protoc_for_os('osx')
|
29
34
|
when :linux
|
30
35
|
exec_protoc_for_os('linux')
|
36
|
+
when :aix
|
37
|
+
exec_protoc_for_os('aix')
|
31
38
|
else
|
32
39
|
raise "I don't have a binary for #{Platform::IMPL}"
|
33
40
|
end
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/ext/protoc/extconf.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'platform'
|
2
2
|
require_relative '../../lib/protoc/version'
|
3
3
|
|
4
|
-
PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64}
|
4
|
+
PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64, :powerpc => :powerpc}
|
5
5
|
|
6
6
|
# Work around for lack of x86_64 support in Platform 0.4.0, which is the
|
7
7
|
# latest in rubygems.org. https://github.com/mmower/platform/issues/3
|
@@ -22,6 +22,8 @@ OS = case Platform::OS
|
|
22
22
|
'osx'
|
23
23
|
when :linux
|
24
24
|
'linux'
|
25
|
+
when :aix
|
26
|
+
'aix'
|
25
27
|
else
|
26
28
|
Platform::IMPL.to_s
|
27
29
|
end
|
@@ -31,9 +33,17 @@ OS = case Platform::OS
|
|
31
33
|
|
32
34
|
HERE = File.expand_path(File.dirname(__FILE__))
|
33
35
|
binpath = File.expand_path(File.join(HERE, '..', '..', 'bin'))
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
case Platform::OS
|
37
|
+
when :win32
|
38
|
+
protoc_path = File.join(
|
39
|
+
binpath, "protoc-#{Protoc::PROTOBUF_VERSION}-#{OS}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe"
|
40
|
+
)
|
41
|
+
else
|
42
|
+
protoc_path = File.join(
|
43
|
+
binpath, "protoc-#{Protoc::PROTOBUF_VERSION}-#{OS}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}"
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
37
47
|
`#{protoc_path} --version`
|
38
48
|
if $? != 0 && OS != 'windows'
|
39
49
|
Dir.chdir(HERE) do
|
data/lib/protoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.1.
|
4
|
+
version: 2.6.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Jansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,10 +76,11 @@ description: |
|
|
76
76
|
email:
|
77
77
|
executables:
|
78
78
|
- protoc
|
79
|
-
- protoc-2.6.1-
|
80
|
-
- protoc-2.6.1-linux-
|
81
|
-
- protoc-2.6.1-
|
82
|
-
- protoc-2.6.1-osx-
|
79
|
+
- protoc-2.6.1-aix-powerpc
|
80
|
+
- protoc-2.6.1-linux-x86_32
|
81
|
+
- protoc-2.6.1-linux-x86_64
|
82
|
+
- protoc-2.6.1-osx-x86_32
|
83
|
+
- protoc-2.6.1-osx-x86_64
|
83
84
|
- protoc-2.6.1-windows-x86_32.exe
|
84
85
|
- protoc-2.6.1-windows-x86_64.exe
|
85
86
|
extensions:
|
@@ -87,10 +88,11 @@ extensions:
|
|
87
88
|
extra_rdoc_files: []
|
88
89
|
files:
|
89
90
|
- bin/protoc
|
90
|
-
- bin/protoc-2.6.1-
|
91
|
-
- bin/protoc-2.6.1-linux-
|
92
|
-
- bin/protoc-2.6.1-
|
93
|
-
- bin/protoc-2.6.1-osx-
|
91
|
+
- bin/protoc-2.6.1-aix-powerpc
|
92
|
+
- bin/protoc-2.6.1-linux-x86_32
|
93
|
+
- bin/protoc-2.6.1-linux-x86_64
|
94
|
+
- bin/protoc-2.6.1-osx-x86_32
|
95
|
+
- bin/protoc-2.6.1-osx-x86_64
|
94
96
|
- bin/protoc-2.6.1-windows-x86_32.exe
|
95
97
|
- bin/protoc-2.6.1-windows-x86_64.exe
|
96
98
|
- ext/protoc/Makefile
|