pupu 0.1.pre → 0.1

Sign up to get free protection for your applications and to get access to all the features.
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,52 @@
1
+ # encoding: utf-8
2
+
3
+ autoload "Pupu", "pupu/cli"
4
+
5
+ # == Setup ==
6
+ # task "pupu:setup" => :environment
7
+ Task.new("pupu:setup") do |task|
8
+ task.hidden = true
9
+ task.define do
10
+ require "pupu/cli"
11
+ end
12
+ end
13
+
14
+ Task.new("pupu:install") do |task|
15
+ task.description = "Install given packages"
16
+ task.dependencies << "pupu:setup"
17
+ task.define do |*names|
18
+ Pupu::CLI.install(*names)
19
+ end
20
+ end
21
+
22
+ Task.new("pupu:uninstall") do |task|
23
+ task.description = "Uninstall given packages"
24
+ task.dependencies << "pupu:setup"
25
+ task.define do |*names|
26
+ Pupu::CLI.uninstall(*names)
27
+ end
28
+ end
29
+
30
+ Task.new("pupu:update") do |task|
31
+ task.description = "Update given packages. If no name is given, update all of them."
32
+ task.dependencies << "pupu:setup"
33
+ task.define do |*names|
34
+ Pupu::CLI.update(*names)
35
+ end
36
+ end
37
+
38
+ Task.new("pupu:list") do |task|
39
+ task.description = "List all installed packages."
40
+ task.dependencies << "pupu:setup"
41
+ task.define do
42
+ Pupu::CLI.list
43
+ end
44
+ end
45
+
46
+ Task.new("pupu:search") do |task|
47
+ task.description = "Search pupu matching given pattern on GitHub"
48
+ task.dependencies << "pupu:setup"
49
+ task.define do |pattern|
50
+ Pupu::CLI.search(pattern)
51
+ end
52
+ end
@@ -1,7 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
- # NOTE: Do not edit this file manually, this
4
- # file is regenerated by task rake version:increase
5
3
  module Pupu
6
- VERSION ||= "0.0.2"
4
+ VERSION = "0.1"
7
5
  end
@@ -1,9 +1,8 @@
1
- #!/usr/bin/env gem1.9 build
1
+ #!/usr/bin/env gem build
2
2
  # encoding: utf-8
3
3
 
4
- # NOTE: we can't use require_relative because when we run gem build, it use eval for executing this file
5
- $:.unshift File.join(File.dirname(__FILE__), "lib")
6
- require "pupu/version"
4
+ require "base64"
5
+ require File.join(File.dirname(__FILE__), "lib/pupu/version")
7
6
 
8
7
  Gem::Specification.new do |s|
9
8
  s.name = "pupu"
@@ -13,11 +12,12 @@ Gem::Specification.new do |s|
13
12
  s.summary = "Framework-agnostic package system for media files"
14
13
  s.description = "Pupu is a plugin system for media like mootools plugins, icon sets etc. It knows dependencies and it has CLI interface, so it's really easy to bundle such pupus into your app."
15
14
  s.cert_chain = nil
16
- s.email = ["knava.bestvinensis", "gmail.com"].join("@")
15
+ s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
17
16
 
18
17
  # files
19
- s.files = Dir.glob("**/*") - Dir.glob("pkg/*")
20
- s.executables = ["pupu"]
18
+ s.files = `git ls-files`.split("\n")
19
+
20
+ s.executables = Dir["bin/*"].map(&File.method(:basename))
21
21
  s.default_executable = "pupu"
22
22
  s.require_paths = ["lib"]
23
23
 
@@ -31,6 +31,14 @@ Gem::Specification.new do |s|
31
31
  # use gem install pupu --development if you want to install them
32
32
  s.add_development_dependency "simple-templater"
33
33
 
34
+ begin
35
+ require "changelog"
36
+ rescue LoadError
37
+ warn "You have to have changelog gem installed for post install message"
38
+ else
39
+ s.post_install_message = CHANGELOG.new.version_changes
40
+ end
41
+
34
42
  # RubyForge
35
43
  s.rubyforge_project = "pupu"
36
44
  end
@@ -1,36 +1,8 @@
1
- #!/usr/bin/env gem1.9 build
1
+ #!/usr/bin/env gem build
2
2
  # encoding: utf-8
3
3
 
4
- # NOTE: we can't use require_relative because when we run gem build, it use eval for executing this file
5
- $:.unshift File.join(File.dirname(__FILE__), "lib")
6
- require "pupu/version"
7
-
8
- Gem::Specification.new do |s|
9
- s.name = "pupu"
10
- s.version = '0.1.pre'
11
- s.authors = ["Jakub Šťastný aka Botanicus"]
12
- s.homepage = "http://github.com/botanicus/pupu"
13
- s.summary = "Framework-agnostic package system for media files"
14
- s.description = "Pupu is a plugin system for media like mootools plugins, icon sets etc. It knows dependencies and it has CLI interface, so it's really easy to bundle such pupus into your app."
15
- s.cert_chain = nil
16
- s.email = ["knava.bestvinensis", "gmail.com"].join("@")
17
-
18
- # files
19
- s.files = Dir.glob("**/*") - Dir.glob("pkg/*")
20
- s.executables = ["pupu"]
21
- s.default_executable = "pupu"
22
- s.require_paths = ["lib"]
23
-
24
- # Ruby version
25
- s.required_ruby_version = ::Gem::Requirement.new("~> 1.9.1")
26
-
27
- # runtime dependencies
28
- s.add_dependency "media-path"
29
-
30
- # development dependencies
31
- # use gem install pupu --development if you want to install them
32
- s.add_development_dependency "simple-templater"
33
-
34
- # RubyForge
35
- s.rubyforge_project = "pupu"
4
+ # You might think this is a terrible mess and guess what, you're
5
+ # right mate! However say thanks to authors of RubyGems, not me.
6
+ eval(File.read("pupu.gemspec")).tap do |specification|
7
+ specification.version = "#{specification.version}.pre"
36
8
  end
@@ -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>
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  # autocompleter depends on mootools
2
4
  dependencies :mootools
3
5
 
@@ -7,6 +9,6 @@ javascripts "observer", "autocompleter"
7
9
  # stylesheet
8
10
  stylesheet "autocompleter"
9
11
 
10
- parameter :type, :optional => ["local", "request"] do |type|
12
+ parameter :type, optional: ["local", "request"] do |type|
11
13
  javascript "autocompleter.#{type}"
12
14
  end
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/dsl"
3
6
  require "pupu/pupu"
4
7
 
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/exceptions"
3
6
 
4
7
  describe Pupu::PupuRootNotFound do
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/github"
3
6
 
4
7
  # TODO
@@ -13,7 +16,7 @@ describe Pupu::GitHub do
13
16
  end
14
17
 
15
18
  it "should return nil if plugin do not exists" do
16
- plugin(:autocompleter, :request => "local")
19
+ plugin(:autocompleter, request: "local")
17
20
  end
18
21
  end
19
22
  end
@@ -1,9 +1,12 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/pupu"
3
6
  require "pupu/helpers"
4
- include Pupu::Helpers
5
7
 
6
8
  describe "Helpers#pupu" do
9
+ include Pupu::Helpers
7
10
  before(:each) do
8
11
  Pupu.root = File.dirname(__FILE__) + "/data/root/pupu"
9
12
  end
@@ -13,6 +16,6 @@ describe "Helpers#pupu" do
13
16
  end
14
17
 
15
18
  it "should return text with assets" do
16
- pupu(:autocompleter, :type => "local").should eql(Parser.new(:autocompleter, :type => "local").parse!)
19
+ pupu(:autocompleter, type: "local").should eql(Parser.new(:autocompleter, type: "local").parse!)
17
20
  end
18
21
  end
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/metadata"
3
6
 
4
7
  describe Pupu do
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/parser"
3
6
 
4
7
  # TODO
@@ -13,7 +16,7 @@ describe Pupu::Parser do
13
16
  end
14
17
 
15
18
  it "should return nil if plugin do not exists" do
16
- plugin(:autocompleter, :request => "local")
19
+ plugin(:autocompleter, request: "local")
17
20
  end
18
21
  end
19
22
  end
@@ -1,4 +1,7 @@
1
+ # encoding: utf-8
2
+
1
3
  require_relative "../spec_helper"
4
+
2
5
  require "pupu/pupu"
3
6
 
4
7
  describe Pupu::Pupu do
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env gem build
2
+ # encoding: utf-8
3
+
4
+ # Run ./<%= @name %>.gemspec or gem build <%= @name %>.gemspec
5
+ # NOTE: we can't use require_relative because when we run gem build, it use eval for executing this file
6
+ require File.join(File.dirname(__FILE__), "lib", "<%= @name %>", "version")
7
+ require "base64"
8
+
9
+ Gem::Specification.new do |s|
10
+ s.name = "<%= @name %>"
11
+ s.version = <%= @constant %>::VERSION
12
+ s.authors = ["<%= @full_name %>"]
13
+ s.homepage = "http://github.com/<%= @github_user %>/<%= @github_repository %>"
14
+ s.summary = "" # TODO: summary
15
+ s.description = "" # TODO: long description
16
+ s.cert_chain = nil
17
+ s.email = Base64.decode64() # TODO: your encrypted e-mail
18
+ s.has_rdoc = true
19
+
20
+ # files
21
+ s.files = `git ls-files`.split("\n")
22
+
23
+ s.executables = Dir["bin/*"].map(&File.method(:basename))
24
+ s.default_executable = "<%= @name %>"
25
+ s.require_paths = ["lib"]
26
+
27
+ # Ruby version
28
+ s.required_ruby_version = ::Gem::Requirement.new(">= 1.9")
29
+
30
+ # runtime dependencies
31
+ # s.add_dependency "my-gem"
32
+
33
+ # development dependencies
34
+ # use gem install <%= @name %> --development if you want to install them
35
+ # s.add_development_dependency "simple-templater"
36
+
37
+ begin
38
+ require "changelog"
39
+ rescue LoadError
40
+ warn "You have to have changelog gem installed for post install message"
41
+ else
42
+ s.post_install_message = CHANGELOG.new.version_changes
43
+ end
44
+
45
+ # RubyForge
46
+ s.rubyforge_project = "<%= @name %>"
47
+ end
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env gem build
2
+ # encoding: utf-8
3
+
4
+ # You might think this is a terrible mess and guess what, you're
5
+ # right mate! However say thanks to authors of RubyGems, not me.
6
+ eval(File.read("<%= @name %>.gemspec")).tap do |specification|
7
+ specification.version = "#{specification.version}.pre"
8
+ end
@@ -0,0 +1,12 @@
1
+ *~
2
+ .*.swp
3
+ .#*
4
+ .svn/*
5
+ .DS_Store
6
+ .yardoc
7
+ .cache
8
+
9
+ /*.gem
10
+ script/*
11
+ gems/*
12
+ !gems/cache
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  # dependencies of the pupu
2
4
  <% @dependencies.each do |dependency| %>
3
5
  dependency :<%= dependency %>
@@ -15,6 +17,6 @@ stylesheet "<%= stylesheet %>"
15
17
 
16
18
  # parameters of plugin
17
19
  # it will be blank in most cases
18
- #parameter :request, :optional => ["local", "ajax"] do |type|
20
+ #parameter :request, optional: ["local", "ajax"] do |type|
19
21
  # javascript "lib/autocompleter.#{type}"
20
22
  #end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env rip install
2
+
3
+ # Syntax:
4
+ # repository [tag or commit to install]
5
+ git://github.com/botanicus/pupu.git
File without changes
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+
3
+ # This file will be loaded automatically when the pupu helper is used
4
+ # If you don't want to load this file, use pupu :whatever, helpers: false
5
+
6
+ $LOAD_PATH.unshift(File.expand_path("lib", __FILE__))
7
+
8
+ begin
9
+ require "<%= @name %>/adapters/#{Pupu.framework}"
10
+ rescue LoadError
11
+ # If you don't have adapter file, everything should work anyway since Pupu::Helpers
12
+ # mixin is included into helper module of your framework, so we can fail silently
13
+ end
14
+
15
+ module Pupu::Helpers
16
+ include <%= @constant %>::Helpers
17
+ end
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+
3
+ module <%= @constant %>
4
+ end
@@ -0,0 +1,10 @@
1
+ # encoding: utf-8
2
+
3
+ require_relative "spec_helper"
4
+
5
+ describe <%= @constant %> do
6
+ it "should have VERSION constant" do
7
+ <%= @constant %>::VERSION.should be_kind_of(String)
8
+ <%= @constant %>::VERSION.should match(/^\d+\.\d+\.\d+$/)
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ --colour
2
+ --format
3
+ progress
4
+ --loadby
5
+ mtime
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+
3
+ # dependencies
4
+ require "spec"
5
+
6
+ # setup load paths
7
+ $:.unshift(File.expand_path("../lib"), __FILE__)
@@ -8,4 +8,12 @@ require "simple-templater/hooks/postprocess/git_repository"
8
8
  hook do |generator, context|
9
9
  # simple-templater create rango --full-name="Jakub Stastny"
10
10
  generator.after Hooks::GitRepository
11
+
12
+ unless context[:ruby]
13
+ rm "init.rb"
14
+ rm "deps.rb"
15
+ rm "#{context[:name]}.gemspec"
16
+ rm "#{context[:name]}.pre.gemspec"
17
+ rm_r "lib"
18
+ end
11
19
  end
@@ -10,6 +10,7 @@ require "simple-templater/hooks/preprocess/full_name"
10
10
  # --javascripts=mootools-core,mootools-more | --no-javascripts
11
11
  # --stylesheets=one,two | --no-stylesheets
12
12
  # --dependencies=mootools,blueprint | --no-dependencies
13
+ # --ruby || --no-ruby
13
14
  hook do |generator, context|
14
15
  generator.before Hooks::FullName, Hooks::GithubUser
15
16
  generator.target = "pupu-#{context[:name]}" unless generator.target.match(/^pupu-/) # this is the convention
@@ -22,4 +23,7 @@ hook do |generator, context|
22
23
  unless context[:github_repository] && context[:github_repository].match(/^pupu-/)
23
24
  context[:github_repository] = "pupu-#{context[:github_repository]}"
24
25
  end
26
+ if context[:ruby]
27
+ context[:constant] = context[:name].camel_case
28
+ end
25
29
  end