From c459a73f551a2ae1e5e5f8110e2bb94fdc6f2d1b Mon Sep 17 00:00:00 2001 From: Florian Hanke Date: Thu, 17 Mar 2011 18:41:53 +0100 Subject: [PATCH] + rake update for client --- client/lib/picky-client/tasks.rb | 2 ++ client/lib/picky-client/tasks/update.rake | 2 ++ client/picky-client.gemspec | 2 +- client/test_project/Rakefile | 2 +- generators/prototypes/client/sinatra/Rakefile | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 client/lib/picky-client/tasks.rb create mode 100644 client/lib/picky-client/tasks/update.rake diff --git a/client/lib/picky-client/tasks.rb b/client/lib/picky-client/tasks.rb new file mode 100644 index 00000000..0b5e6d9b --- /dev/null +++ b/client/lib/picky-client/tasks.rb @@ -0,0 +1,2 @@ +require File.expand_path '../tasks/javascripts', __FILE__ +load File.expand_path '../tasks/update.rake', __FILE__ \ No newline at end of file diff --git a/client/lib/picky-client/tasks/update.rake b/client/lib/picky-client/tasks/update.rake new file mode 100644 index 00000000..83474b07 --- /dev/null +++ b/client/lib/picky-client/tasks/update.rake @@ -0,0 +1,2 @@ +desc "Update the javascripts etc." +task :update => [:javascripts] \ No newline at end of file diff --git a/client/picky-client.gemspec b/client/picky-client.gemspec index 29997b7d..a6390ce3 100644 --- a/client/picky-client.gemspec +++ b/client/picky-client.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.has_rdoc = false - s.files = Dir["lib/**/*.rb", "javascripts/*.js"] + s.files = Dir["lib/**/*.{rb,rake}", "javascripts/*.js"] s.test_files = Dir["spec/**/*_spec.rb"] s.extra_rdoc_files = ['README.rdoc'] diff --git a/client/test_project/Rakefile b/client/test_project/Rakefile index ee2192a4..5d0e895f 100644 --- a/client/test_project/Rakefile +++ b/client/test_project/Rakefile @@ -1,4 +1,4 @@ -require 'picky-client/tasks/javascripts' +require 'picky-client/tasks' Picky::Tasks::Javascripts.new # Param: Location of your javascript files, default "javascripts". # Note: Javascripts are automatically copied into this project. \ No newline at end of file diff --git a/generators/prototypes/client/sinatra/Rakefile b/generators/prototypes/client/sinatra/Rakefile index 8527b3f4..e556148b 100644 --- a/generators/prototypes/client/sinatra/Rakefile +++ b/generators/prototypes/client/sinatra/Rakefile @@ -1,2 +1,2 @@ -require 'picky-client/tasks/javascripts' +require 'picky-client/tasks' Picky::Tasks::Javascripts.new # Pass in location of your javascript files, default is "javascripts". \ No newline at end of file