tinyatom 0.3.4 → 0.3.5

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 ADDED
@@ -0,0 +1,2 @@
1
+ *~
2
+ pkg
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
@@ -3,8 +3,7 @@ Aims to be the smallest, easiest to use ruby Atom feed generator.
3
3
  Currently supports only a subset of the most frequently used Atom fields. This
4
4
  example shows everything it can do.
5
5
 
6
- <pre>
7
- <code>
6
+ ```ruby
8
7
  require 'tinyatom'
9
8
 
10
9
  feed = TinyAtom::Feed.new(
@@ -53,7 +52,11 @@ feed.add_entry(
53
52
 
54
53
  puts feed.make(:indent => 2)
55
54
  # open('atom.xml', 'w') { |f| feed.make(:target => f) }
55
+ ```
56
56
 
57
+ Output:
58
+
59
+ ```xml
57
60
  <?xml version="1.0" encoding="UTF-8"?>
58
61
  <feed xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
59
62
  <title>My Blog</title>
@@ -83,8 +86,6 @@ puts feed.make(:indent => 2)
83
86
  <link type="text/html" rel="via" title="Look at this photo" href="http://anotherblog.com/posts/999"/>
84
87
  </entry>
85
88
  </feed>
89
+ ```
86
90
 
87
- </code>
88
- </pre>
89
-
90
- Questions and comments: "matthewm@boedicker.org":mailto:matthewm@boedicker.org
91
+ Questions and comments: <matthewm@boedicker.org>
data/tinyatom.gemspec CHANGED
@@ -1,50 +1,19 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
3
  Gem::Specification.new do |s|
7
- s.name = %q{tinyatom}
8
- s.version = "0.3.4"
4
+ s.name = 'tinyatom'
5
+ s.version = '0.3.5'
6
+ s.summary = 'Small and easy to use ruby Atom feed generator'
7
+ s.description = s.summary
8
+ s.homepage = 'https://github.com/mmb/tinyatom'
9
+ s.authors = ['Matthew M. Boedicker']
10
+ s.email = %w{matthewm@boedicker.org}
11
+ s.license = 'MIT'
9
12
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Matthew M. Boedicker"]
12
- s.date = %q{2011-02-11}
13
- s.description = %q{Small and easy to use ruby Atom feed generator.}
14
- s.email = %q{matthewm@boedicker.org}
15
- s.extra_rdoc_files = [
16
- "README.textile"
17
- ]
18
- s.files = [
19
- "COPYING",
20
- "README.textile",
21
- "Rakefile",
22
- "VERSION",
23
- "lib/tinyatom.rb",
24
- "lib/tinyatom/feed.rb",
25
- "lib/tinyatom/uri_domain.rb",
26
- "tinyatom.gemspec"
27
- ]
28
- s.homepage = %q{http://github.com/mmb/tinyatom}
29
- s.licenses = ["MIT"]
30
- s.require_paths = ["lib"]
31
- s.rubygems_version = %q{1.3.7}
32
- s.summary = %q{Small and easy to use ruby Atom feed generator.}
13
+ %w{
14
+ builder > 0
15
+ public_suffix_service > 0
16
+ }.each_slice(3) { |g,o,v| s.add_dependency(g, "#{o} #{v}") }
33
17
 
34
- if s.respond_to? :specification_version then
35
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
36
- s.specification_version = 3
37
-
38
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
39
- s.add_runtime_dependency(%q<builder>, ["~> 2.0"])
40
- s.add_runtime_dependency(%q<public_suffix_service>, ["~> 0.0"])
41
- else
42
- s.add_dependency(%q<builder>, ["~> 2.0"])
43
- s.add_dependency(%q<public_suffix_service>, ["~> 0.0"])
44
- end
45
- else
46
- s.add_dependency(%q<builder>, ["~> 2.0"])
47
- s.add_dependency(%q<public_suffix_service>, ["~> 0.0"])
48
- end
18
+ s.files = `git ls-files`.split("\n")
49
19
  end
50
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinyatom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew M. Boedicker
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-11 00:00:00 -05:00
18
+ date: 2011-09-05 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -24,13 +24,12 @@ dependencies:
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ~>
27
+ - - ">"
28
28
  - !ruby/object:Gem::Version
29
29
  hash: 3
30
30
  segments:
31
- - 2
32
31
  - 0
33
- version: "2.0"
32
+ version: "0"
34
33
  type: :runtime
35
34
  version_requirements: *id001
36
35
  - !ruby/object:Gem::Dependency
@@ -39,34 +38,35 @@ dependencies:
39
38
  requirement: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
- - - ~>
41
+ - - ">"
43
42
  - !ruby/object:Gem::Version
44
- hash: 11
43
+ hash: 3
45
44
  segments:
46
45
  - 0
47
- - 0
48
- version: "0.0"
46
+ version: "0"
49
47
  type: :runtime
50
48
  version_requirements: *id002
51
- description: Small and easy to use ruby Atom feed generator.
52
- email: matthewm@boedicker.org
49
+ description: Small and easy to use ruby Atom feed generator
50
+ email:
51
+ - matthewm@boedicker.org
53
52
  executables: []
54
53
 
55
54
  extensions: []
56
55
 
57
- extra_rdoc_files:
58
- - README.textile
56
+ extra_rdoc_files: []
57
+
59
58
  files:
59
+ - .gitignore
60
60
  - COPYING
61
- - README.textile
62
- - Rakefile
61
+ - Gemfile
62
+ - README.markdown
63
63
  - VERSION
64
64
  - lib/tinyatom.rb
65
65
  - lib/tinyatom/feed.rb
66
66
  - lib/tinyatom/uri_domain.rb
67
67
  - tinyatom.gemspec
68
68
  has_rdoc: true
69
- homepage: http://github.com/mmb/tinyatom
69
+ homepage: https://github.com/mmb/tinyatom
70
70
  licenses:
71
71
  - MIT
72
72
  post_install_message:
@@ -95,9 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements: []
96
96
 
97
97
  rubyforge_project:
98
- rubygems_version: 1.5.0
98
+ rubygems_version: 1.5.2
99
99
  signing_key:
100
100
  specification_version: 3
101
- summary: Small and easy to use ruby Atom feed generator.
101
+ summary: Small and easy to use ruby Atom feed generator
102
102
  test_files: []
103
103
 
data/Rakefile DELETED
@@ -1,19 +0,0 @@
1
- begin
2
- require 'jeweler'
3
- Jeweler::Tasks.new do |gemspec|
4
- gemspec.name = 'tinyatom'
5
- gemspec.summary = 'Small and easy to use ruby Atom feed generator.'
6
- gemspec.description = gemspec.summary
7
- gemspec.email = 'matthewm@boedicker.org'
8
- gemspec.homepage = 'http://github.com/mmb/tinyatom'
9
- gemspec.authors = ['Matthew M. Boedicker']
10
- gemspec.license = 'MIT'
11
-
12
- %w{
13
- builder ~> 2.0
14
- public_suffix_service ~> 0.0
15
- }.each_slice(3) { |g,o,v| gemspec.add_dependency(g, "#{o} #{v}") }
16
- end
17
- rescue LoadError
18
- puts "Jeweler not available. Install it with: gem install jeweler"
19
- end