rake_tasks 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +1 -1
  2. data/lib/rake_tasks.rb +12 -3
  3. data/rake_tasks.gemspec +1 -1
  4. metadata +6 -6
data/README CHANGED
@@ -58,7 +58,7 @@ The default task will be set in the following order:
58
58
 
59
59
  2. Require the gem in your Gemfile:
60
60
 
61
- gem 'rake_tasks', '~> 2.0.3'
61
+ gem 'rake_tasks', '~> 2.0.5'
62
62
 
63
63
  3. Require the gem wherever you need to use it:
64
64
 
data/lib/rake_tasks.rb CHANGED
@@ -55,9 +55,18 @@ Dir[File.join(File.dirname(__FILE__), gem_name, 'lib', '*.rb')].each do |lib|
55
55
  end
56
56
 
57
57
  # Require tasks.
58
- Dir[File.join(File.dirname(__FILE__), gem_name, '*.rb')].each do |task|
59
- require task
60
- end
58
+ # These must be required in this order as
59
+ # there is an order of precedence for the default task.
60
+ # Using a glob, they were being required in different orders
61
+ # in different situations.
62
+ # Specifically, it was different depending on whether it was
63
+ # consumed as an installed gem or pointing to the source.
64
+ base = File.dirname(__FILE__)
65
+
66
+ require File.join(base, 'rake_tasks/rdoc')
67
+ require File.join(base, 'rake_tasks/doc')
68
+ require File.join(base, 'rake_tasks/gem')
69
+ require File.join(base, 'rake_tasks/test')
61
70
 
62
71
  # Include any ruby files in the tasks folder.
63
72
  Dir[File.join(Dir.getwd, 'tasks', '*.rb')].each do |rake_file|
data/rake_tasks.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rake_tasks'
3
- s.version = '2.0.4'
3
+ s.version = '2.0.5'
4
4
 
5
5
  s.summary = 'Basic rake tasks. You know you want some.'
6
6
  s.description =%Q{
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-12 00:00:00.000000000 Z
12
+ date: 2012-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha
16
- requirement: &17658200 !ruby/object:Gem::Requirement
16
+ requirement: &4708740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.10.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *17658200
24
+ version_requirements: *4708740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fakefs
27
- requirement: &17656940 !ruby/object:Gem::Requirement
27
+ requirement: &4708100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.4.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *17656940
35
+ version_requirements: *4708100
36
36
  description: ! 'RakeTasks provides basic rake tasks for generating documentation,
37
37
 
38
38
  building and installing gems, and running tests.