jmespath 1.2.2 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea227ba7f5a217cfd83cfd2284696554284d4bcb
4
- data.tar.gz: d1cdbde7824a3d0e6aa8c3d8719df5b35c7f5aa8
3
+ metadata.gz: 185fbf24c997285ff86f8bbf1ebdff0e1f9aa5ed
4
+ data.tar.gz: 49628c93d203434208acec43ffa25d7ef637b328
5
5
  SHA512:
6
- metadata.gz: a512789b170dfd74a9b26dbe9128d9a01cf9f85169ecc3271cf7d3d03fb1f04abf51eeae063b9ceae85796586646914446cd1f0bbc431ad4ec562dd86bcadf3d
7
- data.tar.gz: c3a1bc0f0914805ef16f051e1156d73ab12de55f2fcc0aec901e9eea67848c991b42528be0a04fef99824e1039d9e202a29641e0bec4f50a54483fd5d7b0f03d
6
+ metadata.gz: 847881aa1facda01a79d9afa49217710bb03f38c75665dd56ab1f66b21dbec453fadb2fcf53814bc3713a3249088f8019f8adee798cd7a5af5282d074da3aa86
7
+ data.tar.gz: 43fdb69602df14a982c3220f1a905be5972c4da7d0c913562ea5fcf407c806d03de70092d7384dcf02e59778507c41e1e59116019aa5b01354e1428e5b397e39
@@ -1,12 +1,16 @@
1
- begin
2
- # Attempt to load the native version if available, not availble
3
- # by default for Ruby 1.9.3.
4
- gem('json', '>= 1.8.1')
5
- require 'json/ext'
6
- rescue Gem::LoadError
7
- # Fallback on the json_pure gem dependency.
8
- gem('json_pure', '>= 1.8.1')
9
- require 'json/pure'
1
+ if Object.const_defined?(:JSON) && JSON::VERSION < '1.8.1'
2
+ warn("WARNING: jmespath gem requires json gem >= 1.8.1; json #{JSON::VERSION} already loaded")
3
+ else
4
+ begin
5
+ # Attempt to load the native version if available, not availble
6
+ # by default for Ruby 1.9.3.
7
+ gem('json', '>= 1.8.1')
8
+ require 'json/ext'
9
+ rescue Gem::LoadError
10
+ # Fallback on the json_pure gem dependency.
11
+ gem('json_pure', '>= 1.8.1')
12
+ require 'json/pure'
13
+ end
10
14
  end
11
15
 
12
16
  require 'stringio'
@@ -28,7 +32,6 @@ module JMESPath
28
32
 
29
33
  class << self
30
34
 
31
-
32
35
  # @param [String] expression A valid
33
36
  # [JMESPath](https://github.com/boto/jmespath) expression.
34
37
  # @param [Hash] data
@@ -1,3 +1,3 @@
1
1
  module JMESPath
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jmespath
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Rowe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure