newman_scenario 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 14c803747f22b3308cf01a4ba0cdfe32775f9c2bb4f092c5643fa87be92254e8
4
- data.tar.gz: 843485ee76598e801da49c4427528e578de2737ed6432597767c91f6ef0a503f
3
+ metadata.gz: aa50eb494413b352c5a29e98e207642c9191507d061bcc729d817a70312f8fb0
4
+ data.tar.gz: c232e1f300a04d31e8b1be11dcf9c20f28375a5de57a646f2b21367e40a9da76
5
5
  SHA512:
6
- metadata.gz: 61a856cccf0087a17c698d7753248b5a98f3ae467355cbc14041e26b944224e196750a7939eca75a164ce08634c4cd9af0e6b9328b6f5a9812e61a183f2cf9c7
7
- data.tar.gz: 50765398bc9568cbeffbc7eb55e33c15735bf2c16a7a1be1994bb528080d8dcaa7a5fce0cbdc345a54ba1b5e669712ed489d8c3d717d1138e046cc4044294a78
6
+ metadata.gz: 5dddcff377a52b00a5be5ae36d600c1ed09a7e33bca393ef2155735aa4fef2689d17d84489143a6f9208eb241b8928e7d40334f6ca1de5787c28f7e28b4dd06a
7
+ data.tar.gz: 533b527e88c840d88dc02388482fef9af747f801f9ae73505b8e3ea0a53a7287a89cb2dda6a8db16f40e5c300cd863687b119ef81d694efddc352075a210e319
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- newman_scenario (0.1.4)
4
+ newman_scenario (0.1.5)
5
5
  dotenv (= 2.7.5)
6
6
  httparty (= 0.16.2)
7
7
  thor (= 1.0.1)
@@ -57,7 +57,12 @@ module NewmanScenario
57
57
  NEWMAN_SCENARIO_CUSTOM_COLLECTION_FILE_PATH: self.default_custom_scenarios_file_path,
58
58
  NEWMAN_SCENARIO_LAST_SCENARIO_FILE_PATH: self.default_last_scenario_file_path,
59
59
  }
60
- existing_lines = File.readlines(env_path).reject { |line| envs.keys.include?(line.split(':').first.to_sym) }
60
+ existing_lines = []
61
+ if File.exists?(env_path)
62
+ existing_lines = File.readlines(env_path).reject { |line| envs.keys.include?(line.split(':').first.to_sym) }
63
+ else
64
+ existing_lines = []
65
+ end
61
66
  File.open(env_path, 'w+') do |file|
62
67
  existing_lines.each { |line| file.puts line }
63
68
  file.puts "POSTMAN_API_KEY: #{self.default_api_key}"
@@ -1,3 +1,3 @@
1
1
  module NewmanScenario
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newman_scenario
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugues Bernet-Rollande