protoc 2.6.1.2 → 2.6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98a6589fddad97dd60044687f1d5a3ef716ff987
4
- data.tar.gz: 5abc20ddb095025d71c6d7cf7222fea02e9acc68
3
+ metadata.gz: 168845d2c60a9d640185df9fb22336d598468bcf
4
+ data.tar.gz: a5a99a21557c600ce410c1fc85dde382f72b5d43
5
5
  SHA512:
6
- metadata.gz: 0451c4ac5a12d76fdda42607c06007d17b19b0fad4cf2e39a53147852185701f960f3008cc2bf2498a33b119d8661aef30ea3420287b122f56c8783946762e3f
7
- data.tar.gz: 295a065d19d4de59ec96be258512f521bae8e7668dafcea02b762fa0c0f6868c96a8d70f1fd5f02c5a3c330e3d22719dd2af2596c9a3591e009a6f3932b98c15
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
- exec("#{File.dirname(__FILE__)}/protoc-#{Protoc::PROTOBUF_VERSION}-#{os}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe", *ARGV)
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
@@ -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
- protoc_path = File.join(
35
- binpath, "protoc-#{Protoc::PROTOBUF_VERSION}-#{OS}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe"
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
@@ -2,5 +2,5 @@ module Protoc
2
2
  # The version of the protobuf library from which these protoc binaries were built
3
3
  PROTOBUF_VERSION = '2.6.1'
4
4
  # This gem's version
5
- VERSION = PROTOBUF_VERSION + '.2'
5
+ VERSION = PROTOBUF_VERSION + '.3'
6
6
  end
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.2
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: 2017-02-14 00:00:00.000000000 Z
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-linux-x86_32.exe
80
- - protoc-2.6.1-linux-x86_64.exe
81
- - protoc-2.6.1-osx-x86_32.exe
82
- - protoc-2.6.1-osx-x86_64.exe
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-linux-x86_32.exe
91
- - bin/protoc-2.6.1-linux-x86_64.exe
92
- - bin/protoc-2.6.1-osx-x86_32.exe
93
- - bin/protoc-2.6.1-osx-x86_64.exe
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