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 +4 -4
- data/CHANGES.md +5 -0
- data/README.md +11 -10
- data/lib/protobuf/tasks/compile.rake +7 -4
- data/lib/protobuf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d18d9e64c2e94ed3544b8ba4bd77df2a6ceb2682
|
4
|
+
data.tar.gz: 762ce63da936d32f99a2433d05968bb40854b6ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c7721313d80caba216b386da10a7314a506d90e67d8c0b8f5048d2fd5b662d3dc5804ebf634412d928906bc9f94a8adbe4c2cecd25a9b7b4b5e52421d216eb7
|
7
|
+
data.tar.gz: 5007276b66611190e65a3a7f434d113ed6dadca7cec003f2003563a9f60e724d274aa633c0cda0e2bfa91c96fdf0c52ba102679334f02128677ccf610bab2289
|
data/CHANGES.md
CHANGED
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
|
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]:
|
24
|
-
[wiki]:
|
25
|
-
[
|
26
|
-
[
|
27
|
-
[
|
28
|
-
[
|
29
|
-
[
|
30
|
-
[
|
31
|
-
[
|
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
|
-
|
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|
|
data/lib/protobuf/version.rb
CHANGED