atomutil 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/VERSION +1 -1
  3. data/atomutil.gemspec +1 -1
  4. data/lib/atomutil.rb +7 -7
  5. metadata +68 -92
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c5e5092a293b758eebec1ed5bf93a970d0a42302
4
+ data.tar.gz: d6136b8ed4dd134a1e61229b2dfb96ec2bedf66c
5
+ SHA512:
6
+ metadata.gz: bf09b9e297e8db93abff0c1e4570eacdef522f2db65b53380f0399e57c20d55bcb6379796313582d76bac44102fed8fa878ce8c66db4832e85de586727694063
7
+ data.tar.gz: 42b0ec28835f1fcd05e346e3d8afec257556eefc457d4fc0cffbc95b6e94b1bb083ae22d574ea94c1c29c4a31a3d3aa5e32aa76b0954057a77558daa17ca4a0f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "atomutil"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["lyokato"]
@@ -38,7 +38,7 @@ require 'uri'
38
38
  require 'open-uri'
39
39
  require 'pathname'
40
40
  require 'time'
41
- require 'net/http'
41
+ require 'net/https'
42
42
  require 'rexml/document'
43
43
 
44
44
  # = Utilities for AtomPub / Atom Syndication Format
@@ -55,7 +55,7 @@ module AtomUtil
55
55
  module VERSION#:nodoc:
56
56
  MAJOR = 0
57
57
  MINOR = 1
58
- TINY = 3
58
+ TINY = 4
59
59
  STRING = [MAJOR, MINOR, TINY].join('.')
60
60
  end
61
61
  end
@@ -1514,7 +1514,7 @@ module Atompub
1514
1514
  uri = URI.parse(uri)
1515
1515
  @req = Net::HTTP::Get.new uri.request_uri
1516
1516
  set_common_info(@req)
1517
- @http_class.start(uri.host, uri.port) do |http|
1517
+ @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
1518
1518
  @res = http.request(@req)
1519
1519
  case @res
1520
1520
  when Net::HTTPOK
@@ -1535,7 +1535,7 @@ module Atompub
1535
1535
  @req['If-Modified-Since'] = cache.last_modified unless cache.last_modified.nil?
1536
1536
  @req['If-None-Match'] = cache.etag unless cache.etag.nil?
1537
1537
  end
1538
- @http_class.start(uri.host, uri.port) do |http|
1538
+ @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
1539
1539
  @res = http.request(@req)
1540
1540
  case @res
1541
1541
  when Net::HTTPOK
@@ -1572,7 +1572,7 @@ module Atompub
1572
1572
  @req['Slug'] = URI.encode(URI.decode(slug)) unless slug.nil?
1573
1573
  set_common_info(@req)
1574
1574
  @req.body = r
1575
- @http_class.start(uri.host, uri.port) do |http|
1575
+ @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
1576
1576
  @res = http.request(@req)
1577
1577
  case @res
1578
1578
  when Net::HTTPSuccess
@@ -1608,7 +1608,7 @@ module Atompub
1608
1608
  end
1609
1609
  set_common_info(@req)
1610
1610
  @req.body = r
1611
- @http_class.start(uri.host, uri.port) do |http|
1611
+ @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
1612
1612
  @res = http.request(@req)
1613
1613
  case @res
1614
1614
  when Net::HTTPSuccess
@@ -1631,7 +1631,7 @@ module Atompub
1631
1631
  uri = URI.parse(uri)
1632
1632
  @req = Net::HTTP::Delete.new uri.request_uri
1633
1633
  set_common_info(@req)
1634
- @http_class.start(uri.host, uri.port) do |http|
1634
+ @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
1635
1635
  @res = http.request(@req)
1636
1636
  case @res
1637
1637
  when Net::HTTPSuccess
metadata CHANGED
@@ -1,93 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: atomutil
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 3
10
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - lyokato
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-09-29 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
11
+ date: 2011-09-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
24
17
  - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 31
27
- segments:
28
- - 2
29
- - 4
30
- - 0
18
+ - !ruby/object:Gem::Version
31
19
  version: 2.4.0
32
- version_requirements: *id001
33
- name: rspec
34
- prerelease: false
35
20
  type: :development
36
- - !ruby/object:Gem::Dependency
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
40
24
  - - ~>
41
- - !ruby/object:Gem::Version
42
- hash: 23
43
- segments:
44
- - 1
45
- - 0
46
- - 0
47
- version: 1.0.0
48
- version_requirements: *id002
25
+ - !ruby/object:Gem::Version
26
+ version: 2.4.0
27
+ - !ruby/object:Gem::Dependency
49
28
  name: bundler
50
- prerelease: false
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.0
51
34
  type: :development
52
- - !ruby/object:Gem::Dependency
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
56
38
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 7
59
- segments:
60
- - 1
61
- - 5
62
- - 2
63
- version: 1.5.2
64
- version_requirements: *id003
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.0
41
+ - !ruby/object:Gem::Dependency
65
42
  name: jeweler
66
- prerelease: false
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.5.2
67
48
  type: :development
68
- - !ruby/object:Gem::Dependency
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
78
- version_requirements: *id004
79
- name: rcov
80
49
  prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 1.5.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: rcov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
81
62
  type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
82
69
  description: This library allows your to handle AtomPub and Atom Feed easily
83
70
  email: lyo.kato@gmail.com
84
71
  executables: []
85
-
86
72
  extensions: []
87
-
88
- extra_rdoc_files:
73
+ extra_rdoc_files:
89
74
  - README.rdoc
90
- files:
75
+ files:
91
76
  - .document
92
77
  - .rspec
93
78
  - Gemfile
@@ -112,39 +97,30 @@ files:
112
97
  - spec/spec_helper.rb
113
98
  - spec/threading_spec.rb
114
99
  homepage: http://github.com/lyokato/ruby-atomutil
115
- licenses:
100
+ licenses:
116
101
  - MIT
102
+ metadata: {}
117
103
  post_install_message:
118
104
  rdoc_options: []
119
-
120
- require_paths:
105
+ require_paths:
121
106
  - lib
122
- required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 3
128
- segments:
129
- - 0
130
- version: "0"
131
- required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 3
137
- segments:
138
- - 0
139
- version: "0"
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
140
117
  requirements: []
141
-
142
118
  rubyforge_project:
143
- rubygems_version: 1.8.10
119
+ rubygems_version: 2.0.0
144
120
  signing_key:
145
121
  specification_version: 3
146
122
  summary: Ruby AtomPub Client
147
- test_files:
123
+ test_files:
148
124
  - spec/categories_spec.rb
149
125
  - spec/category_spec.rb
150
126
  - spec/content_spec.rb