hdcore 0.0.6 → 0.0.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.
@@ -10,7 +10,7 @@ module Hdcore
10
10
  # @return [HTTParty::Response]
11
11
  def call(action, params = {})
12
12
  init()
13
- self.get("/call/api_action/#{action}/format/json/", query_string(action, params))
13
+ self.post("/call/api_action/#{action}/format/json/", query_string(action, params))
14
14
  end
15
15
 
16
16
  private
@@ -1,3 +1,3 @@
1
1
  module Hdcore
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -3,11 +3,11 @@ require 'spec_helper'
3
3
  describe Hdcore::Request do
4
4
 
5
5
  describe '.call' do
6
- it 'initializes and sends GET request to API endpoint' do
6
+ it 'initializes and sends POST request to API endpoint' do
7
7
  test_action = 'some.action'
8
8
  Hdcore::Request.stub(:query_string).and_return(params = {:some => 'params'})
9
9
  Hdcore::Request.should_receive(:init)
10
- Hdcore::Request.should_receive(:get).with("/call/api_action/#{test_action}/format/json/", params)
10
+ Hdcore::Request.should_receive(:post).with("/call/api_action/#{test_action}/format/json/", params)
11
11
  Hdcore::Request.call(test_action, {})
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hdcore
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ethan Pemble
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-05-10 00:00:00 Z
18
+ date: 2013-05-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler