ruby-protocol-buffers 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/.document +3 -0
  2. data/.gitignore +11 -0
  3. data/LICENSE +22 -0
  4. data/README +82 -0
  5. data/Rakefile +56 -0
  6. data/VERSION +1 -0
  7. data/bin/ruby-protoc +55 -0
  8. data/debian/changelog +105 -0
  9. data/debian/compatability +1 -0
  10. data/debian/control +12 -0
  11. data/debian/libprotobuf-ruby1.8.install +7 -0
  12. data/debian/protocol_buffers.rb +3 -0
  13. data/debian/rules +13 -0
  14. data/examples/json_protobuf.rb +90 -0
  15. data/ext/extconf.disabled.rb +3 -0
  16. data/ext/varint.c +65 -0
  17. data/lib/protocol_buffers.rb +5 -0
  18. data/lib/protocol_buffers/compiler.rb +48 -0
  19. data/lib/protocol_buffers/compiler/descriptor.pb.rb +236 -0
  20. data/lib/protocol_buffers/compiler/descriptor.proto +393 -0
  21. data/lib/protocol_buffers/compiler/file_descriptor_to_d.rb +195 -0
  22. data/lib/protocol_buffers/compiler/file_descriptor_to_ruby.rb +173 -0
  23. data/lib/protocol_buffers/limited_io.rb +33 -0
  24. data/lib/protocol_buffers/runtime/decoder.rb +65 -0
  25. data/lib/protocol_buffers/runtime/encoder.rb +53 -0
  26. data/lib/protocol_buffers/runtime/enum.rb +4 -0
  27. data/lib/protocol_buffers/runtime/extend.rb +1 -0
  28. data/lib/protocol_buffers/runtime/field.rb +550 -0
  29. data/lib/protocol_buffers/runtime/message.rb +494 -0
  30. data/lib/protocol_buffers/runtime/service.rb +1 -0
  31. data/lib/protocol_buffers/runtime/varint.rb +62 -0
  32. data/spec/compiler_spec.rb +19 -0
  33. data/spec/fields_spec.rb +49 -0
  34. data/spec/proto_files/depends.proto +5 -0
  35. data/spec/proto_files/featureful.proto +54 -0
  36. data/spec/proto_files/no_package.proto +10 -0
  37. data/spec/proto_files/simple.proto +5 -0
  38. data/spec/runtime_spec.rb +430 -0
  39. data/spec/spec.opts +1 -0
  40. data/spec/spec_helper.rb +8 -0
  41. metadata +128 -0
data/spec/spec.opts ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,8 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'protocol_buffers'
4
+ require 'spec'
5
+ require 'spec/autorun'
6
+
7
+ Spec::Runner.configure do |config|
8
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-protocol-buffers
3
+ version: !ruby/object:Gem::Version
4
+ hash: 55
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 8
9
+ - 4
10
+ version: 0.8.4
11
+ platform: ruby
12
+ authors:
13
+ - Brian Palmer
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-10-20 00:00:00 -06:00
19
+ default_executable: ruby-protoc
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rspec
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 13
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 9
34
+ version: 1.2.9
35
+ type: :development
36
+ version_requirements: *id001
37
+ description:
38
+ email:
39
+ executables:
40
+ - ruby-protoc
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - LICENSE
45
+ - README
46
+ files:
47
+ - .document
48
+ - .gitignore
49
+ - LICENSE
50
+ - README
51
+ - Rakefile
52
+ - VERSION
53
+ - bin/ruby-protoc
54
+ - debian/changelog
55
+ - debian/compatability
56
+ - debian/control
57
+ - debian/libprotobuf-ruby1.8.install
58
+ - debian/protocol_buffers.rb
59
+ - debian/rules
60
+ - examples/json_protobuf.rb
61
+ - ext/extconf.disabled.rb
62
+ - ext/varint.c
63
+ - lib/protocol_buffers.rb
64
+ - lib/protocol_buffers/compiler.rb
65
+ - lib/protocol_buffers/compiler/descriptor.pb.rb
66
+ - lib/protocol_buffers/compiler/descriptor.proto
67
+ - lib/protocol_buffers/compiler/file_descriptor_to_d.rb
68
+ - lib/protocol_buffers/compiler/file_descriptor_to_ruby.rb
69
+ - lib/protocol_buffers/limited_io.rb
70
+ - lib/protocol_buffers/runtime/decoder.rb
71
+ - lib/protocol_buffers/runtime/encoder.rb
72
+ - lib/protocol_buffers/runtime/enum.rb
73
+ - lib/protocol_buffers/runtime/extend.rb
74
+ - lib/protocol_buffers/runtime/field.rb
75
+ - lib/protocol_buffers/runtime/message.rb
76
+ - lib/protocol_buffers/runtime/service.rb
77
+ - lib/protocol_buffers/runtime/varint.rb
78
+ - spec/compiler_spec.rb
79
+ - spec/fields_spec.rb
80
+ - spec/proto_files/depends.proto
81
+ - spec/proto_files/featureful.proto
82
+ - spec/proto_files/no_package.proto
83
+ - spec/proto_files/simple.proto
84
+ - spec/runtime_spec.rb
85
+ - spec/spec.opts
86
+ - spec/spec_helper.rb
87
+ has_rdoc: true
88
+ homepage: http://github.com/mozy/ruby-protocol-buffers
89
+ licenses: []
90
+
91
+ post_install_message:
92
+ rdoc_options:
93
+ - --charset=UTF-8
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: 59
102
+ segments:
103
+ - 1
104
+ - 8
105
+ - 6
106
+ version: 1.8.6
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ hash: 3
113
+ segments:
114
+ - 0
115
+ version: "0"
116
+ requirements: []
117
+
118
+ rubyforge_project:
119
+ rubygems_version: 1.3.7
120
+ signing_key:
121
+ specification_version: 3
122
+ summary: Ruby compiler and runtime for the google protocol buffers library.
123
+ test_files:
124
+ - spec/compiler_spec.rb
125
+ - spec/fields_spec.rb
126
+ - spec/runtime_spec.rb
127
+ - spec/spec_helper.rb
128
+ - examples/json_protobuf.rb