pah 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4765a78110c43c30419c4663a9c43c9cb39d0d3
4
- data.tar.gz: 30acee7235a0f5efccbefa417e24bcd56f86e61c
3
+ metadata.gz: 3329e2e8a3850824b0d1a16b839901041d33140d
4
+ data.tar.gz: fa02d7817cb7b5253d2d0089260d23731cbfcf07
5
5
  SHA512:
6
- metadata.gz: 57e830716b36d43599f7e98d3f4777a2fdea3cf105f7204599de93a829e4b16f7452ca4d4d30e49f9ab7fb971a7d279db72909106b66c1f3cf79d49dca74b4e1
7
- data.tar.gz: 88ec45c1e765d69e346f620caf9e983d5e09ece3b5da7e8b80f2ff00b483ab2d2ab7645788993ec7aecc85f4c7c6ae9f94f5b9283e211a36631c8bd02dbacc5b
6
+ metadata.gz: f90de761c245b66cb333c50c0437443b30c2a6b570ba233a0647c47e0aaae7344d1e2872053fca3e73ae07d6a1f71e345446101bb56227cf98cf8925e380daa8
7
+ data.tar.gz: 6188891034b03e276f6acffb9516b68fedb38a2972fdf03db06ec0f5f676f104c9637d5937e448452b7953b68f2fa40e6813cf7142c69c3c0015a498d7ab5f33
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.8 (November 01, 2013)
4
+
5
+ ### features
6
+
7
+ ### improvements
8
+
9
+ ### bug fixes
10
+
11
+ - Check app has database before migrate
12
+ - Remove `--force` on deploy to heroku
13
+ - Add app name on check for deploy into production
14
+
3
15
  ## 0.0.7 (October 11, 2013)
4
16
 
5
17
  ### features
@@ -25,6 +25,7 @@ namespace :heroku do
25
25
  end
26
26
 
27
27
  def migrate(app)
28
+ return unless has_database?(app)
28
29
  puts "--> Migrating".magenta
29
30
  run_with_clean_env("heroku run rake db:migrate --app #{app}")
30
31
  end
@@ -49,7 +50,7 @@ namespace :heroku do
49
50
  backup(APP) if ENV['SKIP_BACKUP'] != "true"
50
51
 
51
52
  puts "--> Pushing".magenta
52
- run_with_clean_env("git push git@heroku.com:#{APP}.git HEAD:master --force")
53
+ run_with_clean_env("git push git@heroku.com:#{APP}.git HEAD:master")
53
54
 
54
55
  migrate(APP)
55
56
  seed(APP)
@@ -61,7 +62,7 @@ namespace :heroku do
61
62
  # This constant is defined to avoid problemd of copying and pasting from one environment to another
62
63
  APP = PRODUCTION_APP
63
64
 
64
- confirm("Going deploy to production...".red)
65
+ confirm("Going deploy to production [#{APP}]...".red)
65
66
 
66
67
  if ENV['SKIP_TESTS'] != "true"
67
68
  puts "--> Running all specs".magenta
@@ -92,7 +93,7 @@ namespace :heroku do
92
93
 
93
94
  puts "--> Pushing".magenta
94
95
  run_with_clean_env("git push origin #{tag_name}")
95
- run_with_clean_env("git push git@heroku.com:#{APP}.git #{tag_name}:master --force")
96
+ run_with_clean_env("git push git@heroku.com:#{APP}.git #{tag_name}:master")
96
97
 
97
98
  migrate(APP)
98
99
  seed(APP)
data/lib/pah/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pah
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - HE:labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2013-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails