tunemygc 1.0.44 → 1.0.45

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: d1e1167fd45d3f48064a4e13dae5ddb8cf1e6f9c
4
- data.tar.gz: b003e8731e3519b93bc7b715b36cdfb52443d758
3
+ metadata.gz: 47b92c000755e3877eb12edc9e91aa68701daf78
4
+ data.tar.gz: a1b4ccf96daf83ce91fe1b93b2c02af6939c3adb
5
5
  SHA512:
6
- metadata.gz: 51418fffa16028f5fe2b0970d7dc7451ab99333db33599da9fb49714499918ea17b985ec0fe3126a1810c9ea9d6abf5271bac8d642858bb9aeb947c6d6b6f9d4
7
- data.tar.gz: fc3224f83aa93fc6172ff99c3d8b941f1c9a3fb71b011928d6caca0b2a45ba1fe93fbded5ed52d4fbd92cd2adfa77ffcdbb3eeabd08f3709683da0d4b2431868
6
+ metadata.gz: ad17f4cba66b98508183430a4421ce53c5787209ee1e23e8618bdffa1b54faf9e64c12daf9e985c8537cc2866b2056110616b60c807ed3c64641724b33ac9262
7
+ data.tar.gz: 07d913179a6bb3bc98c77f8b0b12d276e8a8dbc97b5c5e3a47fb205a68b23e3d914c42548d3204d24f601c00dcee9cf5a2056ecce01dc30db3dd73965a58bb46
@@ -35,14 +35,15 @@ module TuneMyGc
35
35
  sleep(retries + 1)
36
36
  else
37
37
  process_config_callback(response)
38
- break
38
+ return true
39
39
  end
40
40
  else
41
- break
41
+ return false
42
42
  end
43
43
  end
44
44
  end
45
- true
45
+ TuneMyGc.log "Sync failed after retries ..."
46
+ false
46
47
  ensure
47
48
  payload.clear
48
49
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.44"
4
+ VERSION = "1.0.45"
5
5
  end
data/test/test_syncer.rb CHANGED
@@ -46,7 +46,7 @@ class TestSyncer < TuneMyGcTestCase
46
46
 
47
47
  out, err = capture_io do
48
48
  TuneMyGc.logger = Logger.new($stdout)
49
- assert syncer.sync(snapshots)
49
+ assert_equal false, syncer.sync(snapshots)
50
50
  end
51
51
  assert_match(/Ruby version/, out)
52
52
  assert_match(/Rails version/, out)
@@ -65,7 +65,7 @@ class TestSyncer < TuneMyGcTestCase
65
65
 
66
66
  out, err = capture_io do
67
67
  TuneMyGc.logger = Logger.new($stdout)
68
- assert syncer.sync(snapshots)
68
+ assert_equal false, syncer.sync(snapshots)
69
69
  end
70
70
  assert_match(/The GC is already tuned by environment variables/, out)
71
71
  assert_match(/Failed to sync 1 snapshots/, out)
@@ -82,7 +82,7 @@ class TestSyncer < TuneMyGcTestCase
82
82
 
83
83
  out, err = capture_io do
84
84
  TuneMyGc.logger = Logger.new($stdout)
85
- assert syncer.sync(snapshots)
85
+ assert_equal false, syncer.sync(snapshots)
86
86
  end
87
87
  assert_match(/Invalid payload/, out)
88
88
  assert_match(/snapshot timestamp/, out)
@@ -100,7 +100,7 @@ class TestSyncer < TuneMyGcTestCase
100
100
 
101
101
  out, err = capture_io do
102
102
  TuneMyGc.logger = Logger.new($stdout)
103
- assert syncer.sync(snapshots)
103
+ assert_equal false, syncer.sync(snapshots)
104
104
  end
105
105
  assert_match(/Invalid application token/, out)
106
106
  end
@@ -116,7 +116,7 @@ class TestSyncer < TuneMyGcTestCase
116
116
 
117
117
  out, err = capture_io do
118
118
  TuneMyGc.logger = Logger.new($stdout)
119
- assert syncer.sync(snapshots)
119
+ assert_equal false, syncer.sync(snapshots)
120
120
  end
121
121
  assert_match(/Agent version 2 required/, out)
122
122
  assert_match(/Failed to sync 1 snapshots/, out)
@@ -132,7 +132,7 @@ class TestSyncer < TuneMyGcTestCase
132
132
 
133
133
  out, err = capture_io do
134
134
  TuneMyGc.logger = Logger.new($stdout)
135
- assert syncer.sync(snapshots)
135
+ assert_equal false, syncer.sync(snapshots)
136
136
  end
137
137
  assert_match(/Failed to sync 1 snapshots/, out)
138
138
  assert_match(/dang/, out)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunemygc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.44
4
+ version: 1.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal