innate 2011.01 → 2011.04
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/AUTHORS +1 -1
- data/CHANGELOG +859 -843
- data/innate.gemspec +2 -2
- data/lib/innate.rb +0 -2
- data/lib/innate/node.rb +2 -2
- data/lib/innate/version.rb +1 -1
- data/tasks/release.rake +1 -25
- metadata +3 -3
data/innate.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{innate}
|
|
5
|
-
s.version = "2011.
|
|
5
|
+
s.version = "2011.04"
|
|
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{2011-
|
|
9
|
+
s.date = %q{2011-04-19}
|
|
10
10
|
s.description = %q{Simple, straight-forward base for web-frameworks.}
|
|
11
11
|
s.email = %q{m.fellinger@gmail.com}
|
|
12
12
|
s.files = [".gitignore", "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/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/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/response.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"]
|
data/lib/innate.rb
CHANGED
|
@@ -100,8 +100,6 @@ module Innate
|
|
|
100
100
|
# Headers that will be merged into the response before Node::call
|
|
101
101
|
# @option param :trap [String] ('SIGINT')
|
|
102
102
|
# Trap this signal to issue shutdown, nil/false to disable trap
|
|
103
|
-
# @option param :state [Symbol] (:Fiber)
|
|
104
|
-
# Keep state in Thread or Fiber, fall back to Thread if Fiber not available
|
|
105
103
|
# @option param :mode [Symbol] (:dev)
|
|
106
104
|
# Indicates which default middleware to use, (:dev|:live)
|
|
107
105
|
def start(options = {}, &block)
|
data/lib/innate/node.rb
CHANGED
|
@@ -503,8 +503,8 @@ module Innate
|
|
|
503
503
|
# @todo Once 1.9 is mainstream we can use Method#parameters to do accurate
|
|
504
504
|
# prediction
|
|
505
505
|
def find_method(name, params)
|
|
506
|
-
return unless arity = method_arities[name]
|
|
507
|
-
name if arity == params.size
|
|
506
|
+
return unless arity = method_arities[name.to_s]
|
|
507
|
+
name if arity == params.size || arity < 0
|
|
508
508
|
end
|
|
509
509
|
|
|
510
510
|
# Answer with a hash, keys are method names, values are method arities.
|
data/lib/innate/version.rb
CHANGED
data/tasks/release.rake
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
namespace :release do
|
|
2
2
|
task :prepare => [:reversion, :authors, :gemspec]
|
|
3
|
-
task :all => ['release:github', 'release:
|
|
3
|
+
task :all => ['release:github', 'release:gemcutter']
|
|
4
4
|
|
|
5
5
|
desc 'Release on github'
|
|
6
6
|
task :github => :prepare do
|
|
@@ -20,30 +20,6 @@ git commit -m 'Version #{version}'
|
|
|
20
20
|
git tag -a -m '#{version}' '#{version}'
|
|
21
21
|
git push
|
|
22
22
|
|
|
23
|
-
================================================================================
|
|
24
|
-
INSTRUCTIONS
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
desc 'Release on rubyforge'
|
|
28
|
-
task :rubyforge => ['release:prepare', :package] do
|
|
29
|
-
name, version = GEMSPEC.name, GEMSPEC.version
|
|
30
|
-
|
|
31
|
-
pkgs = Dir["pkg/#{name}-#{version}.{tgz,zip}"].map{|file|
|
|
32
|
-
"rubyforge add_file #{name} #{name} '#{version}' '#{file}'"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
puts <<-INSTRUCTIONS
|
|
36
|
-
================================================================================
|
|
37
|
-
|
|
38
|
-
To publish to rubyforge do following:
|
|
39
|
-
|
|
40
|
-
rubyforge login
|
|
41
|
-
rubyforge add_release #{name} #{name} '#{version}' pkg/#{name}-#{version}.gem
|
|
42
|
-
|
|
43
|
-
To publish the archives for distro packagers:
|
|
44
|
-
|
|
45
|
-
#{pkgs.join "\n"}
|
|
46
|
-
|
|
47
23
|
================================================================================
|
|
48
24
|
INSTRUCTIONS
|
|
49
25
|
end
|
metadata
CHANGED
|
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 2011
|
|
7
|
-
-
|
|
8
|
-
version: "2011.
|
|
7
|
+
- 4
|
|
8
|
+
version: "2011.04"
|
|
9
9
|
platform: ruby
|
|
10
10
|
authors:
|
|
11
11
|
- Michael 'manveru' Fellinger
|
|
@@ -13,7 +13,7 @@ autorequire:
|
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
15
|
|
|
16
|
-
date: 2011-
|
|
16
|
+
date: 2011-04-19 00:00:00 +09:00
|
|
17
17
|
default_executable:
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|