fir 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +33 -8
- data/bin/fir +7 -12
- data/example/Rakefile +4 -1
- data/example/deploy.yml +3 -0
- data/example/public/cache/404.html +46 -0
- data/example/public/cache/contact-us.html +48 -0
- data/example/public/cache/index.html +52 -0
- data/example/public/cache/products/dynamite-plus.html +52 -0
- data/example/public/cache/products/dynamite.html +52 -0
- data/example/public/cache/products/index.html +58 -0
- data/example/public/cache/products/mouse-trap.html +52 -0
- data/example/users.yml +0 -1
- data/lib/fir/admin.rb +9 -6
- data/lib/fir/generator.rb +33 -0
- data/lib/fir/tasks.rb +58 -7
- data/skeleton/public/dispatch.cgi +34 -0
- data/skeleton/public/htaccess +3 -0
- data/spec/admin_spec.rb +172 -0
- data/spec/fir_spec.rb +75 -48
- data/spec/generator_spec.rb +132 -0
- data/spec/rack_integration_spec.rb +44 -0
- data/spec/spec_helper.rb +16 -2
- data/spec/support/cache_testing.rb +20 -0
- data/spec/support/file_matchers.rb +22 -0
- data/spec/support/server_matchers.rb +39 -0
- data/spec/support/server_testing.rb +35 -0
- data/spec/support/test_app_setup.rb +11 -0
- data/spec/tasks_spec.rb +132 -0
- metadata +85 -9
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 10
|
9
|
+
version: 0.0.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- jarrett
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-21 00:00:00 -05:00
|
18
18
|
default_executable: fir
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -32,9 +32,65 @@ dependencies:
|
|
32
32
|
type: :development
|
33
33
|
version_requirements: *id001
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
35
|
+
name: webrat
|
36
36
|
prerelease: false
|
37
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
- 7
|
44
|
+
- 0
|
45
|
+
version: 0.7.0
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rack-test
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
- 5
|
58
|
+
- 3
|
59
|
+
version: 0.5.3
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: testunitxml
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
- 1
|
72
|
+
- 5
|
73
|
+
version: 0.1.5
|
74
|
+
type: :development
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: activesupport
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 2
|
85
|
+
- 3
|
86
|
+
- 5
|
87
|
+
version: 2.3.5
|
88
|
+
type: :runtime
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rack
|
92
|
+
prerelease: false
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
38
94
|
requirements:
|
39
95
|
- - ">="
|
40
96
|
- !ruby/object:Gem::Version
|
@@ -44,11 +100,11 @@ dependencies:
|
|
44
100
|
- 1
|
45
101
|
version: 1.0.1
|
46
102
|
type: :runtime
|
47
|
-
version_requirements: *
|
103
|
+
version_requirements: *id006
|
48
104
|
- !ruby/object:Gem::Dependency
|
49
105
|
name: builder
|
50
106
|
prerelease: false
|
51
|
-
requirement: &
|
107
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
52
108
|
requirements:
|
53
109
|
- - ">="
|
54
110
|
- !ruby/object:Gem::Version
|
@@ -58,11 +114,11 @@ dependencies:
|
|
58
114
|
- 2
|
59
115
|
version: 2.1.2
|
60
116
|
type: :runtime
|
61
|
-
version_requirements: *
|
117
|
+
version_requirements: *id007
|
62
118
|
- !ruby/object:Gem::Dependency
|
63
119
|
name: maruku
|
64
120
|
prerelease: false
|
65
|
-
requirement: &
|
121
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
66
122
|
requirements:
|
67
123
|
- - ">="
|
68
124
|
- !ruby/object:Gem::Version
|
@@ -72,7 +128,7 @@ dependencies:
|
|
72
128
|
- 0
|
73
129
|
version: 0.6.0
|
74
130
|
type: :runtime
|
75
|
-
version_requirements: *
|
131
|
+
version_requirements: *id008
|
76
132
|
description: Rack-based, Passenger-compatible, with pretty URLs and simple HTTP API for managing content
|
77
133
|
email: jarrett@uchicago.edu
|
78
134
|
executables:
|
@@ -88,6 +144,7 @@ files:
|
|
88
144
|
- example/boot_example.rb
|
89
145
|
- example/config.rb
|
90
146
|
- example/config.ru
|
147
|
+
- example/deploy.yml
|
91
148
|
- example/layouts/application.html.erb
|
92
149
|
- example/menus.yml
|
93
150
|
- example/pages.yml
|
@@ -98,6 +155,13 @@ files:
|
|
98
155
|
- example/pages/products/dynamite.html.erb
|
99
156
|
- example/pages/products/index.markdown
|
100
157
|
- example/pages/products/mouse-trap.html.erb
|
158
|
+
- example/public/cache/404.html
|
159
|
+
- example/public/cache/contact-us.html
|
160
|
+
- example/public/cache/index.html
|
161
|
+
- example/public/cache/products/dynamite-plus.html
|
162
|
+
- example/public/cache/products/dynamite.html
|
163
|
+
- example/public/cache/products/index.html
|
164
|
+
- example/public/cache/products/mouse-trap.html
|
101
165
|
- example/public/dispatch.cgi
|
102
166
|
- example/public/manage-content.html
|
103
167
|
- example/public/static.txt
|
@@ -107,6 +171,7 @@ files:
|
|
107
171
|
- lib/fir.rb
|
108
172
|
- lib/fir/admin.rb
|
109
173
|
- lib/fir/boot.rb
|
174
|
+
- lib/fir/generator.rb
|
110
175
|
- lib/fir/helpers.rb
|
111
176
|
- lib/fir/pages.rb
|
112
177
|
- lib/fir/static.rb
|
@@ -121,6 +186,8 @@ files:
|
|
121
186
|
- skeleton/pages/404.html.erb
|
122
187
|
- skeleton/pages/contact.markdown
|
123
188
|
- skeleton/pages/index.markdown
|
189
|
+
- skeleton/public/dispatch.cgi
|
190
|
+
- skeleton/public/htaccess
|
124
191
|
- skeleton/public/stylesheets/style.css
|
125
192
|
- skeleton/tmp/restart.txt
|
126
193
|
- LICENSE
|
@@ -156,5 +223,14 @@ signing_key:
|
|
156
223
|
specification_version: 3
|
157
224
|
summary: A minimalist Ruby framework for small, static sites
|
158
225
|
test_files:
|
226
|
+
- spec/admin_spec.rb
|
159
227
|
- spec/fir_spec.rb
|
228
|
+
- spec/generator_spec.rb
|
229
|
+
- spec/rack_integration_spec.rb
|
160
230
|
- spec/spec_helper.rb
|
231
|
+
- spec/support/cache_testing.rb
|
232
|
+
- spec/support/file_matchers.rb
|
233
|
+
- spec/support/server_matchers.rb
|
234
|
+
- spec/support/server_testing.rb
|
235
|
+
- spec/support/test_app_setup.rb
|
236
|
+
- spec/tasks_spec.rb
|