pupu 0.0.5.5 → 0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/CHANGELOG +0 -16
  2. data/LICENSE +1 -1
  3. data/README.textile +3 -3
  4. data/Rakefile +28 -0
  5. data/TODO.txt +3 -8
  6. data/bin/pupu +24 -19
  7. data/examples/merb/README.textile +5 -3
  8. data/examples/merb/Rakefile +3 -3
  9. data/examples/merb/config/framework.rb +4 -4
  10. data/examples/merb/config/init.rb +0 -7
  11. data/examples/merb/public/pupu/autocompleter/README.textile +2 -2
  12. data/examples/merb/public/pupu/autocompleter/config.rb +1 -1
  13. data/examples/merb/public/pupu/blueprint/config.rb +7 -7
  14. data/examples/merb/public/pupu/flash/config.rb +1 -1
  15. data/examples/merb/public/pupu/lighter/config.rb +2 -2
  16. data/examples/merb/public/pupu/mootools/README.textile +1 -1
  17. data/examples/merb/public/pupu/mootools/config.rb +1 -1
  18. data/examples/rango/README.textile +6 -4
  19. data/examples/rango/init.rb +0 -7
  20. data/examples/rango/media/pupu/autocompleter/README.textile +2 -2
  21. data/examples/rango/media/pupu/autocompleter/config.rb +1 -1
  22. data/examples/rango/media/pupu/blueprint/config.rb +7 -7
  23. data/examples/rango/media/pupu/flash/config.rb +1 -1
  24. data/examples/rango/media/pupu/lighter/config.rb +2 -2
  25. data/examples/rango/media/pupu/mootools/README.textile +1 -1
  26. data/examples/rango/media/pupu/mootools/config.rb +1 -1
  27. data/lib/pupu.rb +1 -2
  28. data/lib/pupu/adapters/merb.rb +0 -12
  29. data/lib/pupu/adapters/rails.rb +0 -12
  30. data/lib/pupu/adapters/rango.rb +3 -25
  31. data/lib/pupu/cli.rb +11 -13
  32. data/lib/pupu/dsl.rb +13 -34
  33. data/lib/pupu/exceptions.rb +0 -2
  34. data/lib/pupu/github.rb +11 -23
  35. data/lib/pupu/helpers.rb +2 -8
  36. data/lib/pupu/metadata.rb +0 -2
  37. data/lib/pupu/parser.rb +4 -19
  38. data/lib/pupu/pupu.rb +21 -47
  39. data/lib/pupu/version.rb +3 -1
  40. data/pupu.gemspec +7 -15
  41. data/pupu.pre.gemspec +33 -5
  42. data/script/spec +14 -0
  43. data/spec/data/public/pupu/autocompleter/README.textile +2 -2
  44. data/spec/data/public/pupu/autocompleter/config.rb +1 -3
  45. data/{examples/merb/public/pupu/lighter/images/.gitignore → spec/pupu/adapters/merb_spec.rb} +0 -0
  46. data/{examples/rails/app/views/examples/arguments.html.erb → spec/pupu/adapters/rango_spec.rb} +0 -0
  47. data/spec/pupu/dsl_spec.rb +0 -3
  48. data/spec/pupu/exceptions_spec.rb +0 -3
  49. data/spec/pupu/github_spec.rb +1 -4
  50. data/spec/pupu/helpers_spec.rb +2 -5
  51. data/spec/pupu/metadata_spec.rb +0 -3
  52. data/spec/pupu/parser_spec.rb +1 -4
  53. data/spec/pupu/pupu_spec.rb +0 -3
  54. data/stubs/pupu/content/config.rb.rbt +1 -3
  55. data/stubs/pupu/postprocess.rb +0 -8
  56. data/stubs/pupu/setup.rb +0 -4
  57. data/tasks/benchmark.rake +11 -0
  58. data/tasks/gem.rake +23 -0
  59. data/tasks/hooks.rake +12 -0
  60. data/tasks/release.rake +68 -0
  61. data/tasks/spec.rake +27 -0
  62. data/tasks/submodules.rake +33 -0
  63. data/tasks/yardoc.rake +9 -0
  64. metadata +199 -290
  65. data/.gitignore +0 -9
  66. data/Gemfile +0 -9
  67. data/examples/merb/.gitignore +0 -17
  68. data/examples/merb/Gemfile +0 -27
  69. data/examples/merb/public/pupu/autocompleter/.gitignore +0 -5
  70. data/examples/merb/public/pupu/blueprint/.gitignore +0 -5
  71. data/examples/merb/public/pupu/flash/.gitignore +0 -5
  72. data/examples/merb/public/pupu/lighter/.gitignore +0 -10
  73. data/examples/merb/public/pupu/mootools/.gitignore +0 -5
  74. data/examples/rails/.gitignore +0 -7
  75. data/examples/rails/Gemfile +0 -28
  76. data/examples/rails/README.textile +0 -5
  77. data/examples/rails/Rakefile +0 -10
  78. data/examples/rails/app/controllers/application_controller.rb +0 -10
  79. data/examples/rails/app/controllers/home_controller.rb +0 -8
  80. data/examples/rails/app/helpers/application_helper.rb +0 -3
  81. data/examples/rails/app/views/examples/dependencies.html.erb +0 -0
  82. data/examples/rails/app/views/examples/simple.html.erb +0 -4
  83. data/examples/rails/app/views/index.html.erb +0 -7
  84. data/examples/rails/app/views/layout.html.erb +0 -12
  85. data/examples/rails/config/boot.rb +0 -110
  86. data/examples/rails/config/environment.rb +0 -55
  87. data/examples/rails/config/environments/development.rb +0 -17
  88. data/examples/rails/config/environments/production.rb +0 -28
  89. data/examples/rails/config/environments/test.rb +0 -28
  90. data/examples/rails/config/initializers/backtrace_silencers.rb +0 -7
  91. data/examples/rails/config/initializers/inflections.rb +0 -10
  92. data/examples/rails/config/initializers/mime_types.rb +0 -5
  93. data/examples/rails/config/initializers/new_rails_defaults.rb +0 -21
  94. data/examples/rails/config/initializers/session_store.rb +0 -15
  95. data/examples/rails/config/routes.rb +0 -43
  96. data/examples/rails/db/seeds.rb +0 -7
  97. data/examples/rails/public/404.html +0 -30
  98. data/examples/rails/public/422.html +0 -30
  99. data/examples/rails/public/500.html +0 -30
  100. data/examples/rails/public/favicon.ico +0 -0
  101. data/examples/rails/public/robots.txt +0 -5
  102. data/examples/rails/script/about +0 -4
  103. data/examples/rails/script/console +0 -3
  104. data/examples/rails/script/dbconsole +0 -3
  105. data/examples/rails/script/destroy +0 -3
  106. data/examples/rails/script/generate +0 -3
  107. data/examples/rails/script/performance/benchmarker +0 -3
  108. data/examples/rails/script/performance/profiler +0 -3
  109. data/examples/rails/script/plugin +0 -3
  110. data/examples/rails/script/runner +0 -3
  111. data/examples/rails/script/server +0 -3
  112. data/examples/rails/spec/application_spec.rb +0 -37
  113. data/examples/rails/spec/spec_helper.rb +0 -0
  114. data/examples/rango/.gitignore +0 -4
  115. data/examples/rango/Gemfile +0 -56
  116. data/examples/rango/media/pupu/autocompleter/.gitignore +0 -5
  117. data/examples/rango/media/pupu/blueprint/.gitignore +0 -5
  118. data/examples/rango/media/pupu/flash/.gitignore +0 -5
  119. data/examples/rango/media/pupu/lighter/.gitignore +0 -10
  120. data/examples/rango/media/pupu/lighter/images/.gitignore +0 -0
  121. data/examples/rango/media/pupu/mootools/.gitignore +0 -5
  122. data/gems/cache/media-path-0.1.2.gem +0 -0
  123. data/gems/cache/nake-0.0.8.gem +0 -0
  124. data/gems/cache/rspec-1.3.0.gem +0 -0
  125. data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
  126. data/lib/pupu/tasks/pupu.nake +0 -52
  127. data/spec/data/public/pupu/autocompleter/.gitignore +0 -5
  128. data/stubs/pupu/content/%name%.gemspec.rbt +0 -47
  129. data/stubs/pupu/content/%name%.pre.gemspec.rbt +0 -8
  130. data/stubs/pupu/content/.gitignore +0 -12
  131. data/stubs/pupu/content/deps.rip +0 -5
  132. data/stubs/pupu/content/images/.gitignore +0 -0
  133. data/stubs/pupu/content/init.rb.rbt +0 -17
  134. data/stubs/pupu/content/lib/%name%.rb.rbt +0 -4
  135. data/stubs/pupu/content/lib/%name%/adapters/rails.rb +0 -0
  136. data/stubs/pupu/content/lib/%name%/adapters/rango.rb +0 -0
  137. data/stubs/pupu/content/spec/%name%/.gitignore +0 -0
  138. data/stubs/pupu/content/spec/%name%_spec.rb.rbt +0 -10
  139. data/stubs/pupu/content/spec/spec.opts +0 -5
  140. data/stubs/pupu/content/spec/spec_helper.rb.rbt +0 -7
  141. data/tasks.rb +0 -37
data/CHANGELOG CHANGED
@@ -10,19 +10,3 @@
10
10
  = Version 0.0.2
11
11
  * Rails support
12
12
  * Better documentation
13
-
14
- = Version 0.0.3
15
- * Bug fixes
16
- * Refactoring
17
- * Examples
18
-
19
- = Version 0.0.4
20
- * Added Rails example app
21
- * pupu reinstall & pupu install --force
22
- * Added Pupu.framework
23
- * Added Pupu.logger
24
- * Added Pupu.environment & Pupu.environment?
25
- * Added --ruby & --no-ruby options to the generator
26
-
27
- = Version 0.0.5
28
- * Added if option to javascript/stylesheet, so you can use styleshett "ie", if: "lt IE 8"
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 – 2010 Jakub Stastny aka Botanicus
1
+ Copyright (c) 2008 Jakub Stastny aka Botanicus
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
1
1
  h1. About Pupu
2
2
 
3
- "Pupu":http://github.com/botanicus/pupu is a framework-agnostic plugin system for assets like JS/CSS frameworks and its plugins, icon sets etc. You can "search GitHub":http://github.com/search?type=Repositories&language=&q=pupu&repo=&langOverride=&x=9&y=24&start_value=1 for more examples. It provides CLI interface for searching, installing and updating pupus from GitHub and it also provides a helper for including static files from pupu into your HTML page. Both CLI and helper can handle dependencies.
3
+ "Pupu":http://github.com/botanicus/pupu is a framework-agnostic plugin system for media stuff like JS/CSS frameworks and its plugins, icon sets etc. You can "search GitHub":http://github.com/search?type=Repositories&language=&q=pupu&repo=&langOverride=&x=9&y=24&start_value=1 for more examples. It provides CLI interface for searching, installing and updating pupus from GitHub and it also provides a helper for including static files from pupu into your HTML page. Both CLI and helper can handle dependencies.
4
4
 
