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: 36998518e999db66696a856ca6489d2e7b4063a6
4
- data.tar.gz: 9b342418d7b1bf86249fcb2ed4924b9c2cfc28a3
3
+ metadata.gz: d82278977557e5c90d1f77123bdeaff5212b4bff
4
+ data.tar.gz: 73e90edc9b078e6755e5c210802c0234bc582956
5
5
  SHA512:
6
- metadata.gz: 481bb0ddef459a46e0f34feab99b584dfdc21503e9198fd3df15bafe59d40b8d1115ef3c796bf531f67dfa60dfa112142affa4ab75c2553a4096abaa99683da4
7
- data.tar.gz: 9db74e2292597dd416c9c69f299282dc3a7e928a4ff2c5da686a1ca2d8931b8ad5831a904dfec338c602fbd28fa3c833599e19083a3988c00f1827ed002d0422
6
+ metadata.gz: 8cc8884c6490ebc5cda56ff625733160a842baed3ae99c390bebecc38b9652379d8d510f81b47042484e850cbfc936c1fb9dc48e511afea1339ea8c7a362964f
7
+ data.tar.gz: 741d05f4aa8cfd8737d2275fbc09deb1cb7a13c67835d10ff85cc6422e8812f9daf33279449f27df3045ce8505cbdd8111d27505caf5ec3afc3ca3dea8c500b8
data/CHANGES.md CHANGED
@@ -1,4 +1,8 @@
1
- # Beta (3.7.x)
1
+ # Stable (3.8.x)
2
+
3
+ 3.8.0
4
+ -----
5
+ - Map types now supported (#367)
2
6
 
3
7
  3.7.0 (pre3)
4
8
  -----------
@@ -125,7 +125,7 @@ module Protobuf
125
125
  header "Imports"
126
126
 
127
127
  descriptor.dependency.each do |dependency|
128
- print_require(convert_filename(dependency))
128
+ print_require(convert_filename(dependency), ENV.key?('PB_REQUIRE_RELATIVE'))
129
129
  end
130
130
 
131
131
  puts
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Protobuf
2
- VERSION = '3.8.0.pre1' # rubocop:disable Style/MutableConstant
2
+ VERSION = '3.8.0' # rubocop:disable Style/MutableConstant
3
3
  end
@@ -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.pre1
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-08-15 00:00:00.000000000 Z
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: 1.3.1
468
+ version: '0'
469
469
  requirements: []
470
470
  rubyforge_project:
471
- rubygems_version: 2.5.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.