response_mate 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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzI5Njg3MWQzNWU1NjI1ZjIwMzQyMDY2NTYyNzE0NzkzZjU0NWJkOA==
4
+ Yjk1Yzc3MWIwZDk1NDY3NjFjNDY0Yjk4NTBmZGQwOGYwYWE1ZGJiYw==
5
5
  data.tar.gz: !binary |-
6
- YTg5YjUwZjVhZmRhN2JlNWFhY2RkOTU4NjQ1MTFkMTM1MzVjODEyNw==
6
+ MWE3ZjdlMWMwMjY0NzIwZmY3ZDAzMDAxMWNkMDQ0MmM4ZTgxYWY2Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjljNzhjMjNhNjJjZTc1ZWY5YWQ0YWNiNDU5ODhiOTg5MjhiOGEwMDgxMzQ0
10
- NGVmYjQwYjg4ZmNmN2UxOTdmN2Y4YjY3YTNkNTQ1YTI3ZDQ4ZGUwYmQyY2I3
11
- YjY2MzA1N2RiZjM3NGQ5ZDg5OTJmNDU0Yzg5NWVmNTNlMmJiNzI=
9
+ YTAwYWE3M2IzY2MzYmZjYWQ4MWYwNDVkZGJlOTVlNGNiMjBkZWYzY2RkYWQ5
10
+ MzdiMTA2ZjBjNDI0NWZlNmZmZWQ5MmQyYjE3Y2RjMTA2MDc1NGRiZjAyYTYw
11
+ YWY0NTI3ZWZlNTE3ZjVmMzM3N2NjMDZlNWZjMjM4Yzc3NDBjNzg=
12
12
  data.tar.gz: !binary |-
13
- ZThjN2QzMmEwNzFiYzg5ZjE1M2FjMTk2ZGY1M2YxOTEwNzI5ZWI3N2FhNTli
14
- NjE0OWQyMTVkZmUwODQ1M2QwNzU1NDJiM2RhZmRlZTEyOWFmNDc0YmNlMzE5
15
- ZTUwNThmMzBmMGVhNGJkYzE0MjlkMGM2NGI4OWJkMTVmZjUzYmM=
13
+ NmYwMzA4MTQ2MDIwMGUzNDZmNGY5YWI1ZWVmNzdhYzcyYzdlZmFkZDlkMjFh
14
+ MGMzNjg2ZjBjYWY4MGQ2MzRlOGE1M2QwMzliZTExYTQ4Mjk4M2VjYmI2Y2Q3
15
+ OTI0NGEzN2Y5YWFhM2NiZTY4NDY1MTEyMzIzODBiNDk1MmJmM2Y=
@@ -25,7 +25,7 @@ module ResponseMate::Exporters
25
25
  def build_structure
26
26
  out.merge!(
27
27
  id: SecureRandom.uuid,
28
- name: 'latest_export',
28
+ name: manifest.name,
29
29
  requests: [],
30
30
  order: [],
31
31
  timestamp: Time.now.to_i
@@ -4,13 +4,12 @@ class ResponseMate::Manifest
4
4
  include ResponseMate::ManifestParser
5
5
 
6
6
  attr_accessor :filename, :requests, :requests_text, :base_url, :oauth,
7
- :default_headers, :environment
7
+ :default_headers, :environment, :name
8
8
 
9
9
  def initialize(filename, environment = nil)
10
10
  @filename = filename || ResponseMate.configuration.requests_manifest
11
11
  @oauth = ResponseMate::Oauth.new
12
12
  @environment = environment
13
- @default_header
14
13
  parse
15
14
  end
16
15
 
@@ -31,6 +30,7 @@ class ResponseMate::Manifest
31
30
  @base_url = @request_hashes['base_url']
32
31
  @requests = @request_hashes['requests'].map { |rh| ResponseMate::Request.new(rh) }
33
32
  @default_headers = @request_hashes['default_headers']
33
+ @name = @request_hashes['name'] || filename
34
34
  end
35
35
 
36
36
  class << self
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module ResponseMate
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: response_mate
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
  - Dimitris Zorbas