fixpoints 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: f0a554a0fdd5ab6cb391f8fc79bfce70198c97acc31d56f055c5eba6df02a589
4
- data.tar.gz: 8b547d25f541c7e76cf0cb3e766fb189c1f01776532dab2530f8f48ef59e475e
3
+ metadata.gz: fad78acf149e5b3740844ca088969ddcf7e377a10d06f224be8b4f6c400a2b9c
4
+ data.tar.gz: 9f3cf9819a8e4d549b3e17b6556888070dbcb2d091bde9b8d27b104246c183f2
5
5
  SHA512:
6
- metadata.gz: b234ac70213d6af97dcd37bd808429e3e1b970e29ca1712b74b73f5808992c10807bcd8b2743f47ded07e09a0fdf814e09d3452a13d98dc4cd465d12ac35793d
7
- data.tar.gz: 1c8a83b052a6c1668301cab7e05e1c141415970fad258ce0a2611216f20b98d6ec945231ebe42e0b1773367c35cf9b6d6fb1f545f269345097e3e46d7f30a905
6
+ metadata.gz: 8f9618522b5e02bbcff8d06fc94df4da23f7dc35bf8ff0536c91483a66f06375f3a9e203b06e92707c1a1f0e2693a34b3a88c641eda650b3511d92539eadb985
7
+ data.tar.gz: 3a7294db258a4cae2e790e435ee0d2796914d77a877d24a6c354716a9ef87402622ada27734b9f360f7d5dae6e6d45571b9e3af44093ca391834c6732f6263a1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixpoints (0.2.1)
4
+ fixpoints (0.2.2)
5
5
  activerecord (>= 5.0.0)
6
6
  rspec
7
7
 
@@ -94,7 +94,7 @@ class Fixpoint
94
94
  rows.sort_by! { |row| row['id'] } if result.columns.include?('id') # let's make the order of items stable
95
95
  # fix jsonb columns by re-parsing them, so they are not saved as string to the yaml file
96
96
  jsonb_columns = result.column_types.select { |_, col_type| col_type.type == :jsonb }.collect { |col_name, _| col_name }
97
- rows.collect! { |row| jsonb_columns.each {|jcol| row[jcol] = JSON.parse(row[jcol]) }; row }
97
+ rows.collect! { |row| jsonb_columns.each {|jcol| row[jcol] = JSON.parse(row[jcol] || 'null') }; row }
98
98
 
99
99
  acc[table_name] = rows
100
100
  end
@@ -1,3 +1,3 @@
1
1
  module Fixpoints
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixpoints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Rothe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord