innate 2010.01 → 2010.03

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS CHANGED
@@ -1,7 +1,7 @@
1
1
  Following persons have contributed to innate.
2
2
  (Sorted by number of submitted patches, then alphabetically)
3
3
 
4
- 749 Michael Fellinger <m.fellinger@gmail.com>
4
+ 754 Michael Fellinger <m.fellinger@gmail.com>
5
5
  31 Tadahiko Uehara <kikofx@gmail.com>
6
6
  8 Pistos <gitsomegrace.5.pistos@geoshell.com>
7
7
  5 Ryan Grove <ryan@wonko.com>
data/CHANGELOG CHANGED
@@ -1,3 +1,23 @@
1
+ [4fa40fc | 2010-03-08 13:53:00 UTC] Michael Fellinger <m.fellinger@gmail.com>
2
+
3
+ * Version 2010.03
4
+
5
+ [c48a647 | 2010-02-03 07:59:05 UTC] Michael Fellinger <m.fellinger@gmail.com>
6
+
7
+ * Add a spec for Etanni
8
+
9
+ [baa0dd8 | 2010-01-17 06:57:44 UTC] Michael Fellinger <m.fellinger@gmail.com>
10
+
11
+ * clarify precedence
12
+
13
+ [c9fa60f | 2010-01-06 07:14:40 UTC] Michael Fellinger <m.fellinger@gmail.com>
14
+
15
+ * Set correct header in referrer spec
16
+
17
+ [59f03da | 2010-01-06 07:10:22 UTC] Michael Fellinger <m.fellinger@gmail.com>
18
+
19
+ * Fix request spec for new rack behaviour
20
+
1
21
  [82cd8d9 | 2010-01-06 06:53:24 UTC] Michael Fellinger <m.fellinger@gmail.com>
2
22
 
3
23
  * Version 2010.01
data/MANIFEST CHANGED
@@ -79,6 +79,7 @@ spec/innate/cache/marshal.rb
79
79
  spec/innate/cache/memory.rb
80
80
  spec/innate/cache/yaml.rb
81
81
  spec/innate/dynamap.rb
82
+ spec/innate/etanni.rb
82
83
  spec/innate/helper.rb
83
84
  spec/innate/helper/aspect.rb
84
85
  spec/innate/helper/cgi.rb
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'date'
7
7
  PROJECT_SPECS = FileList['spec/{innate,example}/**/*.rb'].exclude('common.rb')
8
8
  PROJECT_MODULE = 'Innate'
9
9
  PROJECT_README = 'README.md'
10
- PROJECT_VERSION = ENV['VERSION'] || Date.today.strftime('%Y.%m.%d')
10
+ PROJECT_VERSION = ENV['VERSION'].dup || Date.today.strftime('%Y.%m.%d')
11
11
 
12
12
  DEPENDENCIES = {
13
13
  'rack' => {:version => '= 1.1.0'},
@@ -2,18 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{innate}
5
- s.version = "2010.01"
5
+ s.version = "2010.03"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.1") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Michael 'manveru' Fellinger"]
9
- s.date = %q{2010-01-06}
9
+ s.date = %q{2010-03-08}
10
10
  s.description = %q{Simple, straight-forward base for web-frameworks.}
11
11
  s.email = %q{m.fellinger@gmail.com}
