swirl 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/swirl/ec2.rb +0 -1
  2. metadata +16 -6
  3. data/lib/swirl/ec2/em.rb +0 -27
@@ -1,4 +1,3 @@
1
- require 'yaml'
2
1
  require 'cgi'
3
2
  require 'base64'
4
3
  require 'net/https'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swirl
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 11
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 6
8
- - 1
9
- version: 1.6.1
9
+ - 2
10
+ version: 1.6.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Blake Mizerany
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-02-09 00:00:00 -08:00
18
+ date: 2011-02-22 00:00:00 -08:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: crack
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 19
27
30
  segments:
28
31
  - 0
29
32
  - 1
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: ruby-hmac
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 23
41
46
  segments:
42
47
  - 0
43
48
  - 3
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: contest
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 31
55
62
  segments:
56
63
  - 0
57
64
  - 1
@@ -72,7 +79,6 @@ files:
72
79
  - LICENSE
73
80
  - README.md
74
81
  - list-types
75
- - lib/swirl/ec2/em.rb
76
82
  - lib/swirl/ec2.rb
77
83
  - lib/swirl/helpers.rb
78
84
  - lib/swirl.rb
@@ -95,23 +101,27 @@ rdoc_options:
95
101
  require_paths:
96
102
  - lib
97
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
+ none: false
98
105
  requirements:
99
106
  - - ">="
100
107
  - !ruby/object:Gem::Version
108
+ hash: 3
101
109
  segments:
102
110
  - 0
103
111
  version: "0"
104
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
105
114
  requirements:
106
115
  - - ">="
107
116
  - !ruby/object:Gem::Version
117
+ hash: 3
108
118
  segments:
109
119
  - 0
110
120
  version: "0"
111
121
  requirements: []
112
122
 
113
123
  rubyforge_project: swirl
114
- rubygems_version: 1.3.6
124
+ rubygems_version: 1.5.2
115
125
  signing_key:
116
126
  specification_version: 2
117
127
  summary: A version agnostic EC2 ruby driver
@@ -1,27 +0,0 @@
1
- require 'swirl/ec2'
2
- require 'em-http'
3
-
4
- module Swirl
5
- class EC2
6
- def post(body, &blk)
7
- headers = { "Content-Type" => "application/x-www-form-urlencoded" }
8
-
9
- http = EM::HttpRequest.new(@url.to_s)
10
- req = http.post(:head => headers, :body => body)
11
-
12
- req.callback do
13
- begin
14
- blk.call(req.response_header.status, req.response)
15
- rescue => e
16
- req.fail(e)
17
- end
18
- end
19
-
20
- def req.error(&blk)
21
- errback(&blk)
22
- end
23
-
24
- req
25
- end
26
- end
27
- end