ratom-ssl 0.0.0 → 0.1.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.
- data/VERSION.yml +2 -2
- data/lib/atom/pub.rb +6 -2
- data/ratom-ssl.gemspec +4 -4
- metadata +13 -4
data/VERSION.yml
CHANGED
data/lib/atom/pub.rb
CHANGED
@@ -188,7 +188,9 @@ module Atom
|
|
188
188
|
if edit = edit_link
|
189
189
|
uri = URI.parse(edit.href)
|
190
190
|
response = nil
|
191
|
-
Net::HTTP.
|
191
|
+
http_obj = Net::HTTP.new(uri.host, uri.port)
|
192
|
+
http_obj.use_ssl = true if uri.scheme == 'https'
|
193
|
+
http_obj.start do |http|
|
192
194
|
request = Net::HTTP::Put.new(uri.request_uri, headers)
|
193
195
|
if opts[:user] && opts[:pass]
|
194
196
|
request.basic_auth(opts[:user], opts[:pass])
|
@@ -217,7 +219,9 @@ module Atom
|
|
217
219
|
if edit = edit_link
|
218
220
|
uri = URI.parse(edit.href)
|
219
221
|
response = nil
|
220
|
-
Net::HTTP.
|
222
|
+
http_obj = Net::HTTP.new(uri.host, uri.port)
|
223
|
+
http_obj.use_ssl = true if uri.scheme == 'https'
|
224
|
+
http_obj.start do |http|
|
221
225
|
request = Net::HTTP::Delete.new(uri.request_uri, {'Accept' => 'application/atom+xml', 'User-Agent' => "rAtom #{Atom::VERSION::STRING}"})
|
222
226
|
if opts[:user] && opts[:pass]
|
223
227
|
request.basic_auth(opts[:user], opts[:pass])
|
data/ratom-ssl.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ratom-ssl}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Peerworks", "Sean Geoghegan", "Kenton White"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-13}
|
13
13
|
s.description = %q{A fast Atom Syndication and Publication API based on libxml}
|
14
14
|
s.email = %q{jkentonwhite@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -70,7 +70,7 @@ Gem::Specification.new do |s|
|
|
70
70
|
s.rdoc_options = ["--charset=UTF-8"]
|
71
71
|
s.require_paths = ["lib"]
|
72
72
|
s.rubyforge_project = %q{ratom}
|
73
|
-
s.rubygems_version = %q{1.3.
|
73
|
+
s.rubygems_version = %q{1.3.7}
|
74
74
|
s.summary = %q{Atom Syndication and Publication API with SSL}
|
75
75
|
s.test_files = [
|
76
76
|
"spec/atom/pub_spec.rb",
|
@@ -83,7 +83,7 @@ Gem::Specification.new do |s|
|
|
83
83
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
84
84
|
s.specification_version = 3
|
85
85
|
|
86
|
-
if Gem::Version.new(Gem::
|
86
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
87
87
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
88
88
|
s.add_runtime_dependency(%q<libxml-ruby>, [">= 1.1.2"])
|
89
89
|
else
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratom-ssl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
8
|
+
- 1
|
7
9
|
- 0
|
8
|
-
|
9
|
-
version: 0.0.0
|
10
|
+
version: 0.1.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Peerworks
|
@@ -16,16 +17,18 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date: 2010-
|
20
|
+
date: 2010-08-13 00:00:00 -04:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
23
|
- !ruby/object:Gem::Dependency
|
23
24
|
name: rspec
|
24
25
|
prerelease: false
|
25
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
26
28
|
requirements:
|
27
29
|
- - ">="
|
28
30
|
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
29
32
|
segments:
|
30
33
|
- 0
|
31
34
|
version: "0"
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: libxml-ruby
|
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
|
- 1
|
43
48
|
- 1
|
@@ -113,23 +118,27 @@ rdoc_options:
|
|
113
118
|
require_paths:
|
114
119
|
- lib
|
115
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
116
122
|
requirements:
|
117
123
|
- - ">="
|
118
124
|
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
119
126
|
segments:
|
120
127
|
- 0
|
121
128
|
version: "0"
|
122
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
123
131
|
requirements:
|
124
132
|
- - ">="
|
125
133
|
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
126
135
|
segments:
|
127
136
|
- 0
|
128
137
|
version: "0"
|
129
138
|
requirements: []
|
130
139
|
|
131
140
|
rubyforge_project: ratom
|
132
|
-
rubygems_version: 1.3.
|
141
|
+
rubygems_version: 1.3.7
|
133
142
|
signing_key:
|
134
143
|
specification_version: 3
|
135
144
|
summary: Atom Syndication and Publication API with SSL
|