newman_scenario 0.1.6 → 0.1.7

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: c213b8c5c799f94a94b07f58566bd80ff286e82a29e0039886130e959a1766d2
4
- data.tar.gz: 0bb8e1b0faa893e7b33545af730afb8884922eed2a6ab6844cb3b2107f5bd74c
3
+ metadata.gz: db3fa867f95474727ab64c32b64744342f43da5a3c02e4777615e8f75beca6f6
4
+ data.tar.gz: 7b601be5b0d553f6f8f3e5a589f2906b356bf46b58a09086427fde649e02b7ac
5
5
  SHA512:
6
- metadata.gz: 6af56a38ae222f7a6638929a3c317ced189edc688ba16664be00a8d4cbde44a7ac38005a30d832d339944cdf72fb958b10e4c98422435550144cf4c2dccbd8f4
7
- data.tar.gz: e7ec6f73e8c84df0239153e2ed3ea734fa176fab0b0cd8a8542ac6162bf06bddd88b75ad45cdf6a403e624058b8179d71a7abc94f8af494cf08883ce06f94c59
6
+ metadata.gz: bc27fe0cbd9cdd3d3f1db8ac681086df3e31b02804e562115e012b7a09897018359ad7e3013bf2e843e36597c9c84ee0c44560267a80b3e91da440ccc3c950ed
7
+ data.tar.gz: 38ff362376ffb4e7ba2c169a5794fcf62293ececeaca01a4d8123d821b9ef5e6ea27c1d22283e68fc779a9d0cf93122939e97e035dc9085c94dfdbf9cf266405
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- newman_scenario (0.1.6)
4
+ newman_scenario (0.1.7)
5
5
  dotenv (= 2.7.5)
6
6
  httparty (= 0.16.2)
7
7
  thor (= 1.0.1)
@@ -44,7 +44,7 @@ module NewmanScenario
44
44
  unless self.default_environments
45
45
  environments ||= fetch_postman('/environments', api_key: self.default_api_key).parsed_response&.fetch('environments', nil) || []
46
46
  environments = environments.map { |environment| environment.slice('name', 'id').values }.to_h
47
- environment_ids = prompt.multi_select('Postman Collection', environments)
47
+ environment_ids = prompt.multi_select('Environment', environments)
48
48
  self.default_environments = environments.select { |_, id| environment_ids.include?(id) }
49
49
  end
50
50
  self.default_custom_scenarios_file_path = default_custom_scenarios_file_path || prompt.ask('Custom scenarios file path:', value: DEFAULT_CUSTOM_SCENARIOS_FILE_PATH)
@@ -184,7 +184,7 @@ module NewmanScenario
184
184
  }
185
185
  write_to_json_file(last_scenario_file_path, new_collection)
186
186
  end
187
- puts cmd("newman run #{last_scenario_file_path} -e /tmp/postman-environment-#{environment}.json#{bail ? ' --bail' : ''}")
187
+ exec("newman run #{last_scenario_file_path} -e /tmp/postman-environment-#{environment}.json#{bail ? ' --bail' : ''}")
188
188
  end
189
189
 
190
190
  private
@@ -1,3 +1,3 @@
1
1
  module NewmanScenario
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugues Bernet-Rollande