shoestrap 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  #Changelog
2
2
 
3
+ ## 0.2.1 - 2013-03-11
4
+
5
+ - Add exception notifier config
6
+
3
7
  ## 0.2.0 - 2013-03-09
4
8
 
5
9
  - Preparations for new servers/workflow:
@@ -17,6 +17,10 @@ module Shoestrap
17
17
  template 'deployment.rake.erb', 'lib/tasks/deployment.rake'
18
18
  end
19
19
 
20
+ def add_airbrake_config
21
+ copy_file 'airbrake.rb', 'config/initializers/airbrake.rb'
22
+ end
23
+
20
24
  protected
21
25
 
22
26
  def app_name
@@ -0,0 +1,6 @@
1
+ Airbrake.configure do |config|
2
+ config.api_key = "PLEASE ENTER A VALID API KEY"
3
+ config.host = 'PLEASE ENTER A VALID HOST'
4
+ config.port = 80
5
+ config.secure = config.port == 8080
6
+ end
@@ -16,4 +16,8 @@ task :post_deploy do
16
16
  # Enable monit monitoring
17
17
  puts 'enable monit'
18
18
  system "<%= restart_monit_command %>"
19
+
20
+ # Notify Airbrake of deployment
21
+ puts 'notifying airbrake'
22
+ system "rake airbrake:deploy TO=#{ENV['RAILS_ENV']} REVISION=$(git show-ref --hash)"
19
23
  end
data/shoestrap.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "shoestrap"
6
- s.version = '0.2.0'
6
+ s.version = '0.2.1'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Immanuel Häussermann", "Felipe Kaufmann", "Phil Schilter", "Noëlle Rosenberg"]
9
9
  s.email = "info@screenconcept.ch"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoestrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-03-09 00:00:00.000000000 Z
15
+ date: 2013-03-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec
@@ -86,6 +86,7 @@ files:
86
86
  - lib/generators/shoestrap/templates/cms/model.rb
87
87
  - lib/generators/shoestrap/templates/cms/model.yml.erb
88
88
  - lib/generators/shoestrap/templates/cms/view.yml.erb
89
+ - lib/generators/shoestrap/templates/deployment/airbrake.rb
89
90
  - lib/generators/shoestrap/templates/deployment/database.yml.erb
90
91
  - lib/generators/shoestrap/templates/deployment/deployment.rake.erb
91
92
  - lib/generators/shoestrap/templates/deployment/unicorn.rb