5
5
  CLI example:
6
6
 
@@ -71,7 +71,7 @@ If pupu has optional arguments, you can specify them, it will modify its behavio
71
71
 
72
72
  <pre>
73
73
  # this will include not just basic autocompleter files, but script for local requests too
74
- pupu :autocompleter, type: "local"
74
+ pupu :autocompleter, :type => "local"
75
75
  </pre>
76
76
 
77
77
  There is some helpers for getting path to pupu's files:
@@ -91,4 +91,4 @@ h1. Links
91
91
  - "Wiki":http://wiki.github.com/botanicus/pupu
92
92
  - "Source Code":http://github.com/botanicus/pupu
93
93
  - "API Documentation":http://rdoc.info/projects/botanicus/pupu
94
- - Examples: "Rango":http://github.com/botanicus/pupu/tree/master/examples/rango, "Merb":http://github.com/botanicus/pupu/tree/master/examples/merb and "Rails":http://github.com/botanicus/pupu/tree/master/examples/rails
94
+ - Examples: "Rango":http://github.com/botanicus/pupu/tree/master/examples/rango, "Merb":http://github.com/botanicus/pupu/tree/master/examples/merb
@@ -0,0 +1,28 @@
1
+ # encoding: utf-8
2
+
3
+ require_relative "lib/pupu/version"
4
+
5
+ # ENV setup for external commands
6
+ ENV["RUBYLIB"] = Dir["vendor/*/lib"].join(":")
7
+ $LOAD_PATH.clear.push(*Dir["vendor/*/lib"])
8
+
9
+ # encoding
10
+ Encoding.default_internal = "utf-8"
11
+ Encoding.default_external = "utf-8"
12
+
13
+ # http://support.runcoderun.com/faqs/builds/how-do-i-run-rake-with-trace-enabled
14
+ Rake.application.options.trace = true
15
+
16
+ # default task for RunCodeRun.com
17
+ task :default => ["submodules:init", :spec]
18
+
19
+ # load tasks
20
+ Dir["tasks/*.rake"].each do |taskfile|
21
+ begin
22
+ load File.join(Dir.pwd, taskfile)
23
+ rescue Exception => exception
24
+ puts "Exception #{exception.class} occured during loading #{taskfile}:"
25
+ puts exception.message
26
+ puts exception.backtrace
27
+ end
28
+ end
data/TODO.txt CHANGED
@@ -1,14 +1,11 @@
1
- Examples:
2
- - recreate the rango app AFTER I release Rango 0.3 & bundle it
3
- - ensure all the examples has the same functionality include specs
4
- - ensure all the examples work
5
-
6
1
  === Version 0.1 ===
7
2
  - Pupu.framework_root: "."
8
3
  - Pupu.media_root: "media"
9
4
  - Pupu.root: "media/pupu"
10
5
  - @pupu.root: "media/pupu/mootools"
11
6
 
7
+ - rango & merb apps: both with same functionality include specs
8
+
12
9
  - THERE SHOULD BE A CONVETION TO NAME PUPU WITH PUPU-FRAMEWORK-PLUGIN, FOR EXAMPLE PUPU-MOOTOOLS-FLASH because of search
13
10
  - install each dependency just once
14
11
  - how to handle metadata if we have it as submodules? (suggestions: media/pupu/metadata.yml for all) or on the fly from .git/config & config.rb etc
@@ -16,10 +13,8 @@ Examples:
16
13
  - media support (.swf): media helper
17
14
  - media vs. root vs. custom
18
15
  - how to handle metadata? Generate metadata.yml from config.rb (dependencies) or generate it through merb-gen and write it by hand?
19
- - what about ruby helpers such as flash :notice, :error for flash <divs>
16
+ - what about ruby helpers such as flash :notice, :error for flash <divs
20
17
  - add array with loaded plugins, do not load plugin which is already loaded
21
- - hooks for minify etc
22
- - don't touch file system in production mode (don't use File.exist?) -> just load manifest
23
18
 
24
19
  === Version 0.2 ===
25
20
 
data/bin/pupu CHANGED
@@ -1,49 +1,56 @@
1
- #!/usr/bin/env ruby
1
+ #!/usr/bin/env ruby1.9
2
2
  # encoding: utf-8
3
3
 
4
- # follow symlink
5
4
  base = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
6
5
  libdir = File.expand_path(File.join(File.dirname(base), "..", "lib"))
7
6
 
7
+ vendor = File.join(File.dirname(__FILE__), "..", "vendor")
8
+ if File.directory?(vendor)
9
+ Dir["#{vendor}/*"].each do |path|
10
+ if File.directory?(path) && Dir["#{path}/*"].empty?
11
+ warn "Dependency #{File.basename(path)} in vendor seems to be empty. Run git submodule init && git submodule update to checkout it."
12
+ elsif File.directory?(path) && File.directory?(File.join(path, "lib"))
13
+ $:.unshift(File.join(path, "lib"))
14
+ end
15
+ end
16
+ end
17
+
8
18
  # because of system installation, there is bin/../lib, but not bin/../lib/pupu
9
19
  if File.directory?(File.join(libdir, "pupu"))
10
20
  $:.unshift(libdir) unless $:.include?(libdir)
11
21
  end
12
22
 
13
- require "pupu/cli"
14
-
15
- # helpers
23
+ # === Helpers === #
24
+ # TODO: Generators.each { |generator| puts generator.help }
16
25
  def usage
17
26
  <<-HELP
18
27
  === Usage ===
19
- pupu install [pupu] [-f|--force]
20
- pupu uninstall [pupu]
21
- pupu reinstall [pupu]
22
- pupu update [pupu|all]
23
- pupu list
24
- pupu check
25
- pupu search [pattern]
26
- pupu create [name]
27
- --media-root=media
28
+ --media-root=media
29
+ pupu create mootools Generate pupu mootools
28
30
  HELP
29
31
  end
30
32
 
31
- # main loop
32
33
  begin
33
34
  case ARGV.shift
