protoc 2.6.1 → 2.6.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10a4ad7ce3b94246393b4922919ddb78825c3e3b
4
- data.tar.gz: 4bbe49a4552d6eaafb3017ff08c02f32aee271ef
3
+ metadata.gz: 6e2a9307e4369bdf22bf3c05f30ced38c0a4d19a
4
+ data.tar.gz: a083d74eb8ccb78e4325c80244b429d928de2dee
5
5
  SHA512:
6
- metadata.gz: 84b16202998e98ad9b663ce276d6804a0e32cd21614c883234aff9596c6c4abb79a30576c9f69fda496f9013a75f839a8809e8978507fe718e76a38c0fa2a195
7
- data.tar.gz: 7577128dcaf3f0da4a6aac6e53a3d23aa50494ca132c64a120ea7ddf44be807a2c081905b660a62f7a536b97fcfda5c080f55530e9a661242952fa037342ef8a
6
+ metadata.gz: 597a8189a4a44b129f3e80e620c1aa40685f35df833171becf3de2580f0ffe44416add0d3e447ac62cbeb0d4dda9d46dba7e70527efe3fce2c304c1a6b1af486
7
+ data.tar.gz: 45f33c35cc3c7046979823a07a6bc9652799d5d94dee8719c301cd24e32fe3cc3789071ba6a0a5ad4ae94e11571ec4c53ccbe909704c07537094550df09a56c9
data/bin/protoc CHANGED
@@ -16,7 +16,7 @@ def platform_arch
16
16
  end
17
17
 
18
18
  def exec_protoc_for_os(os)
19
- exec("#{File.dirname(__FILE__)}/protoc-#{Protoc::VERSION}-#{os}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe", *ARGV)
19
+ exec("#{File.dirname(__FILE__)}/protoc-#{Protoc::PROTOBUF_VERSION}-#{os}-#{PLATFORM_TO_PROTOC_ARCH[platform_arch]}.exe", *ARGV)
20
20
  end
21
21
 
22
22
  case Platform::OS
@@ -0,0 +1,8 @@
1
+ # This is a dummy makefile that will get used to build this "extension" when
2
+ # the pre-built protoc will work on the system
3
+ # This file will get overwritten by extconf.rb if it needs to build protoc
4
+ # from source
5
+
6
+ build:
7
+
8
+ install:
@@ -0,0 +1,24 @@
1
+ PROTOBUF_VERSION = @PROTOBUF_VERSION@
2
+ PROTOC_BINARY_PATH = @PROTOC_BINARY_PATH@
3
+
4
+ build: stage/bin/protoc
5
+
6
+ protobuf-$(PROTOBUF_VERSION):
7
+ curl -L https://github.com/google/protobuf/archive/v$(PROTOBUF_VERSION).tar.gz | tar xz
8
+
9
+ protobuf-$(PROTOBUF_VERSION)/configure: | protobuf-$(PROTOBUF_VERSION)
10
+ cd protobuf-$(PROTOBUF_VERSION) && \
11
+ autoreconf -f -i -Wall,no-obsolete && \
12
+ rm -rf autom4te.cache config.h.in~
13
+
14
+ protobuf-$(PROTOBUF_VERSION)/Makefile: protobuf-$(PROTOBUF_VERSION)/configure
15
+ cd protobuf-$(PROTOBUF_VERSION) && \
16
+ ./configure --prefix=$(shell pwd)/stage --disable-shared
17
+
18
+ stage/bin/protoc: protobuf-$(PROTOBUF_VERSION)/Makefile
19
+ cd protobuf-$(PROTOBUF_VERSION) && \
20
+ $(MAKE) install
21
+
22
+ install: stage/bin/protoc
23
+ mv -f stage/bin/protoc $(PROTOC_BINARY_PATH)
24
+ rm -rf protobuf-$(PROTOBUF_VERSION) stage
@@ -0,0 +1,45 @@
1
+ require 'platform'
2
+ require_relative '../../lib/protoc/version'
3
+
4
+ PLATFORM_TO_PROTOC_ARCH = {:x86 => :x86_32, :x86_64 => :x86_64}
5
+
6
+ # Work around for lack of x86_64 support in Platform 0.4.0, which is the
7
+ # latest in rubygems.org. https://github.com/mmower/platform/issues/3
8
+ def platform_arch
9
+ if Platform::ARCH == :unknown && RUBY_PLATFORM =~ /x86_64/
10
+ :x86_64
11
+ else
12
+ Platform::ARCH
13
+ end
14
+ end
15
+
16
+ OS = case Platform::OS
17
+ when :win32
18
+ 'windows'
19
+ when :unix
20
+ case Platform::IMPL
21
+ when :macosx
22
+ 'osx'
23
+ when :linux
24
+ 'linux'
25
+ else
26
+ Platform::IMPL.to_s
27
+ end
28
+ else
29
+ Platform::OS.to_s
30
+ end
31
+
32
+ HERE = File.expand_path(File.dirname(__FILE__))
33
+ 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
+ )
37
+ `#{protoc_path} --version`
38
+ if $? != 0 && OS != 'windows'
39
+ Dir.chdir(HERE) do
40
+ template = File.read(File.join(HERE, 'Makefile.in'))
41
+ template.gsub!('@PROTOBUF_VERSION@', Protoc::PROTOBUF_VERSION)
42
+ template.gsub!('@PROTOC_BINARY_PATH@', protoc_path)
43
+ File.write(File.join(HERE, 'Makefile'), template)
44
+ end
45
+ end
@@ -1,3 +1,6 @@
1
1
  module Protoc
