staticpress 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/.gitignore +9 -0
  2. data/.rbenv-version +1 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +3 -0
  5. data/Rakefile +21 -0
  6. data/bin/staticpress +6 -0
  7. data/lib/skeleton/Gemfile +10 -0
  8. data/lib/skeleton/README.markdown +21 -0
  9. data/lib/skeleton/config.rb +14 -0
  10. data/lib/skeleton/config.ru +8 -0
  11. data/lib/skeleton/config.yml +63 -0
  12. data/lib/staticpress/booter.rb +7 -0
  13. data/lib/staticpress/cli.rb +123 -0
  14. data/lib/staticpress/configuration.rb +24 -0
  15. data/lib/staticpress/content/base.rb +122 -0
  16. data/lib/staticpress/content/category.rb +34 -0
  17. data/lib/staticpress/content/collection_content.rb +13 -0
  18. data/lib/staticpress/content/index.rb +20 -0
  19. data/lib/staticpress/content/page.rb +64 -0
  20. data/lib/staticpress/content/post.rb +88 -0
  21. data/lib/staticpress/content/resource_content.rb +28 -0
  22. data/lib/staticpress/content/static_content.rb +24 -0
  23. data/lib/staticpress/content/tag.rb +34 -0
  24. data/lib/staticpress/content/theme.rb +48 -0
  25. data/lib/staticpress/error.rb +4 -0
  26. data/lib/staticpress/helpers.rb +57 -0
  27. data/lib/staticpress/js_object.rb +51 -0
  28. data/lib/staticpress/metadata.rb +24 -0
  29. data/lib/staticpress/plugin.rb +33 -0
  30. data/lib/staticpress/plugins/blockquote.rb +6 -0
  31. data/lib/staticpress/plugins/gist.rb +6 -0
  32. data/lib/staticpress/plugins/titlecase.rb +6 -0
  33. data/lib/staticpress/plugins.rb +6 -0
  34. data/lib/staticpress/route.rb +123 -0
  35. data/lib/staticpress/server.rb +21 -0
  36. data/lib/staticpress/site.rb +57 -0
  37. data/lib/staticpress/theme.rb +43 -0
  38. data/lib/staticpress/version.rb +12 -0
  39. data/lib/staticpress/view_helpers.rb +35 -0
  40. data/lib/staticpress.rb +15 -0
  41. data/lib/themes/classic/assets/scripts/application.js +4 -0
  42. data/lib/themes/classic/assets/styles/all.sass +0 -0
  43. data/lib/themes/classic/includes/list_posts.haml +3 -0
  44. data/lib/themes/classic/layouts/archive.haml +0 -0
  45. data/lib/themes/classic/layouts/atom.haml +0 -0
  46. data/lib/themes/classic/layouts/default.haml +5 -0
  47. data/lib/themes/classic/layouts/index.haml +0 -0
  48. data/lib/themes/classic/layouts/post_index.haml +5 -0
  49. data/lib/themes/classic/views/default.haml +5 -0
  50. data/staticpress.gemspec +33 -0
  51. data/tests/lib/staticpress/cli_test.rb +65 -0
  52. data/tests/lib/staticpress/configuration_test.rb +4 -0
  53. data/tests/lib/staticpress/content/base_test.rb +9 -0
  54. data/tests/lib/staticpress/content/category_test.rb +62 -0
  55. data/tests/lib/staticpress/content/index_test.rb +45 -0
  56. data/tests/lib/staticpress/content/page_test.rb +133 -0
  57. data/tests/lib/staticpress/content/post_test.rb +81 -0
  58. data/tests/lib/staticpress/content/tag_test.rb +60 -0
  59. data/tests/lib/staticpress/content/theme_test.rb +103 -0
  60. data/tests/lib/staticpress/helpers_test.rb +57 -0
  61. data/tests/lib/staticpress/js_object_test.rb +45 -0
  62. data/tests/lib/staticpress/metadata_test.rb +19 -0
  63. data/tests/lib/staticpress/plugin_test.rb +4 -0
  64. data/tests/lib/staticpress/route_test.rb +210 -0
  65. data/tests/lib/staticpress/server_test.rb +4 -0
  66. data/tests/lib/staticpress/site_test.rb +25 -0
  67. data/tests/lib/staticpress/theme_test.rb +68 -0
  68. data/tests/lib/staticpress/view_helpers_test.rb +32 -0
  69. data/tests/lib/staticpress_test.rb +15 -0
  70. data/tests/sample_sites/test_blog/Gemfile +10 -0
  71. data/tests/sample_sites/test_blog/README.markdown +21 -0
  72. data/tests/sample_sites/test_blog/config.rb +14 -0
  73. data/tests/sample_sites/test_blog/config.ru +8 -0
  74. data/tests/sample_sites/test_blog/config.yml +4 -0
  75. data/tests/sample_sites/test_blog/content/_posts/2011-07-20-hello.markdown +5 -0
  76. data/tests/sample_sites/test_blog/content/_posts/2011-08-01-announcing-staticpress.markdown +7 -0
  77. data/tests/sample_sites/test_blog/content/_posts/2011-08-02-staticpress.markdown +7 -0
  78. data/tests/sample_sites/test_blog/content/_posts/2011-08-06-blogging-with-staticpress.markdown +7 -0
  79. data/tests/sample_sites/test_blog/content/_posts/2011-08-06-conferences.markdown +5 -0
  80. data/tests/sample_sites/test_blog/content/_posts/2011-08-06-in-charlotte.markdown +9 -0
  81. data/tests/sample_sites/test_blog/content/_posts/2011-08-20-forever.markdown +1 -0
  82. data/tests/sample_sites/test_blog/content/about.markdown +1 -0
  83. data/tests/sample_sites/test_blog/content/contact.markdown +3 -0
  84. data/tests/sample_sites/test_blog/content/foo/bar/baz.markdown +1 -0
  85. data/tests/sample_sites/test_blog/content/plain.txt +1 -0
  86. data/tests/sample_sites/test_blog/content/ruby.png +0 -0
  87. data/tests/sample_sites/test_blog/content/style1.css +3 -0
  88. data/tests/sample_sites/test_blog/content/style2.css.sass +2 -0
  89. data/tests/sample_sites/test_blog/content/style3.sass +2 -0
  90. data/tests/test_helper.rb +17 -0
  91. data.tar.gz.sig +0 -0
  92. metadata +255 -0
  93. metadata.gz.sig +3 -0