35
+ when nil
36
+ abort usage
34
37
  when "install"
38
+ require "pupu/cli"
35
39
  Pupu::CLI.new(ARGV).install
36
40
  when "uninstall", "remove"
41
+ require "pupu/cli"
37
42
  Pupu::CLI.new(ARGV).uninstall
38
- when "reinstall"
39
- Pupu::CLI.new(ARGV, force: true).install
40
43
  when "update"
44
+ require "pupu/cli"
41
45
  Pupu::CLI.new(ARGV).update
42
46
  when "list" # list all pupus
47
+ require "pupu/cli"
43
48
  Pupu::CLI.new(ARGV).list
44
49
  when "check" # check setup & if you are in the right directory
50
+ require "pupu/cli"
45
51
  Pupu::CLI.new(ARGV).check || abort("File config/pupu.rb doesn't exist or can't be loaded")
46
52
  when "search"
53
+ require "pupu/cli"
47
54
  Pupu::CLI.new(ARGV).search(ARGV.first)
48
55
  when "create"
49
56
  begin
@@ -62,7 +69,5 @@ begin
62
69
  rescue Exception => exception
63
70
  abort "Exception #{exception.inspect} occured during running generator #{generator.inspect}\n#{exception.backtrace.join("\n")}"
64
71
  end
65
- else
66
- abort usage
67
72
  end
68
73
  end
@@ -1,5 +1,7 @@
1
1
  h1. Merb Example
2
2
 
3
- * @gem bundle@ (you have to have bundler 0.7.2 installed)
4
- * Run with @./bin/merb -a webrick@ (will start at @http://localhost:4000@)
5
- * Specs: @./bin/spec spec/application_spec.rb --colour@
3
+ * Dependencies for running: @merb-core@
4
+ * Run with @merb -a webrick@ (will start at @http://localhost:4000@)
5
+
6
+ * Dependencies for testing: @rspec@, @webrat@
7
+ * Specs: @spec spec/application_spec.rb --colour@
@@ -9,7 +9,7 @@ load "pupu/tasks/pupu.rake"
9
9
  # Load the basic runtime dependencies; this will include
10
10
  # any plugins and therefore plugin rake tasks.
11
11
  init_env = ENV["MERB_ENV"] || "development"
12
- Merb.load_dependencies(environment: init_env)
12
+ Merb.load_dependencies(:environment => init_env)
13
13
 
14
14
  # Get Merb plugins and dependencies
15
15
  Merb::Plugins.rakefiles.each { |r| require r }
@@ -21,10 +21,10 @@ rake_files.each{|rake_file| load rake_file }
21
21
 
22
22
  desc "Start runner environment"
23
23
  task :merb_env do
24
- Merb.start_environment(environment: init_env, adapter: "runner")
24
+ Merb.start_environment(:environment => init_env, :adapter => "runner")
25
25
  end
26
26
 
27
27
  require "spec/rake/spectask"
28
28
  require "merb-core/test/tasks/spectasks"
29
29
  desc "Default: run spec examples"
30
- task default: "spec"
30
+ task :default => "spec"
@@ -1,7 +1,7 @@
1
1
  Merb::Config[:framework] = {
2
- application: Merb.root / "application.rb",
3
- config: [Merb.root / "config", nil],
4
- public: [Merb.root / "public", nil],
5
- view: Merb.root / "views"
2
+ :application => Merb.root / "application.rb",
3
+ :config => [Merb.root / "config", nil],
4
+ :public => [Merb.root / "public", nil],
5
+ :view => Merb.root / "views"
6
6
  }
7
7
 
@@ -1,12 +1,5 @@
1
1
  # Go to http://wiki.merbivore.com/pages/init-rb
2
2
 
3
- # bundler
4
- begin
5
- require_relative "../gems/environment.rb"
6
- rescue LoadError => exception
7
- abort "LoadError during loading gems/environment: #{exception.message}\nRun gem bundle to fix it."
8
- end
9
-
10
3
  # setup $:
11
4
  pupu_libdir = File.expand_path("../../lib")
12
5
  raise Errno::ENOENT, "#{pupu_libdir} doesn't exist" unless File.directory?(pupu_libdir)
@@ -19,8 +19,8 @@ h2. Layout
19
19
  plugin :autocompleter
20
20
 
21
21
  # for local requests through Autocompleter.Request class
22
- plugin :autocompleter, type: "local"
22
+ plugin :autocompleter, :type => "local"
23
23
 
24
24
  # for ajax requests through Autocompleter.Request class
25
- plugin :autocompleter, type: "request"
25
+ plugin :autocompleter, :type => "request"
26
26
  </pre>
@@ -7,6 +7,6 @@ javascripts "observer", "autocompleter"
7
7
  # stylesheet
8
8
  stylesheet "autocompleter"
9
9
 
10
- parameter :type, optional: ["local", "request"] do |type|
10
+ parameter :type, :optional => ["local", "request"] do |type|
11
11
  javascript "autocompleter.#{type}"
12
12
  end
@@ -1,18 +1,18 @@
1
- # css_include_tag "blueprint/screen", "blueprint/plugins/fancy-type/screen", media: "screen, projection"
2
- # css_include_tag "blueprint/print", media: "print"
1
+ # css_include_tag "blueprint/screen", "blueprint/plugins/fancy-type/screen", :media => "screen, projection"
2
+ # css_include_tag "blueprint/print", :media => "print"
3
3
  # / [if IE]
4
- # = css_include_tag "blueprint/ie", media: "screen, projection"
4
+ # = css_include_tag "blueprint/ie", :media => "screen, projection"
5
5
 
6
6
  # TODO
7
- # if: "ie"
8
- stylesheet "screen", media: "screen, projection"
9
- stylesheet "print", media: "print"
7
+ # :if => "ie"
8
+ stylesheet "screen", :media => "screen, projection"
9
+ stylesheet "print", :media => "print"
10
10
  stylesheet "ie"
11
11
 
12
12
  # parameters of plugin
13
13
  # it will be blank in most cases
14
14
  parameter :plugins do |plugins|
15
15
  plugins.each do |plugin|
16
- stylesheet "plugins/#{plugin}/screen", media: "screen, projection"
16
+ stylesheet "plugins/#{plugin}/screen", :media => "screen, projection"
17
17
  end
18
18
  end
@@ -6,6 +6,6 @@ javascript "flash"
6
6
 
7
7
  # parameters of plugin
8
8
  # it will be blank in most cases
9
- #parameter :request, optional: ["local", "ajax"] do |type|
9
+ #parameter :request, :optional => ["local", "ajax"] do |type|
10
10
  # javascript "lib/autocompleter.#{type}"
11
11
  #end
@@ -10,11 +10,11 @@ themes = Dir["#{root}/stylesheets/Flame.*.css"].map { |theme| File.basename(th
10
10
  syntaxes = Dir["#{root}/javascripts/Fuel.*.js"].map { |theme| File.basename(theme).split(".")[1] }
11
11
 
12
12
  # pupu :lighter, theme: "mocha"
13
- parameter :theme, optional: themes do |theme|
13
+ parameter :theme, :optional => themes do |theme|
14
14
  stylesheet "Flame.#{theme}"
15
15
  end
16
16
 
17
17
  # pupu :lighter, syntax: "ruby"
18
- parameter :syntax, optional: syntaxes do |syntax|
18
+ parameter :syntax, :optional => syntaxes do |syntax|
19
19
  javascript "Fuel.#{syntax}"
20
20
  end
@@ -15,5 +15,5 @@ h2. Layout
15
15
  plugin :mootools
16
16
 
17
17
  # for mootools-more
18
- plugin :mootools, more: true
18
+ plugin :mootools, :more => true
19
19
  </pre>
@@ -2,7 +2,7 @@
2
2
  javascript "mootools-1.2-core"
3
3
 
4
4
  # parameters of plugin
5
- # pupu :mootools, more: true
5
+ # pupu :mootools, :more => true
6
6
  parameter :more do |boolean|
7
7
  javascript "mootools-1.2-more" if boolean
8
8
  end
@@ -1,5 +1,7 @@
1
- h1. Merb Example
1
+ h1. Rango Example
2
2
 
3
- * @gem bundle@ (you have to have bundler 0.7.2 installed)
4
- * Run with @./bin/merb -a webrick@ (will start at @http://localhost:4000@)
5
- * Specs: @./bin/spec spec/application_spec.rb --colour@
3
+ * Dependencies for running: @rango@, @usher@, @haml@
4
+ * Run with @./config.ru@ (will start at @http://localhost:4000@)
5
+
6
+ * Dependencies for testing: @rspec@, @webrat@, @rack-test@
7
+ * Specs: @spec spec/pupu_spec.rb --colour@
@@ -4,13 +4,6 @@
4
4
  # === Usage === #
5
5
  # init.rb
6
6
 
7
- # bundler
8
- begin
9
- require_relative "gems/environment.rb"
10
- rescue LoadError => exception
11
- abort "LoadError during loading gems/environment: #{exception.message}\nRun gem bundle to fix it."
12
- end
13
-
14
7
  # setup $:
15
8
  pupu_libdir = File.expand_path("../../lib")
16
9
  raise Errno::ENOENT, "#{pupu_libdir} doesn't exist" unless File.directory?(pupu_libdir)
@@ -19,8 +19,8 @@ h2. Layout
19
19
  plugin :autocompleter
20
20
 
21
21
  # for local requests through Autocompleter.Request class
22
- plugin :autocompleter, type: "local"
22
+ plugin :autocompleter, :type => "local"
23
23
 
24
24
  # for ajax requests through Autocompleter.Request class
25
- plugin :autocompleter, type: "request"
25
+ plugin :autocompleter, :type => "request"
26
26
  </pre>
@@ -7,6 +7,6 @@ javascripts "observer", "autocompleter"
7
7
  # stylesheet
8
8
  stylesheet "autocompleter"
9
9
 
10
- parameter :type, optional: ["local", "request"] do |type|
10
+ parameter :type, :optional => ["local", "request"] do |type|
11
11
  javascript "autocompleter.#{type}"
12
12
  end
@@ -1,18 +1,18 @@
1
- # css_include_tag "blueprint/screen", "blueprint/plugins/fancy-type/screen", media: "screen, projection"
2
- # css_include_tag "blueprint/print", media: "print"
1
+ # css_include_tag "blueprint/screen", "blueprint/plugins/fancy-type/screen", :media => "screen, projection"
2
+ # css_include_tag "blueprint/print", :media => "print"
3
3
  # / [if IE]
4
- # = css_include_tag "blueprint/ie", media: "screen, projection"
4
+ # = css_include_tag "blueprint/ie", :media => "screen, projection"
5
5
 
6
6
  # TODO
7
- # if: "ie"
8
- stylesheet "screen", media: "screen, projection"
9
- stylesheet "print", media: "print"
7
+ # :if => "ie"
8
+ stylesheet "screen", :media => "screen, projection"
9
+ stylesheet "print", :media => "print"
10
10
  stylesheet "ie"
11
11
 
12
12
  # parameters of plugin
13
13
  # it will be blank in most cases
14
14
  parameter :plugins do |plugins|
15
15
  plugins.each do |plugin|
16
- stylesheet "plugins/#{plugin}/screen", media: "screen, projection"
16
+ stylesheet "plugins/#{plugin}/screen", :media => "screen, projection"
17
17
  end
18
18
  end
@@ -6,6 +6,6 @@ javascript "flash"
6
6
 
7
7
  # parameters of plugin
8
8
  # it will be blank in most cases
9
- #parameter :request, optional: ["local", "ajax"] do |type|
9
+ #parameter :request, :optional => ["local", "ajax"] do |type|
10
10
  # javascript "lib/autocompleter.#{type}"
11
11
  #end
@@ -10,11 +10,11 @@ themes = Dir["#{root}/stylesheets/Flame.*.css"].map { |theme| File.basename(th
10
10
  syntaxes = Dir["#{root}/javascripts/Fuel.*.js"].map { |theme| File.basename(theme).split(".")[1] }
11
11
 
12
12
  # pupu :lighter, theme: "mocha"
13
- parameter :theme, optional: themes do |theme|
13
+ parameter :theme, :optional => themes do |theme|
14
14
  stylesheet "Flame.#{theme}"
15
15
  end
16
16
 
17
17
  # pupu :lighter, syntax: "ruby"
18
- parameter :syntax, optional: syntaxes do |syntax|
18
+ parameter :syntax, :optional => syntaxes do |syntax|
19
19
  javascript "Fuel.#{syntax}"
20
20
  end
@@ -15,5 +15,5 @@ h2. Layout
15
15
  plugin :mootools
16
16
 
17
17
  # for mootools-more
18
- plugin :mootools, more: true
18
+ plugin :mootools, :more => true
19
19
  </pre>