algorithmia 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +0 -1
- data/algorithmia.gemspec +1 -1
- data/lib/algorithmia.rb +1 -1
- data/lib/algorithmia/base.rb +1 -1
- data/lib/algorithmia/http.rb +2 -2
- data/lib/algorithmia/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e320f18a0a2c63b461e158fe6667eefb3cdb28d
|
|
4
|
+
data.tar.gz: 21b544a00dce997e0537d0a76b8fc77a4517699d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9405aabdc8d2ca3b7d26facb3aa792307790ec19dbf77123cdcc3d0fc3dce172f3ca033605e460d951d5d7efa4d514d7e544df25a27dfabea5bb66fd54fa62b5
|
|
7
|
+
data.tar.gz: 6ddbca4ad8bb320253afe4eaf0c367a9291871e130495d140ab76c137ecc5888cc80392f7be00827f0ef438dc599b4e4290dfee9aeccf2997d64b8e7b8662dd2
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.2
|
|
1
|
+
2.2
|
data/Gemfile
CHANGED
data/algorithmia.gemspec
CHANGED
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.authors = ["Bilawal Hameed"]
|
|
18
18
|
spec.email = 'bilawal@studenthack.com'
|
|
19
19
|
spec.homepage = 'http://github.com/bih/algorithmia'
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
spec.files = `git ls-files`.split("\n").select{ |f| f[-4..-1] != ".gem" }
|
|
22
22
|
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
23
23
|
spec.require_paths = ["lib"]
|
data/lib/algorithmia.rb
CHANGED
data/lib/algorithmia/base.rb
CHANGED
data/lib/algorithmia/http.rb
CHANGED
|
@@ -7,12 +7,12 @@ class Algorithmia
|
|
|
7
7
|
|
|
8
8
|
def self.post_http(endpoint, params = {})
|
|
9
9
|
params = params.to_s unless params.is_a?(Hash)
|
|
10
|
-
parse_output post(endpoint, body: params, headers: { "Authorization" => @api_key, "
|
|
10
|
+
parse_output post(endpoint, body: params, headers: { "Authorization" => @api_key, "Content-Type" => "application/json" })
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def self.get_http(endpoint, params = {})
|
|
14
14
|
params = params.to_s unless params.is_a?(Hash)
|
|
15
|
-
parse_output get(endpoint, query: params, headers: { "Authorization" => @api_key, "
|
|
15
|
+
parse_output get(endpoint, query: params, headers: { "Authorization" => @api_key, "Content-Type" => "application/json" })
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def self.parse_output(res)
|
data/lib/algorithmia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: algorithmia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bilawal Hameed
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
111
|
rubyforge_project:
|
|
112
|
-
rubygems_version: 2.4.
|
|
112
|
+
rubygems_version: 2.4.6
|
|
113
113
|
signing_key:
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: Ruby library for interacting with Algorithmia.com
|