inversion 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.rdoc +23 -0
  3. data/Manifest.txt +1 -38
  4. data/Rakefile +9 -2
  5. data/lib/inversion.rb +2 -2
  6. data/lib/inversion/template.rb +1 -1
  7. data/lib/inversion/template/begintag.rb +1 -1
  8. data/lib/inversion/template/elsiftag.rb +1 -1
  9. metadata +33 -69
  10. metadata.gz.sig +1 -2
  11. data/History.md +0 -4
  12. data/manual/layouts/default.erb +0 -87
  13. data/manual/lib/api-filter.rb +0 -96
  14. data/manual/lib/editorial-filter.rb +0 -59
  15. data/manual/lib/examples-filter.rb +0 -238
  16. data/manual/lib/links-filter.rb +0 -111
  17. data/manual/resources/css/manual.css +0 -764
  18. data/manual/resources/fonts/GraublauWeb.otf +0 -0
  19. data/manual/resources/fonts/GraublauWebBold.otf +0 -0
  20. data/manual/resources/fonts/Inconsolata.otf +0 -0
  21. data/manual/resources/images/arrow_225_small.png +0 -0
  22. data/manual/resources/images/arrow_315_small.png +0 -0
  23. data/manual/resources/images/arrow_skip.png +0 -0
  24. data/manual/resources/images/cc-by.png +0 -0
  25. data/manual/resources/images/dialog-error.png +0 -0
  26. data/manual/resources/images/dialog-information.png +0 -0
  27. data/manual/resources/images/dialog-warning.png +0 -0
  28. data/manual/resources/images/emblem-important.png +0 -0
  29. data/manual/resources/images/help.png +0 -0
  30. data/manual/resources/images/information.png +0 -0
  31. data/manual/resources/images/magnifier.png +0 -0
  32. data/manual/resources/images/magnifier_left.png +0 -0
  33. data/manual/resources/images/page_white_code.png +0 -0
  34. data/manual/resources/images/page_white_copy.png +0 -0
  35. data/manual/resources/images/printer.png +0 -0
  36. data/manual/resources/images/question.png +0 -0
  37. data/manual/resources/images/scripts_code.png +0 -0
  38. data/manual/resources/images/wrap.png +0 -0
  39. data/manual/resources/images/wrapping.png +0 -0
  40. data/manual/resources/js/jquery-1.4.4.min.js +0 -167
  41. data/manual/resources/js/manual.js +0 -30
  42. data/manual/resources/js/sh.js +0 -580
  43. data/manual/resources/swf/clipboard.swf +0 -0
  44. data/manual/src/examples.page +0 -154
  45. data/manual/src/gettingstarted.page +0 -64
  46. data/manual/src/index.page +0 -97
  47. data/manual/src/tags.page +0 -501
  48. data/manual/src/templates.page +0 -74
data.tar.gz.sig CHANGED
Binary file
data/History.rdoc ADDED
@@ -0,0 +1,23 @@
1
+ == v0.0.4 [2011-09-21] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Avoid Pathname#expand_path in Inversion::Template.load
4
+ [optimization]
5
+ - Fix circular require in inversion/template/elsiftag.rb.
6
+ - Fix a shadowed variable in BeginTag#handle_exception.
7
+ - Added a manual
8
+
9
+
10
+ == v0.0.3 [2011-08-15] Michael Granger <ged@FaerieMUD.org>
11
+
12
+ - Dependency fix
13
+
14
+
15
+ == v0.0.2 [2011-08-15] Michael Granger <ged@FaerieMUD.org>
16
+
17
+ - Packaging fix
18
+
19
+
20
+ == v0.0.1 [2011-02-02] Michael Granger <ged@FaerieMUD.org>
21
+
22
+ Initial release.
23
+
data/Manifest.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  ChangeLog
2
- History.md
2
+ History.rdoc
3
3
  Manifest.txt
4
4
  README.rdoc
5
5
  Rakefile
@@ -42,43 +42,6 @@ lib/inversion/template/uriencodetag.rb
42
42
  lib/inversion/template/yieldtag.rb
43
43
  lib/inversion/tilt.rb
44
44
  lib/inversion/utils.rb
45
- manual/layouts/default.erb
46
- manual/lib/api-filter.rb
47
- manual/lib/editorial-filter.rb
48
- manual/lib/examples-filter.rb
49
- manual/lib/links-filter.rb
50
- manual/resources/css/manual.css
51
- manual/resources/fonts/GraublauWeb.otf
52
- manual/resources/fonts/GraublauWebBold.otf
53
- manual/resources/fonts/Inconsolata.otf
54
- manual/resources/images/arrow_225_small.png
55
- manual/resources/images/arrow_315_small.png
56
- manual/resources/images/arrow_skip.png
57
- manual/resources/images/cc-by.png
58
- manual/resources/images/dialog-error.png
59
- manual/resources/images/dialog-information.png
60
- manual/resources/images/dialog-warning.png
61
- manual/resources/images/emblem-important.png
62
- manual/resources/images/help.png
63
- manual/resources/images/information.png
64
- manual/resources/images/magnifier.png
65
- manual/resources/images/magnifier_left.png
66
- manual/resources/images/page_white_code.png
67
- manual/resources/images/page_white_copy.png
68
- manual/resources/images/printer.png
69
- manual/resources/images/question.png
70
- manual/resources/images/scripts_code.png
71
- manual/resources/images/wrap.png
72
- manual/resources/images/wrapping.png
73
- manual/resources/js/jquery-1.4.4.min.js
74
- manual/resources/js/manual.js
75
- manual/resources/js/sh.js
76
- manual/resources/swf/clipboard.swf
77
- manual/src/examples.page
78
- manual/src/gettingstarted.page
79
- manual/src/index.page
80
- manual/src/tags.page
81
- manual/src/templates.page
82
45
  spec/data/sinatra/hello.inversion
83
46
  spec/inversion/mixins_spec.rb
84
47
  spec/inversion/monkeypatches_spec.rb
data/Rakefile CHANGED
@@ -14,8 +14,8 @@ Hoe.plugins.delete :rubyforge
14
14
 
15
15
  hoespec = Hoe.spec 'inversion' do
16
16
  self.readme_file = 'README.rdoc'
17
- self.history_file = 'History.md'
18
- self.extra_rdoc_files = ['README.rdoc']
17
+ self.history_file = 'History.rdoc'
18
+ self.extra_rdoc_files << 'README.rdoc' << 'History.rdoc'
19
19
 
20
20
  self.developer 'Michael Granger', 'ged@FaerieMUD.org'
21
21
  self.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
@@ -47,6 +47,13 @@ task 'hg:precheckin' => :spec
47
47
  # Rebuild the ChangeLog immediately before release (hoe hook)
48
48
  task :prerelease => 'ChangeLog'
49
49
 
50
+ if Rake::Task.task_defined?( '.gemtest' )
51
+ Rake::Task['.gemtest'].clear
52
+ task '.gemtest' do
53
+ $stderr.puts "Not including a .gemtest until I'm confident the test suite is idempotent."
54
+ end
55
+ end
56
+
50
57
  desc "Build a coverage report"
51
58
  task :coverage do
52
59
  ENV["COVERAGE"] = 'yes'
data/lib/inversion.rb CHANGED
@@ -26,10 +26,10 @@ module Inversion
26
26
  require 'inversion/monkeypatches'
27
27
 
28
28
  # Library version constant
29
- VERSION = '0.0.3'
29
+ VERSION = '0.0.4'
30
30
 
31
31
  # Version-control revision constant
32
- REVISION = %q$Revision: f70888949c8c $
32
+ REVISION = %q$Revision: 27f893edf42a $
33
33
 
34
34
  #
35
35
  # Logging
@@ -99,7 +99,7 @@ class Inversion::Template
99
99
 
100
100
  # Load the instance and set the path to the source
101
101
  template = self.new( source, parsestate, opts )
102
- template.source_file = tmpl.expand_path
102
+ template.source_file = tmpl
103
103
 
104
104
  return template
105
105
  end
@@ -106,7 +106,7 @@ class Inversion::Template::BeginTag < Inversion::Template::Tag
106
106
  self.log.debug " considering rescue clause: %p -> %p" % [ errclasses, nodes ]
107
107
  if errclasses.any? {|eclass| eclass === exception }
108
108
  self.log.debug " rescued by a clause for %p" % [ errclasses ]
109
- nodes.each {|node| state << node }
109
+ nodes.each {|innernode| state << innernode }
110
110
  throw :stop_rendering
111
111
  end
112
112
  end
@@ -2,7 +2,7 @@
2
2
  # vim: set noet nosta sw=4 ts=4 :
3
3
 
4
4
  require 'inversion/template/attrtag'
5
- require 'inversion/template/iftag'
5
+ require 'inversion/template/iftag' unless defined?( Inversion::Template::IfTag )
6
6
  require 'inversion/template/commenttag'
7
7
 
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -49,22 +49,22 @@ cert_chain:
49
49
  -----END CERTIFICATE-----
50
50
 
51
51
  '
52
- date: 2011-08-15 00:00:00.000000000Z
52
+ date: 2011-09-22 00:00:00.000000000Z
53
53
  dependencies:
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: hoe-mercurial
56
- requirement: &70154973608720 !ruby/object:Gem::Requirement
56
+ requirement: &70167586903860 !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.1
61
+ version: 1.3.0
62
62
  type: :development
63
63
  prerelease: false
64
- version_requirements: *70154973608720
64
+ version_requirements: *70167586903860
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: hoe-manualgen
67
- requirement: &70154973608260 !ruby/object:Gem::Requirement
67
+ requirement: &70167587027660 !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements:
70
70
  - - ~>
@@ -72,10 +72,10 @@ dependencies:
72
72
  version: 0.2.0
73
73
  type: :development
74
74
  prerelease: false
75
- version_requirements: *70154973608260
75
+ version_requirements: *70167587027660
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: hoe-highline
78
- requirement: &70154973607820 !ruby/object:Gem::Requirement
78
+ requirement: &70167587148600 !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
81
81
  - - ~>
@@ -83,10 +83,10 @@ dependencies:
83
83
  version: 0.0.1
84
84
  type: :development
85
85
  prerelease: false
86
- version_requirements: *70154973607820
86
+ version_requirements: *70167587148600
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rspec
89
- requirement: &70154973607300 !ruby/object:Gem::Requirement
89
+ requirement: &70167587148140 !ruby/object:Gem::Requirement
90
90
  none: false
91
91
  requirements:
92
92
  - - ~>
@@ -94,10 +94,10 @@ dependencies:
94
94
  version: 2.6.0
95
95
  type: :development
96
96
  prerelease: false
97
- version_requirements: *70154973607300
97
+ version_requirements: *70167587148140
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: tilt
100
- requirement: &70154973606860 !ruby/object:Gem::Requirement
100
+ requirement: &70167587147720 !ruby/object:Gem::Requirement
101
101
  none: false
102
102
  requirements:
103
103
  - - ~>
@@ -105,10 +105,10 @@ dependencies:
105
105
  version: 1.3.2
106
106
  type: :development
107
107
  prerelease: false
108
- version_requirements: *70154973606860
108
+ version_requirements: *70167587147720
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: sinatra
111
- requirement: &70154973606440 !ruby/object:Gem::Requirement
111
+ requirement: &70167587147300 !ruby/object:Gem::Requirement
112
112
  none: false
113
113
  requirements:
114
114
  - - ~>
@@ -116,10 +116,10 @@ dependencies:
116
116
  version: 1.2.6
117
117
  type: :development
118
118
  prerelease: false
119
- version_requirements: *70154973606440
119
+ version_requirements: *70167587147300
120
120
  - !ruby/object:Gem::Dependency
121
121
  name: rack-test
122
- requirement: &70154973605980 !ruby/object:Gem::Requirement
122
+ requirement: &70167587146880 !ruby/object:Gem::Requirement
123
123
  none: false
124
124
  requirements:
125
125
  - - ~>
@@ -127,10 +127,10 @@ dependencies:
127
127
  version: 0.6.0
128
128
  type: :development
129
129
  prerelease: false
130
- version_requirements: *70154973605980
130
+ version_requirements: *70167587146880
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: simplecov
133
- requirement: &70154973605560 !ruby/object:Gem::Requirement
133
+ requirement: &70167587146460 !ruby/object:Gem::Requirement
134
134
  none: false
135
135
  requirements:
136
136
  - - ~>
@@ -138,10 +138,10 @@ dependencies:
138
138
  version: 0.4.2
139
139
  type: :development
140
140
  prerelease: false
141
- version_requirements: *70154973605560
141
+ version_requirements: *70167587146460
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: hoe-manualgen
144
- requirement: &70154973605140 !ruby/object:Gem::Requirement
144
+ requirement: &70167587146040 !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
147
  - - ~>
@@ -149,10 +149,10 @@ dependencies:
149
149
  version: 0.2.0
150
150
  type: :development
151
151
  prerelease: false