metadata ADDED
@@ -0,0 +1,255 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: staticpress
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Raving Genius
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - ! '-----BEGIN CERTIFICATE-----
13
+
14
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRAwDgYDVQQDDAdyZ19j
15
+
16
+ b2RlMRwwGgYKCZImiZPyLGQBGRYMcmF2aW5nZ2VuaXVzMRMwEQYKCZImiZPyLGQB
17
+
18
+ GRYDY29tMB4XDTExMDEzMTAyMzI1MloXDTEyMDEzMTAyMzI1MlowRTEQMA4GA1UE
19
+
20
+ AwwHcmdfY29kZTEcMB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-10-23 00:00:00.000000000Z
54
+ dependencies:
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: &10325500 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: *10325500
66
+ - !ruby/object:Gem::Dependency
67
+ name: rack
68
+ requirement: &10325080 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: *10325080
77
+ - !ruby/object:Gem::Dependency
78
+ name: ruby-debug19
79
+ requirement: &10350700 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: *10350700
88
+ - !ruby/object:Gem::Dependency
89
+ name: bundler
90
+ requirement: &10350280 !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: *10350280
99
+ - !ruby/object:Gem::Dependency
100
+ name: rack
101
+ requirement: &10349860 !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ type: :runtime
108
+ prerelease: false
109
+ version_requirements: *10349860
110
+ - !ruby/object:Gem::Dependency
111
+ name: thor
112
+ requirement: &10349440 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: *10349440
121
+ - !ruby/object:Gem::Dependency
122
+ name: tilt
123
+ requirement: &10349020 !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ type: :runtime
130
+ prerelease: false
131
+ version_requirements: *10349020
132
+ description:
133
+ email:
134
+ - rg+code@ravinggenius.com
135
+ executables:
136
+ - staticpress
137
+ extensions: []
138
+ extra_rdoc_files: []
139
+ files:
140
+ - .gitignore
141
+ - .rbenv-version
142
+ - .rvmrc
143
+ - Gemfile
144
+ - Rakefile
145
+ - bin/staticpress
146
+ - lib/skeleton/Gemfile
147
+ - lib/skeleton/README.markdown
148
+ - lib/skeleton/config.rb
149
+ - lib/skeleton/config.ru
150
+ - lib/skeleton/config.yml
151
+ - lib/staticpress.rb
152
+ - lib/staticpress/booter.rb
153
+ - lib/staticpress/cli.rb
154
+ - lib/staticpress/configuration.rb
155
+ - lib/staticpress/content/base.rb
156
+ - lib/staticpress/content/category.rb
157
+ - lib/staticpress/content/collection_content.rb
158
+ - lib/staticpress/content/index.rb
159
+ - lib/staticpress/content/page.rb
160
+ - lib/staticpress/content/post.rb
161
+ - lib/staticpress/content/resource_content.rb
162
+ - lib/staticpress/content/static_content.rb
163
+ - lib/staticpress/content/tag.rb
164
+ - lib/staticpress/content/theme.rb
165
+ - lib/staticpress/error.rb
166
+ - lib/staticpress/helpers.rb
167
+ - lib/staticpress/js_object.rb
168
+ - lib/staticpress/metadata.rb
169
+ - lib/staticpress/plugin.rb
170
+ - lib/staticpress/plugins.rb
171
+ - lib/staticpress/plugins/blockquote.rb
172
+ - lib/staticpress/plugins/gist.rb
173
+ - lib/staticpress/plugins/titlecase.rb
174
+ - lib/staticpress/route.rb
175
+ - lib/staticpress/server.rb
176
+ - lib/staticpress/site.rb
177
+ - lib/staticpress/theme.rb
178
+ - lib/staticpress/version.rb
179
+ - lib/staticpress/view_helpers.rb
180
+ - lib/themes/classic/assets/scripts/application.js
181
+ - lib/themes/classic/assets/styles/all.sass
182
+ - lib/themes/classic/includes/list_posts.haml
183
+ - lib/themes/classic/layouts/archive.haml
184
+ - lib/themes/classic/layouts/atom.haml
185
+ - lib/themes/classic/layouts/default.haml
186
+ - lib/themes/classic/layouts/index.haml
187
+ - lib/themes/classic/layouts/post_index.haml
188
+ - lib/themes/classic/views/default.haml
189
+ - staticpress.gemspec
190
+ - tests/lib/staticpress/cli_test.rb
191
+ - tests/lib/staticpress/configuration_test.rb
192
+ - tests/lib/staticpress/content/base_test.rb
193
+ - tests/lib/staticpress/content/category_test.rb
194
+ - tests/lib/staticpress/content/index_test.rb
195
+ - tests/lib/staticpress/content/page_test.rb
196
+ - tests/lib/staticpress/content/post_test.rb
197
+ - tests/lib/staticpress/content/tag_test.rb
198
+ - tests/lib/staticpress/content/theme_test.rb
199
+ - tests/lib/staticpress/helpers_test.rb
200
+ - tests/lib/staticpress/js_object_test.rb
201
+ - tests/lib/staticpress/metadata_test.rb
202
+ - tests/lib/staticpress/plugin_test.rb
203
+ - tests/lib/staticpress/route_test.rb
204
+ - tests/lib/staticpress/server_test.rb
205
+ - tests/lib/staticpress/site_test.rb
206
+ - tests/lib/staticpress/theme_test.rb
207
+ - tests/lib/staticpress/view_helpers_test.rb
208
+ - tests/lib/staticpress_test.rb
209
+ - tests/sample_sites/test_blog/Gemfile
210
+ - tests/sample_sites/test_blog/README.markdown
211
+ - tests/sample_sites/test_blog/config.rb
212
+ - tests/sample_sites/test_blog/config.ru
213
+ - tests/sample_sites/test_blog/config.yml
214
+ - tests/sample_sites/test_blog/content/_posts/2011-07-20-hello.markdown
215
+ - tests/sample_sites/test_blog/content/_posts/2011-08-01-announcing-staticpress.markdown
216
+ - tests/sample_sites/test_blog/content/_posts/2011-08-02-staticpress.markdown
217
+ - tests/sample_sites/test_blog/content/_posts/2011-08-06-blogging-with-staticpress.markdown
218
+ - tests/sample_sites/test_blog/content/_posts/2011-08-06-conferences.markdown
219
+ - tests/sample_sites/test_blog/content/_posts/2011-08-06-in-charlotte.markdown
220
+ - tests/sample_sites/test_blog/content/_posts/2011-08-20-forever.markdown
221
+ - tests/sample_sites/test_blog/content/about.markdown
222
+ - tests/sample_sites/test_blog/content/contact.markdown
223
+ - tests/sample_sites/test_blog/content/foo/bar/baz.markdown
224
+ - tests/sample_sites/test_blog/content/plain.txt
225
+ - tests/sample_sites/test_blog/content/ruby.png
226
+ - tests/sample_sites/test_blog/content/style1.css
227
+ - tests/sample_sites/test_blog/content/style2.css.sass
228
+ - tests/sample_sites/test_blog/content/style3.sass
229
+ - tests/test_helper.rb
230
+ homepage:
231
+ licenses:
232
+ - MIT
233
+ post_install_message:
234
+ rdoc_options: []
235
+ require_paths:
236
+ - lib
237
+ required_ruby_version: !ruby/object:Gem::Requirement
238
+ none: false
239
+ requirements:
240
+ - - ! '>='
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ required_rubygems_version: !ruby/object:Gem::Requirement
244
+ none: false
245
+ requirements:
246
+ - - ! '>='
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ requirements: []
250
+ rubyforge_project: staticpress
251
+ rubygems_version: 1.8.11
252
+ signing_key:
253
+ specification_version: 3
254
+ summary: ! '...'
255
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ ��Uw ����~�T���*������(���"؅NF���U}
2
+ .�#�1�[���m<$YZ���0��/�-XR���Q��C6B�`u
3
+ �5 �A��- )n%�l