anmo 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
data/lib/anmo.rb CHANGED
@@ -27,7 +27,7 @@ module Anmo
27
27
  end
28
28
 
29
29
  def self.delete_all
30
- HTTParty.put("#{server}/__DELETE_ALL_OBJECTS__")
30
+ HTTParty.post("#{server}/__DELETE_ALL_OBJECTS__")
31
31
  end
32
32
 
33
33
  def self.requests
@@ -36,7 +36,7 @@ module Anmo
36
36
  end
37
37
 
38
38
  def self.delete_all_requests
39
- HTTParty.get("#{server}/__DELETE_ALL_REQUESTS__")
39
+ HTTParty.post("#{server}/__DELETE_ALL_REQUESTS__")
40
40
  end
41
41
 
42
42
  def self.stored_objects
data/lib/anmo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Anmo
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
@@ -71,7 +71,7 @@ module Anmo
71
71
  get "/this/is/the/path.object"
72
72
  first_response = last_response
73
73
 
74
- put "__DELETE_ALL_OBJECTS__"
74
+ post "__DELETE_ALL_OBJECTS__"
75
75
  assert_equal 200, last_response.status
76
76
 
77
77
  get "/this/is/the/path.object"
@@ -129,7 +129,7 @@ module Anmo
129
129
 
130
130
  def test_does_not_store_create_or_delete_requests
131
131
  save_object "/oh/hai", "the first content", nil, nil, nil
132
- put "__DELETE_ALL_OBJECTS__"
132
+ post "__DELETE_ALL_OBJECTS__"
133
133
  get "/__REQUESTS__"
134
134
  json = JSON.parse(last_response.body)
135
135
  assert_equal 0, json.size
@@ -148,7 +148,7 @@ module Anmo
148
148
  get "/__REQUESTS__"
149
149
  json = JSON.parse(last_response.body)
150
150
  assert_equal 1, json.size
151
- get "/__DELETE_ALL_REQUESTS__"
151
+ post "/__DELETE_ALL_REQUESTS__"
152
152
  get "/__REQUESTS__"
153
153
  json = JSON.parse(last_response.body)
154
154
  assert_equal 0, json.size
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anmo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: