protobuf 3.8.0.pre1 → 3.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82278977557e5c90d1f77123bdeaff5212b4bff
|
4
|
+
data.tar.gz: 73e90edc9b078e6755e5c210802c0234bc582956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cc8884c6490ebc5cda56ff625733160a842baed3ae99c390bebecc38b9652379d8d510f81b47042484e850cbfc936c1fb9dc48e511afea1339ea8c7a362964f
|
7
|
+
data.tar.gz: 741d05f4aa8cfd8737d2275fbc09deb1cb7a13c67835d10ff85cc6422e8812f9daf33279449f27df3045ce8505cbdd8111d27505caf5ec3afc3ca3dea8c500b8
|
data/CHANGES.md
CHANGED
@@ -127,8 +127,8 @@ module Protobuf
|
|
127
127
|
#
|
128
128
|
# print_require('foo/bar/baz') -> "require 'foo/bar/baz'"
|
129
129
|
#
|
130
|
-
def print_require(file)
|
131
|
-
puts "require '#{file}'"
|
130
|
+
def print_require(file, relative = false)
|
131
|
+
puts "require#{'_relative' if relative} '#{file}'"
|
132
132
|
end
|
133
133
|
|
134
134
|
# Puts the given message prefixed by the indent level.
|
data/lib/protobuf/version.rb
CHANGED
@@ -22,11 +22,18 @@ RSpec.describe ::Protobuf::Generators::FileGenerator do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'prints a ruby require for each dependency' do
|
25
|
-
expect(subject).to receive(:print_require).with('test/bar.pb')
|
26
|
-
expect(subject).to receive(:print_require).with('test/baz.pb')
|
25
|
+
expect(subject).to receive(:print_require).with('test/bar.pb', false)
|
26
|
+
expect(subject).to receive(:print_require).with('test/baz.pb', false)
|
27
27
|
subject.print_import_requires
|
28
28
|
end
|
29
29
|
|
30
|
+
it 'prints a ruby require_relative for each dependency if environment variable was set' do
|
31
|
+
expect(subject).to receive(:print_require).with('test/bar.pb', true)
|
32
|
+
expect(subject).to receive(:print_require).with('test/baz.pb', true)
|
33
|
+
ENV['PB_REQUIRE_RELATIVE'] = 'true'
|
34
|
+
subject.print_import_requires
|
35
|
+
ENV.delete('PB_REQUIRE_RELATIVE')
|
36
|
+
end
|
30
37
|
end
|
31
38
|
|
32
39
|
describe '#compile' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.0
|
4
|
+
version: 3.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BJ Neilsen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-
|
14
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -463,12 +463,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
463
463
|
version: '0'
|
464
464
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
465
465
|
requirements:
|
466
|
-
- - "
|
466
|
+
- - ">="
|
467
467
|
- !ruby/object:Gem::Version
|
468
|
-
version:
|
468
|
+
version: '0'
|
469
469
|
requirements: []
|
470
470
|
rubyforge_project:
|
471
|
-
rubygems_version: 2.
|
471
|
+
rubygems_version: 2.6.13
|
472
472
|
signing_key:
|
473
473
|
specification_version: 4
|
474
474
|
summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
|