jcompiler 0.1.126 → 0.1.127
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/build +1 -1
- data/jcompiler.gemspec +0 -3
- data/lib/jcompiler/provider.rb +5 -1
- 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: 5e3b64b1bd49ffefdd571dde1abdb9e95eb95837
|
4
|
+
data.tar.gz: ef2d1956f2cf87f54337b13d1ac30a11bdf0fbae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1a6a9f11ed566c0842bfb090b218e1d5aa931d7afffe62ca96b915d5a01ae82f96c1f5fdc794f61ea7429f0176c3ec7c54c01cc81f3e8be5ccdb936f4dd9621
|
7
|
+
data.tar.gz: fb5bea4a953cf265414f24443a255cc99b95599f566971807d07d59cb5a918ec861e85967944240bea0b2ba68973d4e9045da8a225582136141d290655445939
|
data/Gemfile
CHANGED
data/build
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
128
|
data/jcompiler.gemspec
CHANGED
data/lib/jcompiler/provider.rb
CHANGED
@@ -18,7 +18,7 @@ class Jcompiler::Provider
|
|
18
18
|
def array!(arg_src, &block)
|
19
19
|
item_name = block.parameters[0][1].to_s
|
20
20
|
src = block.call(nil)
|
21
|
-
%{"[\#{(#{arg_src}).map
|
21
|
+
%{"[\#{(#{arg_src}).map{|#{item_name}|#{src}}.join(',')}]"}
|
22
22
|
end
|
23
23
|
|
24
24
|
def number!(num)
|
@@ -35,6 +35,10 @@ class Jcompiler::Provider
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def partial!(obj_name)
|
39
|
+
|
40
|
+
end
|
41
|
+
|
38
42
|
def method_missing(name, *args, &block)
|
39
43
|
if block
|
40
44
|
@context << %{"\\"#{name}\\":\#{#{block.call}}"}
|
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.127
|
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-24 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
|