2
- VERSION = '2.6.1'
2
+ # The version of the protobuf library from which these protoc binaries were built
3
+ PROTOBUF_VERSION = '2.6.1'
4
+ # This gem's version
5
+ VERSION = PROTOBUF_VERSION + '.1'
3
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
4
+ version: 2.6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Jansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-04 00:00:00.000000000 Z
11
+ date: 2017-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,33 +66,10 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.4'
69
- description: |
70
- protoc
71
- ==================
72
-
73
- This gem includes protoc binaries for Linux, Mac, and Windows. It installs a executable shim called `protoc` that picks
74
- the right one to run on your platform. You can use this gem to ensure that you have a protoc of the version you need on
75
- a system.
76
-
77
- ## Suggested Use
78
-
79
- Put `protoc` in your Gemfile, with the version of protobuf that you need.
80
-
81
- ```
82
- depends 'protoc', '2.6.1'
83
- ```
84
-
85
- Run `protoc` using `bundle exec`.
86
-
87
- ```
88
- $ bundle exec protoc --version
89
- libprotoc 2.6.1
90
- ```
91
-
92
- ## Binaries
93
-
94
- The protoc binaries included in this gem came from the artifact
95
- [available in Maven Central](http://search.maven.org/#artifactdetails%7Ccom.google.protobuf%7Cprotoc%7C2.6.1%7Cpom).
69
+ description: |-
70
+ This gem includes protoc, the protobuf compiler, binaries for Linux, Mac, and Windows. It installs a executable shim
71
+ called `protoc` that picks the right one to run on your platform. You can use this gem to ensure that you have a protoc
72
+ of the version you need. By using this gem, you will not need to manually install the right protoc on your hosts.
96
73
  email:
97
74
  executables:
98
75
  - protoc
@@ -102,7 +79,8 @@ executables:
102
79
  - protoc-2.6.1-osx-x86_64.exe
103
80
  - protoc-2.6.1-windows-x86_32.exe
104
81
  - protoc-2.6.1-windows-x86_64.exe
105
- extensions: []
82
+ extensions:
83
+ - ext/protoc/extconf.rb
106
84
  extra_rdoc_files: []
107
85
  files:
108
86
  - bin/protoc
@@ -112,6 +90,9 @@ files:
112
90
  - bin/protoc-2.6.1-osx-x86_64.exe
113
91
  - bin/protoc-2.6.1-windows-x86_32.exe
114
92
  - bin/protoc-2.6.1-windows-x86_64.exe
93
+ - ext/protoc/Makefile
94
+ - ext/protoc/Makefile.in
95
+ - ext/protoc/extconf.rb
115
96
  - lib/protoc/protocol_buffers_license.txt
116
97
  - lib/protoc/version.rb
117
98
  homepage: https://github.com/Tripwire/protoc-gem
@@ -134,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
115
  version: '0'
135
116
  requirements: []
136
117
  rubyforge_project:
137
- rubygems_version: 2.4.8
118
+ rubygems_version: 2.4.5.1
138
119
  signing_key:
139
120
  specification_version: 4
140
121
  summary: Protoc binaries for Mac, Linux, and Windows