piston_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/VERSION +1 -1
- data/lib/piston_api/client.rb +1 -1
- data/piston_api.gemspec +4 -2
- data/spec/fixtures/vcr_cassettes/create_batch/key_phrases.yml +32 -0
- data/spec/piston_api/client_spec.rb +0 -1
- metadata +6 -4
data/CHANGELOG.md
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/piston_api/client.rb
CHANGED
@@ -19,7 +19,7 @@ module PistonApi
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.uri_for(path)
|
22
|
-
(PistonApi.sandbox ? 'http://sandbox.mediapiston.com' : 'http://mediapiston.com') << path
|
22
|
+
(PistonApi.sandbox ? 'http://sandbox.mediapiston.com' : 'http://www.mediapiston.com') << path
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.sign_params(path, api_key, params)
|
data/piston_api.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{piston_api}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Balatero"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-14}
|
13
13
|
s.description = %q{Provides a Ruby interface to the MediaPiston API.}
|
14
14
|
s.email = %q{david@mediapiston.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
|
+
"CHANGELOG.md",
|
22
23
|
"Gemfile",
|
23
24
|
"LICENSE",
|
24
25
|
"README.rdoc",
|
@@ -30,6 +31,7 @@ Gem::Specification.new do |s|
|
|
30
31
|
"piston_api.gemspec",
|
31
32
|
"spec/fixtures/vcr_cassettes/create_batch/basic.yml",
|
32
33
|
"spec/fixtures/vcr_cassettes/create_batch/errors.yml",
|
34
|
+
"spec/fixtures/vcr_cassettes/create_batch/key_phrases.yml",
|
33
35
|
"spec/piston_api/client_spec.rb",
|
34
36
|
"spec/piston_api_spec.rb",
|
35
37
|
"spec/spec.opts",
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://sandbox.mediapiston.com:80/api/v1/batches
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
user-agent:
|
9
|
+
- MediaPiston API Ruby Client
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
etag:
|
16
|
+
- "\"0b37d0aaf9c5640a23ee27de320c67fd\""
|
17
|
+
connection:
|
18
|
+
- keep-alive
|
19
|
+
content-type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
server:
|
22
|
+
- nginx/0.7.67
|
23
|
+
date:
|
24
|
+
- Tue, 14 Dec 2010 23:29:58 GMT
|
25
|
+
x-runtime:
|
26
|
+
- "34"
|
27
|
+
content-length:
|
28
|
+
- "44"
|
29
|
+
cache-control:
|
30
|
+
- private, max-age=0, must-revalidate
|
31
|
+
body: "{\"articles_created\":3,\"batch_id\":1234567890}"
|
32
|
+
http_version: "1.1"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piston_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Balatero
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-14 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -90,6 +90,7 @@ extra_rdoc_files:
|
|
90
90
|
files:
|
91
91
|
- .document
|
92
92
|
- .gitignore
|
93
|
+
- CHANGELOG.md
|
93
94
|
- Gemfile
|
94
95
|
- LICENSE
|
95
96
|
- README.rdoc
|
@@ -101,6 +102,7 @@ files:
|
|
101
102
|
- piston_api.gemspec
|
102
103
|
- spec/fixtures/vcr_cassettes/create_batch/basic.yml
|
103
104
|
- spec/fixtures/vcr_cassettes/create_batch/errors.yml
|
105
|
+
- spec/fixtures/vcr_cassettes/create_batch/key_phrases.yml
|
104
106
|
- spec/piston_api/client_spec.rb
|
105
107
|
- spec/piston_api_spec.rb
|
106
108
|
- spec/spec.opts
|