pupu 0.1.pre → 0.1

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.
Files changed (141) hide show
  1. data/.gitignore +9 -0
  2. data/CHANGELOG +23 -4
  3. data/Gemfile +9 -0
  4. data/LICENSE +1 -1
  5. data/README.textile +3 -3
  6. data/TODO.txt +8 -3
  7. data/bin/pupu +19 -24
  8. data/examples/merb/.gitignore +17 -0
  9. data/examples/merb/Gemfile +27 -0
  10. data/examples/merb/README.textile +3 -5
  11. data/examples/merb/Rakefile +3 -3
  12. data/examples/merb/config/framework.rb +4 -4
  13. data/examples/merb/config/init.rb +7 -0
  14. data/examples/merb/public/pupu/autocompleter/.gitignore +5 -0
  15. data/examples/merb/public/pupu/autocompleter/README.textile +2 -2
  16. data/examples/merb/public/pupu/autocompleter/config.rb +1 -1
  17. data/examples/merb/public/pupu/blueprint/.gitignore +5 -0
  18. data/examples/merb/public/pupu/blueprint/config.rb +7 -7
  19. data/examples/merb/public/pupu/flash/.gitignore +5 -0
  20. data/examples/merb/public/pupu/flash/config.rb +1 -1
  21. data/examples/merb/public/pupu/lighter/.gitignore +10 -0
  22. data/examples/merb/public/pupu/lighter/config.rb +2 -2
  23. data/{spec/pupu/adapters/merb_spec.rb → examples/merb/public/pupu/lighter/images/.gitignore} +0 -0
  24. data/examples/merb/public/pupu/mootools/.gitignore +5 -0
  25. data/examples/merb/public/pupu/mootools/README.textile +1 -1
  26. data/examples/merb/public/pupu/mootools/config.rb +1 -1
  27. data/examples/rails/.gitignore +7 -0
  28. data/examples/rails/Gemfile +28 -0
  29. data/examples/rails/README.textile +5 -0
  30. data/examples/rails/Rakefile +10 -0
  31. data/examples/rails/app/controllers/application_controller.rb +10 -0
  32. data/examples/rails/app/controllers/home_controller.rb +8 -0
  33. data/examples/rails/app/helpers/application_helper.rb +3 -0
  34. data/{spec/pupu/adapters/rango_spec.rb → examples/rails/app/views/examples/arguments.html.erb} +0 -0
  35. data/examples/rails/app/views/examples/dependencies.html.erb +0 -0
  36. data/examples/rails/app/views/examples/simple.html.erb +4 -0
  37. data/examples/rails/app/views/index.html.erb +7 -0
  38. data/examples/rails/app/views/layout.html.erb +12 -0
  39. data/examples/rails/config/boot.rb +110 -0
  40. data/examples/rails/config/environment.rb +55 -0
  41. data/examples/rails/config/environments/development.rb +17 -0
  42. data/examples/rails/config/environments/production.rb +28 -0
  43. data/examples/rails/config/environments/test.rb +28 -0
  44. data/examples/rails/config/initializers/backtrace_silencers.rb +7 -0
  45. data/examples/rails/config/initializers/inflections.rb +10 -0
  46. data/examples/rails/config/initializers/mime_types.rb +5 -0
  47. data/examples/rails/config/initializers/new_rails_defaults.rb +21 -0
  48. data/examples/rails/config/initializers/session_store.rb +15 -0
  49. data/examples/rails/config/routes.rb +43 -0
  50. data/examples/rails/db/seeds.rb +7 -0
  51. data/examples/rails/public/404.html +30 -0
  52. data/examples/rails/public/422.html +30 -0
  53. data/examples/rails/public/500.html +30 -0
  54. data/examples/rails/public/favicon.ico +0 -0
  55. data/examples/rails/public/robots.txt +5 -0
  56. data/examples/rails/script/about +4 -0
  57. data/examples/rails/script/console +3 -0
  58. data/examples/rails/script/dbconsole +3 -0
  59. data/examples/rails/script/destroy +3 -0
  60. data/examples/rails/script/generate +3 -0
  61. data/examples/rails/script/performance/benchmarker +3 -0
  62. data/examples/rails/script/performance/profiler +3 -0
  63. data/examples/rails/script/plugin +3 -0
  64. data/examples/rails/script/runner +3 -0
  65. data/examples/rails/script/server +3 -0
  66. data/examples/rails/spec/application_spec.rb +37 -0
  67. data/examples/rails/spec/spec_helper.rb +0 -0
  68. data/examples/rango/.gitignore +4 -0
  69. data/examples/rango/Gemfile +56 -0
  70. data/examples/rango/README.textile +4 -6
  71. data/examples/rango/init.rb +7 -0
  72. data/examples/rango/media/pupu/autocompleter/.gitignore +5 -0
  73. data/examples/rango/media/pupu/autocompleter/README.textile +2 -2
  74. data/examples/rango/media/pupu/autocompleter/config.rb +1 -1
  75. data/examples/rango/media/pupu/blueprint/.gitignore +5 -0
  76. data/examples/rango/media/pupu/blueprint/config.rb +7 -7
  77. data/examples/rango/media/pupu/flash/.gitignore +5 -0
  78. data/examples/rango/media/pupu/flash/config.rb +1 -1
  79. data/examples/rango/media/pupu/lighter/.gitignore +10 -0
  80. data/examples/rango/media/pupu/lighter/config.rb +2 -2
  81. data/examples/rango/media/pupu/lighter/images/.gitignore +0 -0
  82. data/examples/rango/media/pupu/mootools/.gitignore +5 -0
  83. data/examples/rango/media/pupu/mootools/README.textile +1 -1
  84. data/examples/rango/media/pupu/mootools/config.rb +1 -1
  85. data/gems/cache/media-path-0.1.2.gem +0 -0
  86. data/gems/cache/nake-0.0.8.gem +0 -0
  87. data/gems/cache/rspec-1.3.0.gem +0 -0
  88. data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
  89. data/lib/pupu.rb +2 -1
  90. data/lib/pupu/adapters/merb.rb +12 -0
  91. data/lib/pupu/adapters/rails.rb +12 -0
  92. data/lib/pupu/adapters/rango.rb +25 -3
  93. data/lib/pupu/cli.rb +13 -11
  94. data/lib/pupu/dsl.rb +34 -13
  95. data/lib/pupu/exceptions.rb +5 -0
  96. data/lib/pupu/github.rb +26 -14
  97. data/lib/pupu/helpers.rb +8 -2
  98. data/lib/pupu/metadata.rb +2 -0
  99. data/lib/pupu/parser.rb +19 -4
  100. data/lib/pupu/pupu.rb +53 -27
  101. data/lib/pupu/tasks/pupu.nake +52 -0
  102. data/lib/pupu/version.rb +1 -3
  103. data/pupu.gemspec +15 -7
  104. data/pupu.pre.gemspec +5 -33
  105. data/spec/data/public/pupu/autocompleter/.gitignore +5 -0
  106. data/spec/data/public/pupu/autocompleter/README.textile +2 -2
  107. data/spec/data/public/pupu/autocompleter/config.rb +3 -1
  108. data/spec/pupu/dsl_spec.rb +3 -0
  109. data/spec/pupu/exceptions_spec.rb +3 -0
  110. data/spec/pupu/github_spec.rb +4 -1
  111. data/spec/pupu/helpers_spec.rb +5 -2
  112. data/spec/pupu/metadata_spec.rb +3 -0
  113. data/spec/pupu/parser_spec.rb +4 -1
  114. data/spec/pupu/pupu_spec.rb +3 -0
  115. data/stubs/pupu/content/%name%.gemspec.rbt +47 -0
  116. data/stubs/pupu/content/%name%.pre.gemspec.rbt +8 -0
  117. data/stubs/pupu/content/.gitignore +12 -0
  118. data/stubs/pupu/content/config.rb.rbt +3 -1
  119. data/stubs/pupu/content/deps.rip +5 -0
  120. data/stubs/pupu/content/images/.gitignore +0 -0
  121. data/stubs/pupu/content/init.rb.rbt +17 -0
  122. data/stubs/pupu/content/lib/%name%.rb.rbt +4 -0
  123. data/stubs/pupu/content/lib/%name%/adapters/rails.rb +0 -0
  124. data/stubs/pupu/content/lib/%name%/adapters/rango.rb +0 -0
  125. data/stubs/pupu/content/spec/%name%/.gitignore +0 -0
  126. data/stubs/pupu/content/spec/%name%_spec.rb.rbt +10 -0
  127. data/stubs/pupu/content/spec/spec.opts +5 -0
  128. data/stubs/pupu/content/spec/spec_helper.rb.rbt +7 -0
  129. data/stubs/pupu/postprocess.rb +8 -0
  130. data/stubs/pupu/setup.rb +4 -0
  131. data/tasks.rb +37 -0
  132. metadata +284 -200
  133. data/Rakefile +0 -28
  134. data/script/spec +0 -14
  135. data/tasks/benchmark.rake +0 -11
  136. data/tasks/gem.rake +0 -23
  137. data/tasks/hooks.rake +0 -12
  138. data/tasks/release.rake +0 -68
  139. data/tasks/spec.rake +0 -27
  140. data/tasks/submodules.rake +0 -33
  141. data/tasks/yardoc.rake +0 -9
@@ -0,0 +1,9 @@
1
+ /*.gem
2
+
3
+ .DS_Store
4
+ .cache
5
+ .yardoc
6
+
7
+ script/*
8
+ gems/*
9
+ !gems/cache
data/CHANGELOG CHANGED
@@ -1,3 +1,26 @@
1
+ = Version 0.1
2
+ * Ace adapter.
3
+
4
+ = Version 0.0.5
5
+ * Added if option to javascript/stylesheet, so you can use styleshett "ie", if: "lt IE 8"
6
+
7
+ = Version 0.0.4
8
+ * Added Rails example app
9
+ * pupu reinstall & pupu install --force
10
+ * Added Pupu.framework
11
+ * Added Pupu.logger
12
+ * Added Pupu.environment & Pupu.environment?
13
+ * Added --ruby & --no-ruby options to the generator
14
+
15
+ = Version 0.0.3
16
+ * Bug fixes
17
+ * Refactoring
18
+ * Examples
19
+
20
+ = Version 0.0.2
21
+ * Rails support
22
+ * Better documentation
23
+
1
24
  = Version 0.0.1
2
25
  * CLI interface with search, install & uninstall
3
26
  * Rake & Thor tasks wrapping the CLI interface
@@ -6,7 +29,3 @@
6
29
  * Metadata handling
7
30
  * Rango & Merb support
8
31
  * Rango & Merb examples
9
-
10
- = Version 0.0.2
11
- * Rails support
12
- * Better documentation
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # configuration
2
+ bundle_path "gems"
3
+ bin_path "script"
4
+ disable_rubygems
5
+
6
+ # gems
7
+ gem "nake"
8
+ gem "media-path"
9
+ gem "rspec", only: "test"
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Jakub Stastny aka Botanicus
1
+ Copyright (c) 2008 – 2010 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 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.
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.
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
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
data/TODO.txt CHANGED
@@ -1,11 +1,14 @@
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
+
1
6
  === Version 0.1 ===
2
7
  - Pupu.framework_root: "."
3
8
  - Pupu.media_root: "media"
4
9
  - Pupu.root: "media/pupu"
5
10
  - @pupu.root: "media/pupu/mootools"
6
11
 
7
- - rango & merb apps: both with same functionality include specs
8
-
9
12
  - THERE SHOULD BE A CONVETION TO NAME PUPU WITH PUPU-FRAMEWORK-PLUGIN, FOR EXAMPLE PUPU-MOOTOOLS-FLASH because of search
10
13
  - install each dependency just once
11
14
  - 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
@@ -13,8 +16,10 @@
13
16
  - media support (.swf): media helper
14
17
  - media vs. root vs. custom
15
18
  - how to handle metadata? Generate metadata.yml from config.rb (dependencies) or generate it through merb-gen and write it by hand?
16
- - what about ruby helpers such as flash :notice, :error for flash <divs
19
+ - what about ruby helpers such as flash :notice, :error for flash <divs>
17
20
  - 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
18
23
 
19
24
  === Version 0.2 ===
20
25
 
data/bin/pupu CHANGED
@@ -1,56 +1,49 @@
1
- #!/usr/bin/env ruby1.9
1
+ #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
 
4
+ # follow symlink
4
5
  base = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
5
6
  libdir = File.expand_path(File.join(File.dirname(base), "..", "lib"))
6
7
 
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
-
18
8
  # because of system installation, there is bin/../lib, but not bin/../lib/pupu
19
9
  if File.directory?(File.join(libdir, "pupu"))
20
10
  $:.unshift(libdir) unless $:.include?(libdir)
21
11
  end
22
12
 
23
- # === Helpers === #
24
- # TODO: Generators.each { |generator| puts generator.help }
13
+ require "pupu/cli"
14
+
15
+ # helpers
25
16
  def usage
26
17
  <<-HELP
27
18
  === Usage ===
28
- --media-root=media
29
- pupu create mootools Generate pupu mootools
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
30
28
  HELP
31
29
  end
32
30
 
31
+ # main loop
33
32
  begin
34
33
  case ARGV.shift
35
- when nil
36
- abort usage
37
34
  when "install"
38
- require "pupu/cli"
39
35
  Pupu::CLI.new(ARGV).install
40
36
  when "uninstall", "remove"
41
- require "pupu/cli"
42
37
  Pupu::CLI.new(ARGV).uninstall
38
+ when "reinstall"
39
+ Pupu::CLI.new(ARGV, force: true).install
43
40
  when "update"
44
- require "pupu/cli"
45
41
  Pupu::CLI.new(ARGV).update
46
42
  when "list" # list all pupus
47
- require "pupu/cli"
48
43
  Pupu::CLI.new(ARGV).list
49
44
  when "check" # check setup & if you are in the right directory
50
- require "pupu/cli"
51
45
  Pupu::CLI.new(ARGV).check || abort("File config/pupu.rb doesn't exist or can't be loaded")
52
46
  when "search"
53
- require "pupu/cli"
54
47
  Pupu::CLI.new(ARGV).search(ARGV.first)
55
48
  when "create"
56
49
  begin
@@ -69,5 +62,7 @@ begin
69
62
  rescue Exception => exception
70
63
  abort "Exception #{exception.inspect} occured during running generator #{generator.inspect}\n#{exception.backtrace.join("\n")}"
71
64
  end
65
+ else
66
+ abort usage
72
67
  end
73
68
  end
@@ -0,0 +1,17 @@
1
+ # You usually don't want to ignore gems/cache, but examples are
2
+ # part of the pupu gem and we want to keep it as small as possible
3
+ gems/*
4
+ bin/*
5
+
6
+ log/*
7
+ tmp/*
8
+
9
+ schema/schema.rb
10
+ schema/*_structure.sql
11
+ schema/*.sqlite3
12
+ schema/*.sqlite
13
+ schema/*.db
14
+
15
+ *.sqlite
16
+ *.sqlite3
17
+ *.db
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+
3
+ # === Usage === #
4
+ # Run gem bundle for installation. You have to have bundler gem installed.
5
+
6
+ # http://github.com/wycats/bundler
7
+ # http://litanyagainstfear.com/blog/2009/10/14/gem-bundler-is-the-future
8
+ # http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today
9
+ # http://www.engineyard.com/blog/2009/using-the-rubygems-bundler-for-your-app
10
+
11
+ gem "merb-core" # git: "git://github.com/merb/merb.git"
12
+ gem "media-path" # git: "git://github.com/botanicus/media-path.git"
13
+ gem "rspec", only: :test # git: "git://github.com/dchelimsky/rspec.git"
14
+
15
+ # === Bundler Setup === #
16
+ # Specify where the bundled gems should be stashed. This directory will
17
+ # be a gem repository where all gems are downloaded to and installed to.
18
+ #
19
+ # This is an optional setting.
20
+ # The default is: vendor/gems
21
+ bundle_path "gems"
22
+
23
+ # Specify where gem executables should be copied to.
24
+ #
25
+ # This is an optional setting.
26
+ # The default is: bin
27
+ bin_path "bin"
@@ -1,7 +1,5 @@
1
1
  h1. Merb Example
2
2
 
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@
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@
@@ -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,5 +1,12 @@
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
+
3
10
  # setup $:
4
11
  pupu_libdir = File.expand_path("../../lib")
5
12
  raise Errno::ENOENT, "#{pupu_libdir} doesn't exist" unless File.directory?(pupu_libdir)
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ *~
3
+ .*.swp
4
+ .#*
5
+ .svn/*
@@ -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
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ *~
3
+ .*.swp
4
+ .#*
5
+ .svn/*
@@ -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
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ *~
3
+ .*.swp
4
+ .#*
5
+ .svn/*
@@ -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
@@ -0,0 +1,10 @@
1
+ *~
2
+ .*.swp
3
+ .#*
4
+ .svn/*
5
+ .DS_Store
6
+ .yardoc
7
+ .cache
8
+ pkg/
9
+ nbproject/
10
+ metadata.yml
@@ -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
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ *~
3
+ .*.swp
4
+ .#*
5
+ .svn/*
@@ -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
@@ -0,0 +1,7 @@
1
+ # You usually don't want to ignore gems/cache, but examples are
2
+ # part of the pupu gem and we want to keep it as small as possible
3
+ gems/*
4
+ bin/*
5
+
6
+ tmp/*
7
+ log/*
@@ -0,0 +1,28 @@
1
+ # encoding: utf-8
2
+
3
+ # === Usage === #
4
+ # Run gem bundle for installation. You have to have bundler gem installed.
5
+
6
+ # http://github.com/wycats/bundler
7
+ # http://litanyagainstfear.com/blog/2009/10/14/gem-bundler-is-the-future
8
+ # http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today
9
+ # http://www.engineyard.com/blog/2009/using-the-rubygems-bundler-for-your-app
10
+
11
+ gem "rails" # git: "git://github.com/rails/rails.git"
12
+ gem "media-path" # git: "git://github.com/botanicus/media-path.git"
13
+ gem "rspec", only: :test # git: "git://github.com/dchelimsky/rspec.git"
14
+ gem "rspec-rails", only: :test # git: "git://github.com/dchelimsky/rspec-rails.git"
15
+
16
+ # === Bundler Setup === #
17
+ # Specify where the bundled gems should be stashed. This directory will
18
+ # be a gem repository where all gems are downloaded to and installed to.
19
+ #
20
+ # This is an optional setting.
21
+ # The default is: vendor/gems
22
+ bundle_path "gems"
23
+
24
+ # Specify where gem executables should be copied to.
25
+ #
26
+ # This is an optional setting.
27
+ # The default is: bin
28
+ bin_path "bin"