json_builder 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/json_builder/compiler.rb +3 -3
- data/lib/json_builder/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -44,9 +44,9 @@ module JSONBuilder
|
|
44
44
|
# Returns instance of JSONBuilder::Compiler.
|
45
45
|
def initialize(options={})
|
46
46
|
@_members = []
|
47
|
-
@_scope = options
|
48
|
-
@_callback = options
|
49
|
-
@_pretty_print = options
|
47
|
+
@_scope = options.fetch(:scope, nil)
|
48
|
+
@_callback = options.fetch(:callback, true)
|
49
|
+
@_pretty_print = options.fetch(:pretty, false)
|
50
50
|
|
51
51
|
# Only copy instance variables if there is a scope and presence of Rails
|
52
52
|
copy_instance_variables_from(@_scope) if @_scope
|
data/lib/json_builder/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: json_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.1.
|
5
|
+
version: 3.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Garrett Bjerkhoel
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-07-01 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
hash:
|
83
|
+
hash: -2873359075764623678
|
84
84
|
segments:
|
85
85
|
- 0
|
86
86
|
version: "0"
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements:
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
hash:
|
92
|
+
hash: -2873359075764623678
|
93
93
|
segments:
|
94
94
|
- 0
|
95
95
|
version: "0"
|