jcompiler 0.1.91 → 0.1.93
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +2 -4
- data/build +1 -1
- data/jcompiler.gemspec +0 -2
- data/lib/jcompiler/cache.rb +2 -2
- data/lib/jcompiler/compiler.rb +4 -5
- data/lib/jcompiler/handler.rb +1 -1
- data/lib/jcompiler/provider.rb +3 -13
- metadata +2 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5289efac529f01ab83aaf69ada86ac5452e180a
|
4
|
+
data.tar.gz: 0d63d2d4797b63891d336df841d824775df04b52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee83a196f442a1b9d8a3f6170f361687f849f8c9f22e531efc688a62d2613087f94c9ad0a7452d6369acbe63d4c5f6ba45e90b6fa081226b3d9a47c9bb6f7560
|
7
|
+
data.tar.gz: 1758765c5759acb63f2ad69f18505800b420f03e22dfe894685b93f782ca9a49ef31de09729c2452a8eb09e079db6a3ab6a8e13ba5a0954075c1b248a00c56d8
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/build
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
94
|
data/jcompiler.gemspec
CHANGED
data/lib/jcompiler/cache.rb
CHANGED
data/lib/jcompiler/compiler.rb
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
class Jcompiler::Compiler
|
2
|
-
def initialize(source
|
2
|
+
def initialize(source)
|
3
3
|
@source = source
|
4
|
-
@bind = bind
|
5
4
|
end
|
6
5
|
|
7
6
|
def compile
|
8
|
-
|
9
|
-
|
7
|
+
json = Jcompiler::Provider.new
|
8
|
+
eval(source)
|
10
9
|
end
|
11
10
|
|
12
11
|
private
|
13
12
|
|
14
|
-
attr_reader :source
|
13
|
+
attr_reader :source
|
15
14
|
end
|
data/lib/jcompiler/handler.rb
CHANGED
data/lib/jcompiler/provider.rb
CHANGED
@@ -1,17 +1,7 @@
|
|
1
1
|
class Jcompiler::Provider
|
2
|
-
def initialize(bind)
|
3
|
-
@bind = bind
|
4
|
-
end
|
5
|
-
|
6
2
|
def array!(arr, &block)
|
7
|
-
|
8
|
-
f.puts(block.call(1))
|
9
|
-
end
|
10
|
-
puts block.to_source(attached_to: :block)
|
11
|
-
"[]"
|
12
|
-
end
|
3
|
+
#item_name = block.parameters[0][1].to_s
|
13
4
|
|
14
|
-
|
15
|
-
|
16
|
-
attr_reader :bind
|
5
|
+
"\"[]\""
|
6
|
+
end
|
17
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jcompiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.93
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsuri Moriya
|
@@ -9,41 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-05-23 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: ParseTree
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.0'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 3.0.9
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.0'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 3.0.9
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: sourcify
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0'
|
12
|
+
dependencies: []
|
47
13
|
description: High performance JSON view via compiled DSL
|
48
14
|
email:
|
49
15
|
- tetsuri.moriya@gmail.com
|