unicorn-standby 0.1.0 → 0.1.1

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
- SHA1:
3
- metadata.gz: db8801e81300cbc0c2994eed089b1dacbfa8b26e
4
- data.tar.gz: 82c98aa28c3baec1a459fddb2b8d5e0ee6fa0100
2
+ SHA256:
3
+ metadata.gz: d7e486e63039e92058064053a35d6b611087bdda82eec20aca1b1f3041e0f043
4
+ data.tar.gz: ee644aa6cc558510cb27be3543888a0347e2181088251c50b948b8f9f967ad06
5
5
  SHA512:
6
- metadata.gz: 21a26b243dfc35a48fc690c9c7445d370aa8a523b8591752a4d051b740b2309460306bb87b6b8e436d92bc32384551c5833f1ac6b7302ffb71db15297aa41111
7
- data.tar.gz: 410784567cc5571ce7496ab7741dcf01208b5b13d06e5738c5783422628e14c2c279019d5baebb1d6d41bfe9ec7adf78683827047165eb5c53baea99d85c0653
6
+ metadata.gz: 6688b91dad79e99f1a7bba28defb36dd590c242f0d1cbd20ce2fb222735b6854871334856f306aeee92ec3c5655460d9e2b4e01ed9966e7684eb0a138db462bb
7
+ data.tar.gz: 5a815dc3c28834c27270544425a5c5983622e598b6c9b60b351bf435c6bb1899ace44977fa05413ed454fbaf8117d3e2080a3a90253a02c006a457ea74c3dbbe
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
11
+ /gemfiles/*.lock
@@ -1,4 +1,22 @@
1
1
  language: ruby
2
+ before_install:
3
+ - gem install bundler
4
+ before_script:
5
+ - bundle update
6
+ cache: bundler
2
7
  rvm:
3
- - 2.2.3
4
- before_install: gem install bundler -v 1.10.6
8
+ - 2.2.9
9
+ - 2.3.6
10
+ - 2.4.3
11
+ - 2.5.0
12
+ gemfile:
13
+ - gemfiles/unicorn44.gemfile
14
+ - gemfiles/unicorn45.gemfile
15
+ - gemfiles/unicorn46.gemfile
16
+ - gemfiles/unicorn47.gemfile
17
+ - gemfiles/unicorn48.gemfile
18
+ - gemfiles/unicorn49.gemfile
19
+ - gemfiles/unicorn50.gemfile
20
+ matrix:
21
+ fast_finish: true
22
+ bundler_args: --jobs 3 --retry 3
@@ -0,0 +1,27 @@
1
+ appraise "unicorn44" do
2
+ gem "unicorn", "~> 4.4.0"
3
+ end
4
+
5
+ appraise "unicorn45" do
6
+ gem "unicorn", "~> 4.5.0"
7
+ end
8
+
9
+ appraise "unicorn46" do
10
+ gem "unicorn", "~> 4.6.0"
11
+ end
12
+
13
+ appraise "unicorn47" do
14
+ gem "unicorn", "~> 4.7.0"
15
+ end
16
+
17
+ appraise "unicorn48" do
18
+ gem "unicorn", "~> 4.8.0"
19
+ end
20
+
21
+ appraise "unicorn49" do
22
+ gem "unicorn", "~> 4.9.0"
23
+ end
24
+
25
+ appraise "unicorn50" do
26
+ gem "unicorn", "~> 5.0.0"
27
+ end
data/README.md CHANGED
@@ -1,8 +1,21 @@
1
1
  # Unicorn::Standby
2
2
 
3
- Unicorn Standby to standby to reach the request.
3
+ [![Gem Version](https://badge.fury.io/rb/unicorn-standby.svg)](http://badge.fury.io/rb/unicorn-standby) [![Build Status](https://travis-ci.org/tsukasaoishi/unicorn-standby.svg?branch=master)](https://travis-ci.org/tsukasaoishi/unicorn-standby) [![Code Climate](https://codeclimate.com/github/tsukasaoishi/unicorn-standby/badges/gpa.svg)](https://codeclimate.com/github/tsukasaoishi/unicorn-standby)
4
+
5
+ Unicorn standby is on standby until it accepts the request.
4
6
  If you use many rack applications (such as microservices) in development environments, Unicorn Standby saves memory consumption of your computer.
5
7
 
8
+ For example of simple Rails app RSS:
9
+ ```
10
+ # 1 master and 1 worker
11
+ master 77288kb
12
+ worker 108112kb
13
+ sum 185400kb
14
+
15
+ # 1 standby master
16
+ standby 20648kb
17
+ ```
18
+
6
19
  ## Installation
7
20
 
8
21
  Add this line to your application's Gemfile:
@@ -25,6 +38,19 @@ Use ```unicorn-stanby``` command insted of ```unicorn```.
25
38
  bundle exec unicorn-standby -c config/unicorn.rb -D
26
39
  ```
27
40
 
41
+ unicorn-standby master process starts.
42
+ ```
43
+ $ ps aux | grep unicorn
44
+ name 1000 11.0 0.2 2477948 20648 ?? S 10:00AM 0:00.69 unicorn-standby master (standby) -c config/unicorn.rb -D
45
+ ```
46
+
47
+ When the app is accessed, master and worker processed start.
48
+ ```
49
+ $ ps aux | grep unicorn
50
+ name 1001 0.0 1.3 2574060 105072 ?? S 10:02AM 0:00.96 unicorn-standby worker[0] -c config/unicorn.rb -D
51
+ name 1000 0.0 1.0 2548444 81392 ?? S 10:00AM 0:03.96 unicorn-standby master -c config/unicorn.rb -D
52
+ ```
53
+
28
54
  ## License
29
55
 
30
56
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 4.4.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 4.5.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 4.6.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 4.7.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 4.8.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 4.9.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "unicorn", "~> 5.0.0"
6
+
7
+ gemspec :path => "../"
@@ -1,5 +1,5 @@
1
1
  module Unicorn
2
2
  module Standby
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Tsukasa OISHI"]
10
10
  spec.email = ["tsukasa.oishi@gmail.com"]
11
11
 
12
- spec.summary = %q{Unicorn Standby to standby to reach the request}
13
- spec.description = %q{Unicorn Standby to standby to reach the request}
12
+ spec.summary = %q{Unicorn Standby is on standby until it accepts the request.}
13
+ spec.description = %q{Unicorn Standby is on standby until it accepts the request.}
14
14
  spec.homepage = "https://github.com/tsukasaoishi/unicorn-standby"
15
15
  spec.license = "MIT"
16
16
 
@@ -19,9 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "unicorn", ">= 4.8.0", "< 5.1.0"
22
+ spec.add_dependency "unicorn", ">= 4.4.0", "< 5.1.0"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.10"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler", ">= 1.3.0", "< 2.0"
25
+ spec.add_development_dependency "rake", ">= 0.8.7"
26
26
  spec.add_development_dependency "minitest"
27
+ spec.add_development_dependency "minitest-reporters"
28
+ spec.add_development_dependency 'appraisal'
27
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-standby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tsukasa OISHI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unicorn
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.8.0
19
+ version: 4.4.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 5.1.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.8.0
29
+ version: 4.4.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 5.1.0
@@ -34,30 +34,36 @@ dependencies:
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 1.3.0
40
+ - - "<"
38
41
  - !ruby/object:Gem::Version
39
- version: '1.10'
42
+ version: '2.0'
40
43
  type: :development
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
- version: '1.10'
49
+ version: 1.3.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.0'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rake
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - "~>"
57
+ - - ">="
52
58
  - !ruby/object:Gem::Version
53
- version: '10.0'
59
+ version: 0.8.7
54
60
  type: :development
55
61
  prerelease: false
56
62
  version_requirements: !ruby/object:Gem::Requirement
57
63
  requirements:
58
- - - "~>"
64
+ - - ">="
59
65
  - !ruby/object:Gem::Version
60
- version: '10.0'
66
+ version: 0.8.7
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: minitest
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -72,7 +78,35 @@ dependencies:
72
78
  - - ">="
73
79
  - !ruby/object:Gem::Version
74
80
  version: '0'
75
- description: Unicorn Standby to standby to reach the request
81
+ - !ruby/object:Gem::Dependency
82
+ name: minitest-reporters
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: appraisal
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ description: Unicorn Standby is on standby until it accepts the request.
76
110
  email:
77
111
  - tsukasa.oishi@gmail.com
78
112
  executables:
@@ -83,6 +117,7 @@ extra_rdoc_files: []
83
117
  files:
84
118
  - ".gitignore"
85
119
  - ".travis.yml"
120
+ - Appraisals
86
121
  - CODE_OF_CONDUCT.md
87
122
  - Gemfile
88
123
  - LICENSE.txt
@@ -92,6 +127,13 @@ files:
92
127
  - bin/setup
93
128
  - exe/unicorn-standby
94
129
  - exe/unicorn_rails-standby
130
+ - gemfiles/unicorn44.gemfile
131
+ - gemfiles/unicorn45.gemfile
132
+ - gemfiles/unicorn46.gemfile
133
+ - gemfiles/unicorn47.gemfile
134
+ - gemfiles/unicorn48.gemfile
135
+ - gemfiles/unicorn49.gemfile
136
+ - gemfiles/unicorn50.gemfile
95
137
  - lib/unicorn/standby.rb
96
138
  - lib/unicorn/standby/version.rb
97
139
  - unicorn-standby.gemspec
@@ -115,8 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
157
  version: '0'
116
158
  requirements: []
117
159
  rubyforge_project:
118
- rubygems_version: 2.4.5.1
160
+ rubygems_version: 2.7.3
119
161
  signing_key:
120
162
  specification_version: 4
121
- summary: Unicorn Standby to standby to reach the request
163
+ summary: Unicorn Standby is on standby until it accepts the request.
122
164
  test_files: []