mustache_json 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.gitignore +0 -1
  2. data/README.rdoc +12 -0
  3. data/VERSION +1 -1
  4. data/mustache_json.gemspec +62 -0
  5. metadata +2 -1
data/.gitignore CHANGED
@@ -17,6 +17,5 @@ tmtags
17
17
  coverage
18
18
  rdoc
19
19
  pkg
20
- *.gemspec
21
20
 
22
21
  ## PROJECT::SPECIFIC
data/README.rdoc CHANGED
@@ -46,6 +46,18 @@ It's a simple addition to Mustache but provides some powerful functionality
46
46
  toward views that can be rendered either server-side (in Ruby) or client-side
47
47
  (in Javascript).
48
48
 
49
+ == Swappable JSON Backends
50
+
51
+ This library doesn't depend on any specific JSON library and is instead built
52
+ to be able to have a swappable JSON encoding back-end. Back-ends are settable
53
+ by calling <tt>Mustache::JSON.backend = :new_backend</tt>. Currently it defaults
54
+ to the JSON gem but the following back-ends are available:
55
+
56
+ * JSON Gem (<tt>:json</tt>)
57
+ * JSON Pure (<tt>:json_pure</tt>)
58
+ * ActiveSupport (<tt>:active_support</tt>)
59
+ * YAJL Ruby (<tt>:yajl</tt>)
60
+
49
61
  == Note on Patches/Pull Requests
50
62
 
51
63
  * Fork the project.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -0,0 +1,62 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{mustache_json}
8
+ s.version = "0.0.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Michael Bleigh"]
12
+ s.date = %q{2010-01-21}
13
+ s.description = %q{Easily serialize Mustaches to JSON.}
14
+ s.email = %q{michael@intridea.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/mustache/json/backends/active_support.rb",
27
+ "lib/mustache/json/backends/json_gem.rb",
28
+ "lib/mustache/json/backends/json_pure.rb",
29
+ "lib/mustache/json/backends/yajl.rb",
30
+ "lib/mustache_json.rb",
31
+ "mustache_json.gemspec",
32
+ "spec/mustache_json_spec.rb",
33
+ "spec/spec.opts",
34
+ "spec/spec_helper.rb"
35
+ ]
36
+ s.homepage = %q{http://github.com/mbleigh/mustache-json}
37
+ s.rdoc_options = ["--charset=UTF-8"]
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = %q{1.3.5}
40
+ s.summary = %q{Easily serialize Mustaches to JSON.}
41
+ s.test_files = [
42
+ "spec/mustache_json_spec.rb",
43
+ "spec/spec_helper.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 3
49
+
50
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
+ s.add_runtime_dependency(%q<mustache>, [">= 0"])
52
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
53
+ else
54
+ s.add_dependency(%q<mustache>, [">= 0"])
55
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<mustache>, [">= 0"])
59
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
60
+ end
61
+ end
62
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustache_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -53,6 +53,7 @@ files:
53
53
  - lib/mustache/json/backends/json_pure.rb
54
54
  - lib/mustache/json/backends/yajl.rb
55
55
  - lib/mustache_json.rb
56
+ - mustache_json.gemspec
56
57
  - spec/mustache_json_spec.rb
57
58
  - spec/spec.opts
58
59
  - spec/spec_helper.rb