Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
af4aa9bd
Commit
af4aa9bd
authored
Feb 04, 2016
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for binary gems.
parent
bd8a4765
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
Gemfile.lock
ruby/Gemfile.lock
+2
-2
Rakefile
ruby/Rakefile
+5
-0
protobuf.rb
ruby/lib/google/protobuf.rb
+5
-1
No files found.
ruby/Gemfile.lock
View file @
af4aa9bd
PATH
remote: .
specs:
google-protobuf (3.0.0.alpha.
4
.0)
google-protobuf (3.0.0.alpha.
5
.0)
GEM
remote: https://rubygems.org/
...
...
@@ -25,4 +25,4 @@ DEPENDENCIES
test-unit
BUNDLED WITH
1.1
0.6
1.1
1.2
ruby/Rakefile
View file @
af4aa9bd
...
...
@@ -21,6 +21,11 @@ else
ext
.
ext_dir
=
"ext/google/protobuf_c"
ext
.
lib_dir
=
"lib/google"
end
task
'gem:windows'
do
require
'rake_compiler_dock'
RakeCompilerDock
.
sh
"bundle && rake cross native gem"
end
end
Gem
::
PackageTask
.
new
(
spec
)
do
|
pkg
|
...
...
ruby/lib/google/protobuf.rb
View file @
af4aa9bd
...
...
@@ -44,7 +44,11 @@ if RUBY_PLATFORM == "java"
require
'json'
require
'google/protobuf_java'
else
require
'google/protobuf_c'
begin
require
"google/
#{
RUBY_VERSION
.
sub
(
/\.\d$/
,
''
)
}
/protobuf_c"
rescue
LoadError
require
'google/protobuf_c'
end
end
require
'google/protobuf/repeated_field'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment