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.
- data/CHANGELOG +0 -16
- data/LICENSE +1 -1
- data/README.textile +3 -3
- data/Rakefile +28 -0
- data/TODO.txt +3 -8
- data/bin/pupu +24 -19
- data/examples/merb/README.textile +5 -3
- data/examples/merb/Rakefile +3 -3
- data/examples/merb/config/framework.rb +4 -4
- data/examples/merb/config/init.rb +0 -7
- data/examples/merb/public/pupu/autocompleter/README.textile +2 -2
- data/examples/merb/public/pupu/autocompleter/config.rb +1 -1
- data/examples/merb/public/pupu/blueprint/config.rb +7 -7
- data/examples/merb/public/pupu/flash/config.rb +1 -1
- data/examples/merb/public/pupu/lighter/config.rb +2 -2
- data/examples/merb/public/pupu/mootools/README.textile +1 -1
- data/examples/merb/public/pupu/mootools/config.rb +1 -1
- data/examples/rango/README.textile +6 -4
- data/examples/rango/init.rb +0 -7
- data/examples/rango/media/pupu/autocompleter/README.textile +2 -2
- data/examples/rango/media/pupu/autocompleter/config.rb +1 -1
- data/examples/rango/media/pupu/blueprint/config.rb +7 -7
- data/examples/rango/media/pupu/flash/config.rb +1 -1
- data/examples/rango/media/pupu/lighter/config.rb +2 -2
- data/examples/rango/media/pupu/mootools/README.textile +1 -1
- data/examples/rango/media/pupu/mootools/config.rb +1 -1
- data/lib/pupu.rb +1 -2
- data/lib/pupu/adapters/merb.rb +0 -12
- data/lib/pupu/adapters/rails.rb +0 -12
- data/lib/pupu/adapters/rango.rb +3 -25
- data/lib/pupu/cli.rb +11 -13
- data/lib/pupu/dsl.rb +13 -34
- data/lib/pupu/exceptions.rb +0 -2
- data/lib/pupu/github.rb +11 -23
- data/lib/pupu/helpers.rb +2 -8
- data/lib/pupu/metadata.rb +0 -2
- data/lib/pupu/parser.rb +4 -19
- data/lib/pupu/pupu.rb +21 -47
- data/lib/pupu/version.rb +3 -1
- data/pupu.gemspec +7 -15
- data/pupu.pre.gemspec +33 -5
- data/script/spec +14 -0
- data/spec/data/public/pupu/autocompleter/README.textile +2 -2
- data/spec/data/public/pupu/autocompleter/config.rb +1 -3
- data/{examples/merb/public/pupu/lighter/images/.gitignore → spec/pupu/adapters/merb_spec.rb} +0 -0
- data/{examples/rails/app/views/examples/arguments.html.erb → spec/pupu/adapters/rango_spec.rb} +0 -0
- data/spec/pupu/dsl_spec.rb +0 -3
- data/spec/pupu/exceptions_spec.rb +0 -3
- data/spec/pupu/github_spec.rb +1 -4
- data/spec/pupu/helpers_spec.rb +2 -5
- data/spec/pupu/metadata_spec.rb +0 -3
- data/spec/pupu/parser_spec.rb +1 -4
- data/spec/pupu/pupu_spec.rb +0 -3
- data/stubs/pupu/content/config.rb.rbt +1 -3
- data/stubs/pupu/postprocess.rb +0 -8
- data/stubs/pupu/setup.rb +0 -4
- 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 +199 -290
- data/.gitignore +0 -9
- data/Gemfile +0 -9
- data/examples/merb/.gitignore +0 -17
- data/examples/merb/Gemfile +0 -27
- data/examples/merb/public/pupu/autocompleter/.gitignore +0 -5
- data/examples/merb/public/pupu/blueprint/.gitignore +0 -5
- data/examples/merb/public/pupu/flash/.gitignore +0 -5
- data/examples/merb/public/pupu/lighter/.gitignore +0 -10
- data/examples/merb/public/pupu/mootools/.gitignore +0 -5
- data/examples/rails/.gitignore +0 -7
- data/examples/rails/Gemfile +0 -28
- data/examples/rails/README.textile +0 -5
- data/examples/rails/Rakefile +0 -10
- data/examples/rails/app/controllers/application_controller.rb +0 -10
- data/examples/rails/app/controllers/home_controller.rb +0 -8
- data/examples/rails/app/helpers/application_helper.rb +0 -3
- data/examples/rails/app/views/examples/dependencies.html.erb +0 -0
- data/examples/rails/app/views/examples/simple.html.erb +0 -4
- data/examples/rails/app/views/index.html.erb +0 -7
- data/examples/rails/app/views/layout.html.erb +0 -12
- data/examples/rails/config/boot.rb +0 -110
- data/examples/rails/config/environment.rb +0 -55
- data/examples/rails/config/environments/development.rb +0 -17
- data/examples/rails/config/environments/production.rb +0 -28
- data/examples/rails/config/environments/test.rb +0 -28
- data/examples/rails/config/initializers/backtrace_silencers.rb +0 -7
- data/examples/rails/config/initializers/inflections.rb +0 -10
- data/examples/rails/config/initializers/mime_types.rb +0 -5
- data/examples/rails/config/initializers/new_rails_defaults.rb +0 -21
- data/examples/rails/config/initializers/session_store.rb +0 -15
- data/examples/rails/config/routes.rb +0 -43
- data/examples/rails/db/seeds.rb +0 -7
- data/examples/rails/public/404.html +0 -30
- data/examples/rails/public/422.html +0 -30
- data/examples/rails/public/500.html +0 -30
- data/examples/rails/public/favicon.ico +0 -0
- data/examples/rails/public/robots.txt +0 -5
- data/examples/rails/script/about +0 -4
- data/examples/rails/script/console +0 -3
- data/examples/rails/script/dbconsole +0 -3
- data/examples/rails/script/destroy +0 -3
- data/examples/rails/script/generate +0 -3
- data/examples/rails/script/performance/benchmarker +0 -3
- data/examples/rails/script/performance/profiler +0 -3
- data/examples/rails/script/plugin +0 -3
- data/examples/rails/script/runner +0 -3
- data/examples/rails/script/server +0 -3
- data/examples/rails/spec/application_spec.rb +0 -37
- data/examples/rails/spec/spec_helper.rb +0 -0
- data/examples/rango/.gitignore +0 -4
- data/examples/rango/Gemfile +0 -56
- data/examples/rango/media/pupu/autocompleter/.gitignore +0 -5
- data/examples/rango/media/pupu/blueprint/.gitignore +0 -5
- data/examples/rango/media/pupu/flash/.gitignore +0 -5
- data/examples/rango/media/pupu/lighter/.gitignore +0 -10
- data/examples/rango/media/pupu/lighter/images/.gitignore +0 -0
- data/examples/rango/media/pupu/mootools/.gitignore +0 -5
- data/gems/cache/media-path-0.1.2.gem +0 -0
- data/gems/cache/nake-0.0.8.gem +0 -0
- data/gems/cache/rspec-1.3.0.gem +0 -0
- data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
- data/lib/pupu/tasks/pupu.nake +0 -52
- data/spec/data/public/pupu/autocompleter/.gitignore +0 -5
- data/stubs/pupu/content/%name%.gemspec.rbt +0 -47
- data/stubs/pupu/content/%name%.pre.gemspec.rbt +0 -8
- data/stubs/pupu/content/.gitignore +0 -12
- data/stubs/pupu/content/deps.rip +0 -5
- data/stubs/pupu/content/images/.gitignore +0 -0
- data/stubs/pupu/content/init.rb.rbt +0 -17
- data/stubs/pupu/content/lib/%name%.rb.rbt +0 -4
- data/stubs/pupu/content/lib/%name%/adapters/rails.rb +0 -0
- data/stubs/pupu/content/lib/%name%/adapters/rango.rb +0 -0
- data/stubs/pupu/content/spec/%name%/.gitignore +0 -0
- data/stubs/pupu/content/spec/%name%_spec.rb.rbt +0 -10
- data/stubs/pupu/content/spec/spec.opts +0 -5
- data/stubs/pupu/content/spec/spec_helper.rb.rbt +0 -7
- data/tasks.rb +0 -37
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
# (all these examples are active by default):
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
8
|
-
# inflect.irregular 'person', 'people'
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
10
|
-
# end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# These settings change the behavior of Rails 2 apps and will be defaults
|
4
|
-
# for Rails 3. You can remove this initializer when Rails 3 is released.
|
5
|
-
|
6
|
-
if defined?(ActiveRecord)
|
7
|
-
# Include Active Record class name as root for JSON serialized output.
|
8
|
-
ActiveRecord::Base.include_root_in_json = true
|
9
|
-
|
10
|
-
# Store the full class name (including module namespace) in STI type column.
|
11
|
-
ActiveRecord::Base.store_full_sti_class = true
|
12
|
-
end
|
13
|
-
|
14
|
-
ActionController::Routing.generate_best_match = false
|
15
|
-
|
16
|
-
# Use ISO 8601 format for JSON serialized times and dates.
|
17
|
-
ActiveSupport.use_standard_json_time_format = true
|
18
|
-
|
19
|
-
# Don't escape HTML entities in JSON, leave that for the #json_escape helper.
|
20
|
-
# if you're including raw json in an HTML page.
|
21
|
-
ActiveSupport.escape_html_entities_in_json = false
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key for verifying cookie session data integrity.
|
4
|
-
# If you change this key, all old sessions will become invalid!
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
ActionController::Base.session = {
|
8
|
-
:key => '_rails_session',
|
9
|
-
:secret => '6bd040269fe358f0a2bc3bccd9972b9096e31a59b68902d877b3599e026fe290912d57792b67b04e6dab3eda3f67471dc03d229466495c6fc583d3fb263dcea2'
|
10
|
-
}
|
11
|
-
|
12
|
-
# Use the database for sessions instead of the cookie-based default,
|
13
|
-
# which shouldn't be used to store highly confidential information
|
14
|
-
# (create the session table with "rake db:sessions:create")
|
15
|
-
# ActionController::Base.session_store = :active_record_store
|
@@ -1,43 +0,0 @@
|
|
1
|
-
ActionController::Routing::Routes.draw do |map|
|
2
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
-
|
4
|
-
# Sample of regular route:
|
5
|
-
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
|
6
|
-
# Keep in mind you can assign values other than :controller and :action
|
7
|
-
|
8
|
-
# Sample of named route:
|
9
|
-
# map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
|
10
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
11
|
-
|
12
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
13
|
-
# map.resources :products
|
14
|
-
|
15
|
-
# Sample resource route with options:
|
16
|
-
# map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
|
17
|
-
|
18
|
-
# Sample resource route with sub-resources:
|
19
|
-
# map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
|
20
|
-
|
21
|
-
# Sample resource route with more complex sub-resources
|
22
|
-
# map.resources :products do |products|
|
23
|
-
# products.resources :comments
|
24
|
-
# products.resources :sales, :collection => { :recent => :get }
|
25
|
-
# end
|
26
|
-
|
27
|
-
# Sample resource route within a namespace:
|
28
|
-
# map.namespace :admin do |admin|
|
29
|
-
# # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
|
30
|
-
# admin.resources :products
|
31
|
-
# end
|
32
|
-
|
33
|
-
# You can have the root of your site routed with map.root -- just remember to delete public/index.html.
|
34
|
-
# map.root :controller => "welcome"
|
35
|
-
|
36
|
-
# See how all your routes lay out with "rake routes"
|
37
|
-
|
38
|
-
# Install the default routes as the lowest priority.
|
39
|
-
# Note: These default routes make all actions in every controller accessible via GET requests. You should
|
40
|
-
# consider removing or commenting them out if you're using named routes and resources.
|
41
|
-
map.connect("/", controller: "home", action: "index")
|
42
|
-
map.connect("/examples/:template", controller: "home", action: "static")
|
43
|
-
end
|
data/examples/rails/db/seeds.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
|
7
|
-
# Major.create(:name => 'Daley', :city => cities.first)
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/404.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
27
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>The change you wanted was rejected (422)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/422.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>The change you wanted was rejected.</h1>
|
27
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>We're sorry, but something went wrong (500)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/500.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>We're sorry, but something went wrong.</h1>
|
27
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
File without changes
|
data/examples/rails/script/about
DELETED
@@ -1,37 +0,0 @@
|
|
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
|
File without changes
|
data/examples/rango/.gitignore
DELETED
data/examples/rango/Gemfile
DELETED
@@ -1,56 +0,0 @@
|
|
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
|
-
# === Shared Gems === #
|
12
|
-
# Specify a dependency on rango. When the bundler downloads gems,
|
13
|
-
# it will download rango as well as all of rango' dependencies
|
14
|
-
|
15
|
-
# rango stack
|
16
|
-
gem "rango"#, git: "git://github.com/botanicus/rango.git"
|
17
|
-
gem "rack"#, git: "git://github.com/rack/rack.git"
|
18
|
-
gem "tilt"#, git: "git://github.com/rtomayko/tilt.git"
|
19
|
-
|
20
|
-
# router
|
21
|
-
gem "usher"#, git: "git://github.com/joshbuddy/usher.git"
|
22
|
-
|
23
|
-
# template engine
|
24
|
-
gem "haml"#, git: "git://github.com/nex3/haml.git"
|
25
|
-
|
26
|
-
# NOTE: do not use require_as: nil because if you do so, bundler will require the library anyway
|
27
|
-
# Check last section of http://wiki.github.com/merb/merb/howto-using-the-bundler for more informations
|
28
|
-
only(:bundle) do
|
29
|
-
gem "thin"#, git: "git://github.com/macournoyer/thin.git" # there seems to be some problems with latest thin
|
30
|
-
#gem "unicorn"#, git: "git://repo.or.cz/unicorn.git"
|
31
|
-
gem "racksh"#, git: "git://github.com/sickill/racksh.git"
|
32
|
-
gem "shotgun"#, git: "git://github.com/rtomayko/shotgun.git"
|
33
|
-
end
|
34
|
-
|
35
|
-
gem "simple-logger"#, git: "git://github.com/botanicus/simple-logger.git"
|
36
|
-
gem "media-path"#, git: "git://github.com/botanicus/media-path.git"
|
37
|
-
|
38
|
-
# === Environment-Specific Setup === #
|
39
|
-
only(:test) do
|
40
|
-
gem "rspec"#, git: "git://github.com/dchelimsky/rspec.git"
|
41
|
-
gem "rack-test", require_as: "rack/test"#, git: "git://github.com/brynary/rack-test.git"
|
42
|
-
end
|
43
|
-
|
44
|
-
# === Bundler Setup === #
|
45
|
-
# Specify where the bundled gems should be stashed. This directory will
|
46
|
-
# be a gem repository where all gems are downloaded to and installed to.
|
47
|
-
#
|
48
|
-
# This is an optional setting.
|
49
|
-
# The default is: vendor/gems
|
50
|
-
bundle_path "gems"
|
51
|
-
|
52
|
-
# Specify where gem executables should be copied to.
|
53
|
-
#
|
54
|
-
# This is an optional setting.
|
55
|
-
# The default is: bin
|
56
|
-
bin_path "bin"
|
File without changes
|
Binary file
|
data/gems/cache/nake-0.0.8.gem
DELETED
Binary file
|
data/gems/cache/rspec-1.3.0.gem
DELETED
Binary file
|
Binary file
|
data/lib/pupu/tasks/pupu.nake
DELETED
@@ -1,52 +0,0 @@
|
|
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
|