fog-json 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9f03dc26da6edab121ae034987776a075d4ddb1f
4
- data.tar.gz: 17352341453ac628e94c233b726a48568bd4001a
2
+ SHA256:
3
+ metadata.gz: e3d00f347eebccec51b0ecab86f1ab8bd04ee4ac5526a2ebf761bd3ff673219f
4
+ data.tar.gz: 1f873ce824f0f34c174610291287a4f3cf01ec87c47070aba8f972bc2133f26d
5
5
  SHA512:
6
- metadata.gz: aa0e84e21ba00d1ec6959ac233b659c89fa37eac8f432a68c7224dcf8d983448e8e636a0c2e47a1e41718cbdd034d079e9cc578640afe5e8a088d42e082eafdd
7
- data.tar.gz: 4c62a352d36ce787074695437f220db71b8eafb7d9c22d081c61327ed75b8ffd3c6a44bb31d33482ffa7cf25e955f4bddb410efde12ba7887b04b35094da5c35
6
+ metadata.gz: c2f488a596645be862ea7eae720c5fe5a5acf754374089611dbb07d1a48772d81a5953feb5dc6b198499bea50cdbd2bbc0245a1e3635ca92f538972114a7f700
7
+ data.tar.gz: 8a059a619feadb79b1b7e2fdaa50c737059de3d9908b2b4f8b63308cf5108bb0963b4fea653bd33be263ca9f46a53adc6de76810a3e76bfbeff731de9e6d5bce
@@ -0,0 +1 @@
1
+ fog-json
@@ -0,0 +1 @@
1
+ 2.4.3
@@ -2,15 +2,9 @@ language: ruby
2
2
 
3
3
  matrix:
4
4
  include:
5
- - rvm: 1.8.7
6
- gemfile: gemfiles/Gemfile-1.8.7
7
- - rvm: jruby-18mode
8
- gemfile: gemfiles/Gemfile-1.8.7
9
- - rvm: 1.9.3
10
- gemfile: Gemfile
11
- - rvm: jruby-19mode
12
- gemfile: Gemfile
13
- - rvm: 2.0.0
14
- gemfile: Gemfile
15
- - rvm: 2.1.0
16
- gemfile: Gemfile
5
+ - rvm: 2.0
6
+ - rvm: 2.1
7
+ - rvm: 2.2
8
+ - rvm: 2.3
9
+ - rvm: 2.4
10
+ - rvm: 2.5
@@ -1,3 +1,9 @@
1
+ v1.2.0
2
+
3
+ * Fix time parsing issue
4
+ * Remove duplicated software licence
5
+ * Remove `fog-core` version dependency
6
+
1
7
  v1.1.0
2
8
 
3
9
  * bump fog-core dependency
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "fog-core", "~> 2.0"
22
+ spec.add_dependency "fog-core"
23
23
  spec.add_dependency "multi_json", "~> 1.10"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.5"
@@ -22,7 +22,7 @@ module Fog
22
22
  when Hash
23
23
  data.each { |key, value| data[key] = sanitize(value) }
24
24
  when ::Time
25
- data.strftime("%Y-%m-%dT%H:%M:%SZ")
25
+ data.strftime("%Y-%m-%dT%H:%M:%S%:z")
26
26
  else
27
27
  data
28
28
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Json
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -8,19 +8,19 @@ class TestJSONSanitizing < Minitest::Test
8
8
 
9
9
  def test_sanitize_with_array
10
10
  @data = [@time]
11
- @expected = ["2014-02-14T12:34:56Z"]
11
+ @expected = ["2014-02-14T12:34:56+00:00"]
12
12
  assert_equal @expected, Fog::JSON.sanitize(@data)
13
13
  end
14
14
 
15
15
  def test_sanitize_with_hash
16
16
  @data = { "key" => @time }
17
- @expected = { "key" => "2014-02-14T12:34:56Z" }
17
+ @expected = { "key" => "2014-02-14T12:34:56+00:00" }
18
18
  assert_equal @expected, Fog::JSON.sanitize(@data)
19
19
  end
20
20
 
21
21
  def test_sanitize_with_time
22
22
  @data = @time
23
- @expected = "2014-02-14T12:34:56Z"
23
+ @expected = "2014-02-14T12:34:56+00:00"
24
24
  assert_equal @expected, Fog::JSON.sanitize(@data)
25
25
  end
26
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary (geemus)
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-01-08 00:00:00.000000000 Z
13
+ date: 2018-06-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog-core
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '2.0'
21
+ version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '2.0'
28
+ version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: multi_json
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -93,17 +93,17 @@ extensions: []
93
93
  extra_rdoc_files: []
94
94
  files:
95
95
  - ".gitignore"
96
+ - ".ruby-gemset"
97
+ - ".ruby-version"
96
98
  - ".travis.yml"
97
99
  - CHANGELOG.md
98
100
  - CONTRIBUTING.md
99
101
  - CONTRIBUTORS.md
100
102
  - Gemfile
101
103
  - LICENSE.md
102
- - LICENSE.txt
103
104
  - README.md
104
105
  - Rakefile
105
106
  - fog-json.gemspec
106
- - gemfiles/Gemfile-1.8.7
107
107
  - lib/fog/json.rb
108
108
  - lib/fog/json/version.rb
109
109
  - test/json_decode_test.rb
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.6.13
132
+ rubygems_version: 2.7.6
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: JSON parsing for fog providers
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 Wes Beary
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "rake", "~> 10.1.0"
4
- gem "mime-types", "~>1.16"
5
- gemspec :path => ".."