protobuf 2.8.9 → 2.8.10

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: 730f8de122b9b6b07a5fcf1be77f6af48647279a
4
- data.tar.gz: 5a0a5aacf4099da045ea560e538f45030f6dee78
3
+ metadata.gz: d18d9e64c2e94ed3544b8ba4bd77df2a6ceb2682
4
+ data.tar.gz: 762ce63da936d32f99a2433d05968bb40854b6ba
5
5
  SHA512:
6
- metadata.gz: 39211c5a2c882445549d99111dd4d50b3456221e752c5dfcffa2033e98e82b8564d543de452d0f9357efd941b22f846a6a6188e55b2129414d141faf4cf9058f
7
- data.tar.gz: 38dd648c17492ffd2510c9cca5a96532d73f529271fe4e80f49605da652e9804f77c9594a6d5f8f3842091d27bc68c6ee80879822a89512f9ec6a0cd3de674c6
6
+ metadata.gz: 0c7721313d80caba216b386da10a7314a506d90e67d8c0b8f5048d2fd5b662d3dc5804ebf634412d928906bc9f94a8adbe4c2cecd25a9b7b4b5e52421d216eb7
7
+ data.tar.gz: 5007276b66611190e65a3a7f434d113ed6dadca7cec003f2003563a9f60e724d274aa633c0cda0e2bfa91c96fdf0c52ba102679334f02128677ccf610bab2289
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.8.10
2
+ ---------
3
+
4
+ - Allow passing a file extension to compile/clean rake tasks. [#143, @localshred]
5
+
1
6
  2.8.9
2
7
  ---------
3
8
 
data/README.md CHANGED
@@ -13,19 +13,20 @@ See our [Installation Guide][] on the [wiki][].
13
13
  ## Usage
14
14
 
15
15
  The [wiki][] contains in-depth guides on the various ways to use this gem
16
- including [compiling defintions][], [object APIs][], [services][], [clients][], and even
16
+ including [compiling definitions][], [object APIs][], [services][], [clients][], and even
17
17
  an [API roadmap][].
18
18
 
19
19
  ## Changelog
20
20
 
21
21
  See recent changes in the [release notes][] or the [changelog][].
22
22
 
23
- [google-pb]: http://code.google.com/p/protobuf "Google Protocol Buffers"
24
- [wiki]: https://github.com/localshred/protobuf/wiki/Protobuf-Wiki "Protobuf Wiki"
25
- [compiling definitions]: https://github.com/localshred/protobuf/wiki/Compiling-Definitions "Compiling definitions"
26
- [object APIs]: https://github.com/localshred/protobuf/wiki/Messages-&-Enums "Message & Enum object APIs"
27
- [services]: https://github.com/localshred/protobuf/wiki/Services "Services object API"
28
- [clients]: https://github.com/localshred/protobuf/wiki/Clients "Client object API"
29
- [API roadmap]: https://github.com/localshred/protobuf/wiki/API-Roadmap "API Roadmap"
30
- [release notes]: https://github.com/localshred/protobuf/releases "CHANGES.md"
31
- [changelog]: https://github.com/localshred/protobuf/blob/master/CHANGES.md "CHANGES.md"
23
+ [google-pb]: http://code.google.com/p/protobuf "Google Protocol Buffers"
24
+ [wiki]: https://github.com/localshred/protobuf/wiki "Wiki home page"
25
+ [Installation Guide]: https://github.com/localshred/protobuf/wiki/Installation "Installation guide"
26
+ [compiling definitions]: https://github.com/localshred/protobuf/wiki/Compiling-Definitions "Compiling guide"
27
+ [object APIs]: https://github.com/localshred/protobuf/wiki/Messages-&-Enums "Message & Enum object APIs guide"
28
+ [services]: https://github.com/localshred/protobuf/wiki/Services "Services object API guide"
29
+ [clients]: https://github.com/localshred/protobuf/wiki/Clients "Client object API guide"
30
+ [API roadmap]: https://github.com/localshred/protobuf/wiki/API-Roadmap "API Roadmap guide"
31
+ [release notes]: https://github.com/localshred/protobuf/releases "Release notes"
32
+ [changelog]: https://github.com/localshred/protobuf/blob/master/CHANGES.md "CHANGES.md"
@@ -3,14 +3,15 @@ require 'fileutils'
3
3
  namespace :protobuf do
4
4
 
5
5
  desc 'Clean & Compile the protobuf source to ruby classes. Pass PB_NO_CLEAN=1 if you do not want to force-clean first.'
6
- task :compile, [ :package, :source, :destination, :plugin ] do |tasks, args|
6
+ task :compile, [ :package, :source, :destination, :plugin, :file_extension ] do |tasks, args|
7
7
  args.with_defaults(:destination => 'lib')
8
8
  args.with_defaults(:source => 'definitions')
9
9
  args.with_defaults(:plugin => 'ruby')
10
+ args.with_defaults(:file_extension => '.pb.rb')
10
11
 
11
12
  unless do_not_clean?
12
13
  force_clean!
13
- ::Rake::Task[:clean].invoke(args[:package], args[:destination])
14
+ ::Rake::Task[:clean].invoke(args[:package], args[:destination], args[:file_extension])
14
15
  end
15
16
 
16
17
  command = []
@@ -26,10 +27,12 @@ namespace :protobuf do
26
27
  end
27
28
 
28
29
  desc 'Clean the generated *.pb.rb files from the destination package. Pass PB_FORCE_CLEAN=1 to skip confirmation step.'
29
- task :clean, [ :package, :destination ] do |task, args|
30
+ task :clean, [ :package, :destination, :file_extension ] do |task, args|
30
31
  args.with_defaults(:destination => 'lib')
32
+ args.with_defaults(:file_extension => '.pb.rb')
31
33
 
32
- files_to_clean = ::File.join(args[:destination], args[:package], '**', '*.pb.rb')
34
+ file_extension = args[:file_extension].sub(/\*?\.+/, '')
35
+ files_to_clean = ::File.join(args[:destination], args[:package], '**', "*.#{file_extension}")
33
36
 
34
37
  if force_clean? || permission_to_clean?(files_to_clean)
35
38
  ::Dir.glob(files_to_clean).each do |file|
@@ -1,4 +1,4 @@
1
1
  module Protobuf
2
- VERSION = '2.8.9'
2
+ VERSION = '2.8.10'
3
3
  PROTOC_VERSION = '2.5.0'
4
4
  end
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: 2.8.9
4
+ version: 2.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - BJ Neilsen