deadlinez 0.1.0 → 0.1.1
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.
- data/.gitignore +0 -3
- data/CHANGELOG +3 -0
- data/VERSION +1 -1
- data/deadlinez.gemspec +68 -0
- data/lib/deadlinez/api.rb +6 -1
- metadata +5 -3
data/.gitignore
CHANGED
data/CHANGELOG
ADDED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/deadlinez.gemspec
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{deadlinez}
|
|
8
|
+
s.version = "0.1.1"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["David Balatero"]
|
|
12
|
+
s.date = %q{2010-07-22}
|
|
13
|
+
s.description = %q{Makes it easy to handle After the Deadline AJAX proxying and their API.}
|
|
14
|
+
s.email = %q{dbalatero@gmail.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.rdoc"
|
|
18
|
+
]
|
|
19
|
+
s.files = [
|
|
20
|
+
".document",
|
|
21
|
+
".gitignore",
|
|
22
|
+
"CHANGELOG",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.rdoc",
|
|
25
|
+
"Rakefile",
|
|
26
|
+
"VERSION",
|
|
27
|
+
"deadlinez.gemspec",
|
|
28
|
+
"init.rb",
|
|
29
|
+
"lib/deadlinez.rb",
|
|
30
|
+
"lib/deadlinez/api.rb",
|
|
31
|
+
"lib/deadlinez/proxy.rb",
|
|
32
|
+
"spec/deadlinez/api_spec.rb",
|
|
33
|
+
"spec/deadlinez/proxy_spec.rb",
|
|
34
|
+
"spec/fixtures/stats.response",
|
|
35
|
+
"spec/spec.opts",
|
|
36
|
+
"spec/spec_helper.rb"
|
|
37
|
+
]
|
|
38
|
+
s.homepage = %q{http://github.com/dbalatero/deadlinez}
|
|
39
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
40
|
+
s.require_paths = ["lib"]
|
|
41
|
+
s.rubygems_version = %q{1.3.6}
|
|
42
|
+
s.summary = %q{Makes it easy to handle After the Deadline AJAX proxying and their API.}
|
|
43
|
+
s.test_files = [
|
|
44
|
+
"spec/deadlinez/api_spec.rb",
|
|
45
|
+
"spec/deadlinez/proxy_spec.rb",
|
|
46
|
+
"spec/spec_helper.rb"
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
if s.respond_to? :specification_version then
|
|
50
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
51
|
+
s.specification_version = 3
|
|
52
|
+
|
|
53
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
54
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
|
55
|
+
s.add_development_dependency(%q<fakeweb>, [">= 0"])
|
|
56
|
+
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
|
57
|
+
else
|
|
58
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
|
59
|
+
s.add_dependency(%q<fakeweb>, [">= 0"])
|
|
60
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
|
61
|
+
end
|
|
62
|
+
else
|
|
63
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
|
64
|
+
s.add_dependency(%q<fakeweb>, [">= 0"])
|
|
65
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
data/lib/deadlinez/api.rb
CHANGED
|
@@ -10,7 +10,12 @@ module Deadlinez
|
|
|
10
10
|
proxy_params = Deadlinez::Proxy.strip_params(params)
|
|
11
11
|
response = post(path,
|
|
12
12
|
:body => proxy_params,
|
|
13
|
-
:format => nil
|
|
13
|
+
:format => nil,
|
|
14
|
+
:headers => {
|
|
15
|
+
'Host' => 'service.afterthedeadline.com',
|
|
16
|
+
'Content-Type' => 'application/x-www-form-urlencoded',
|
|
17
|
+
'User-Agent' => 'AtD/0.1'
|
|
18
|
+
})
|
|
14
19
|
response.body
|
|
15
20
|
end
|
|
16
21
|
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.1.1
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- David Balatero
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-07-22 00:00:00 -07:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -67,10 +67,12 @@ extra_rdoc_files:
|
|
|
67
67
|
files:
|
|
68
68
|
- .document
|
|
69
69
|
- .gitignore
|
|
70
|
+
- CHANGELOG
|
|
70
71
|
- LICENSE
|
|
71
72
|
- README.rdoc
|
|
72
73
|
- Rakefile
|
|
73
74
|
- VERSION
|
|
75
|
+
- deadlinez.gemspec
|
|
74
76
|
- init.rb
|
|
75
77
|
- lib/deadlinez.rb
|
|
76
78
|
- lib/deadlinez/api.rb
|