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 +15 -0
- data/lib/hdcore/hdcore.rb +1 -1
- data/lib/hdcore/request.rb +1 -1
- data/lib/hdcore/version.rb +1 -1
- data/spec/lib/hdcore/hdcore_spec.rb +2 -2
- data/spec/lib/hdcore/request_spec.rb +1 -1
- metadata +81 -104
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
data/lib/hdcore/request.rb
CHANGED
@@ -10,7 +10,7 @@ module Hdcore
|
|
10
10
|
# @return [HTTParty::Response]
|
11
11
|
def call(action, params = {})
|
12
12
|
init()
|
13
|
-
self.post("
|
13
|
+
self.post("/#{action.gsub('.','/')}.json", query_string(action, params))
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
data/lib/hdcore/version.rb
CHANGED
@@ -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://
|
11
|
-
Hdcore.config[:api_endpoint].should == 'https://
|
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("
|
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
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
53
|
-
|
54
|
-
|
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
|
-
|
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
|
-
|
68
|
-
|
69
|
-
requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
70
52
|
- - ~>
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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
|
-
|
83
|
-
|
84
|
-
requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
85
66
|
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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
|
-
|
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
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
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.
|
124
|
+
rubygems_version: 2.1.10
|
148
125
|
signing_key:
|
149
|
-
specification_version:
|
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
|