watchdocs-rails 0.4.4 → 0.4.5

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: 7d7dba8e43327ae10d80cb745ed8987a587aa261
4
- data.tar.gz: 70f3cd4c3da38fdccfae5b90b0588eac9aca47bb
3
+ metadata.gz: aea1771d37233523fe93ded7c3fa5f4023e3675f
4
+ data.tar.gz: 0b166d282b28d1432533fd34096db14c9a572860
5
5
  SHA512:
6
- metadata.gz: 50d023d4f4f697984cdb8f045ff0ba6e14665e91e3b446051f45a26b5fe8f28e9c0eb6c5d806429823458bf573ca82f7e4c2f5022c981f6afbf1592361011d30
7
- data.tar.gz: 0d7a5825da2c8ccd7b756c4212ba8e76ee516050bb893e59ad87c88a084d3ae9a285db105a9752e5dcdbc349636d96ed7c3287ebbf0928ac77040c8dc22a1da2
6
+ metadata.gz: 76eb49a676d7e16ea8134cc87fbbbc01dadabe03683241832758366911b4aec97f12bf180be862e08176dc23cd7ffc25ab3df4a7465201db6783a91909da3b2e
7
+ data.tar.gz: 86757c8aa5da5ca577836cf99a9dbb9615362967ee4bc2f56bad49be0770a3d699bdc3e744f404d938a44f1021b6da229c529f4c92da428455d62476072c18a3
@@ -18,7 +18,7 @@ module Watchdocs
18
18
  private
19
19
 
20
20
  def record_new(new_call)
21
- @output = if current_recordings
21
+ @output = if recordings_any?
22
22
  current_recordings << new_call
23
23
  else
24
24
  [new_call]
@@ -33,6 +33,10 @@ module Watchdocs
33
33
  store.write(output)
34
34
  end
35
35
 
36
+ def recordings_any?
37
+ store.exists?
38
+ end
39
+
36
40
  def send_recordings
37
41
  Recordings.export(output, from_specs: from_specs)
38
42
  end
@@ -1,5 +1,5 @@
1
1
  module Watchdocs
2
2
  module Rails
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchdocs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mazikwyry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-13 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler