Skip to content

Commit f630c11

Browse files
Introduce a ProtoBoeuf::CodeGen::Field to alleviate feature envy (#181)
* Introduce a DecoratedField to alleviate feature envy * Rename DecoratedField to ProtoBoeuf::CodeGen::Field * We want to test map_type, not map_field? here * This rule needs to be more specific. lib/protoboeuf/codegen.rb was getting caught by it. * assert_predicate/refute_predicate is a better fit here. * Sort these delegators lexographically
1 parent 9e25aa6 commit f630c11

File tree

5 files changed

+273
-90
lines changed

5 files changed

+273
-90
lines changed

Rakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ rule ".rb" => ["%X.proto"] + codegen_rb_files do |t|
7474
File.binwrite(t.name, ProtoBoeuf::CodeGen.new(unit).to_ruby(dest, options))
7575
end
7676

77-
rule ".rb" => "%X" do |t|
77+
rule %r{lib/protoboeuf/google/.+\.rb} => "%X" do |t|
7878
# Given lib/protoboeuf/google/protobuf/foo.rb and lib/protoboeuf/google/protobuf/bar.rb, generate
7979
# lib/protoboeuf/google/protobuf.rb that looks like:
8080
#
@@ -132,7 +132,7 @@ end
132132

133133
Rake::TestTask.new do |t|
134134
t.libs << "test"
135-
t.test_files = FileList["test/*_test.rb"]
135+
t.test_files = FileList["test/**/*_test.rb"]
136136
t.verbose = true
137137
end
138138

0 commit comments

Comments
 (0)