padrino-multi-json 0.0.2 → 0.0.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.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg/*
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source :rubygems
2
2
 
3
3
  gem 'multi_json'
4
- gem 'padrino-core'
4
+ gem 'padrino-core', ">= 0.10.7"
5
5
 
6
6
  group :test do
7
7
  gem 'rspec'
data/Gemfile.lock CHANGED
@@ -42,6 +42,6 @@ PLATFORMS
42
42
 
43
43
  DEPENDENCIES
44
44
  multi_json
45
- padrino-core
45
+ padrino-core (>= 0.10.7)
46
46
  rake
47
47
  rspec
data/README.md CHANGED
@@ -1,4 +1,23 @@
1
- padrino-json
1
+ Padrino Multi-JSON
2
2
  ============
3
3
 
4
- Padrino-json
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
- class << self
4
- def included(base)
5
- base.send(:include, InstanceMethods)
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
@@ -1,3 +1,3 @@
1
1
  module PadrinoJson
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -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-contrib"
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.2
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: 3709537927680582137
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-contrib
53
+ rubyforge_project: padrino-multi-json
54
54
  rubygems_version: 1.8.25
55
55
  signing_key:
56
56
  specification_version: 3
Binary file