rails_setup 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RailsSetup
2
- VERSION = "0.0.2" unless defined?(::RailsSetup::VERSION)
2
+ VERSION = "0.0.3" unless defined?(::RailsSetup::VERSION)
3
3
  end
@@ -1,5 +1,13 @@
1
- def setup_task(name)
2
- task name => [:setup_environment] do
1
+ def setup_task(options)
2
+ name = options
3
+ env = [:setup_environment]
4
+
5
+ if Hash === options
6
+ name = options.keys.first
7
+ env += options.values.flatten
8
+ end
9
+
10
+ task name => env do
3
11
  yield
4
12
  end
5
13
  end
@@ -1,6 +1,6 @@
1
1
  namespace :setup do
2
2
  desc "It's the awesome part of the sauce"
3
- setup_task :awesome_sauce do
3
+ setup_task :awesome_sauce => :environment do
4
4
  puts 100.times.map { heart }.join
5
5
  end
6
6
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2012-09-27 00:00:00.000000000Z
12
+ date: 2012-10-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
16
- requirement: &2170003320 !ruby/object:Gem::Requirement
16
+ requirement: &2165869080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2170003320
24
+ version_requirements: *2165869080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: highline
27
- requirement: &2170002900 !ruby/object:Gem::Requirement
27
+ requirement: &2165868660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2170002900
35
+ version_requirements: *2165868660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &2170002400 !ruby/object:Gem::Requirement
38
+ requirement: &2165868140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 3.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2170002400
46
+ version_requirements: *2165868140
47
47
  description: Helper methods for better rake setup tasks
48
48
  email:
49
49
  - jordan.byron@gmail.com
@@ -81,6 +81,7 @@ files:
81
81
  - test/dummy/config/routes.rb
82
82
  - test/dummy/config.ru
83
83
  - test/dummy/lib/tasks/setup.rake
84
+ - test/dummy/log/development.log
84
85
  - test/dummy/public/404.html
85
86
  - test/dummy/public/422.html
86
87
  - test/dummy/public/500.html
@@ -104,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
105
  version: '0'
105
106
  segments:
106
107
  - 0
107
- hash: -2879396514878447790
108
+ hash: 3804777971940136182
108
109
  required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  none: false
110
111
  requirements:
@@ -113,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  version: '0'
114
115
  segments:
115
116
  - 0
116
- hash: -2879396514878447790
117
+ hash: 3804777971940136182
117
118
  requirements: []
118
119
  rubyforge_project:
119
120
  rubygems_version: 1.8.15
@@ -143,6 +144,7 @@ test_files:
143
144
  - test/dummy/config/routes.rb
144
145
  - test/dummy/config.ru
145
146
  - test/dummy/lib/tasks/setup.rake
147
+ - test/dummy/log/development.log
146
148
  - test/dummy/public/404.html
147
149
  - test/dummy/public/422.html
148
150
  - test/dummy/public/500.html