record_store 3.0.0 → 3.1.0

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: 6533d74657e0ba545a411f88adeab33272cb728b
4
- data.tar.gz: 79cdc4fd12512478cad79039f0c69eb38b7cd504
3
+ metadata.gz: d2211def6ef9324417dc03e12112531d3db725fb
4
+ data.tar.gz: e82ffe91b6c00a806fc83fefe78e70a4abb670c3
5
5
  SHA512:
6
- metadata.gz: 14019ec878ecc6593d7034c17c0cbd83eefeefc9b52b30ec8bb03c3178861ccd1c89c53c294654defec078bef29a3ca1eedd0ea72c838f0bd83cc25c70f9a7e2
7
- data.tar.gz: 418e35bc70829c278102d6f4442ef4c0a93612055ccf48eed85812b7bda57eac81475f1d1df643349d15ea4ed5342a5c93e9f2edd504083285c7d81409707850
6
+ metadata.gz: 0f3e722058b4b71cf95f18946653a12148f267bd1757a2db7abe7ad370a36fef040cf3867cc608f42a6626afe1e6a0c9ffc68bad1c543bb652e5f4df57d3fae1
7
+ data.tar.gz: e7867a56a4e0a957302bc27d6bf21b8574ee8a58b919426c439e3bb4e072636dbb203097a7d315655fbce14617ef6fe43272e0b9703174b29ec5012bca4a28b0
@@ -44,8 +44,13 @@ module RecordStore
44
44
  Zone.each do |name, zone|
45
45
  changesets = zone.build_changesets
46
46
 
47
- next if !options.fetch('verbose') && changesets.empty?
48
- puts "Zone: #{name}"
47
+ if !options.fetch('verbose') && changesets.all?(&:empty?)
48
+ print_and_flush('.')
49
+ next
50
+ else
51
+ puts "\n"
52
+ puts "Zone: #{name}"
53
+ end
49
54
 
50
55
  changesets.each do |changeset|
51
56
  next if !options.fetch('verbose') && changeset.changes.empty?
@@ -83,6 +88,7 @@ module RecordStore
83
88
  end
84
89
  puts '=' * 20
85
90
  end
91
+ puts "\n"
86
92
  end
87
93
 
88
94
  desc 'apply', 'Applies the DNS changes'
@@ -262,5 +268,12 @@ module RecordStore
262
268
  end
263
269
  end
264
270
  end
271
+
272
+ private
273
+
274
+ def print_and_flush(str)
275
+ print(str)
276
+ $stdout.flush
277
+ end
265
278
  end
266
279
  end
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: record_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-27 00:00:00.000000000 Z
12
+ date: 2016-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor