meta_compile 0.0.12 → 0.0.13
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/README.md +3 -3
- data/Rakefile +2 -2
- data/meta_compile.gemspec +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -25,11 +25,11 @@ Manually verifying that it is a meta compiler
|
|
25
25
|
|
26
26
|
In your local copy of the git repo, use the pre-generated binary to compile the specification file to a ruby file:
|
27
27
|
|
28
|
-
bin/meta_compile
|
28
|
+
bin/meta_compile syntaxes/meta_to_ruby_minimal.meta > t.rb
|
29
29
|
|
30
30
|
This generates a t.rb which is itself a compiler for meta syntax specs. So lets use it to generate itself:
|
31
31
|
|
32
|
-
ruby t.rb
|
32
|
+
ruby t.rb syntaxes/meta_to_ruby_minimal.meta > t2.rb
|
33
33
|
|
34
34
|
And ensure they are really the same:
|
35
35
|
|
@@ -37,7 +37,7 @@ And ensure they are really the same:
|
|
37
37
|
|
38
38
|
To be really sure we can try the generated t2.rb as a meta-compiler:
|
39
39
|
|
40
|
-
ruby t2.rb
|
40
|
+
ruby t2.rb syntaxes/meta_to_ruby_minimal.meta > t3.rb
|
41
41
|
|
42
42
|
and this should convince us:
|
43
43
|
|
data/Rakefile
CHANGED
@@ -93,7 +93,7 @@ task :ensure_meta => [:make_bin] do
|
|
93
93
|
end
|
94
94
|
|
95
95
|
desc "Update line counts in README.template.md to make README.md"
|
96
|
-
task :
|
96
|
+
task :update => [:bootstrap] do
|
97
97
|
rmeta2_compiler_loc = loc('bootstrap/meta_ruby_compiler.rb')
|
98
98
|
rmeta2_spec_loc = loc('syntaxes/meta_to_ruby_minimal.meta')
|
99
99
|
readme = File.read("README.template.md").gsub("%%RMetaII_SPEC_LOC%%", rmeta2_spec_loc.to_s)
|
@@ -116,7 +116,7 @@ task :install_gem => [:build_gem] do
|
|
116
116
|
end
|
117
117
|
|
118
118
|
desc "Deploy gem"
|
119
|
-
task :deploy => [:install_gem] do
|
119
|
+
task :deploy => [:update, :install_gem] do
|
120
120
|
pexec "gem push meta_compile*.gem"
|
121
121
|
end
|
122
122
|
|
data/meta_compile.gemspec
CHANGED