Permalink
Browse files

version 1.0.1

  • Loading branch information...
1 parent 9c45c3e commit ce79dac27c14f222fd82471d1cfd21e85df59f3d @codekitchen codekitchen committed Mar 20, 2011
Showing with 9 additions and 4 deletions.
  1. +4 −0 Changelog.md
  2. +1 −1 VERSION
  3. +4 −3 bin/ruby-protoc
View
@@ -1,3 +1,7 @@
+# ruby-protocol-buffers 1.0.1
+
+ * Treat unknown enum values as unknown fields
+
# ruby-protocol-buffers 1.0.0
* The library has reached to 1.0 status, hurrah
View
@@ -1 +1 @@
-1.0.0
+1.0.1
View
@@ -11,11 +11,15 @@ require 'tempfile'
ruby_out = "."
include_dirs = []
+require 'protocol_buffers'
+require 'protocol_buffers/compiler'
+
opts = OptionParser.new
opts.banner = <<BANNER
Usage: #{opts.program_name} [OPTION] PROTO_FILES
Parse PROTO_FILES and generate output based on the options given:
BANNER
+opts.version = ProtocolBuffers::VERSION
opts.on("-o", "--ruby_out", "=OUT_DIR",
"generates ruby code in OUT_DIR", "[defaults to pwd]",
@@ -29,9 +33,6 @@ filenames = rest
(puts "Missing input file.\n\n"; puts opts; exit) if filenames.empty?
-require 'protocol_buffers'
-require 'protocol_buffers/compiler'
-
protocfile = Tempfile.new("ruby-protoc")
protocfile.binmode
ProtocolBuffers::Compiler.compile(protocfile.path, filenames, :include_dirs => include_dirs)

0 comments on commit ce79dac

Please sign in to comment.