fanforce 0.4.3 → 0.4.4

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.
@@ -19,7 +19,8 @@ class Fanforce
19
19
  end
20
20
 
21
21
  def curl_command
22
- case @request.send(:method)
22
+ method = begin @request.method rescue nil end
23
+ case method
23
24
  when :get
24
25
  "curl \"#{@path}?#{to_param(@query_params)}\""
25
26
  when :post
@@ -29,7 +30,7 @@ class Fanforce
29
30
  when :delete
30
31
  "curl --request DELETE \"#{@path}?#{to_param(@query_params)}\""
31
32
  else
32
- "Could not create curl command because request method was unknown: #{@request.send(:method)}"
33
+ "Unknown request method so used POST: curl -X POST -d \"#{to_param(@query_params)}\" #{@path}"
33
34
  end
34
35
  end
35
36
  def code() end
@@ -1,3 +1,3 @@
1
1
  class Fanforce
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: