danwrong-evil 0.1.1 → 0.1.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.
- data/CHANGELOG +1 -0
- data/Manifest +11 -1
- data/README.textile +48 -10
- data/Rakefile +2 -1
- data/assets/evil-lib.js +306 -7
- data/assets/evil.css +9 -1
- data/assets/evil.js +22 -1
- data/evil.gemspec +5 -5
- data/lib/evil/application.rb +17 -1
- data/lib/evil/helpers.rb +1 -1
- data/lib/evil/models/template.rb +1 -1
- data/lib/evil/plugin.rb +4 -0
- data/lib/evil/plugin/base.rb +2 -2
- data/lib/evil/plugin/block_tag.rb +48 -0
- data/lib/evil/plugin/configuration.rb +4 -8
- data/lib/evil/plugin/filesystem.rb +1 -1
- data/lib/evil/plugin/singleton_tag.rb +18 -0
- data/lib/evil/plugin/tag.rb +18 -52
- data/test/application/frontend_test.rb +52 -0
- data/test/{app/evil_test.rb → application/openid_test.rb} +5 -23
- data/test/application/plugin_config_test.rb +73 -0
- data/test/application/template_test.rb +119 -0
- data/test/test_helper.rb +26 -1
- data/test/units/models/template_test.rb +16 -0
- data/test/units/models/whitelist_test.rb +31 -0
- data/test/units/plugin/base_test.rb +27 -2
- data/test/units/plugin/configuration_test.rb +60 -0
- data/test/units/plugin/environment_test.rb +13 -0
- data/test/units/plugin/filesystem_test.rb +22 -0
- data/test/units/plugin/tag_test.rb +36 -7
- data/views/index.haml +2 -2
- metadata +24 -4
data/views/index.haml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#overview
|
2
|
-
%table#
|
2
|
+
%table#templates
|
3
3
|
%thead
|
4
4
|
%tr.title
|
5
5
|
%th{ :colspan => 3 } Templates
|
@@ -10,7 +10,7 @@
|
|
10
10
|
%th
|
11
11
|
%tbody
|
12
12
|
- @templates.each_with_index do |template, i|
|
13
|
-
%tr{ :class => ('alt' if i % 2 == 1) }
|
13
|
+
%tr{ :class => ('alt' if i % 2 == 1), :id => "#{template.id}t" }
|
14
14
|
%td= template.title
|
15
15
|
%td= template.route
|
16
16
|
%td= template.route.empty? ? 'N/A' : template.ttl
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danwrong-evil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Webb
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-04-
|
12
|
+
date: 2009-04-22 00:00:00 -07:00
|
13
13
|
default_executable: evil
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -144,9 +144,11 @@ extra_rdoc_files:
|
|
144
144
|
- lib/evil/models.rb
|
145
145
|
- lib/evil/open_id.rb
|
146
146
|
- lib/evil/plugin/base.rb
|
147
|
+
- lib/evil/plugin/block_tag.rb
|
147
148
|
- lib/evil/plugin/configuration.rb
|
148
149
|
- lib/evil/plugin/environment.rb
|
149
150
|
- lib/evil/plugin/filesystem.rb
|
151
|
+
- lib/evil/plugin/singleton_tag.rb
|
150
152
|
- lib/evil/plugin/tag.rb
|
151
153
|
- lib/evil/plugin.rb
|
152
154
|
- lib/evil/setup/db_tool.rb
|
@@ -173,9 +175,11 @@ files:
|
|
173
175
|
- lib/evil/models.rb
|
174
176
|
- lib/evil/open_id.rb
|
175
177
|
- lib/evil/plugin/base.rb
|
178
|
+
- lib/evil/plugin/block_tag.rb
|
176
179
|
- lib/evil/plugin/configuration.rb
|
177
180
|
- lib/evil/plugin/environment.rb
|
178
181
|
- lib/evil/plugin/filesystem.rb
|
182
|
+
- lib/evil/plugin/singleton_tag.rb
|
179
183
|
- lib/evil/plugin/tag.rb
|
180
184
|
- lib/evil/plugin.rb
|
181
185
|
- lib/evil/setup/db_tool.rb
|
@@ -186,10 +190,18 @@ files:
|
|
186
190
|
- Manifest
|
187
191
|
- Rakefile
|
188
192
|
- README.textile
|
189
|
-
- test/
|
193
|
+
- test/application/frontend_test.rb
|
194
|
+
- test/application/openid_test.rb
|
195
|
+
- test/application/plugin_config_test.rb
|
196
|
+
- test/application/template_test.rb
|
190
197
|
- test/dev_env.rb
|
191
198
|
- test/test_helper.rb
|
199
|
+
- test/units/models/template_test.rb
|
200
|
+
- test/units/models/whitelist_test.rb
|
192
201
|
- test/units/plugin/base_test.rb
|
202
|
+
- test/units/plugin/configuration_test.rb
|
203
|
+
- test/units/plugin/environment_test.rb
|
204
|
+
- test/units/plugin/filesystem_test.rb
|
193
205
|
- test/units/plugin/tag_test.rb
|
194
206
|
- views/_banner.haml
|
195
207
|
- views/_errors.haml
|
@@ -236,7 +248,15 @@ signing_key:
|
|
236
248
|
specification_version: 2
|
237
249
|
summary: A simple framework for creating sites from 3rd party data and services
|
238
250
|
test_files:
|
239
|
-
- test/
|
251
|
+
- test/application/frontend_test.rb
|
252
|
+
- test/application/openid_test.rb
|
253
|
+
- test/application/plugin_config_test.rb
|
254
|
+
- test/application/template_test.rb
|
240
255
|
- test/test_helper.rb
|
256
|
+
- test/units/models/template_test.rb
|
257
|
+
- test/units/models/whitelist_test.rb
|
241
258
|
- test/units/plugin/base_test.rb
|
259
|
+
- test/units/plugin/configuration_test.rb
|
260
|
+
- test/units/plugin/environment_test.rb
|
261
|
+
- test/units/plugin/filesystem_test.rb
|
242
262
|
- test/units/plugin/tag_test.rb
|