ratom 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.6.8
2
+
3
+ * Better auth-hmac detection.
4
+ * Handles Ruby 1.9 arrays. [wilkie]
5
+
1
6
  == 0.6.7
2
7
 
3
8
  * Handle dashes in extension names.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 7
3
2
  :major: 0
4
3
  :build:
5
4
  :minor: 6
5
+ :patch: 8
data/lib/atom.rb CHANGED
@@ -266,7 +266,7 @@ module Atom # :nodoc:
266
266
  #
267
267
  begin
268
268
  node = XML::Node.new("#{namespace_map.prefix(Atom::NAMESPACE, name)}")
269
- node << Iconv.iconv('utf-8', 'utf-8', self.to_s)
269
+ node << Iconv.iconv('utf-8', 'utf-8', self.to_s).first
270
270
  node['type'] = 'html'
271
271
  node['xml:lang'] = self.xml_lang if self.xml_lang
272
272
  node
@@ -13,7 +13,7 @@ module Atom
13
13
  gem 'auth-hmac'
14
14
  require 'auth-hmac'
15
15
  @auth_hmac_enabled = true
16
- rescue
16
+ rescue Exception
17
17
  @auth_hmac_enabled = false
18
18
  end
19
19
  else
data/ratom.gemspec ADDED
@@ -0,0 +1,96 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{ratom}
8
+ s.version = "0.6.8"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Peerworks", "Sean Geoghegan"]
12
+ s.date = %q{2011-04-30}
13
+ s.description = %q{A fast Atom Syndication and Publication API based on libxml}
14
+ s.email = %q{seangeo@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "History.txt",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "lib/atom.rb",
26
+ "lib/atom/configuration.rb",
27
+ "lib/atom/pub.rb",
28
+ "lib/atom/version.rb",
29
+ "lib/atom/xml/parser.rb",
30
+ "ratom.gemspec",
31
+ "spec/app/member_entry.atom",
32
+ "spec/app/service.xml",
33
+ "spec/app/service_xml_base.xml",
34
+ "spec/atom/pub_spec.rb",
35
+ "spec/atom_spec.rb",
36
+ "spec/conformance/baseuri.atom",
37
+ "spec/conformance/divtest.atom",
38
+ "spec/conformance/linktests.xml",
39
+ "spec/conformance/nondefaultnamespace-baseline.atom",
40
+ "spec/conformance/nondefaultnamespace-xhtml.atom",
41
+ "spec/conformance/nondefaultnamespace.atom",
42
+ "spec/conformance/ordertest.xml",
43
+ "spec/conformance/title/html-cdata.atom",
44
+ "spec/conformance/title/html-entity.atom",
45
+ "spec/conformance/title/html-ncr.atom",
46
+ "spec/conformance/title/text-cdata.atom",
47
+ "spec/conformance/title/text-entity.atom",
48
+ "spec/conformance/title/text-ncr.atom",
49
+ "spec/conformance/title/xhtml-entity.atom",
50
+ "spec/conformance/title/xhtml-ncr.atom",
51
+ "spec/conformance/unknown-namespace.atom",
52
+ "spec/conformance/xmlbase.atom",
53
+ "spec/fixtures/complex_single_entry.atom",
54
+ "spec/fixtures/created_entry.atom",
55
+ "spec/fixtures/entry.atom",
56
+ "spec/fixtures/entry_with_custom_extensions.atom",
57
+ "spec/fixtures/entry_with_simple_extensions.atom",
58
+ "spec/fixtures/entry_with_single_custom_extension.atom",
59
+ "spec/fixtures/multiple_entry.atom",
60
+ "spec/fixtures/simple_single_entry.atom",
61
+ "spec/fixtures/with_stylesheet.atom",
62
+ "spec/paging/first_paged_feed.atom",
63
+ "spec/paging/last_paged_feed.atom",
64
+ "spec/paging/middle_paged_feed.atom",
65
+ "spec/property.rb",
66
+ "spec/spec.opts",
67
+ "spec/spec_helper.rb"
68
+ ]
69
+ s.homepage = %q{http://github.com/seangeo/ratom}
70
+ s.require_paths = ["lib"]
71
+ s.rubyforge_project = %q{ratom}
72
+ s.rubygems_version = %q{1.6.2}
73
+ s.summary = %q{Atom Syndication and Publication API}
74
+ s.test_files = [
75
+ "spec/atom/pub_spec.rb",
76
+ "spec/atom_spec.rb",
77
+ "spec/property.rb",
78
+ "spec/spec_helper.rb"
79
+ ]
80
+
81
+ if s.respond_to? :specification_version then
82
+ s.specification_version = 3
83
+
84
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
85
+ s.add_development_dependency(%q<rspec>, [">= 0"])
86
+ s.add_runtime_dependency(%q<libxml-ruby>, [">= 1.1.2"])
87
+ else
88
+ s.add_dependency(%q<rspec>, [">= 0"])
89
+ s.add_dependency(%q<libxml-ruby>, [">= 1.1.2"])
90
+ end
91
+ else
92
+ s.add_dependency(%q<rspec>, [">= 0"])
93
+ s.add_dependency(%q<libxml-ruby>, [">= 1.1.2"])
94
+ end
95
+ end
96
+
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratom
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 23
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 6
8
- - 7
9
- version: 0.6.7
9
+ - 8
10
+ version: 0.6.8
10
11
  platform: ruby
11
12
  authors:
12
13
  - Peerworks
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-04-22 00:00:00 +09:30
19
+ date: 2011-04-30 00:00:00 +09:30
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: rspec
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ">="
27
29
  - !ruby/object:Gem::Version
30
+ hash: 3
28
31
  segments:
29
32
  - 0
30
33
  version: "0"
@@ -34,9 +37,11 @@ dependencies:
34
37
  name: libxml-ruby
35
38
  prerelease: false
36
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
37
41
  requirements:
38
42
  - - ">="
39
43
  - !ruby/object:Gem::Version
44
+ hash: 23
40
45
  segments:
41
46
  - 1
42
47
  - 1
@@ -54,7 +59,6 @@ extra_rdoc_files:
54
59
  - LICENSE
55
60
  - README.rdoc
56
61
  files:
57
- - .gitignore
58
62
  - History.txt
59
63
  - LICENSE
60
64
  - README.rdoc
@@ -65,6 +69,7 @@ files:
65
69
  - lib/atom/pub.rb
66
70
  - lib/atom/version.rb
67
71
  - lib/atom/xml/parser.rb
72
+ - ratom.gemspec
68
73
  - spec/app/member_entry.atom
69
74
  - spec/app/service.xml
70
75
  - spec/app/service_xml_base.xml
@@ -107,28 +112,32 @@ homepage: http://github.com/seangeo/ratom
107
112
  licenses: []
108
113
 
109
114
  post_install_message:
110
- rdoc_options:
111
- - --charset=UTF-8
115
+ rdoc_options: []
116
+
112
117
  require_paths:
113
118
  - lib
114
119
  required_ruby_version: !ruby/object:Gem::Requirement
120
+ none: false
115
121
  requirements:
116
122
  - - ">="
117
123
  - !ruby/object:Gem::Version
124
+ hash: 3
118
125
  segments:
119
126
  - 0
120
127
  version: "0"
121
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
+ none: false
122
130
  requirements:
123
131
  - - ">="
124
132
  - !ruby/object:Gem::Version
133
+ hash: 3
125
134
  segments:
126
135
  - 0
127
136
  version: "0"
128
137
  requirements: []
129
138
 
130
139
  rubyforge_project: ratom
131
- rubygems_version: 1.3.6
140
+ rubygems_version: 1.6.2
132
141
  signing_key:
133
142
  specification_version: 3
134
143
  summary: Atom Syndication and Publication API
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- doc
2
- pkg
3
- nbproject
4
- rdoc