blazing 0.1.0.alpha4 → 0.1.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blazing (0.1.0.alpha4)
4
+ blazing (0.1.0.alpha5)
5
5
  activesupport
6
6
  grit
7
7
  i18n
data/README.md CHANGED
@@ -35,7 +35,7 @@ years. Then got inspired by defunkt's
35
35
 
36
36
  ## Installation
37
37
 
38
- Your machine should be setup with ruby, rubygems, bundler and git. Install blazing by adding it to your `Gemfile` or run `gem install blazing`. The basic assumption from now on will be that you are working on a project with bundler and a Gemfile. Support for other ways to handle dependencies might be added in the future.
38
+ Your machine should be setup with ruby, rubygems, bundler and git. Install blazing by adding it to your `Gemfile` or run `gem install blazing`. The basic assumption from now on will be that you are working on a project with bundler and a Gemfile. Support for other ways to handle dependencies might be added in the future, but for now bundler is required.
39
39
 
40
40
  ## Usage
41
41
 
@@ -13,6 +13,7 @@ class Blazing::Config
13
13
  class << self
14
14
 
15
15
  def parse(configuration_file = nil)
16
+ Blazing::Recipe.load_gem_recipes
16
17
  config = self.new(configuration_file)
17
18
  config.instance_eval(File.read(config.file))
18
19
 
@@ -22,6 +22,17 @@ class Blazing::Recipe
22
22
  descendants
23
23
  end
24
24
 
25
+ def load_gem_recipes
26
+ # TODO: I'm sure there is a better way to do this...
27
+ gems = open('Gemfile').grep(/blazing-/).map { |l| l.match(/(blazing-.*)\'\,/)[1] }
28
+ gems.each do |gem|
29
+ gem_lib_path = $:.find { |p| p.include? gem }
30
+ recipes_path = File.join(gem_lib_path, gem, 'recipes')
31
+ recipes = Dir.entries(recipes_path).delete_if { |r| r == '.' || r == '..' }
32
+ recipes.each { |recipe| require File.join(gem, 'recipes', recipe) }
33
+ end
34
+ end
35
+
25
36
  end
26
37
 
27
38
  end
@@ -39,14 +39,12 @@ done
39
39
  fi
40
40
  <% end %>
41
41
 
42
+ bundle --deployment
43
+
42
44
  <% unless @config.recipes.empty? %>
43
- blazing recipes:run
45
+ bundle exec blazing recipes:run
44
46
  <% end %>
45
47
 
46
48
  <% if @config.rake %>
47
49
  rake <%= @config.rake %>
48
50
  <% end %>
49
-
50
- <%# bundle --deployment%>
51
- <%# bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile%>
52
- <%# touch tmp/restart.txt%>
@@ -1,3 +1,3 @@
1
1
  module Blazing
2
- VERSION = "0.1.0.alpha4"
2
+ VERSION = "0.1.0.alpha5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha4
4
+ version: 0.1.0.alpha5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &70155896849380 !ruby/object:Gem::Requirement
16
+ requirement: &70261995519520 !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: :development
23
23
  prerelease: false
24
- version_requirements: *70155896849380
24
+ version_requirements: *70261995519520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70155896848860 !ruby/object:Gem::Requirement
27
+ requirement: &70261995518640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.2
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70155896848860
35
+ version_requirements: *70261995518640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70155896848440 !ruby/object:Gem::Requirement
38
+ requirement: &70261995518200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70155896848440
46
+ version_requirements: *70261995518200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard
49
- requirement: &70155896847980 !ruby/object:Gem::Requirement
49
+ requirement: &70261995517740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70155896847980
57
+ version_requirements: *70261995517740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-rspec
60
- requirement: &70155896847560 !ruby/object:Gem::Requirement
60
+ requirement: &70261995517140 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70155896847560
68
+ version_requirements: *70261995517140
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: growl
71
- requirement: &70155896847100 !ruby/object:Gem::Requirement
71
+ requirement: &70261995516520 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70155896847100
79
+ version_requirements: *70261995516520
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rb-fsevent
82
- requirement: &70155896846680 !ruby/object:Gem::Requirement
82
+ requirement: &70261995515860 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70155896846680
90
+ version_requirements: *70261995515860
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: grit
93
- requirement: &70155896846260 !ruby/object:Gem::Requirement
93
+ requirement: &70261995515300 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70155896846260
101
+ version_requirements: *70261995515300
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: activesupport
104
- requirement: &70155896845840 !ruby/object:Gem::Requirement
104
+ requirement: &70261995514800 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70155896845840
112
+ version_requirements: *70261995514800
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: i18n
115
- requirement: &70155896845420 !ruby/object:Gem::Requirement
115
+ requirement: &70261995514200 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,7 +120,7 @@ dependencies:
120
120
  version: '0'
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70155896845420
123
+ version_requirements: *70261995514200
124
124
  description: git push deployent utility, ready to be extended by your own recipes
125
125
  email:
126
126
  - felipekaufmann@gmail.com