json_builder 3.1.3 → 3.1.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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json_builder (3.1.3)
4
+ json_builder (3.1.4)
5
5
  activesupport (>= 2.0.0)
6
6
 
7
7
  GEM
@@ -44,9 +44,9 @@ module JSONBuilder
44
44
  # Returns instance of JSONBuilder::Compiler.
45
45
  def initialize(options={})
46
46
  @_members = []
47
- @_scope = options[:scope]
48
- @_callback = options[:callback] || true
49
- @_pretty_print = options[:pretty] || false
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
@@ -1,3 +1,3 @@
1
1
  module JSONBuilder
2
- VERSION = '3.1.3'
2
+ VERSION = '3.1.4'
3
3
  end
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.3
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-05-24 00:00:00 Z
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: 4467735550645950409
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: 4467735550645950409
92
+ hash: -2873359075764623678
93
93
  segments:
94
94
  - 0
95
95
  version: "0"