152
- version_requirements: *70154973605140
152
+ version_requirements: *70167587146040
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: trollop
155
- requirement: &70154973604720 !ruby/object:Gem::Requirement
155
+ requirement: &70167587145620 !ruby/object:Gem::Requirement
156
156
  none: false
157
157
  requirements:
158
158
  - - ~>
@@ -160,10 +160,10 @@ dependencies:
160
160
  version: 1.16.2
161
161
  type: :development
162
162
  prerelease: false
163
- version_requirements: *70154973604720
163
+ version_requirements: *70167587145620
164
164
  - !ruby/object:Gem::Dependency
165
165
  name: highline
166
- requirement: &70154973604300 !ruby/object:Gem::Requirement
166
+ requirement: &70167587145200 !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements:
169
169
  - - ~>
@@ -171,10 +171,10 @@ dependencies:
171
171
  version: 1.6.2
172
172
  type: :development
173
173
  prerelease: false
174
- version_requirements: *70154973604300
174
+ version_requirements: *70167587145200
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: sysexits
177
- requirement: &70154973603880 !ruby/object:Gem::Requirement
177
+ requirement: &70167587144780 !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements:
180
180
  - - ~>
@@ -182,18 +182,18 @@ dependencies:
182
182
  version: 1.0.2
183
183
  type: :development
184
184
  prerelease: false
185
- version_requirements: *70154973603880
185
+ version_requirements: *70167587144780
186
186
  - !ruby/object:Gem::Dependency
187
187
  name: hoe
188
- requirement: &70154973603460 !ruby/object:Gem::Requirement
188
+ requirement: &70167587144360 !ruby/object:Gem::Requirement
189
189
  none: false
190
190
  requirements:
191
191
  - - ~>
192
192
  - !ruby/object:Gem::Version
193
- version: '2.10'
193
+ version: '2.12'
194
194
  type: :development
195
195
  prerelease: false
196
- version_requirements: *70154973603460
196
+ version_requirements: *70167587144360
197
197
  description: ! 'Inversion is a templating system for Ruby. It uses the "Inversion
198
198
  of Control" principle to decouple
199
199
 
@@ -210,9 +210,10 @@ extensions: []
210
210
  extra_rdoc_files:
211
211
  - Manifest.txt
212
212
  - README.rdoc
213
+ - History.rdoc
213
214
  files:
214
215
  - ChangeLog
215
- - History.md
216
+ - History.rdoc
216
217
  - Manifest.txt
217
218
  - README.rdoc
218
219
  - Rakefile
@@ -255,43 +256,6 @@ files:
255
256
  - lib/inversion/template/yieldtag.rb
256
257
  - lib/inversion/tilt.rb
257
258
  - lib/inversion/utils.rb
258
- - manual/layouts/default.erb
259
- - manual/lib/api-filter.rb
260
- - manual/lib/editorial-filter.rb
261
- - manual/lib/examples-filter.rb
262
- - manual/lib/links-filter.rb
263
- - manual/resources/css/manual.css
264
- - manual/resources/fonts/GraublauWeb.otf
265
- - manual/resources/fonts/GraublauWebBold.otf
266
- - manual/resources/fonts/Inconsolata.otf
267
- - manual/resources/images/arrow_225_small.png
268
- - manual/resources/images/arrow_315_small.png
269
- - manual/resources/images/arrow_skip.png
270
- - manual/resources/images/cc-by.png
271
- - manual/resources/images/dialog-error.png
272
- - manual/resources/images/dialog-information.png
273
- - manual/resources/images/dialog-warning.png
274
- - manual/resources/images/emblem-important.png
275
- - manual/resources/images/help.png
276
- - manual/resources/images/information.png
277
- - manual/resources/images/magnifier.png
278
- - manual/resources/images/magnifier_left.png
279
- - manual/resources/images/page_white_code.png
280
- - manual/resources/images/page_white_copy.png
281
- - manual/resources/images/printer.png
282
- - manual/resources/images/question.png
283
- - manual/resources/images/scripts_code.png
284
- - manual/resources/images/wrap.png
285
- - manual/resources/images/wrapping.png
286
- - manual/resources/js/jquery-1.4.4.min.js
287
- - manual/resources/js/manual.js
288
- - manual/resources/js/sh.js
289
- - manual/resources/swf/clipboard.swf
290
- - manual/src/examples.page
291
- - manual/src/gettingstarted.page
292
- - manual/src/index.page
293
- - manual/src/tags.page
294
- - manual/src/templates.page
295
259
  - spec/data/sinatra/hello.inversion
