ruby-jmeter 2.11.21 → 2.11.22

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
2
  SHA1:
3
- metadata.gz: 0117119d62b9cf1fcc94d963cfb5a857d3d57e30
4
- data.tar.gz: 80a32010847a48c985738b9f09cef937cea0def7
3
+ metadata.gz: 68e301f31262dfb9129498847eba6cd247e7fe93
4
+ data.tar.gz: 3dcb2db15dfe29b67d2105a7db5f79de639af842
5
5
  SHA512:
6
- metadata.gz: d8fa2f5b80e4284f1993a978b46658946b97901281dc0093f57ecc1ecc298cd31f36c149f3a69a8453ae035a037b5cd5b50f79e3785faab3b3992387a7753b51
7
- data.tar.gz: f2d2683d097a4e21c67a9be728bd3dbea3d7c1df46e6e2f595e46b1340a356547b70cb33785a2912347db051e8b933ffc07aa0fc6939ce541520382c72386bd6
6
+ metadata.gz: 81f91caf123404553407eb43ce589e5b690300357aebc9b57d6e822064ef1d1bbbdefff4ebd11036d88525b92e8d879c42d12fa021d780151c4eb83b82e31959
7
+ data.tar.gz: 16f2c2973e291fe9574401514819667cb376bf0bec0f7c1776042a8eb18c1840e926397d7e9e939f20dd6a17fc5f7279b74980f9756150842315f96b6c32000d
@@ -518,8 +518,12 @@ module RubyJmeter
518
518
 
519
519
  flood_files = {
520
520
  file: File.new("#{file.path}", 'rb')
521
- }.merge(Hash[params[:files].map.with_index { |value, index| [index, File.new(value, 'rb')] }])
522
- params.delete(:files)
521
+ }
522
+
523
+ if params[:files]
524
+ flood_files.merge!(Hash[params[:files].map.with_index { |value, index| [index, File.new(value, 'rb')] }])
525
+ params.delete(:files)
526
+ end
523
527
 
524
528
  response = RestClient.post "#{params[:endpoint] ? params[:endpoint] : 'https://api.flood.io'}/floods?auth_token=#{token}",
525
529
  {
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = "2.11.21"
2
+ VERSION = "2.11.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.21
4
+ version: 2.11.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client