pupu 0.0.1 → 0.0.2.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +12 -1
- data/README.textile +38 -104
- data/Rakefile +17 -54
- data/TODO.txt +11 -6
- data/examples/merb/README.textile +7 -0
- data/examples/merb/Rakefile +30 -0
- data/examples/merb/application.rb +13 -0
- data/examples/merb/config/framework.rb +7 -0
- data/examples/merb/config/init.rb +48 -0
- data/examples/{blog/media/pupu/autocompleter → merb/public}/javascripts/initializers/autocompleter.js +0 -0
- data/examples/{blog/media/pupu/flash → merb/public}/javascripts/initializers/flash.js +0 -0
- data/examples/{blog/media/pupu/lighter → merb/public/javascripts}/initializers/lighter.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/images/spinner.gif +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.local.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.request.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/observer.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/stylesheets/autocompleter.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/ie.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/cross.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/key.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/tick.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/fancy-type/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/fancy-type/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/doc.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/email.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/external.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/feed.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/im.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/pdf.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/visited.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/xls.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/rtl/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/rtl/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/print.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/forms.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/grid.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/grid.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/ie.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/print.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/reset.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/typography.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/javascripts/flash.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/TODO.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.css.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.html.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.js.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.md.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.php.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.ruby.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.shell.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.sql.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.template.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/ZeroClipboard.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/lighter.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/media/ZeroClipboard.swf +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.git.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.mocha.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.panic.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.standard.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.template.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.tutti.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.twilight.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/javascripts/mootools-1.2-core.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/javascripts/mootools-1.2-more.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/metadata.yml +0 -0
- data/examples/{blog/media/pupu/flash → merb/public}/stylesheets/initializers/flash.css +0 -0
- data/examples/merb/spec/application_spec.rb +37 -0
- data/examples/merb/spec/spec_helper.rb +16 -0
- data/examples/merb/views/examples/arguments.html.erb +0 -0
- data/examples/merb/views/examples/dependencies.html.erb +0 -0
- data/examples/merb/views/examples/simple.html.erb +4 -0
- data/examples/merb/views/index.html.erb +7 -0
- data/examples/merb/views/layout.html.erb +12 -0
- data/examples/rango/README.textile +7 -0
- data/examples/{blog → rango}/Rakefile +0 -0
- data/examples/{blog → rango}/config.ru +2 -3
- data/examples/{blog → rango}/init.rb +6 -5
- data/examples/{blog → rango}/media/javascripts/initializers/lighter.js +0 -0
- data/examples/rango/media/pupu/autocompleter/CHANGELOG +1 -0
- data/examples/rango/media/pupu/autocompleter/LICENSE +20 -0
- data/examples/rango/media/pupu/autocompleter/README.textile +26 -0
- data/examples/rango/media/pupu/autocompleter/Rakefile +29 -0
- data/examples/rango/media/pupu/autocompleter/TODO +1 -0
- data/examples/rango/media/pupu/autocompleter/config.rb +12 -0
- data/examples/rango/media/pupu/autocompleter/images/spinner.gif +0 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/autocompleter.js +442 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/autocompleter.local.js +31 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/autocompleter.request.js +109 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/initializers/autocompleter.js +26 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/observer.js +69 -0
- data/examples/rango/media/pupu/autocompleter/metadata.yml +5 -0
- data/examples/rango/media/pupu/autocompleter/stylesheets/autocompleter.css +68 -0
- data/examples/rango/media/pupu/blueprint/CHANGELOG +1 -0
- data/examples/rango/media/pupu/blueprint/LICENSE +20 -0
- data/examples/rango/media/pupu/blueprint/README.textile +22 -0
- data/examples/rango/media/pupu/blueprint/Rakefile +29 -0
- data/examples/rango/media/pupu/blueprint/TODO +3 -0
- data/examples/rango/media/pupu/blueprint/config.rb +18 -0
- data/examples/rango/media/pupu/blueprint/metadata.yml +5 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/ie.css +26 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/icons/cross.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/icons/key.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/icons/tick.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/readme.txt +32 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/screen.css +97 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/fancy-type/readme.txt +14 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/fancy-type/screen.css +71 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/doc.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/email.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/external.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/feed.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/im.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/pdf.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/visited.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/xls.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/readme.txt +18 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/screen.css +40 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/rtl/readme.txt +10 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/rtl/screen.css +109 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/print.css +30 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/screen.css +251 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/forms.css +49 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/grid.css +212 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/grid.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/ie.css +59 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/print.css +85 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/reset.css +38 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/typography.css +105 -0
- data/examples/rango/media/pupu/flash/CHANGELOG +1 -0
- data/examples/rango/media/pupu/flash/LICENSE +20 -0
- data/examples/rango/media/pupu/flash/README.textile +22 -0
- data/examples/rango/media/pupu/flash/Rakefile +37 -0
- data/examples/rango/media/pupu/flash/TODO +1 -0
- data/examples/rango/media/pupu/flash/config.rb +11 -0
- data/examples/rango/media/pupu/flash/javascripts/flash.js +63 -0
- data/examples/rango/media/pupu/flash/javascripts/initializers/flash.js +12 -0
- data/examples/rango/media/pupu/flash/metadata.yml +5 -0
- data/examples/rango/media/pupu/flash/stylesheets/initializers/flash.css +21 -0
- data/examples/rango/media/pupu/lighter/CHANGELOG +2 -0
- data/examples/rango/media/pupu/lighter/LICENSE +20 -0
- data/examples/rango/media/pupu/lighter/README.textile +19 -0
- data/examples/rango/media/pupu/lighter/TODO.txt +4 -0
- data/examples/rango/media/pupu/lighter/config.rb +20 -0
- data/examples/rango/media/pupu/lighter/initializers/lighter.js +11 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.css.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.html.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.js.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.md.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.php.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.ruby.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.shell.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.sql.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.template.js +45 -0
- data/examples/rango/media/pupu/lighter/javascripts/ZeroClipboard.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/lighter.js +1 -0
- data/examples/rango/media/pupu/lighter/media/ZeroClipboard.swf +0 -0
- data/examples/rango/media/pupu/lighter/metadata.yml +5 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.git.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.mocha.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.panic.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.standard.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.template.css +101 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.tutti.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.twilight.css +1 -0
- data/examples/rango/media/pupu/mootools/CHANGELOG +2 -0
- data/examples/rango/media/pupu/mootools/LICENSE +20 -0
- data/examples/rango/media/pupu/mootools/README.textile +19 -0
- data/examples/rango/media/pupu/mootools/Rakefile +29 -0
- data/examples/rango/media/pupu/mootools/TODO +1 -0
- data/examples/rango/media/pupu/mootools/config.rb +8 -0
- data/examples/rango/media/pupu/mootools/javascripts/mootools-1.2-core.js +350 -0
- data/examples/rango/media/pupu/mootools/javascripts/mootools-1.2-more.js +154 -0
- data/examples/rango/media/pupu/mootools/metadata.yml +5 -0
- data/examples/rango/spec/pupu_spec.rb +37 -0
- data/examples/rango/spec/spec_helper.rb +15 -0
- data/examples/{blog → rango}/templates/base.html.haml +2 -3
- data/examples/rango/templates/examples/arguments.html.haml +7 -0
- data/examples/{blog → rango}/templates/examples/base.html.haml +3 -3
- data/examples/{blog → rango}/templates/examples/dependencies.html.haml +1 -1
- data/examples/{blog → rango}/templates/examples/simple.html.haml +1 -1
- data/examples/{blog → rango}/templates/index.html.haml +0 -0
- data/lib/pupu.rb +1 -1
- data/lib/pupu/adapters/merb.rb +4 -10
- data/lib/pupu/adapters/rails.rb +6 -0
- data/lib/pupu/adapters/rango.rb +0 -1
- data/lib/pupu/cli.rb +7 -3
- data/lib/pupu/github.rb +1 -1
- data/pupu.pre.gemspec +44 -0
- data/script/spec +2 -0
- data/tasks/benchmark.rake +11 -0
- data/tasks/gem.rake +23 -0
- data/tasks/hooks.rake +12 -0
- data/tasks/release.rake +68 -0
- data/tasks/spec.rake +27 -0
- data/tasks/submodules.rake +33 -0
- data/tasks/yardoc.rake +9 -0
- metadata +227 -115
- data/examples/blog/Thorfile +0 -9
- data/examples/blog/bin/pupu +0 -4
- data/examples/blog/config/pupu.rb +0 -4
- data/examples/blog/templates/examples/arguments.html.haml +0 -7
- data/url.rb +0 -20
- data/url_spec.rb +0 -35
data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.request.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/cross.png
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/key.png
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/tick.png
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/readme.txt
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/screen.css
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/fancy-type/readme.txt
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/fancy-type/screen.css
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/doc.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/im.png
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/pdf.png
RENAMED
File without changes
|
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/xls.png
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/readme.txt
RENAMED
File without changes
|
data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/screen.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require_relative "spec_helper"
|
2
|
+
|
3
|
+
describe "Simle example" do
|
4
|
+
before(:each) do
|
5
|
+
@response = request("/examples/simple")
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should be successful" do
|
9
|
+
@response.should be_successful
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should be successful" do
|
13
|
+
@response.should be_successful
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should link to"
|
17
|
+
end
|
18
|
+
|
19
|
+
describe "Examples with arguments" do
|
20
|
+
before(:each) do
|
21
|
+
@response = request("/examples/arguments")
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should be successful" do
|
25
|
+
@response.should be_successful
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe "Examples with dependencies" do
|
30
|
+
before(:each) do
|
31
|
+
@response = request("/examples/dependencies")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should be successful" do
|
35
|
+
@response.should be_successful
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "spec"
|
3
|
+
require "merb-core"
|
4
|
+
require "webrat"
|
5
|
+
|
6
|
+
Merb::Config.use do |config|
|
7
|
+
config[:session_store] = "memory"
|
8
|
+
end
|
9
|
+
|
10
|
+
Merb.start_environment(testing: true, adapter: "runner", environment: "test")
|
11
|
+
|
12
|
+
Spec::Runner.configure do |config|
|
13
|
+
#config.include(Merb::Test::ViewHelper)
|
14
|
+
#config.include(Merb::Test::RouteHelper)
|
15
|
+
config.include(Merb::Test::MakeRequest)
|
16
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<title><%= catch_content :for_title %></title>
|
5
|
+
<%= catch_content :for_head %>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1><%= catch_content :for_title %></h1>
|
9
|
+
<%= catch_content :for_layout %>
|
10
|
+
<pre><%= catch_content :for_head %></pre>
|
11
|
+
</body>
|
12
|
+
</html>
|
File without changes
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
require_relative "init"
|
5
5
|
|
6
|
-
require "rango"
|
7
6
|
require "rango/gv"
|
8
7
|
require "pupu/helpers"
|
9
8
|
|
@@ -12,11 +11,11 @@ Rango::Router.use(:usher)
|
|
12
11
|
# register helpers
|
13
12
|
Rango::GV::View.send(:include, Pupu::Helpers)
|
14
13
|
|
15
|
-
use Rango::Middlewares::Basic
|
16
|
-
|
17
14
|
Project.router = Usher::Interface.for(:rack) do
|
18
15
|
get("/").to(Rango::GV.static {"index"})
|
19
16
|
get("/examples/:template").to(Rango::GV.static { |template| "examples/#{template}" })
|
20
17
|
end
|
21
18
|
|
19
|
+
# rack stack
|
20
|
+
use Rango::Middlewares::Basic
|
22
21
|
run Project.router
|
@@ -1,18 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
-
require "rango"
|
5
|
-
|
6
4
|
# === Usage === #
|
7
5
|
# init.rb
|
8
|
-
# init.rb production
|
9
|
-
Rango.boot(environment: "development")
|
10
6
|
|
7
|
+
# setup $:
|
11
8
|
pupu_libdir = File.expand_path("../../lib")
|
12
9
|
raise Errno::ENOENT, "#{pupu_libdir} doesn't exist" unless File.directory?(pupu_libdir)
|
13
10
|
$:.unshift(pupu_libdir)
|
14
11
|
|
15
|
-
|
12
|
+
# load and boot rango
|
13
|
+
require "rango"
|
14
|
+
require "pupu/adapters/rango" # this has to be loaded before rango boot
|
15
|
+
|
16
|
+
Rango.boot
|
16
17
|
|
17
18
|
# if you will run this script with -i argument, interactive session will begin
|
18
19
|
Rango.interactive if ARGV.delete("-i")
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
[12/2/2008] First public release
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Jakub Stastny aka Botanicus
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
h1. About merb_pupu
|
2
|
+
|
3
|
+
Merb_pupu is a plugin system for merb's public stuff like mootools plugins, icon sets etc. It knows dependencies and it has CLI interface, so it's really easy to bundle such plugins into your app. Please see http://github.com/botanicus/merb_pupu for more informations.
|
4
|
+
|
5
|
+
h1. About autocompleter
|
6
|
+
|
7
|
+
This pupu is based on "digitarald's mootools autocompleter":http://digitarald.de/project/autocompleter. It's very flexible and configuratable. It can deal with local data, and few types of AJAX requests (basic request, JSON and HTM request). For more informations please see the showcases on digitarald's page.
|
8
|
+
|
9
|
+
h1. Usage
|
10
|
+
|
11
|
+
h2. Initializer
|
12
|
+
|
13
|
+
Edit the public/javascripts/initializers/autocompleter.js.
|
14
|
+
|
15
|
+
h2. Layout
|
16
|
+
|
17
|
+
<pre>
|
18
|
+
# for basic functionality
|
19
|
+
plugin :autocompleter
|
20
|
+
|
21
|
+
# for local requests through Autocompleter.Request class
|
22
|
+
plugin :autocompleter, :type => "local"
|
23
|
+
|
24
|
+
# for ajax requests through Autocompleter.Request class
|
25
|
+
plugin :autocompleter, :type => "request"
|
26
|
+
</pre>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
namespace :git do
|
2
|
+
desc "Do the initial import"
|
3
|
+
task :init do
|
4
|
+
sh "git init"
|
5
|
+
sh "git add ."
|
6
|
+
sh "git commit -a -m 'Initial import'"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
namespace :javascripts do
|
11
|
+
desc "Compress javascripts"
|
12
|
+
task :compress do
|
13
|
+
puts "This task isn't ready yet."
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
namespace :stylesheets do
|
18
|
+
desc "Compress stylesheets"
|
19
|
+
task :compress do
|
20
|
+
puts "This task isn't ready yet."
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
namespace :sass do
|
25
|
+
desc "Compile Sass templates"
|
26
|
+
task :compile do
|
27
|
+
puts "This task isn't ready yet."
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
- more comments in initializers
|