hdcore 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjUyZDFhZTBiYmNjMGRjMTFiODVlNGQ0MzFiMWRkYjhjMzhjYjdjYg==
5
+ data.tar.gz: !binary |-
6
+ ODJlMjFlYzUzNDlmNjBlZjU0ZmY3OTEzYTQzZmFlMjczNWVkMWQ2NA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NTEwYmQ2NTJjMDBkY2QzNDczOGM5Mzk4NjViNjFlN2NlNmU4YWM0YjEyZTZi
10
+ MWI0NzRhNmQ5YmZkMDdlNzlmYzJiZjBhMTI5MDU3MjFhMTgwMzNhMjMyZWFh
11
+ ZjM0NGE4YmRjODcwYmNkNGExYjliZTE0MmRmMGI5NmM3MTcwNmM=
12
+ data.tar.gz: !binary |-
13
+ M2U3MzM0Mzc3MzVlZGMwZTUxYTQ1NzBmMDcxYzdlZTRmMzc1NTJiZTcxZDZj
14
+ YTY3YzExMjNmYzU4NGRiNDliMWQzYmM5NmVkZWVhNmUzOGQzOTdmZmZlYTNk
15
+ ZWUwMzk1N2RmNTk1ZjMxMjg5ZmE4NjhkZjRiOThhNjg0ZWNmYTY=
data/lib/hdcore/hdcore.rb CHANGED
@@ -4,7 +4,7 @@ module Hdcore
4
4
 
5
5
  # Default configuration values
6
6
  @config = {
7
- :api_endpoint => 'https://core.hostdime.com/api/v1',
7
+ :api_endpoint => 'https://api.hostdime.com/v1',
8
8
  :public_key => nil,
9
9
  :private_key => nil
10
10
  }
@@ -10,7 +10,7 @@ module Hdcore
10
10
  # @return [HTTParty::Response]
11
11
  def call(action, params = {})
12
12
  init()
13
- self.post("/call/api_action/#{action}/format/json/", query_string(action, params))
13
+ self.post("/#{action.gsub('.','/')}.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.7"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -7,8 +7,8 @@ describe Hdcore do
7
7
  Hdcore.config.keys.should == [:api_endpoint, :public_key, :private_key]
8
8
  end
9
9
 
10
- it 'returns default [:api_endpoint] => "https://core.hostdime.com/api/v1"' do
11
- Hdcore.config[:api_endpoint].should == 'https://core.hostdime.com/api/v1'
10
+ it 'returns default [:api_endpoint] => "https://api.hostdime.com/v1"' do
11
+ Hdcore.config[:api_endpoint].should == 'https://api.hostdime.com/v1'
12
12
  end
13
13
 
14
14
  it 'returns default [:public_key] => nil' do
@@ -7,7 +7,7 @@ describe Hdcore::Request 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(:post).with("/call/api_action/#{test_action}/format/json/", params)
10
+ Hdcore::Request.should_receive(:post).with("/#{test_action.gsub('.','/')}.json", params)
11
11
  Hdcore::Request.call(test_action, {})
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,106 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: hdcore
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 7
10
- version: 0.0.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Ethan Pemble
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-05-28 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: bundler
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 9
29
- segments:
30
- - 1
31
- - 3
32
- version: "1.3"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
33
20
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rake
37
21
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: rspec
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
55
45
  - - ~>
56
- - !ruby/object:Gem::Version
57
- hash: 25
58
- segments:
59
- - 2
60
- - 13
61
- version: "2.13"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.13'
62
48
  type: :development
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: httparty
66
49
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
70
52
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 29
73
- segments:
74
- - 0
75
- - 11
76
- version: "0.11"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.13'
55
+ - !ruby/object:Gem::Dependency
56
+ name: httparty
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.11'
77
62
  type: :runtime
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: json
81
63
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
85
66
  - - ~>
86
- - !ruby/object:Gem::Version
87
- hash: 5
88
- segments:
89
- - 1
90
- - 5
91
- version: "1.5"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.5'
92
76
  type: :runtime
93
- version_requirements: *id005
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.5'
94
83
  description: A basic wrapper for HostDime's customer portal 'Core' API
95
- email:
84
+ email:
96
85
  - ethan.p@hostdime.com
97
86
  executables: []
98
-
99
87
  extensions: []
100
-
101
88
  extra_rdoc_files: []
102
-
103
- files:
89
+ files:
104
90
  - .gitignore
105
91
  - .travis.yml
106
92
  - Gemfile
@@ -116,39 +102,30 @@ files:
116
102
  - spec/lib/hdcore/request_spec.rb
117
103
  - spec/spec_helper.rb
118
104
  homepage: https://github.com/hostdime/hdcore-rb
119
- licenses:
105
+ licenses:
120
106
  - MIT
107
+ metadata: {}
121
108
  post_install_message:
122
109
  rdoc_options: []
123
-
124
- require_paths:
110
+ require_paths:
125
111
  - lib
126
- required_ruby_version: !ruby/object:Gem::Requirement
127
- none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- hash: 3
132
- segments:
133
- - 0
134
- version: "0"
135
- required_rubygems_version: !ruby/object:Gem::Requirement
136
- none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 3
141
- segments:
142
- - 0
143
- version: "0"
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
144
122
  requirements: []
145
-
146
123
  rubyforge_project:
147
- rubygems_version: 1.8.24
124
+ rubygems_version: 2.1.10
148
125
  signing_key:
149
- specification_version: 3
150
- summary: ""
151
- test_files:
126
+ specification_version: 4
127
+ summary: ''
128
+ test_files:
152
129
  - spec/lib/hdcore/hdcore_spec.rb
153
130
  - spec/lib/hdcore/request_spec.rb
154
131
  - spec/spec_helper.rb