shoestrap 0.2.2 → 0.2.3

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.3 - 2013-03-13
4
+
5
+ - Improve deployment generator: Do not rely on the name of current directory to guess app name
6
+
3
7
  ## 0.2.2 - 2013-03-13
4
8
 
5
9
  - Fix deployment notifications on target with multiple branches
@@ -24,7 +24,13 @@ module Shoestrap
24
24
  protected
25
25
 
26
26
  def app_name
27
- Pathname.new(Rails.root).basename.to_s
27
+ @app_name ||= ask("What is this app's name?")
28
+
29
+ # prevent screwing up deployment scripts by mistaking
30
+ # app identifier with app name ;-)
31
+ @app_name.gsub!('_production', '')
32
+ @app_name.gsub!('_staging', '')
33
+ @app_name
28
34
  end
29
35
 
30
36
  def db_credentials_production
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.2'
6
+ s.version = '0.2.3'
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.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: