copycopter_client 1.0.0.beta3 → 1.0.0.beta4

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.
@@ -75,6 +75,7 @@ module CopycopterClient
75
75
  def wait_for_download
76
76
  if @pending
77
77
  logger.info("Waiting for first sync")
78
+ logger.flush if logger.respond_to?(:flush)
78
79
  while @pending
79
80
  sleep(0.1)
80
81
  end
@@ -1,6 +1,6 @@
1
1
  module CopycopterClient
2
2
  # Client version
3
- VERSION = "1.0.0.beta3"
3
+ VERSION = "1.0.0.beta4"
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = "2.0"
@@ -220,6 +220,7 @@ describe CopycopterClient::Sync do
220
220
 
221
221
  it "blocks until the first download is complete" do
222
222
  logger = FakeLogger.new
223
+ logger.stubs(:flush)
223
224
  client.delay = 1
224
225
  sync = build_sync(:logger => logger)
225
226
 
@@ -232,6 +233,7 @@ describe CopycopterClient::Sync do
232
233
  end
233
234
 
234
235
  logger.should have_entry(:info, "Waiting for first sync")
236
+ logger.should have_received(:flush)
235
237
  finished.should == false
236
238
 
237
239
  sleep(3)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copycopter_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 299253595
4
+ hash: 299253592
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
- - beta3
11
- version: 1.0.0.beta3
10
+ - beta4
11
+ version: 1.0.0.beta4
12
12
  platform: ruby
13
13
  authors:
14
14
  - thoughtbot
@@ -33,6 +33,20 @@ dependencies:
33
33
  - 0
34
34
  version: "0"
35
35
  requirement: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ type: :runtime
38
+ prerelease: false
39
+ name: json
40
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ requirement: *id002
36
50
  description:
37
51
  email: support@thoughtbot.com
38
52
  executables: []