jpbuilder 0.2.2 → 0.2.4
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 +7 -0
- data/.gitignore +17 -0
- data/jpbuilder.gemspec +2 -2
- data/lib/jpbuilder-handler.rb +1 -0
- metadata +22 -23
- data/Gemfile.lock +0 -24
- data/jpbuilder-0.1.0.gem +0 -0
- data/pkg/jpbuilder-0.2.1.gem +0 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 8a1eca7d1f0f4bc6355522439294863f0f234275
|
|
4
|
+
data.tar.gz: e2c3c234c93968bb83b2575063751b4251211fe8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: bb2e15f39075e2aac0759c426342f99bb31849d778ef54a865328e2278232e8c2c858066b1302db9b5ac3100507ba2e12b9162593b83ba2dac5241e35b45536b
|
|
7
|
+
data.tar.gz: abb69d9a8c4a8c0a6f3f606a502d9238449c2a45916859f1d20b8127e0e92b55e7abc430ad877696da36bef94188829bfeb2233cf515d4e26f4b2adc94406c3c
|
data/.gitignore
ADDED
data/jpbuilder.gemspec
CHANGED
|
@@ -4,9 +4,9 @@ Gem::Specification.new do |gem|
|
|
|
4
4
|
gem.authors = ["Jason Webb"]
|
|
5
5
|
gem.email = ["bigjasonwebb@gmail.com"]
|
|
6
6
|
gem.summary = "A small template extension to add JSONP support to Jbuilder."
|
|
7
|
-
gem.version = "0.2.
|
|
7
|
+
gem.version = "0.2.4"
|
|
8
8
|
gem.homepage = "https://github.com/bigjason/jpbuilder"
|
|
9
|
-
gem.files =
|
|
9
|
+
gem.files = `git ls-files`.split("\n")
|
|
10
10
|
gem.name = "jpbuilder"
|
|
11
11
|
gem.require_paths = ["lib"]
|
|
12
12
|
|
data/lib/jpbuilder-handler.rb
CHANGED
|
@@ -13,6 +13,7 @@ class JPbuilderHandler
|
|
|
13
13
|
result = JbuilderTemplate.encode(self) do |json|
|
|
14
14
|
#{template.source}
|
|
15
15
|
end
|
|
16
|
+
result = result.each_char.to_a.map { |chr| chr.ord > 1000 ? "\\\\u\#{"%4.4x" % chr.ord}" : chr }.join
|
|
16
17
|
callback = params[:callback] || JPbuilderHandler.default_callback
|
|
17
18
|
if callback.present?
|
|
18
19
|
"\#{callback}(\#{result});"
|
metadata
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jpbuilder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.2.4
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Jason Webb
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: jbuilder
|
|
16
|
-
requirement:
|
|
17
|
-
none: false
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - '>='
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '0'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
25
27
|
description:
|
|
26
28
|
email:
|
|
27
29
|
- bigjasonwebb@gmail.com
|
|
@@ -29,38 +31,35 @@ executables: []
|
|
|
29
31
|
extensions: []
|
|
30
32
|
extra_rdoc_files: []
|
|
31
33
|
files:
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
- ./Rakefile
|
|
41
|
-
- ./README.md
|
|
34
|
+
- .gitignore
|
|
35
|
+
- Gemfile
|
|
36
|
+
- LICENSE
|
|
37
|
+
- README.md
|
|
38
|
+
- Rakefile
|
|
39
|
+
- jpbuilder.gemspec
|
|
40
|
+
- lib/jpbuilder-handler.rb
|
|
41
|
+
- lib/jpbuilder.rb
|
|
42
42
|
homepage: https://github.com/bigjason/jpbuilder
|
|
43
43
|
licenses: []
|
|
44
|
+
metadata: {}
|
|
44
45
|
post_install_message:
|
|
45
46
|
rdoc_options: []
|
|
46
47
|
require_paths:
|
|
47
48
|
- lib
|
|
48
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
50
|
requirements:
|
|
51
|
-
- -
|
|
51
|
+
- - '>='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '0'
|
|
54
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
|
-
none: false
|
|
56
55
|
requirements:
|
|
57
|
-
- -
|
|
56
|
+
- - '>='
|
|
58
57
|
- !ruby/object:Gem::Version
|
|
59
58
|
version: '0'
|
|
60
59
|
requirements: []
|
|
61
60
|
rubyforge_project:
|
|
62
|
-
rubygems_version:
|
|
61
|
+
rubygems_version: 2.0.3
|
|
63
62
|
signing_key:
|
|
64
|
-
specification_version:
|
|
63
|
+
specification_version: 4
|
|
65
64
|
summary: A small template extension to add JSONP support to Jbuilder.
|
|
66
65
|
test_files: []
|
data/Gemfile.lock
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
jpbuilder (0.2.1)
|
|
5
|
-
jbuilder
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
activesupport (3.2.6)
|
|
11
|
-
i18n (~> 0.6)
|
|
12
|
-
multi_json (~> 1.0)
|
|
13
|
-
blankslate (2.1.2.4)
|
|
14
|
-
i18n (0.6.0)
|
|
15
|
-
jbuilder (0.4.0)
|
|
16
|
-
activesupport (>= 3.0.0)
|
|
17
|
-
blankslate (>= 2.1.2.4)
|
|
18
|
-
multi_json (1.3.6)
|
|
19
|
-
|
|
20
|
-
PLATFORMS
|
|
21
|
-
ruby
|
|
22
|
-
|
|
23
|
-
DEPENDENCIES
|
|
24
|
-
jpbuilder!
|
data/jpbuilder-0.1.0.gem
DELETED
|
Binary file
|
data/pkg/jpbuilder-0.2.1.gem
DELETED
|
Binary file
|