thor 0.11.6 → 0.11.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Thorfile +2 -0
  2. data/VERSION +1 -1
  3. data/lib/thor/rake_compat.rb +3 -5
  4. metadata +2 -2
data/Thorfile CHANGED
@@ -50,6 +50,8 @@ class Default < Thor
50
50
  s.files.exclude 'spec/sandbox/**/*'
51
51
  s.test_files.exclude 'spec/sandbox/**/*'
52
52
  end
53
+
54
+ Jeweler::RubyforgeTasks.new
53
55
  rescue LoadError
54
56
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
55
57
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.6
1
+ 0.11.7
@@ -43,11 +43,9 @@ class Object #:nodoc:
43
43
  description.strip!
44
44
 
45
45
  klass.desc description, task.comment || non_namespaced_name
46
- klass.class_eval <<-METHOD
47
- def #{non_namespaced_name}(#{task.arg_names.join(', ')})
48
- Rake::Task[#{task.name.to_sym.inspect}].invoke(#{task.arg_names.join(', ')})
49
- end
50
- METHOD
46
+ klass.send :define_method, non_namespaced_name do |*args|
47
+ Rake::Task[task.name.to_sym].invoke(*args)
48
+ end
51
49
  end
52
50
 
53
51
  task
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.6
4
+ version: 0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-09-09 00:00:00 +02:00
13
+ date: 2009-09-22 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies: []
16
16