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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4776a7f970369d47eba083c2c2e81a0362970968
4
- data.tar.gz: d08c3a482222973eaa1c92c69bd55a855c2739ac
3
+ metadata.gz: d1ce18bb5cd5f08708524ef88f338b9387166d31
4
+ data.tar.gz: ac5bed0056db2efbbd9623983381b2ba303e9f0f
5
5
  SHA512:
6
- metadata.gz: a2ff8480739ff495314fe784c7abbb1a8badda4c617501946fa600d0af100443dc5a9a1e14a2aac8a26786cc59c1c96779d29e5c0158a7ee9dc48c357a89958b
7
- data.tar.gz: 74d0ca26099480f98b68d76d7009aa9705c22d16467f848628ab6f7be44378a039994c5251c47ffc8b6b69b3ffdfe5d1417deaa04bd67ccb33baf41554f1901b
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.0)
12
- actionpack (= 3.1.0)
13
- mail (~> 2.3.0)
14
- actionpack (3.1.0)
15
- activemodel (= 3.1.0)
16
- activesupport (= 3.1.0)
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.2)
21
- rack-cache (~> 1.0.3)
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.0)
25
- activemodel (3.1.0)
26
- activesupport (= 3.1.0)
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.0)
31
- activemodel (= 3.1.0)
32
- activesupport (= 3.1.0)
33
- arel (~> 2.2.1)
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.0)
36
- activemodel (= 3.1.0)
37
- activesupport (= 3.1.0)
38
- activesupport (3.1.0)
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.2.6)
41
- ansi (1.4.3)
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.1)
47
- aruba (0.6.0)
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
- bcrypt-ruby (3.0.0)
52
- bourne (1.0)
53
- mocha (= 0.9.8)
50
+ bourne (1.6.0)
51
+ mocha (~> 1.1)
54
52
  builder (3.0.4)
55
- childprocess (0.5.3)
53
+ childprocess (0.5.9)
56
54
  ffi (~> 1.0, >= 1.0.11)
57
- crack (0.1.8)
58
- cucumber (1.3.16)
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.1)
64
- daemons (1.1.4)
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.12.10)
68
- ffi (1.9.3)
66
+ eventmachine (1.2.0.1)
67
+ ffi (1.9.10)
69
68
  gherkin (2.12.2)
70
69
  multi_json (~> 1.3)
71
- hike (1.2.1)
72
- i18n (0.6.0)
70
+ hashdiff (0.3.0)
71
+ hike (1.2.3)
72
+ i18n (0.7.0)
73
73
  json (1.8.3)
74
- mail (2.3.0)
74
+ mail (2.4.4)
75
75
  i18n (>= 0.4.0)
76
76
  mime-types (~> 1.16)
77
77
  treetop (~> 1.4.8)
78
- mime-types (1.16)
79
- mocha (0.9.8)
80
- rake
81
- multi_json (1.10.1)
82
- multi_test (0.1.1)
83
- polyglot (0.3.2)
84
- rack (1.3.2)
85
- rack-cache (1.0.3)
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-ssl (1.3.2)
91
+ rack-protection (1.5.3)
92
+ rack
93
+ rack-ssl (1.3.4)
90
94
  rack
91
- rack-test (0.6.1)
95
+ rack-test (0.6.3)
92
96
  rack (>= 1.0)
93
- rails (3.1.0)
94
- actionmailer (= 3.1.0)
95
- actionpack (= 3.1.0)
96
- activerecord (= 3.1.0)
97
- activeresource (= 3.1.0)
98
- activesupport (= 3.1.0)
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.0)
101
- railties (3.1.0)
102
- actionpack (= 3.1.0)
103
- activesupport (= 3.1.0)
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 (10.4.2)
109
- rdoc (3.9.4)
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.1)
115
- rspec-expectations (2.99.1)
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.1)
118
- sham_rack (1.3.3)
122
+ rspec-mocks (2.99.4)
123
+ safe_yaml (1.0.4)
124
+ sham_rack (1.3.6)
119
125
  rack
120
- sinatra (1.2.6)
121
- rack (~> 1.1)
122
- tilt (>= 1.2.2, < 2.0)
123
- sprockets (2.0.0)
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.4)
128
- thin (1.2.11)
129
- daemons (>= 1.0.9)
130
- eventmachine (>= 0.12.6)
131
- rack (>= 1.0.0)
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.3.3)
134
- treetop (1.4.10)
140
+ tilt (1.4.1)
141
+ treetop (1.4.15)
135
142
  polyglot
136
143
  polyglot (>= 0.3.1)
137
- turn (0.9.6)
144
+ turn (0.9.7)
138
145
  ansi
139
- tzinfo (0.3.29)
140
- webmock (1.7.6)
141
- addressable (~> 2.2, > 2.2.5)
142
- crack (>= 0.1.7)
143
- yard (0.7.2)
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 delayed_job_spawner?
45
- $0.include?('delayed_job')
44
+ def puma_spawner?
45
+ defined?(Puma::Cluster) && $0.include?('puma')
46
46
  end
47
47
 
48
- def puma_spawner?
49
- $0.include?('puma')
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 defined?(PhusionPassenger)
57
+ if passenger_spawner?
54
58
  register_passenger_hook
55
- elsif defined?(Unicorn::HttpServer)
59
+ elsif unicorn_spawner?
56
60
  register_unicorn_hook
57
- elsif defined?(Delayed::Worker)
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
 
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
@@ -10,9 +10,9 @@ namespace :copy_tuner do
10
10
  CopyTunerClient.cache.sync
11
11
 
12
12
  if yml = CopyTunerClient.export
13
- PATH = "config/locales/copy_tuner.yml"
14
- File.new("#{Rails.root}/#{PATH}", 'w').write(yml)
15
- puts "Successfully exported blurbs to #{PATH}."
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.3
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-04-20 00:00:00.000000000 Z
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: