copy_tuner_client 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +92 -80
- data/lib/copy_tuner_client/process_guard.rb +15 -11
- data/lib/copy_tuner_client/version.rb +1 -1
- data/lib/tasks/copy_tuner_client_tasks.rake +3 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1ce18bb5cd5f08708524ef88f338b9387166d31
|
4
|
+
data.tar.gz: ac5bed0056db2efbbd9623983381b2ba303e9f0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c074c3aeebabde185d4ed3fb87514f4ce2c67bed97a0a01446bd59b92170c6c14e69f15c982bd5cb84491b4f3f49bbd37440668f62fe7f021316bf8ad714130
|
7
|
+
data.tar.gz: 0b03bfe6a24e9ae00bf1445f0c9a760b6c32666dd19372b8e977fcc147b8a78458b7ce17c2b29d630055412eedc6ffe4d01ad3d4a4f29fa71638ebe1b565839c
|
data/Gemfile.lock
CHANGED
@@ -8,139 +8,148 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (3.1.
|
12
|
-
actionpack (= 3.1.
|
13
|
-
mail (~> 2.
|
14
|
-
actionpack (3.1.
|
15
|
-
activemodel (= 3.1.
|
16
|
-
activesupport (= 3.1.
|
11
|
+
actionmailer (3.1.12)
|
12
|
+
actionpack (= 3.1.12)
|
13
|
+
mail (~> 2.4.4)
|
14
|
+
actionpack (3.1.12)
|
15
|
+
activemodel (= 3.1.12)
|
16
|
+
activesupport (= 3.1.12)
|
17
17
|
builder (~> 3.0.0)
|
18
18
|
erubis (~> 2.7.0)
|
19
19
|
i18n (~> 0.6)
|
20
|
-
rack (~> 1.3.
|
21
|
-
rack-cache (~> 1.
|
20
|
+
rack (~> 1.3.6)
|
21
|
+
rack-cache (~> 1.2)
|
22
22
|
rack-mount (~> 0.8.2)
|
23
23
|
rack-test (~> 0.6.1)
|
24
|
-
sprockets (~> 2.0.
|
25
|
-
activemodel (3.1.
|
26
|
-
activesupport (= 3.1.
|
27
|
-
bcrypt-ruby (~> 3.0.0)
|
24
|
+
sprockets (~> 2.0.4)
|
25
|
+
activemodel (3.1.12)
|
26
|
+
activesupport (= 3.1.12)
|
28
27
|
builder (~> 3.0.0)
|
29
28
|
i18n (~> 0.6)
|
30
|
-
activerecord (3.1.
|
31
|
-
activemodel (= 3.1.
|
32
|
-
activesupport (= 3.1.
|
33
|
-
arel (~> 2.2.
|
29
|
+
activerecord (3.1.12)
|
30
|
+
activemodel (= 3.1.12)
|
31
|
+
activesupport (= 3.1.12)
|
32
|
+
arel (~> 2.2.3)
|
34
33
|
tzinfo (~> 0.3.29)
|
35
|
-
activeresource (3.1.
|
36
|
-
activemodel (= 3.1.
|
37
|
-
activesupport (= 3.1.
|
38
|
-
activesupport (3.1.
|
34
|
+
activeresource (3.1.12)
|
35
|
+
activemodel (= 3.1.12)
|
36
|
+
activesupport (= 3.1.12)
|
37
|
+
activesupport (3.1.12)
|
39
38
|
multi_json (~> 1.0)
|
40
|
-
addressable (2.
|
41
|
-
ansi (1.
|
39
|
+
addressable (2.4.0)
|
40
|
+
ansi (1.5.0)
|
42
41
|
appraisal (2.1.0)
|
43
42
|
bundler
|
44
43
|
rake
|
45
44
|
thor (>= 0.14.0)
|
46
|
-
arel (2.2.
|
47
|
-
aruba (0.6.
|
45
|
+
arel (2.2.3)
|
46
|
+
aruba (0.6.2)
|
48
47
|
childprocess (>= 0.3.6)
|
49
48
|
cucumber (>= 1.1.1)
|
50
49
|
rspec-expectations (>= 2.7.0)
|
51
|
-
|
52
|
-
|
53
|
-
mocha (= 0.9.8)
|
50
|
+
bourne (1.6.0)
|
51
|
+
mocha (~> 1.1)
|
54
52
|
builder (3.0.4)
|
55
|
-
childprocess (0.5.
|
53
|
+
childprocess (0.5.9)
|
56
54
|
ffi (~> 1.0, >= 1.0.11)
|
57
|
-
crack (0.
|
58
|
-
|
55
|
+
crack (0.4.3)
|
56
|
+
safe_yaml (~> 1.0.0)
|
57
|
+
cucumber (1.3.20)
|
59
58
|
builder (>= 2.1.2)
|
60
59
|
diff-lcs (>= 1.1.3)
|
61
60
|
gherkin (~> 2.12)
|
62
61
|
multi_json (>= 1.7.5, < 2.0)
|
63
|
-
multi_test (>= 0.1.
|
64
|
-
daemons (1.
|
62
|
+
multi_test (>= 0.1.2)
|
63
|
+
daemons (1.2.3)
|
65
64
|
diff-lcs (1.2.5)
|
66
65
|
erubis (2.7.0)
|
67
|
-
eventmachine (0.
|
68
|
-
ffi (1.9.
|
66
|
+
eventmachine (1.2.0.1)
|
67
|
+
ffi (1.9.10)
|
69
68
|
gherkin (2.12.2)
|
70
69
|
multi_json (~> 1.3)
|
71
|
-
|
72
|
-
|
70
|
+
hashdiff (0.3.0)
|
71
|
+
hike (1.2.3)
|
72
|
+
i18n (0.7.0)
|
73
73
|
json (1.8.3)
|
74
|
-
mail (2.
|
74
|
+
mail (2.4.4)
|
75
75
|
i18n (>= 0.4.0)
|
76
76
|
mime-types (~> 1.16)
|
77
77
|
treetop (~> 1.4.8)
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
78
|
+
metaclass (0.0.4)
|
79
|
+
mime-types (1.25.1)
|
80
|
+
minitest (4.7.5)
|
81
|
+
mocha (1.1.0)
|
82
|
+
metaclass (~> 0.0.1)
|
83
|
+
multi_json (1.11.3)
|
84
|
+
multi_test (0.1.2)
|
85
|
+
polyglot (0.3.5)
|
86
|
+
rack (1.3.10)
|
87
|
+
rack-cache (1.6.1)
|
86
88
|
rack (>= 0.4)
|
87
89
|
rack-mount (0.8.3)
|
88
90
|
rack (>= 1.0.0)
|
89
|
-
rack-
|
91
|
+
rack-protection (1.5.3)
|
92
|
+
rack
|
93
|
+
rack-ssl (1.3.4)
|
90
94
|
rack
|
91
|
-
rack-test (0.6.
|
95
|
+
rack-test (0.6.3)
|
92
96
|
rack (>= 1.0)
|
93
|
-
rails (3.1.
|
94
|
-
actionmailer (= 3.1.
|
95
|
-
actionpack (= 3.1.
|
96
|
-
activerecord (= 3.1.
|
97
|
-
activeresource (= 3.1.
|
98
|
-
activesupport (= 3.1.
|
97
|
+
rails (3.1.12)
|
98
|
+
actionmailer (= 3.1.12)
|
99
|
+
actionpack (= 3.1.12)
|
100
|
+
activerecord (= 3.1.12)
|
101
|
+
activeresource (= 3.1.12)
|
102
|
+
activesupport (= 3.1.12)
|
99
103
|
bundler (~> 1.0)
|
100
|
-
railties (= 3.1.
|
101
|
-
railties (3.1.
|
102
|
-
actionpack (= 3.1.
|
103
|
-
activesupport (= 3.1.
|
104
|
+
railties (= 3.1.12)
|
105
|
+
railties (3.1.12)
|
106
|
+
actionpack (= 3.1.12)
|
107
|
+
activesupport (= 3.1.12)
|
104
108
|
rack-ssl (~> 1.3.2)
|
105
109
|
rake (>= 0.8.7)
|
106
110
|
rdoc (~> 3.4)
|
107
111
|
thor (~> 0.14.6)
|
108
|
-
rake (
|
109
|
-
rdoc (3.
|
112
|
+
rake (11.1.2)
|
113
|
+
rdoc (3.12.2)
|
114
|
+
json (~> 1.4)
|
110
115
|
rspec (2.99.0)
|
111
116
|
rspec-core (~> 2.99.0)
|
112
117
|
rspec-expectations (~> 2.99.0)
|
113
118
|
rspec-mocks (~> 2.99.0)
|
114
|
-
rspec-core (2.99.
|
115
|
-
rspec-expectations (2.99.
|
119
|
+
rspec-core (2.99.2)
|
120
|
+
rspec-expectations (2.99.2)
|
116
121
|
diff-lcs (>= 1.1.3, < 2.0)
|
117
|
-
rspec-mocks (2.99.
|
118
|
-
|
122
|
+
rspec-mocks (2.99.4)
|
123
|
+
safe_yaml (1.0.4)
|
124
|
+
sham_rack (1.3.6)
|
119
125
|
rack
|
120
|
-
sinatra (1.
|
121
|
-
rack (~> 1.1)
|
122
|
-
|
123
|
-
|
126
|
+
sinatra (1.3.3)
|
127
|
+
rack (~> 1.3, >= 1.3.6)
|
128
|
+
rack-protection (~> 1.2)
|
129
|
+
tilt (~> 1.3, >= 1.3.3)
|
130
|
+
sprockets (2.0.5)
|
124
131
|
hike (~> 1.2)
|
125
132
|
rack (~> 1.0)
|
126
133
|
tilt (~> 1.1, != 1.3.0)
|
127
|
-
sqlite3 (1.3.
|
128
|
-
thin (1.
|
129
|
-
daemons (>= 1.0.9)
|
130
|
-
eventmachine (>= 0.
|
131
|
-
rack (
|
134
|
+
sqlite3 (1.3.11)
|
135
|
+
thin (1.6.4)
|
136
|
+
daemons (~> 1.0, >= 1.0.9)
|
137
|
+
eventmachine (~> 1.0, >= 1.0.4)
|
138
|
+
rack (~> 1.0)
|
132
139
|
thor (0.14.6)
|
133
|
-
tilt (1.
|
134
|
-
treetop (1.4.
|
140
|
+
tilt (1.4.1)
|
141
|
+
treetop (1.4.15)
|
135
142
|
polyglot
|
136
143
|
polyglot (>= 0.3.1)
|
137
|
-
turn (0.9.
|
144
|
+
turn (0.9.7)
|
138
145
|
ansi
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
146
|
+
minitest (~> 4)
|
147
|
+
tzinfo (0.3.49)
|
148
|
+
webmock (2.0.0)
|
149
|
+
addressable (>= 2.3.6)
|
150
|
+
crack (>= 0.3.2)
|
151
|
+
hashdiff
|
152
|
+
yard (0.8.7.6)
|
144
153
|
|
145
154
|
PLATFORMS
|
146
155
|
ruby
|
@@ -161,3 +170,6 @@ DEPENDENCIES
|
|
161
170
|
turn
|
162
171
|
webmock
|
163
172
|
yard
|
173
|
+
|
174
|
+
BUNDLED WITH
|
175
|
+
1.11.2
|
@@ -34,30 +34,34 @@ module CopyTunerClient
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def passenger_spawner?
|
37
|
-
$0.include?("ApplicationSpawner") || $0.include?("rack-preloader")
|
37
|
+
defined?(PhusionPassenger) && ($0.include?("ApplicationSpawner") || $0.include?("rack-preloader"))
|
38
38
|
end
|
39
39
|
|
40
40
|
def unicorn_spawner?
|
41
|
-
$0.include?("unicorn") && !caller.any? { |line| line.include?("worker_loop") }
|
41
|
+
defined?(Unicorn::HttpServer) && ($0.include?("unicorn") && !caller.any? { |line| line.include?("worker_loop") })
|
42
42
|
end
|
43
43
|
|
44
|
-
def
|
45
|
-
$0.include?('
|
44
|
+
def puma_spawner?
|
45
|
+
defined?(Puma::Cluster) && $0.include?('puma')
|
46
46
|
end
|
47
47
|
|
48
|
-
def
|
49
|
-
|
48
|
+
def delayed_job_spawner?
|
49
|
+
# delayed_job は二種類の起動の仕方がある。
|
50
|
+
# - bin/delayed_job start
|
51
|
+
# - bin/rake jobs:work
|
52
|
+
# 前者の呼び出しでのみジョブ処理用の子プロセスが作られるため、 poller を作るフックを仕込む必要がある。
|
53
|
+
defined?(Delayed::Worker) && $0.include?('delayed_job')
|
50
54
|
end
|
51
55
|
|
52
56
|
def register_spawn_hooks
|
53
|
-
if
|
57
|
+
if passenger_spawner?
|
54
58
|
register_passenger_hook
|
55
|
-
elsif
|
59
|
+
elsif unicorn_spawner?
|
56
60
|
register_unicorn_hook
|
57
|
-
elsif
|
58
|
-
register_delayed_hook
|
59
|
-
elsif defined?(Puma::Cluster)
|
61
|
+
elsif puma_spawner?
|
60
62
|
register_puma_hook
|
63
|
+
elsif delayed_job_spawner?
|
64
|
+
register_delayed_hook
|
61
65
|
end
|
62
66
|
end
|
63
67
|
|
@@ -10,9 +10,9 @@ namespace :copy_tuner do
|
|
10
10
|
CopyTunerClient.cache.sync
|
11
11
|
|
12
12
|
if yml = CopyTunerClient.export
|
13
|
-
|
14
|
-
File.new("#{Rails.root}/#{
|
15
|
-
puts "Successfully exported blurbs to #{
|
13
|
+
path = "config/locales/copy_tuner.yml"
|
14
|
+
File.new("#{Rails.root}/#{path}", 'w').write(yml)
|
15
|
+
puts "Successfully exported blurbs to #{path}."
|
16
16
|
else
|
17
17
|
puts "No blurbs have been cached."
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SonicGarden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -353,3 +353,4 @@ test_files:
|
|
353
353
|
- spec/support/fake_unicorn.rb
|
354
354
|
- spec/support/middleware_stack.rb
|
355
355
|
- spec/support/writing_cache.rb
|
356
|
+
has_rdoc:
|