potion 0.0.2

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.
Files changed (48) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +105 -0
  4. data/README.md +187 -0
  5. data/Rakefile +9 -0
  6. data/bin/potion +94 -0
  7. data/example_site/_config.yaml +2 -0
  8. data/example_site/_extensions/example_extension.rb +42 -0
  9. data/example_site/_layouts/default.haml +6 -0
  10. data/example_site/blog/_posts/2013-03-04-example-post-1/example-post-1.html.haml +10 -0
  11. data/example_site/blog/_posts/2013-03-04-example-post-1/kitten_and_duck.jpg +0 -0
  12. data/example_site/blog/_posts/2013-03-04-example-post-1/kitten_and_yarn.jpg +0 -0
  13. data/example_site/blog/_posts/2013-03-05-example-post-2/example-post-2.html.haml +4 -0
  14. data/example_site/index.html.haml +4 -0
  15. data/lib/potion.rb +23 -0
  16. data/lib/potion/extensions/category_helper.rb +9 -0
  17. data/lib/potion/extensions/deploy_to_gh_pages.rb +33 -0
  18. data/lib/potion/extensions/link_to_helper.rb +15 -0
  19. data/lib/potion/extensions/photo_helper.rb +21 -0
  20. data/lib/potion/extensions/photo_resize.rb +19 -0
  21. data/lib/potion/layout.rb +16 -0
  22. data/lib/potion/page.rb +2 -0
  23. data/lib/potion/post.rb +17 -0
  24. data/lib/potion/renderable.rb +78 -0
  25. data/lib/potion/site.rb +113 -0
  26. data/lib/potion/static_file.rb +33 -0
  27. data/lib/potion/version.rb +3 -0
  28. data/potion.gemspec +54 -0
  29. data/spec/extensions/category_spec.rb +15 -0
  30. data/spec/extensions/link_to_spec.rb +36 -0
  31. data/spec/fixtures/a-new-thing-2.html +4 -0
  32. data/spec/fixtures/test-site/_config.yaml +0 -0
  33. data/spec/fixtures/test-site/_extensions/test_extension.rb +0 -0
  34. data/spec/fixtures/test-site/_layouts/blog.haml +2 -0
  35. data/spec/fixtures/test-site/_layouts/main.haml +2 -0
  36. data/spec/fixtures/test-site/blog.html.haml +5 -0
  37. data/spec/fixtures/test-site/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml +5 -0
  38. data/spec/fixtures/test-site/blog/_posts/2013-03-04-a-new-thing/an-extra-thing.txt +0 -0
  39. data/spec/fixtures/test-site/css/main.css +0 -0
  40. data/spec/fixtures/test-site/javascript/main.js +1 -0
  41. data/spec/fixtures/test-site/portfolio/_posts/a-cool-thing/a-cool-thing.html.haml +4 -0
  42. data/spec/potion/layout_spec.rb +23 -0
  43. data/spec/potion/post_spec.rb +24 -0
  44. data/spec/potion/renderable_spec.rb +73 -0
  45. data/spec/potion/site_spec.rb +74 -0
  46. data/spec/potion/static_file_spec.rb +48 -0
  47. data/spec/spec_helper.rb +3 -0
  48. metadata +590 -0
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe '#category' do
4
+ before do
5
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/test-site")
6
+ @destination_path = @fixture_path + "/_site"
7
+ @site = Site.new(@fixture_path, @destination_path)
8
+ end
9
+
10
+ it "should return all the posts in the site that live in the 'blog' directory" do
11
+ @site.posts.first.category("blog").should == [
12
+ Post.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
13
+ ]
14
+ end
15
+ end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ describe '#link_to' do
4
+ before do
5
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/test-site")
6
+ @destination_path = @fixture_path + "/_site"
7
+ @site = Site.new(@fixture_path, @destination_path)
8
+ end
9
+
10
+ context "without a block" do
11
+ it "should return a valid link for a post" do
12
+ post = Post.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
13
+ post.link_to("Test", post).should == "<a href=\"#{post.relative_output_path}\">Test</a>"
14
+ end
15
+
16
+ it "should return a valid link for a static file" do
17
+ file = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
18
+ @site.posts.first.link_to("Test", file).should == "<a href=\"#{file.relative_output_path}\">Test</a>"
19
+ end
20
+
21
+ it "should return a valid link for a page" do
22
+ page = Page.new(@fixture_path + "/blog.html.haml", @site)
23
+ page.link_to("Test", page).should == "<a href=\"#{page.relative_output_path}\">Test</a>"
24
+ end
25
+ end
26
+
27
+ context "with a block" do
28
+ it "should return a valid link for a post" do
29
+ post = Post.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
30
+ post.link_to(post) do
31
+ "Test"
32
+ end.should == "<a href=\"#{post.relative_output_path}\">Test</a>"
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: main
3
+ ---
4
+ Test123
File without changes
@@ -0,0 +1,2 @@
1
+ Blog layout
2
+ = yield
@@ -0,0 +1,2 @@
1
+ Main layout
2
+ = yield
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: main
3
+ title: blah something
4
+ ---
5
+ Test456
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: main
3
+ title: blah something
4
+ ---
5
+ Test123
File without changes
@@ -0,0 +1 @@
1
+ alert("This is JS!");
@@ -0,0 +1,4 @@
1
+ ---
2
+ layout: main
3
+ title: blah something
4
+ ---
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ include Potion
4
+
5
+ describe Layout do
6
+ before do
7
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/")
8
+ @destination_path = @fixture_path + "/test-site/_site"
9
+ @site = Site.new(@fixture_path + "/test-site", @destination_path)
10
+ end
11
+
12
+ describe '.new' do
13
+ it "should populate the name attribute of the layout" do
14
+ layout = Layout.new(@fixture_path + "/test-site/_layouts/blog.haml", @site)
15
+ layout.name.should == "blog"
16
+ end
17
+
18
+ it "should load the content of the layout" do
19
+ layout = Layout.new(@fixture_path + "/test-site/_layouts/blog.haml", @site)
20
+ layout.content.should == "Blog layout\n= yield"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ include Potion
4
+
5
+ describe Post do
6
+ before do
7
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/")
8
+ @destination_path = @fixture_path + "/test-site/_site"
9
+ @site = Site.new(@fixture_path + "/test-site", @destination_path)
10
+ end
11
+
12
+ describe '.new' do
13
+ it "should find all the static files associated with the post" do
14
+ post = Post.new(@fixture_path + "/test-site/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
15
+ post.static_files.length.should == 1
16
+ post.static_files.first.should == StaticFile.new(@fixture_path + "/test-site/blog/_posts/2013-03-04-a-new-thing/an-extra-thing.txt", @site)
17
+ end
18
+
19
+ it "should correctly set the post's output path" do
20
+ post = Post.new(@fixture_path + "/test-site/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
21
+ post.output_path.should == File.join(@fixture_path, "/test-site/_site/blog/2013-03-04-a-new-thing/a-new-thing.html")
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,73 @@
1
+ require 'spec_helper'
2
+
3
+ include Potion
4
+
5
+ describe Renderable do
6
+ before do
7
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/test-site/")
8
+ @destination_path = @fixture_path + "_site"
9
+ @site = Site.new(@fixture_path, @destination_path)
10
+ end
11
+
12
+ describe '.new' do
13
+ it "should load the metadata from the item" do
14
+ item = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
15
+ item.metadata.should == {
16
+ "layout" => "main",
17
+ "title" => "blah something"
18
+ }
19
+ end
20
+
21
+ it "should correctly load the item's content" do
22
+ item = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
23
+ item.content.should == "Test123"
24
+ end
25
+
26
+ it "should correctly associate the item with the layout declared in the metadata" do
27
+ item = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
28
+ layout = Layout.new(@fixture_path + "/_layouts/main.haml", @site)
29
+ item.layout.should == layout
30
+ end
31
+ end
32
+
33
+ describe '#==' do
34
+ context "when the two Renderables are identical" do
35
+ it "should return true" do
36
+ post1 = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
37
+ post2 = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
38
+ post1.should == post2
39
+ end
40
+ end
41
+
42
+ context "when the two Renderables are different" do
43
+ it "should return false" do
44
+ post1 = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
45
+ post2 = Renderable.new(@fixture_path + "/portfolio/_posts/a-cool-thing/a-cool-thing.html.haml", @site)
46
+ post1.should_not == post2
47
+ end
48
+ end
49
+ end
50
+
51
+ describe '#render' do
52
+ it "should render the item in it's template" do
53
+ post = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
54
+ post.render.should == "Main layout\nTest123\n"
55
+ end
56
+ end
57
+
58
+ describe '#title' do
59
+ context "when there is a title in the metadata" do
60
+ it "should return the title from the metadata" do
61
+ post = Renderable.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", @site)
62
+ post.title.should == "blah something"
63
+ end
64
+ end
65
+
66
+ context "when there is no title in the metadata" do
67
+ it "return a human-readable version of the filename" do
68
+ post = Renderable.new(File.expand_path(File.dirname(__FILE__) + "/../fixtures/a-new-thing-2.html"), @site)
69
+ post.title.should == "A new thing 2"
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,74 @@
1
+ require 'spec_helper'
2
+
3
+ include Potion
4
+
5
+ describe Site do
6
+ before do
7
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/test-site/")
8
+ @destination_path = @fixture_path + "_site"
9
+ end
10
+
11
+ describe ".new" do
12
+ context "when no config file is present" do
13
+ it "should raise an error" do
14
+ lambda{
15
+ Site.new(@fixture_path + "../broken-site", @destination_path)
16
+ }.should raise_error
17
+ end
18
+ end
19
+
20
+ context "when a config file is present" do
21
+ it "should not raise any errors" do
22
+ lambda{
23
+ Site.new(@fixture_path, @destination_path)
24
+ }.should_not raise_error
25
+ end
26
+ end
27
+ end
28
+
29
+ describe "#find_layouts" do
30
+ it "should return all the layouts in the site" do
31
+ site = Site.new(@fixture_path, @destination_path)
32
+ site.find_layouts.should == [
33
+ Layout.new(@fixture_path + "/_layouts/blog.haml", site),
34
+ Layout.new(@fixture_path + "/_layouts/main.haml", site),
35
+ ]
36
+ end
37
+ end
38
+
39
+ describe '#find_layout_by_name' do
40
+ it "should return the named layout" do
41
+ site = Site.new(@fixture_path, @destination_path)
42
+ site.find_layout_by_name("main").should == Layout.new(@fixture_path + "/_layouts/main.haml", site)
43
+ end
44
+ end
45
+
46
+ describe "#find_posts" do
47
+ it "should return all the posts in the site" do
48
+ site = Site.new(@fixture_path, @destination_path)
49
+ site.find_posts.should == [
50
+ Post.new(@fixture_path + "/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml", site),
51
+ Post.new(@fixture_path + "/portfolio/_posts/a-cool-thing/a-cool-thing.html.haml", site),
52
+ ]
53
+ end
54
+ end
55
+
56
+ describe "#find_pages" do
57
+ it "should return all the pages in the site" do
58
+ site = Site.new(@fixture_path, @destination_path)
59
+ site.find_pages.should == [
60
+ Page.new(@fixture_path + "/blog.html.haml", site)
61
+ ]
62
+ end
63
+ end
64
+
65
+ describe '#find_static_files' do
66
+ it "should return all the static files in the site" do
67
+ site = Site.new(@fixture_path, @destination_path)
68
+ site.find_static_files.should == [
69
+ StaticFile.new(@fixture_path + "/css/main.css", site),
70
+ StaticFile.new(@fixture_path + "/javascript/main.js", site)
71
+ ]
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,48 @@
1
+ require 'spec_helper'
2
+
3
+ include Potion
4
+
5
+ describe StaticFile do
6
+ before do
7
+ @fixture_path = File.expand_path(File.dirname(__FILE__) + "/../fixtures/test-site/")
8
+ @destination_path = @fixture_path + "/_site"
9
+ @site = Site.new(@fixture_path, @destination_path)
10
+ end
11
+
12
+ describe '.new' do
13
+ it "should correctly load the static file's content" do
14
+ file = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
15
+ file.content.should == 'alert("This is JS!");'
16
+ end
17
+
18
+ it "should correctly set the file's output path" do
19
+ file = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
20
+ file.output_path.should == File.join(@fixture_path, "/_site/javascript/main.js")
21
+ end
22
+ end
23
+
24
+ describe '#==' do
25
+ context "when the two StaticFiles are identical" do
26
+ it "should return true" do
27
+ file1 = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
28
+ file2 = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
29
+ file1.should == file2
30
+ end
31
+ end
32
+
33
+ context "when the two StaticFiles are different" do
34
+ it "should return false" do
35
+ file1 = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
36
+ file2 = StaticFile.new(@fixture_path + "/portfolio/_posts/a-cool-thing/a-cool-thing.html.haml", @site)
37
+ file1.should_not == file2
38
+ end
39
+ end
40
+ end
41
+
42
+ describe '#render' do
43
+ it "should return the static file's content" do
44
+ file = StaticFile.new(@fixture_path + "/javascript/main.js", @site)
45
+ file.render.should == 'alert("This is JS!");'
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+ require 'rspec'
3
+ require 'potion'
metadata ADDED
@@ -0,0 +1,590 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: potion
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Aaron Gough
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: tilt
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.3.4
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.3.4
46
+ - !ruby/object:Gem::Dependency
47
+ name: commander
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 4.1.3
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 4.1.3
62
+ - !ruby/object:Gem::Dependency
63
+ name: mini_magick
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: directory_watcher
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: require_all
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: asciidoctor
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: 0.1.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 0.1.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: RedCloth
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: bluecloth
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: builder
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: coffee-script
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :runtime
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: contest
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :runtime
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: creole
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :runtime
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
223
+ name: erubis
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ - !ruby/object:Gem::Dependency
239
+ name: haml
240
+ requirement: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ! '>='
244
+ - !ruby/object:Gem::Version
245
+ version: 2.2.11
246
+ type: :runtime
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: 2.2.11
254
+ - !ruby/object:Gem::Dependency
255
+ name: kramdown
256
+ requirement: !ruby/object:Gem::Requirement
257
+ none: false
258
+ requirements:
259
+ - - ! '>='
260
+ - !ruby/object:Gem::Version
261
+ version: '0'
262
+ type: :runtime
263
+ prerelease: false
264
+ version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ - !ruby/object:Gem::Dependency
271
+ name: less
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ! '>='
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
278
+ type: :runtime
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ - !ruby/object:Gem::Dependency
287
+ name: liquid
288
+ requirement: !ruby/object:Gem::Requirement
289
+ none: false
290
+ requirements:
291
+ - - ! '>='
292
+ - !ruby/object:Gem::Version
293
+ version: '0'
294
+ type: :runtime
295
+ prerelease: false
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ! '>='
300
+ - !ruby/object:Gem::Version
301
+ version: '0'
302
+ - !ruby/object:Gem::Dependency
303
+ name: markaby
304
+ requirement: !ruby/object:Gem::Requirement
305
+ none: false
306
+ requirements:
307
+ - - ! '>='
308
+ - !ruby/object:Gem::Version
309
+ version: '0'
310
+ type: :runtime
311
+ prerelease: false
312
+ version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
314
+ requirements:
315
+ - - ! '>='
316
+ - !ruby/object:Gem::Version
317
+ version: '0'
318
+ - !ruby/object:Gem::Dependency
319
+ name: maruku
320
+ requirement: !ruby/object:Gem::Requirement
321
+ none: false
322
+ requirements:
323
+ - - ! '>='
324
+ - !ruby/object:Gem::Version
325
+ version: '0'
326
+ type: :runtime
327
+ prerelease: false
328
+ version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
330
+ requirements:
331
+ - - ! '>='
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ - !ruby/object:Gem::Dependency
335
+ name: nokogiri
336
+ requirement: !ruby/object:Gem::Requirement
337
+ none: false
338
+ requirements:
339
+ - - ! '>='
340
+ - !ruby/object:Gem::Version
341
+ version: '0'
342
+ type: :runtime
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ none: false
346
+ requirements:
347
+ - - ! '>='
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
350
+ - !ruby/object:Gem::Dependency
351
+ name: radius
352
+ requirement: !ruby/object:Gem::Requirement
353
+ none: false
354
+ requirements:
355
+ - - ! '>='
356
+ - !ruby/object:Gem::Version
357
+ version: '0'
358
+ type: :runtime
359
+ prerelease: false
360
+ version_requirements: !ruby/object:Gem::Requirement
361
+ none: false
362
+ requirements:
363
+ - - ! '>='
364
+ - !ruby/object:Gem::Version
365
+ version: '0'
366
+ - !ruby/object:Gem::Dependency
367
+ name: rdiscount
368
+ requirement: !ruby/object:Gem::Requirement
369
+ none: false
370
+ requirements:
371
+ - - ! '>='
372
+ - !ruby/object:Gem::Version
373
+ version: '0'
374
+ type: :runtime
375
+ prerelease: false
376
+ version_requirements: !ruby/object:Gem::Requirement
377
+ none: false
378
+ requirements:
379
+ - - ! '>='
380
+ - !ruby/object:Gem::Version
381
+ version: '0'
382
+ - !ruby/object:Gem::Dependency
383
+ name: rdoc
384
+ requirement: !ruby/object:Gem::Requirement
385
+ none: false
386
+ requirements:
387
+ - - ! '>='
388
+ - !ruby/object:Gem::Version
389
+ version: '0'
390
+ type: :runtime
391
+ prerelease: false
392
+ version_requirements: !ruby/object:Gem::Requirement
393
+ none: false
394
+ requirements:
395
+ - - ! '>='
396
+ - !ruby/object:Gem::Version
397
+ version: '0'
398
+ - !ruby/object:Gem::Dependency
399
+ name: redcarpet
400
+ requirement: !ruby/object:Gem::Requirement
401
+ none: false
402
+ requirements:
403
+ - - ! '>='
404
+ - !ruby/object:Gem::Version
405
+ version: '0'
406
+ type: :runtime
407
+ prerelease: false
408
+ version_requirements: !ruby/object:Gem::Requirement
409
+ none: false
410
+ requirements:
411
+ - - ! '>='
412
+ - !ruby/object:Gem::Version
413
+ version: '0'
414
+ - !ruby/object:Gem::Dependency
415
+ name: sass
416
+ requirement: !ruby/object:Gem::Requirement
417
+ none: false
418
+ requirements:
419
+ - - ! '>='
420
+ - !ruby/object:Gem::Version
421
+ version: '0'
422
+ type: :runtime
423
+ prerelease: false
424
+ version_requirements: !ruby/object:Gem::Requirement
425
+ none: false
426
+ requirements:
427
+ - - ! '>='
428
+ - !ruby/object:Gem::Version
429
+ version: '0'
430
+ - !ruby/object:Gem::Dependency
431
+ name: wikicloth
432
+ requirement: !ruby/object:Gem::Requirement
433
+ none: false
434
+ requirements:
435
+ - - ! '>='
436
+ - !ruby/object:Gem::Version
437
+ version: '0'
438
+ type: :runtime
439
+ prerelease: false
440
+ version_requirements: !ruby/object:Gem::Requirement
441
+ none: false
442
+ requirements:
443
+ - - ! '>='
444
+ - !ruby/object:Gem::Version
445
+ version: '0'
446
+ - !ruby/object:Gem::Dependency
447
+ name: yajl-ruby
448
+ requirement: !ruby/object:Gem::Requirement
449
+ none: false
450
+ requirements:
451
+ - - ! '>='
452
+ - !ruby/object:Gem::Version
453
+ version: '0'
454
+ type: :runtime
455
+ prerelease: false
456
+ version_requirements: !ruby/object:Gem::Requirement
457
+ none: false
458
+ requirements:
459
+ - - ! '>='
460
+ - !ruby/object:Gem::Version
461
+ version: '0'
462
+ - !ruby/object:Gem::Dependency
463
+ name: rdoc
464
+ requirement: !ruby/object:Gem::Requirement
465
+ none: false
466
+ requirements:
467
+ - - ! '>='
468
+ - !ruby/object:Gem::Version
469
+ version: '0'
470
+ type: :runtime
471
+ prerelease: false
472
+ version_requirements: !ruby/object:Gem::Requirement
473
+ none: false
474
+ requirements:
475
+ - - ! '>='
476
+ - !ruby/object:Gem::Version
477
+ version: '0'
478
+ - !ruby/object:Gem::Dependency
479
+ name: rspec
480
+ requirement: !ruby/object:Gem::Requirement
481
+ none: false
482
+ requirements:
483
+ - - ~>
484
+ - !ruby/object:Gem::Version
485
+ version: '2'
486
+ type: :development
487
+ prerelease: false
488
+ version_requirements: !ruby/object:Gem::Requirement
489
+ none: false
490
+ requirements:
491
+ - - ~>
492
+ - !ruby/object:Gem::Version
493
+ version: '2'
494
+ - !ruby/object:Gem::Dependency
495
+ name: rake
496
+ requirement: !ruby/object:Gem::Requirement
497
+ none: false
498
+ requirements:
499
+ - - ! '>='
500
+ - !ruby/object:Gem::Version
501
+ version: '0'
502
+ type: :development
503
+ prerelease: false
504
+ version_requirements: !ruby/object:Gem::Requirement
505
+ none: false
506
+ requirements:
507
+ - - ! '>='
508
+ - !ruby/object:Gem::Version
509
+ version: '0'
510
+ description: A static site generator that supports code, photos and files.
511
+ email:
512
+ - aaron@aarongough.com
513
+ executables:
514
+ - potion
515
+ extensions: []
516
+ extra_rdoc_files: []
517
+ files:
518
+ - .gitignore
519
+ - Gemfile
520
+ - Gemfile.lock
521
+ - README.md
522
+ - Rakefile
523
+ - bin/potion
524
+ - example_site/_config.yaml
525
+ - example_site/_extensions/example_extension.rb
526
+ - example_site/_layouts/default.haml
527
+ - example_site/blog/_posts/2013-03-04-example-post-1/example-post-1.html.haml
528
+ - example_site/blog/_posts/2013-03-04-example-post-1/kitten_and_duck.jpg
529
+ - example_site/blog/_posts/2013-03-04-example-post-1/kitten_and_yarn.jpg
530
+ - example_site/blog/_posts/2013-03-05-example-post-2/example-post-2.html.haml
531
+ - example_site/index.html.haml
532
+ - lib/potion.rb
533
+ - lib/potion/extensions/category_helper.rb
534
+ - lib/potion/extensions/deploy_to_gh_pages.rb
535
+ - lib/potion/extensions/link_to_helper.rb
536
+ - lib/potion/extensions/photo_helper.rb
537
+ - lib/potion/extensions/photo_resize.rb
538
+ - lib/potion/layout.rb
539
+ - lib/potion/page.rb
540
+ - lib/potion/post.rb
541
+ - lib/potion/renderable.rb
542
+ - lib/potion/site.rb
543
+ - lib/potion/static_file.rb
544
+ - lib/potion/version.rb
545
+ - potion.gemspec
546
+ - spec/extensions/category_spec.rb
547
+ - spec/extensions/link_to_spec.rb
548
+ - spec/fixtures/a-new-thing-2.html
549
+ - spec/fixtures/test-site/_config.yaml
550
+ - spec/fixtures/test-site/_extensions/test_extension.rb
551
+ - spec/fixtures/test-site/_layouts/blog.haml
552
+ - spec/fixtures/test-site/_layouts/main.haml
553
+ - spec/fixtures/test-site/blog.html.haml
554
+ - spec/fixtures/test-site/blog/_posts/2013-03-04-a-new-thing/a-new-thing.html.haml
555
+ - spec/fixtures/test-site/blog/_posts/2013-03-04-a-new-thing/an-extra-thing.txt
556
+ - spec/fixtures/test-site/css/main.css
557
+ - spec/fixtures/test-site/javascript/main.js
558
+ - spec/fixtures/test-site/portfolio/.DS_Store
559
+ - spec/fixtures/test-site/portfolio/_posts/a-cool-thing/a-cool-thing.html.haml
560
+ - spec/potion/layout_spec.rb
561
+ - spec/potion/post_spec.rb
562
+ - spec/potion/renderable_spec.rb
563
+ - spec/potion/site_spec.rb
564
+ - spec/potion/static_file_spec.rb
565
+ - spec/spec_helper.rb
566
+ homepage: http://github.com/aarongough/potion
567
+ licenses: []
568
+ post_install_message:
569
+ rdoc_options: []
570
+ require_paths:
571
+ - lib
572
+ required_ruby_version: !ruby/object:Gem::Requirement
573
+ none: false
574
+ requirements:
575
+ - - ! '>='
576
+ - !ruby/object:Gem::Version
577
+ version: '0'
578
+ required_rubygems_version: !ruby/object:Gem::Requirement
579
+ none: false
580
+ requirements:
581
+ - - ! '>='
582
+ - !ruby/object:Gem::Version
583
+ version: 1.3.6
584
+ requirements: []
585
+ rubyforge_project: potion
586
+ rubygems_version: 1.8.25
587
+ signing_key:
588
+ specification_version: 3
589
+ summary: A static site generator that supports code, photos and files.
590
+ test_files: []