12
- s.files = ["AUTHORS", "CHANGELOG", "COPYING", "MANIFEST", "README.md", "Rakefile", "example/app/retro_games.rb", "example/app/todo/layout/default.xhtml", "example/app/todo/spec/todo.rb", "example/app/todo/start.rb", "example/app/todo/view/index.xhtml", "example/app/whywiki_erb/layout/wiki.html.erb", "example/app/whywiki_erb/spec/wiki.rb", "example/app/whywiki_erb/start.rb", "example/app/whywiki_erb/view/edit.erb", "example/app/whywiki_erb/view/index.erb", "example/custom_middleware.rb", "example/hello.rb", "example/howto_spec.rb", "example/link.rb", "example/provides.rb", "example/session.rb", "innate.gemspec", "lib/innate.rb", "lib/innate/action.rb", "lib/innate/adapter.rb", "lib/innate/cache.rb", "lib/innate/cache/api.rb", "lib/innate/cache/drb.rb", "lib/innate/cache/file_based.rb", "lib/innate/cache/marshal.rb", "lib/innate/cache/memory.rb", "lib/innate/cache/yaml.rb", "lib/innate/current.rb", "lib/innate/dynamap.rb", "lib/innate/helper.rb", "lib/innate/helper/aspect.rb", "lib/innate/helper/cgi.rb", "lib/innate/helper/flash.rb", "lib/innate/helper/link.rb", "lib/innate/helper/redirect.rb", "lib/innate/helper/render.rb", "lib/innate/helper/send_file.rb", "lib/innate/log.rb", "lib/innate/log/color_formatter.rb", "lib/innate/log/hub.rb", "lib/innate/middleware_compiler.rb", "lib/innate/mock.rb", "lib/innate/node.rb", "lib/innate/options.rb", "lib/innate/options/dsl.rb", "lib/innate/options/stub.rb", "lib/innate/request.rb", "lib/innate/response.rb", "lib/innate/route.rb", "lib/innate/session.rb", "lib/innate/session/flash.rb", "lib/innate/spec.rb", "lib/innate/spec/bacon.rb", "lib/innate/state.rb", "lib/innate/state/accessor.rb", "lib/innate/traited.rb", "lib/innate/trinity.rb", "lib/innate/version.rb", "lib/innate/view.rb", "lib/innate/view/erb.rb", "lib/innate/view/etanni.rb", "lib/innate/view/none.rb", "spec/example/app/retro_games.rb", "spec/example/hello.rb", "spec/example/link.rb", "spec/example/provides.rb", "spec/example/session.rb", "spec/helper.rb", "spec/innate/action/layout.rb", "spec/innate/action/layout/file_layout.xhtml", "spec/innate/cache/common.rb", "spec/innate/cache/marshal.rb", "spec/innate/cache/memory.rb", "spec/innate/cache/yaml.rb", "spec/innate/dynamap.rb", "spec/innate/helper.rb", "spec/innate/helper/aspect.rb", "spec/innate/helper/cgi.rb", "spec/innate/helper/flash.rb", "spec/innate/helper/link.rb", "spec/innate/helper/redirect.rb", "spec/innate/helper/render.rb", "spec/innate/helper/send_file.rb", "spec/innate/helper/view/aspect_hello.xhtml", "spec/innate/helper/view/locals.xhtml", "spec/innate/helper/view/loop.xhtml", "spec/innate/helper/view/num.xhtml", "spec/innate/helper/view/partial.xhtml", "spec/innate/helper/view/recursive.xhtml", "spec/innate/mock.rb", "spec/innate/modes.rb", "spec/innate/node/mapping.rb", "spec/innate/node/node.rb", "spec/innate/node/resolve.rb", "spec/innate/node/view/another_layout/another_layout.xhtml", "spec/innate/node/view/bar.xhtml", "spec/innate/node/view/cat2/cat22.xhtml", "spec/innate/node/view/cat3/cat33.xhtml", "spec/innate/node/view/foo.html.xhtml", "spec/innate/node/view/only_view.xhtml", "spec/innate/node/view/sub/baz.xhtml", "spec/innate/node/view/sub/foo/baz.xhtml", "spec/innate/node/view/with_layout.xhtml", "spec/innate/node/wrap_action_call.rb", "spec/innate/options.rb", "spec/innate/parameter.rb", "spec/innate/provides.rb", "spec/innate/provides/list.html.xhtml", "spec/innate/provides/list.txt.xhtml", "spec/innate/request.rb", "spec/innate/route.rb", "spec/innate/session.rb", "spec/innate/traited.rb", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/gem.rake", "tasks/gem_setup.rake", "tasks/grancher.rake", "tasks/manifest.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/ycov.rake"]
12
+ s.files = ["AUTHORS", "CHANGELOG", "COPYING", "MANIFEST", "README.md", "Rakefile", "example/app/retro_games.rb", "example/app/todo/layout/default.xhtml", "example/app/todo/spec/todo.rb", "example/app/todo/start.rb", "example/app/todo/view/index.xhtml", "example/app/whywiki_erb/layout/wiki.html.erb", "example/app/whywiki_erb/spec/wiki.rb", "example/app/whywiki_erb/start.rb", "example/app/whywiki_erb/view/edit.erb", "example/app/whywiki_erb/view/index.erb", "example/custom_middleware.rb", "example/hello.rb", "example/howto_spec.rb", "example/link.rb", "example/provides.rb", "example/session.rb", "innate.gemspec", "lib/innate.rb", "lib/innate/action.rb", "lib/innate/adapter.rb", "lib/innate/cache.rb", "lib/innate/cache/api.rb", "lib/innate/cache/drb.rb", "lib/innate/cache/file_based.rb", "lib/innate/cache/marshal.rb", "lib/innate/cache/memory.rb", "lib/innate/cache/yaml.rb", "lib/innate/current.rb", "lib/innate/dynamap.rb", "lib/innate/helper.rb", "lib/innate/helper/aspect.rb", "lib/innate/helper/cgi.rb", "lib/innate/helper/flash.rb", "lib/innate/helper/link.rb", "lib/innate/helper/redirect.rb", "lib/innate/helper/render.rb", "lib/innate/helper/send_file.rb", "lib/innate/log.rb", "lib/innate/log/color_formatter.rb", "lib/innate/log/hub.rb", "lib/innate/middleware_compiler.rb", "lib/innate/mock.rb", "lib/innate/node.rb", "lib/innate/options.rb", "lib/innate/options/dsl.rb", "lib/innate/options/stub.rb", "lib/innate/request.rb", "lib/innate/response.rb", "lib/innate/route.rb", "lib/innate/session.rb", "lib/innate/session/flash.rb", "lib/innate/spec.rb", "lib/innate/spec/bacon.rb", "lib/innate/state.rb", "lib/innate/state/accessor.rb", "lib/innate/traited.rb", "lib/innate/trinity.rb", "lib/innate/version.rb", "lib/innate/view.rb", "lib/innate/view/erb.rb", "lib/innate/view/etanni.rb", "lib/innate/view/none.rb", "spec/example/app/retro_games.rb", "spec/example/hello.rb", "spec/example/link.rb", "spec/example/provides.rb", "spec/example/session.rb", "spec/helper.rb", "spec/innate/action/layout.rb", "spec/innate/action/layout/file_layout.xhtml", "spec/innate/cache/common.rb", "spec/innate/cache/marshal.rb", "spec/innate/cache/memory.rb", "spec/innate/cache/yaml.rb", "spec/innate/dynamap.rb", "spec/innate/etanni.rb", "spec/innate/helper.rb", "spec/innate/helper/aspect.rb", "spec/innate/helper/cgi.rb", "spec/innate/helper/flash.rb", "spec/innate/helper/link.rb", "spec/innate/helper/redirect.rb", "spec/innate/helper/render.rb", "spec/innate/helper/send_file.rb", "spec/innate/helper/view/aspect_hello.xhtml", "spec/innate/helper/view/locals.xhtml", "spec/innate/helper/view/loop.xhtml", "spec/innate/helper/view/num.xhtml", "spec/innate/helper/view/partial.xhtml", "spec/innate/helper/view/recursive.xhtml", "spec/innate/mock.rb", "spec/innate/modes.rb", "spec/innate/node/mapping.rb", "spec/innate/node/node.rb", "spec/innate/node/resolve.rb", "spec/innate/node/view/another_layout/another_layout.xhtml", "spec/innate/node/view/bar.xhtml", "spec/innate/node/view/cat2/cat22.xhtml", "spec/innate/node/view/cat3/cat33.xhtml", "spec/innate/node/view/foo.html.xhtml", "spec/innate/node/view/only_view.xhtml", "spec/innate/node/view/sub/baz.xhtml", "spec/innate/node/view/sub/foo/baz.xhtml", "spec/innate/node/view/with_layout.xhtml", "spec/innate/node/wrap_action_call.rb", "spec/innate/options.rb", "spec/innate/parameter.rb", "spec/innate/provides.rb", "spec/innate/provides/list.html.xhtml", "spec/innate/provides/list.txt.xhtml", "spec/innate/request.rb", "spec/innate/route.rb", "spec/innate/session.rb", "spec/innate/traited.rb", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/gem.rake", "tasks/gem_setup.rake", "tasks/grancher.rake", "tasks/manifest.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/ycov.rake"]
13
13
  s.homepage = %q{http://github.com/manveru/innate}
14
14
  s.require_paths = ["lib"]
15
15
  s.rubyforge_project = %q{innate}
16
- s.rubygems_version = %q{1.3.5}
16
+ s.rubygems_version = %q{1.3.6}
17
17
  s.summary = %q{Powerful web-framework wrapper for Rack.}
18
18
 
19
19
  if s.respond_to? :specification_version then
@@ -422,7 +422,7 @@ module Innate
422
422
 
423
423
  next unless method if needs_method
424
424
  next unless method if params.any?
425
- next unless (view = find_view(name, wish)) or method
425
+ next unless (view = find_view(name, wish)) || method
426
426
 
427
427
  params.map!{|param| Rack::Utils.unescape(param) }
428
428
 
@@ -1,3 +1,3 @@
1
1
  module Innate
2
- VERSION = "2010.01"
2
+ VERSION = "2010.03"
3
3
  end
@@ -30,5 +30,5 @@ module Innate
30
30
  def result(binding, filename = '<Etanni>')
31
31
  eval(@compiled, binding, filename).join
32
32
  end
33
- end
33
+ end
34
34
  end
@@ -0,0 +1,23 @@
1
+ require File.expand_path('../../helper', __FILE__)
2
+ require 'innate/view/etanni'
3
+
4
+ describe Etanni = Innate::Etanni do
5
+ it 'renders a simple template' do
6
+ etanni = Etanni.new('Hello, World!')
7
+ etanni.result(binding).should == 'Hello, World!'
8
+ end
9
+
10
+ it 'allows use of Etanni::SEPARATOR inside interplated code' do
11
+ etanni = Etanni.new('Hello #{name}')
12
+ name = "\n#{Etanni::SEPARATOR}\n"
13
+ etanni.result(binding).should == "Hello #{name}"
14
+ end
15
+
16
+ it 'fails with SyntaxError or NameError when the SEPARATOR is used inside a template' do
17
+ etanni = Etanni.new("Hello \n#{Etanni::SEPARATOR}\n")
18
+ lambda{ etanni.result(binding) }.should.raise NameError
19
+
20
+ etanni = Etanni.new("<h1>Hello \n#{Etanni::SEPARATOR}\n</h1>")
21
+ lambda{ etanni.result(binding) }.should.raise SyntaxError
22
+ end
23
+ end
@@ -90,7 +90,7 @@ describe Innate::Helper::Redirect do
90
90
  end
91
91
 
92
92
  should 'redirect to referer' do
93
- header 'REFERER', "#@uri/index"
93
+ header 'HTTP_REFERER', "#@uri/index"
94
94
  get("#@uri/redirect_referer_action")
95
95
 
96
96
  last_response.status.should == 302
@@ -99,7 +99,7 @@ describe Innate::Helper::Redirect do
99
99
  end
100
100
 
101
101
  should 'redirect to fallback if referrer is identical' do
102
- header 'REFERER', "#@uri/redirect_referer_action"
102
+ header 'HTTP_REFERER', "#@uri/redirect_referer_action"
103
103
  get("#@uri/redirect_referer_action")
104
104
 
105
105
  last_response.status.should == 302
@@ -48,7 +48,10 @@ describe Innate::Request do
48
48
 
49
49
  query = {'a' => 'b', 'c' => 'd', 'e' => 'f'}
50
50
  params = StringIO.new(Rack::Utils.build_query(query))
51
- req = request('rack.request.form_hash' => params, 'rack.input' => params)
51
+ req = request(
52
+ 'QUERY_STRING' => params.string,
53
+ 'rack.input' => params
54
+ )
52
55
 
53
56
  req.params.should == query
54
57
  req.subset(:a).should == {'a' => 'b'}
metadata CHANGED
@@ -1,7 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: innate
3
3
  version: !ruby/object:Gem::Version
4
- version: "2010.01"
4
+ prerelease: false
5
+ segments:
6
+ - 2010
7
+ - 3
8
+ version: "2010.03"
5
9
  platform: ruby
6
10
  authors:
7
11
  - Michael 'manveru' Fellinger
@@ -9,49 +13,65 @@ autorequire:
9
13
  bindir: bin
10
14
  cert_chain: []
11
15
 
12
- date: 2010-01-06 00:00:00 +09:00
16
+ date: 2010-03-08 00:00:00 +09:00
13
17
  default_executable:
14
18
  dependencies:
15
19
  - !ruby/object:Gem::Dependency
16
20
  name: rack
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
20
23
  requirements:
21
24
  - - "="
22
25
  - !ruby/object:Gem::Version
26
+ segments:
27
+ - 1
28
+ - 1
29
+ - 0
23
30
  version: 1.1.0
24
- version:
31
+ type: :runtime
32
+ version_requirements: *id001
25
33
  - !ruby/object:Gem::Dependency
26
34
  name: bacon
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
30
37
  requirements:
31
38
  - - ">="
32
39
  - !ruby/object:Gem::Version
40
+ segments:
41
+ - 1
42
+ - 1
43
+ - 0
33
44
  version: 1.1.0
34
- version:
45
+ type: :development
46
+ version_requirements: *id002
35
47
  - !ruby/object:Gem::Dependency
36
48
  name: rack-test
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
49
+ prerelease: false
50
+ requirement: &id003 !ruby/object:Gem::Requirement
40
51
  requirements:
41
52
  - - ">="
42
53
  - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
56
+ - 5
57
+ - 3
43
58
  version: 0.5.3
44
- version:
59
+ type: :development
60
+ version_requirements: *id003
45
61
  - !ruby/object:Gem::Dependency
46
62
  name: json
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
63
+ prerelease: false
64
+ requirement: &id004 !ruby/object:Gem::Requirement
50
65
  requirements:
51
66
  - - ~>
52
67
  - !ruby/object:Gem::Version
68
+ segments:
69
+ - 1
70
+ - 2
71
+ - 0
53
72
  version: 1.2.0
54
- version:
73
+ type: :development
74
+ version_requirements: *id004
55
75
  description: Simple, straight-forward base for web-frameworks.
56
76
  email: m.fellinger@gmail.com
57
77
  executables: []
@@ -142,6 +162,7 @@ files:
142
162
  - spec/innate/cache/memory.rb
143
163
  - spec/innate/cache/yaml.rb
144
164
  - spec/innate/dynamap.rb
165
+ - spec/innate/etanni.rb
145
166
  - spec/innate/helper.rb
146
167
  - spec/innate/helper/aspect.rb
147
168
  - spec/innate/helper/cgi.rb
@@ -205,18 +226,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
226
  requirements:
206
227
  - - ">="
207
228
  - !ruby/object:Gem::Version
229
+ segments:
230
+ - 0
208
231
  version: "0"
209
- version:
210
232
  required_rubygems_version: !ruby/object:Gem::Requirement
211
233
  requirements:
212
234
  - - ">="
213
235
  - !ruby/object:Gem::Version
236
+ segments:
237
+ - 1
238
+ - 3
239
+ - 1
214
240
  version: 1.3.1
215
- version:
216
241
  requirements: []
217
242
 
218
243
  rubyforge_project: innate
219
- rubygems_version: 1.3.5
244
+ rubygems_version: 1.3.6
220
245
  signing_key:
221
246
  specification_version: 3
222
247
  summary: Powerful web-framework wrapper for Rack.