simple-rails-deploy 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9d2abdfc4ac98f0e2da9737cc7b3644c4c1a6f33
4
+ data.tar.gz: 474bc3da0b8794eeb431631406b91b3801ab976f
5
+ SHA512:
6
+ metadata.gz: 8dc4f51a33111bd4ec3e8815395c24e2d6a1dd5ad1c4de36c73304229ba8be9058c77180de8693f8e395b7b7df9742668e2d351c3e98a4f3f7e12ded711b7b82
7
+ data.tar.gz: 8ceaf0c6b8eb5b877d2e2563f80f049a2f93a2a93018227677d0f768681c15cbd8f378a08f9017d23b1691424b13abb964b9828e46433be7d5686cf737868c39
@@ -26,13 +26,15 @@ namespace :unicorn do
26
26
  end
27
27
 
28
28
  def workers_count
29
- if Rails.env.staging? || Rails.env.development?
30
- return 1
29
+ if ENV['WORKERS_COUNT'].to_i > 0
30
+ ENV['WORKERS_COUNT'].to_i
31
+ elsif Rails.env.development?
32
+ 1
31
33
  elsif Rails.env.production?
32
34
  # workers count == cpu cores count
33
- return System.cpu_count
35
+ System.cpu_count
34
36
  else
35
- return 2
37
+ 2
36
38
  end
37
39
  end
38
40
 
@@ -96,4 +98,4 @@ namespace :unicorn do
96
98
  puts "Unicorn is not running. Aborting"
97
99
  end
98
100
  end
99
- end
101
+ end
@@ -5,7 +5,7 @@ $:.push File.expand_path("../lib", __FILE__)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "simple-rails-deploy"
8
- s.version = '0.3'
8
+ s.version = '0.3.1'
9
9
 
10
10
  s.authors = ["Alex Rozumey"]
11
11
  s.description = "Simple rails deploy makes rails deployment process fun!"
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-rails-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
5
- prerelease:
4
+ version: 0.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alex Rozumey
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-13 00:00:00.000000000 Z
11
+ date: 2013-05-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: capistrano
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rvm-capistrano
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: capistrano_colors
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -105,26 +96,25 @@ files:
105
96
  homepage: http://github.com/brain-geek/simple-rails-deploy
106
97
  licenses:
107
98
  - MIT
99
+ metadata: {}
108
100
  post_install_message:
109
101
  rdoc_options: []
110
102
  require_paths:
111
103
  - lib
112
104
  required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
105
  requirements:
115
106
  - - ! '>='
116
107
  - !ruby/object:Gem::Version
117
108
  version: '0'
118
109
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
110
  requirements:
121
111
  - - ! '>='
122
112
  - !ruby/object:Gem::Version
123
113
  version: '0'
124
114
  requirements: []
125
115
  rubyforge_project:
126
- rubygems_version: 1.8.22
116
+ rubygems_version: 2.0.3
127
117
  signing_key:
128
- specification_version: 3
118
+ specification_version: 4
129
119
  summary: ''
130
120
  test_files: []