kucodiff 0.2.1 → 0.3.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: cc7a9fee577353c9b0d12160b0a00cc6f8b6325a
4
- data.tar.gz: 81cda8035f50ca59908f88064fe3b7f273128679
2
+ SHA256:
3
+ metadata.gz: 7ee341354f388e8f3ec330e0a6bdfb8932f930cc22002abeba9231f907ec2757
4
+ data.tar.gz: 95373625d0a01aaebc3f2b4ad8a0993f1dfc05069def44e478d566f037221b4c
5
5
  SHA512:
6
- metadata.gz: f18b565c6e64ccc715de6a87b24bd48592cff258b234f0b829c2906bc010759dfc39c9f1ac27c3ed7807f229159b47606ca82811dd8ed5301aa2b539dfbb2888
7
- data.tar.gz: 4f1a87766ba6afe954bd774266d9b26217efa76e29622b174587f6793af1371d16f170ec28c18d4a1b91956ed581e66cacc158fe12235195ea19f067856a2ab9
6
+ metadata.gz: 246489f2d7f29fee218a1b6924143b736945092e343f91a09e2bcd3a6cdadebb4de875102c74f7c44c9343ee9b58d0b8a8474068604b7c8db99e787bd4584686
7
+ data.tar.gz: 3ada56f41b856de3ffc0a0e260e5881d53d41c08d77826313ef1ddfd48273fe3ac061cff0d3be0c72ea1c7d81af5cce51c7506a0106e8f23bf463d54ed74d58c
@@ -31,10 +31,16 @@ module Kucodiff
31
31
  private
32
32
 
33
33
  def read(file)
34
- content = if file.end_with?('.yml', '.yaml')
35
- YAML.load_stream(File.read(file), file) # TODO: test need for stream
36
- else raise ArgumentError, "unknown file format in #{file}"
37
- end.first
34
+ content =
35
+ if file.end_with?('.yml', '.yaml')
36
+ if RUBY_VERSION >= "2.6.0"
37
+ YAML.load_stream(File.read(file), filename: file) # uncovered
38
+ else
39
+ YAML.load_stream(File.read(file), file) # uncovered
40
+ end
41
+ else
42
+ raise ArgumentError, "unknown file format in #{file}"
43
+ end.first
38
44
 
39
45
  hashify_container_env!(content)
40
46
  hashify_required_env!(content)
@@ -1,3 +1,3 @@
1
1
  module Kucodiff
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kucodiff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-30 00:00:00.000000000 Z
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it
@@ -31,15 +31,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 2.1.0
34
+ version: 2.5.0
35
35
  required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubyforge_project:
42
- rubygems_version: 2.5.1
41
+ rubygems_version: 3.1.3
43
42
  signing_key:
44
43
  specification_version: 4
45
44
  summary: Smart diff for kubernetes configs to ensure symmetric configuration