296
260
  - spec/inversion/mixins_spec.rb
297
261
  - spec/inversion/monkeypatches_spec.rb
@@ -354,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
318
  version: '0'
355
319
  requirements: []
356
320
  rubyforge_project: inversion
357
- rubygems_version: 1.8.6
321
+ rubygems_version: 1.8.10
358
322
  signing_key:
359
323
  specification_version: 3
360
324
  summary: Inversion is a templating system for Ruby
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ���R�&�C&�5>��X��†wKiZ�ڏ���r,
2
- ;
1
+ �]br�nl1V�~�{P�Z`��R��Q~b*����M���CV澈}3_�M�^����/�i�n{934��[�¢I�����%q�8���S��­w�+yh�f��!��� �~��hu�4Z;� ��"#!�~��p��I�酵��lюY�v�m��|SY�����տ}ճn��l���k0�y����;f혶a &?~0� C��1|Kj7���{���eY����:J����V���}a�<��?\
data/History.md DELETED
@@ -1,4 +0,0 @@
1
- ## 0.0.1 [2011-02-02] Michael Granger <ged@FaerieMUD.org>
2
-
3
- Initial release.
4
-
@@ -1,87 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
-
4
- Main Manual Layout
5
- $Id: default.erb,v 8d85088f0601 2011/08/15 16:36:48 mahlon $
6
-
7
- Author: Michael Granger <ged@FaerieMUD.org>
8
- Two column fluid layout adapted from Matthew James Taylor's "Perfect 'Left Menu'
9
- 2 Column Liquid Layout":
10
- http://matthewjamestaylor.com/blog/perfect-2-column-left-menu.htm
11
-
12
- -->
13
- <html lang="en">
14
- <head>
15
- <meta charset="utf-8">
16
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
17
-
18
- <title>inversion Manual — <%= page.config['title'] || "untitled" %></title>
19
-
20
- <link rel="stylesheet" href="css/manual.css">
21
-
22
- <script src="js/jquery-1.4.4.min.js"></script>
23
- <script src="js/sh.js"></script>
24
- <script src="js/manual.js"></script>
25
-
26
- </head>
27
- <body>
28
- <div id="page">
29
-
30
- <header>
31
- <hgroup>
32
- <a href="/">
33
- <h1>inversion</h1>
34
- </a>
35
- <% if metadata.version %><h2 class="version"><%= metadata.version %></h2><% end %>
36
- <% if page.config['tagline'] %><h2 class="tagline"><%= page.config['tagline'] %></h2><% end %>
37
- </hgroup>
38
- </header>
39
-
40
- <div class="colmask leftmenu">
41
- <div class="colleft">
42
-
43
- <section id="content" class="col1">
44
- <!-- Generated content -->
45
- <%= content %>
46
- <!-- end of generated content -->
47
- </section>
48
-
49
- <aside id="sidebar" class="col2">
50
- <nav>
51
- <%
52
- @catalog.traverse_page_hierarchy( self ) do |type, title, path|
53
- case type
54
- when :section
55
- %>
56
- <div class="section">
57
- <h3><a href="<%= self.basepath + path %>/"><%= title %></a></h3>
58
- <ul class="index-section">
59
- <% when :current_section %>
60
- <div class="section current-section">
61
- <h3><a href="<%= self.basepath + path %>/"><%= title %></a></h3>
62
- <ul class="index-section current-index-section">
63
- <% when :section_end, :current_section_end %>
64
- </ul>
65
- </div>
66
- <% when :entry %>
67
- <li><a href="<%= self.basepath + path %>.html"><%= title %></a></li>
68
- <% when :current_entry %>
69
- <li class="current-entry"><%= title %></li>
70
- <% end
71
- end
72
- %>
73
- </nav>
74
- </aside>
75
-
76
- </div>
77
- </div>
78
-
79
- <footer>
80
- <div class="copyright">Copyright &copy; 2008-<%= Time.now.year %> Michael Granger, Mahlon E. Smith.</div>
81
- <div class="vcsrev">Rev: $Revision: 8d85088f0601 $</div>
82
- <div class="timestamp">Built: <%= Time.now.strftime("%Y%m%d %H:%M:%S %Z") %></div>
83
- </footer>
84
-
85
- </body>
86
- </html>
87
-