padrino-multi-json 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +21 -2
- data/lib/padrino-multi-json/padrino-multi-json.rb +3 -11
- data/lib/padrino-multi-json/version.rb +1 -1
- data/padrino-multi-json.gemspec +1 -1
- metadata +4 -4
- data/pkg/padrino-multi-json-0.0.2.gem +0 -0
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/*
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,23 @@
|
|
1
|
-
|
1
|
+
Padrino Multi-JSON
|
2
2
|
============
|
3
3
|
|
4
|
-
|
4
|
+
##Why?
|
5
|
+
padrino-multi-json gem uses the abstract functionality provided by the [multi_json](https://github.com/intridea/multi_json). This gives the flexability of changing JSON libraries without making changes.
|
6
|
+
|
7
|
+
##Install
|
8
|
+
````
|
9
|
+
gem 'padrino-multi-json'
|
10
|
+
````
|
11
|
+
|
12
|
+
|
13
|
+
##Usage
|
14
|
+
````Ruby
|
15
|
+
MySampleApp.controllers do
|
16
|
+
get :index do
|
17
|
+
json :foo => 'bar'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
````
|
22
|
+
|
23
|
+
will render the string {"foo":"bar"}
|
@@ -1,15 +1,7 @@
|
|
1
1
|
module Padrino
|
2
2
|
module Json
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
end
|
7
|
-
end #class
|
8
|
-
|
9
|
-
module InstanceMethods
|
10
|
-
def json(*args)
|
11
|
-
MultiJson.dump(*args)
|
12
|
-
end
|
13
|
-
end
|
3
|
+
def json(*args)
|
4
|
+
MultiJson.dump(*args)
|
5
|
+
end
|
14
6
|
end #Json
|
15
7
|
end #padrino
|
data/padrino-multi-json.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.email = 'ortuna@gmail.com'
|
13
13
|
s.homepage = 'http://rubygems.org/gems/padrino-multi-json'
|
14
14
|
|
15
|
-
s.rubyforge_project = "padrino-
|
15
|
+
s.rubyforge_project = "padrino-multi-json"
|
16
16
|
|
17
17
|
s.files = `git ls-files`.split("\n")
|
18
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-multi-json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- .gitignore
|
20
21
|
- Gemfile
|
21
22
|
- Gemfile.lock
|
22
23
|
- README.md
|
@@ -25,7 +26,6 @@ files:
|
|
25
26
|
- lib/padrino-multi-json/padrino-multi-json.rb
|
26
27
|
- lib/padrino-multi-json/version.rb
|
27
28
|
- padrino-multi-json.gemspec
|
28
|
-
- pkg/padrino-multi-json-0.0.2.gem
|
29
29
|
- spec/json_spec.rb
|
30
30
|
- spec/spec_helper.rb
|
31
31
|
homepage: http://rubygems.org/gems/padrino-multi-json
|
@@ -42,7 +42,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
42
42
|
version: '0'
|
43
43
|
segments:
|
44
44
|
- 0
|
45
|
-
hash:
|
45
|
+
hash: -2971480183370671854
|
46
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
47
|
none: false
|
48
48
|
requirements:
|
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '0'
|
52
52
|
requirements: []
|
53
|
-
rubyforge_project: padrino-
|
53
|
+
rubyforge_project: padrino-multi-json
|
54
54
|
rubygems_version: 1.8.25
|
55
55
|
signing_key:
|
56
56
|
specification_version: 3
|
Binary file
|