fixturies 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fixturies.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6968e04db164bea8c7163b97617759f4b748e0b202d6d265f5ac4baa9ce4069
4
- data.tar.gz: 1023e35d561e595ebcf1cb94f3da96fc82717fd83ff8a3a4b1ad6b96d0b9baed
3
+ metadata.gz: 5d54291b5bf691a339c073d2660a165390491a23329f61323458d796fffc2781
4
+ data.tar.gz: 17b0a9a432890414ca6b6483373f2b77ca579b599b382d2dd953163d6dae7731
5
5
  SHA512:
6
- metadata.gz: f3fac4e8eda8220a5f62c396f32faa29248c811d2f7e2ecfa05a2cf4d688b88f76406fa0b6112131df871952f418e5c7713947d5748c0fa51bfd8e02f3f7f6fd
7
- data.tar.gz: 2bd9b0ccf7d2c725319ea4f8fe09b8a9439f702dd4fa0db241dd2f5f23c8254ef8fcc74d8ee560ee8e9538dccdaa9c24f11f5a68bde46c3acab8845babde61ad
6
+ metadata.gz: 722459455d405c0a5691bb9b158ff7d9c7c5bfa7ddcc13deb42fbf3022abd1c0cb0a20c24213cc0ebdaf891a66a0b40769d19279890425e798f73d0ee8b035a5
7
+ data.tar.gz: 2390f2a2d83c11b137c19eaf79adea8ce97ab3ead56cc6145516057d4c23140895a2ac07c7cbe852519f21f4df3b547ee5a1b5de1a9ffa9227b3e05a100ddd0e
data/lib/fixturies.rb CHANGED
@@ -115,8 +115,10 @@ class Fixturies
115
115
  hash[name] = record.attributes
116
116
  end
117
117
 
118
- File.open(filename, 'w+') do |f|
119
- f.write(hash.to_yaml)
118
+ if hash.any?
119
+ File.open(filename, 'w+') do |f|
120
+ f.write(hash.to_yaml)
121
+ end
120
122
  end
121
123
 
122
124
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixturies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Brustein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The speed of fixtures meets the maintanability of factories
14
14
  email: nate@pedago.com