ruby_protobuf 0.0.1 → 0.1.0
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.
- data/History.txt +2 -1
- data/README.txt +1 -1
- data/lib/ruby_protobuf.rb +3 -3
- metadata +5 -4
data/History.txt
CHANGED
data/README.txt
CHANGED
data/lib/ruby_protobuf.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'protobuf/compiler'
|
2
2
|
|
3
3
|
class RubyProtobuf
|
4
|
-
VERSION = '0.0
|
4
|
+
VERSION = '0.1.0'
|
5
5
|
|
6
6
|
def start(proto_file, options)
|
7
7
|
unless File.exist?(proto_file)
|
@@ -11,7 +11,7 @@ class RubyProtobuf
|
|
11
11
|
raise ArgumentError.new("#{proto_file} does not exist.")
|
12
12
|
end
|
13
13
|
end
|
14
|
-
rb_filename = File.basename proto_file
|
14
|
+
rb_filename = File.basename proto_file.dup
|
15
15
|
rb_filename += '.rb' unless rb_filename.sub!(/.\w+$/, '.rb')
|
16
16
|
rb_filepath = "#{options[:out] || '.'}/#{rb_filename}"
|
17
17
|
puts "#{rb_filepath} writting..."
|
@@ -19,4 +19,4 @@ class RubyProtobuf
|
|
19
19
|
f.write Protobuf::Compiler.compile(proto_file)
|
20
20
|
end
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ANDO Yasushi
|
@@ -9,17 +9,18 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-08-01 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hoe
|
17
|
+
type: :development
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
21
|
- - ">="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
23
|
+
version: 1.7.0
|
23
24
|
version:
|
24
25
|
description: "== DESCRIPTION: Protocol Buffers for Ruby. == FEATURES/PROBLEMS: * Compile .proto file to ruby script * Parse the binary wire format for protocol buffer * Serialize data to the binary wire format for protocol buffer"
|
25
26
|
email: andyjpn@gmail.com
|
@@ -88,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
89
|
requirements: []
|
89
90
|
|
90
91
|
rubyforge_project: ruby-protobuf
|
91
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.2.0
|
92
93
|
signing_key:
|
93
94
|
specification_version: 2
|
94
95
|
summary: Protocol Buffers for Ruby
|