blazing 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ ## master
2
+
3
+ none
4
+
5
+ ## 0.1.1 - October 25, 2011
6
+
7
+ * [BUGFIX]: fix #48: dont bundle test and dev gems, do it quietly ([@effkay][])
8
+ * [BUGFIX]: fix #44: accept target as argument ([@effkay][])
9
+ * [BUGFIX]: fix #41: recipe gem loading issues resolved
10
+ * [DOCS]: remove documentation of external recipes ([@effkay][])
11
+
12
+ ## 0.1.0 - October 24, 2011
13
+
14
+ [@effkay]: https://github.com/effkay
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blazing (0.1.0)
4
+ blazing (0.1.1)
5
5
  activesupport
6
6
  grit
7
7
  i18n
data/README.md CHANGED
@@ -78,10 +78,7 @@ Right now blazing does the following things out of the box:
78
78
  Run all recipes? Well yes, blazing can be extended by recipes. So far, these are available:
79
79
 
80
80
  * [blazing-passenger](https://github.com/effkay/blazing-passenger)
81
- * `:passenger_restart` will touch `tmp/retart.txt`
82
- * `:passenger_kickstart, :url => 'http:://somehost'` will do a get requst on somehost to kickstart passenger
83
81
  * [blazing-rails](https://github.com/effkay/blazing-rails)
84
- * `:precompile_assets` will precompile the assets when deploying
85
82
 
86
83
  Feel free to roll your own recipes!
87
84
 
@@ -13,7 +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
+ Blazing::Recipe.load_recipes
17
17
  config = self.new(configuration_file)
18
18
  config.instance_eval(File.read(config.file))
19
19
 
@@ -25,9 +25,15 @@ class Blazing::Recipe
25
25
  descendants
26
26
  end
27
27
 
28
- def load_gem_recipes
29
- # TODO: I'm sure there is a better way to do this...
30
- gems = open('Gemfile').grep(/blazing-/).map { |l| l.match(/(blazing-.*)\'\,/)[1] }
28
+ def load_recipes
29
+ load_recipe_gems(parse_gemfile)
30
+ end
31
+
32
+ def parse_gemfile(gemfile = 'Gemfile')
33
+ open(gemfile).grep(/blazing-/).map { |l| l.match(/blazing-(\w+)/)[0] }
34
+ end
35
+
36
+ def load_recipe_gems(gems)
31
37
  gems.each do |gem|
32
38
  gem_lib_path = $:.find { |p| p.include? gem }
33
39
  recipes_path = File.join(gem_lib_path, gem, 'recipes')
@@ -37,5 +43,4 @@ class Blazing::Recipe
37
43
  end
38
44
 
39
45
  end
40
-
41
46
  end
@@ -40,11 +40,11 @@ class Blazing::Runner
40
40
  end
41
41
 
42
42
  def setup_remote_command
43
- @config.default_target.setup
43
+ @target.setup
44
44
  end
45
45
 
46
46
  def update_command
47
- @config.default_target.update
47
+ @target.update
48
48
  end
49
49
 
50
50
  def recipes_run_command
@@ -14,17 +14,20 @@
14
14
  # target :staging, 'blazing@production.server.com:/where/your/code/is/shipped/to', :default => true
15
15
 
16
16
  #
17
- # Define which recipes should be used. The recipes are run in the order that they are defined
17
+ # Optional: RVM handling
18
18
  #
19
-
20
19
  # Use Ruby Enterprise Edition and gemset 123
21
- # recipe :rvm, :use => 'ree@123'
20
+ # rvm 'ree@123'
22
21
 
23
22
  # Or use the rvmrc
24
- # recipe :rvm, :use => :rvmrc
23
+ # rvm :rvmrc
24
+ #
25
25
 
26
- # Bundle after deploying
27
- # recipe :bundler
26
+ #
27
+ # Define Recipes to be used (See the README for available recipes).
28
+ # Recipes are run in the order they are specified
29
+ #
30
+ # recipe :recipe_name
28
31
 
29
32
  #
30
33
  # Define a rake task that should be run after deployment. The rake task will run after the recipes have run.
@@ -39,7 +39,7 @@ done
39
39
  fi
40
40
  <% end %>
41
41
 
42
- bundle --deployment
42
+ bundle --deployment --quiet --without development test
43
43
 
44
44
  <% unless @config.recipes.empty? %>
45
45
  bundle exec blazing recipes:run
@@ -1,3 +1,3 @@
1
1
  module Blazing
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -20,4 +20,24 @@ describe Blazing::Recipe do
20
20
  end
21
21
  end
22
22
 
23
+ describe '.parse_gemfile' do
24
+
25
+ it 'works when the recipe gems are specified with versions' do
26
+ gemfile = 'spec/support/gemfile_with_versions'
27
+ Blazing::Recipe.parse_gemfile(gemfile).should == ["blazing-passenger", "blazing-rails"]
28
+ end
29
+
30
+ it 'works when the recipe gems are specified without' do
31
+ gemfile = 'spec/support/gemfile_without_versions'
32
+ Blazing::Recipe.parse_gemfile(gemfile).should == ["blazing-passenger", "blazing-rails"]
33
+ end
34
+
35
+ it 'does not load gems that are commented out' do
36
+ pending
37
+ gemfile = 'spec/support/gemfile_with_comments'
38
+ Blazing::Recipe.parse_gemfile(gemfile).should == ["blazing-passenger"]
39
+ end
40
+
41
+ end
42
+
23
43
  end
@@ -0,0 +1,2 @@
1
+ gem 'blazing-passenger', '0.1.0'
2
+ # gem 'blazing-rails', '0.0.2'
@@ -0,0 +1,2 @@
1
+ gem 'blazing-passenger', '0.1.0'
2
+ gem 'blazing-rails', '0.0.2'
@@ -0,0 +1,2 @@
1
+ gem 'blazing-passenger'
2
+ gem 'blazing-rails'
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
4
+ version: 0.1.1
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-10-24 00:00:00.000000000Z
12
+ date: 2011-10-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &70120543055980 !ruby/object:Gem::Requirement
16
+ requirement: &70305205865040 !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: *70120543055980
24
+ version_requirements: *70305205865040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70120543055480 !ruby/object:Gem::Requirement
27
+ requirement: &70305205864540 !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: *70120543055480
35
+ version_requirements: *70305205864540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70120543055060 !ruby/object:Gem::Requirement
38
+ requirement: &70305205864120 !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: *70120543055060
46
+ version_requirements: *70305205864120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard
49
- requirement: &70120543054600 !ruby/object:Gem::Requirement
49
+ requirement: &70305205863620 !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: *70120543054600
57
+ version_requirements: *70305205863620
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-rspec
60
- requirement: &70120543054160 !ruby/object:Gem::Requirement
60
+ requirement: &70305205863200 !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: *70120543054160
68
+ version_requirements: *70305205863200
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: growl
71
- requirement: &70120543053720 !ruby/object:Gem::Requirement
71
+ requirement: &70305205862780 !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: *70120543053720
79
+ version_requirements: *70305205862780
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rb-fsevent
82
- requirement: &70120543053300 !ruby/object:Gem::Requirement
82
+ requirement: &70305205862360 !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: *70120543053300
90
+ version_requirements: *70305205862360
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: grit
93
- requirement: &70120543052880 !ruby/object:Gem::Requirement
93
+ requirement: &70305205861940 !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: *70120543052880
101
+ version_requirements: *70305205861940
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: activesupport
104
- requirement: &70120543052460 !ruby/object:Gem::Requirement
104
+ requirement: &70305205861520 !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: *70120543052460
112
+ version_requirements: *70305205861520
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: i18n
115
- requirement: &70120543052040 !ruby/object:Gem::Requirement
115
+ requirement: &70305205861100 !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: *70120543052040
123
+ version_requirements: *70305205861100
124
124
  description: git push deployent utility, ready to be extended by your own recipes
125
125
  email:
126
126
  - felipekaufmann@gmail.com
@@ -131,6 +131,7 @@ extra_rdoc_files: []
131
131
  files:
132
132
  - .gitignore
133
133
  - .rvmrc
134
+ - CHANGELOG.md
134
135
  - Gemfile
135
136
  - Gemfile.lock
136
137
  - Guardfile
@@ -163,6 +164,9 @@ files:
163
164
  - spec/blazing/target_spec.rb
164
165
  - spec/spec_helper.rb
165
166
  - spec/support/empty_config.rb
167
+ - spec/support/gemfile_with_comments
168
+ - spec/support/gemfile_with_versions
169
+ - spec/support/gemfile_without_versions
166
170
  homepage: https://github.com/effkay/blazing
167
171
  licenses: []
168
172
  post_install_message:
@@ -200,3 +204,6 @@ test_files:
200
204
  - spec/blazing/target_spec.rb
201
205
  - spec/spec_helper.rb
202
206
  - spec/support/empty_config.rb
207
+ - spec/support/gemfile_with_comments
208
+ - spec/support/gemfile_with_versions
209
+ - spec/support/gemfile_without_versions