daddy 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGQ4OTBmMWEwNWZmM2NiZDA5ZjAzMzI0ZTc1Yzk2MzVhZWNiODgzNw==
4
+ MTc3MWEzMzY3ZjJmOTAyOWU3NWI4MTEyY2Q4YzZlYzRlYWQ2MTgxMg==
5
5
  data.tar.gz: !binary |-
6
- MGJmNzZmNjMwN2E1ZDEwMTRmNTAyMTE2NTAyMDNhZTQ5OTg4OTlhYQ==
6
+ NzQ5MDc4ZjU5MDNkYTAzZGY0OTliMTg0MTYxNmU2MzM4ZmY1YjZjOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YWM2MjdlY2E0ZmM0N2QwZDZjNDkwNTdiOTI4OWQwNGIyNDRlMmNlZGYxYTQw
10
- YTE1MDJkNWM4NjdmYzhlOGJlYmI4NzEwZDY5N2U4ZGNlN2I5NDZjZTVmZGRi
11
- MzgzZTJlMGNmMTVhMjk2NjBjMDVjYWRkNjRlNjAwMGJmM2VjNzA=
9
+ N2I2YTk1Y2QzODc4ZWIzMzUzNDZjMDdkNzQ0MDhkMzk1M2IwOTExN2E3MWE4
10
+ MDJlOTdiNWM2NmY1ZDcxYzlhOTU5NjdhZGExMzFkNzRmYjhmMGM2NmVkYzdl
11
+ ZDFhZjY2ZDhiMTJlM2E5NjI4Njg5ZmMyMzU0NjJmY2MzNjkzMGI=
12
12
  data.tar.gz: !binary |-
13
- OTBlZWM0YjE5YTFjYmJlMTI4ODQyZWUyMDdlYzEzZWFhYmI2MDY4MGIzYmFk
14
- MmFjN2ZkNzJjMjQ1M2M1YjZlMzAzYjcxNWZkZmY4N2QzZmRhZTU0ZTMyODhj
15
- ZDc3MGE1YTI3MTJlYzAzNDdlNTQyMzdjZTAxZmUwMzI0MGU4Mzk=
13
+ NzI0NjY1NWQ4MWMwMjJhMmIwMmE0Y2ZlM2FjZjgzNDZjOWJhYzVjN2IxZTJk
14
+ Y2MwNzg0OTIwYTczMDgzMTZkNDYxN2U0OTkxYzk4M2QzMDVjYjM3MmNmN2U0
15
+ NDI1ODVkMjg0YjIzZDdlZjg0NzY5YjhiZTA0ZjczYjY5NzVlNWY=
data/bin/dad CHANGED
@@ -1,9 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ RAILS_VERSION = '3.2.16'
4
+
3
5
  GEMFILE = <<-EOF
4
6
  source 'https://rubygems.org'
5
7
 
6
- gem 'rails', '3.2.15'
8
+ gem 'rails', '#{RAILS_VERSION}'
7
9
 
8
10
  # Bundle edge Rails instead:
9
11
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
@@ -49,10 +51,9 @@ action = ARGV[0]
49
51
 
50
52
  if action == 'new'
51
53
  app_name = ARGV[1]
52
- rails_version = "3.2.15"
53
54
 
54
55
  [
55
- "rails _#{rails_version}_ new #{app_name} -d mysql --skip-bundle",
56
+ "rails _#{RAILS_VERSION}_ new #{app_name} -d mysql --skip-bundle",
56
57
  "echo \"#{GEMFILE}\" > #{app_name}/Gemfile",
57
58
  "cd #{app_name} && sudo bundle install",
58
59
  "cd #{app_name} && bundle exec rake dad:install",
@@ -10,10 +10,10 @@ module Daddy
10
10
  end
11
11
 
12
12
  def wait_until
13
- pause_count = 5
13
+ pause_count = 10
14
14
  while pause_count > 0 do
15
15
  break if yield
16
- pause
16
+ pause 1
17
17
  pause_count -= 1
18
18
  end
19
19
  end
@@ -1,5 +1,5 @@
1
1
  upstream <%= ENV['APP_NAME'] %> {
2
- server unix:/tmp/<%= ENV['APP_NAME'] %>.sock;
2
+ server unix:/tmp/<%= ENV['APP_NAME'] %>_<%= ENV['RAILS_ENV'][0..2] %>.sock;
3
3
  }
4
4
 
5
5
  server {
@@ -74,7 +74,7 @@ namespace :dad do
74
74
  end
75
75
 
76
76
  def self.dad_publish_sprint_dirs(base_dir)
77
- ret = Dir[base_dir + '/p*'].sort{|a, b| File.basename(a)[1..-1].to_i <=> File.basename(b)[1..-1].to_i}
77
+ ret = Dir[base_dir + '/p*'].sort{|a, b| File.basename(a)[1..-1].to_f <=> File.basename(b)[1..-1].to_f}
78
78
  ret << base_dir + '/master'
79
79
  ret
80
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara