ess 0.9.1
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 +18 -0
- data/.rspec +2 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +448 -0
- data/Rakefile +5 -0
- data/ess.gemspec +21 -0
- data/lib/ess/dtd.rb +491 -0
- data/lib/ess/element.rb +266 -0
- data/lib/ess/ess.rb +8 -0
- data/lib/ess/examples.rb +432 -0
- data/lib/ess/helpers.rb +22 -0
- data/lib/ess/maker.rb +24 -0
- data/lib/ess/postprocessing.rb +69 -0
- data/lib/ess/pusher.rb +63 -0
- data/lib/ess/validation.rb +797 -0
- data/lib/ess/version.rb +3 -0
- data/lib/ess.rb +13 -0
- data/spec/ess/element_spec.rb +796 -0
- data/spec/ess/full_spec.rb +47 -0
- data/spec/ess/maker_spec.rb +30 -0
- data/spec/spec_helper.rb +5 -0
- metadata +88 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module ESS
|
4
|
+
describe "Big examples" do
|
5
|
+
describe "Examples::from_essfeeds_org_home" do
|
6
|
+
it 'should be a valid ESS feed' do
|
7
|
+
lambda {
|
8
|
+
Examples::from_essfeeds_org_home.push_to_aggregators
|
9
|
+
}.should_not raise_error
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "Examples::paying_attendees" do
|
14
|
+
it 'should be a valid ESS feed' do
|
15
|
+
lambda {
|
16
|
+
Examples::paying_attendees.push_to_aggregators
|
17
|
+
}.should_not raise_error
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "Examples::osteopathy_course" do
|
22
|
+
it 'should be a valid ESS feed' do
|
23
|
+
lambda {
|
24
|
+
Examples::osteopathy_course.push_to_aggregators
|
25
|
+
}.should_not raise_error
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "Examples::belfast_festival" do
|
30
|
+
it 'should be a valid ESS feed' do
|
31
|
+
lambda {
|
32
|
+
Examples::belfast_festival.push_to_aggregators
|
33
|
+
}.should_not raise_error
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "Examples::ring_cycle" do
|
38
|
+
it 'should be a valid ESS feed' do
|
39
|
+
lambda {
|
40
|
+
Examples::ring_cycle.push_to_aggregators
|
41
|
+
}.should_not raise_error
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module ESS
|
4
|
+
describe Maker do
|
5
|
+
describe '.make' do
|
6
|
+
it 'should accept a block and pass it one parameter - a ESS element' do
|
7
|
+
ess_place_holder = nil
|
8
|
+
Maker.make(:validate => false) { |ess| ess_place_holder = ess }
|
9
|
+
ess_place_holder.class.should == ESS
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'should return the ess element built in the block' do
|
13
|
+
ess_place_holder = nil
|
14
|
+
ess = Maker.make(:validate => false) { |ess| ess_place_holder = ess }
|
15
|
+
ess_place_holder.object_id.should == ess.object_id
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'should accept a version argument, ignoring it for now' do
|
19
|
+
Maker.make(:version => "0.9", :validate => false) { |ess| ess }
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should raise an error if the channel is not valid at exit' do
|
23
|
+
expect {
|
24
|
+
Maker.make { |ess| ess.channel.title "A title" }
|
25
|
+
}.to raise_error
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ess
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Marjan Povolni
|
9
|
+
- Brice Pissard
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: builder
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
description: Helper classes and methods for creating ESS XML feeds with Ruby.
|
32
|
+
email:
|
33
|
+
- marian.povolny@gmail.com
|
34
|
+
executables: []
|
35
|
+
extensions: []
|
36
|
+
extra_rdoc_files: []
|
37
|
+
files:
|
38
|
+
- .gitignore
|
39
|
+
- .rspec
|
40
|
+
- Gemfile
|
41
|
+
- LICENSE.txt
|
42
|
+
- README.md
|
43
|
+
- Rakefile
|
44
|
+
- ess.gemspec
|
45
|
+
- lib/ess.rb
|
46
|
+
- lib/ess/dtd.rb
|
47
|
+
- lib/ess/element.rb
|
48
|
+
- lib/ess/ess.rb
|
49
|
+
- lib/ess/examples.rb
|
50
|
+
- lib/ess/helpers.rb
|
51
|
+
- lib/ess/maker.rb
|
52
|
+
- lib/ess/postprocessing.rb
|
53
|
+
- lib/ess/pusher.rb
|
54
|
+
- lib/ess/validation.rb
|
55
|
+
- lib/ess/version.rb
|
56
|
+
- spec/ess/element_spec.rb
|
57
|
+
- spec/ess/full_spec.rb
|
58
|
+
- spec/ess/maker_spec.rb
|
59
|
+
- spec/spec_helper.rb
|
60
|
+
homepage: https://github.com/essfeed/ruby-ess
|
61
|
+
licenses: []
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
requirements: []
|
79
|
+
rubyforge_project:
|
80
|
+
rubygems_version: 1.8.24
|
81
|
+
signing_key:
|
82
|
+
specification_version: 3
|
83
|
+
summary: Generate ESS XML feeds with Ruby
|
84
|
+
test_files:
|
85
|
+
- spec/ess/element_spec.rb
|
86
|
+
- spec/ess/full_spec.rb
|
87
|
+
- spec/ess/maker_spec.rb
|
88
|
+
- spec/spec_helper.rb
|