tinygql 0.1.1 → 0.1.3
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.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/Rakefile +11 -0
- data/benchmark/fixtures/negotiate.gql +3643 -0
- data/bin/bench.rb +15 -4
- data/bin/profile.rb +5 -0
- data/lib/tinygql/lexer.rb +37 -47
- data/lib/tinygql/nodes.rb +82 -81
- data/lib/tinygql/nodes.rb.erb +2 -2
- data/lib/tinygql/nodes.yml +11 -10
- data/lib/tinygql/parser.rb +23 -15
- data/lib/tinygql/version.rb +1 -1
- data/lib/tinygql/visitors.rb +140 -74
- data/test/lexer_test.rb +12 -0
- data/test/parser_test.rb +26 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445c7c3eccff7132942d89394f68b4d1f9b431b31ce8c69ed5411e07d9c35ee4
|
4
|
+
data.tar.gz: 26a1faa1b1a29a76ce1c3fdaabecd413816fd96eeffc2663f0b6d99dd27beeb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9825170ead631c309d1fae5e918c232102ff9673b686365b37cf60d8bd0f07a5888d42848d1f0a9eb529a3c5fe58fc47b066741c29de7bd236be10d3b7587fb6
|
7
|
+
data.tar.gz: c8a569419d177b5c06ee73cbf69b38290cefe40b3c781e6c730ca95ce8b2e978254b9465a0ea37d9c29c29388d2c7ffab2fd247ab193322bd9797cc35920c27f
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -109,6 +109,7 @@ namespace :gem do
|
|
109
109
|
# push it
|
110
110
|
ENV['GEM_HOST_OTP_CODE'] = `ykman oath accounts code -s rubygems.org`.chomp
|
111
111
|
sh "gem push pkg/tinygql-#{TinyGQL::VERSION}.gem"
|
112
|
+
sh "git push --tags"
|
112
113
|
end
|
113
114
|
|
114
115
|
Rake::TestTask.new(:test) do |t|
|
@@ -130,3 +131,13 @@ namespace :gem do
|
|
130
131
|
|
131
132
|
task :test => :install
|
132
133
|
end
|
134
|
+
|
135
|
+
desc "Run benchmarks"
|
136
|
+
task :benchmark do
|
137
|
+
ruby "-I lib bin/bench.rb"
|
138
|
+
end
|
139
|
+
|
140
|
+
desc "Profile with benchmarks"
|
141
|
+
task :profile do
|
142
|
+
ruby "-I lib bin/bench.rb"
|
143
|
+
end
|