fixpoints 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a94f748e8f266bfd2d83d42166715d17ad166e383d1e009fd40fb154e4642ecb
4
- data.tar.gz: a6136f20da4c80d9a64edcf9e4fe5602e7182da81140cc277728d6dcdaae3ea6
3
+ metadata.gz: f0a554a0fdd5ab6cb391f8fc79bfce70198c97acc31d56f055c5eba6df02a589
4
+ data.tar.gz: 8b547d25f541c7e76cf0cb3e766fb189c1f01776532dab2530f8f48ef59e475e
5
5
  SHA512:
6
- metadata.gz: '0708fcb7a177d855efdecd36f023dace60a1ae18e88dec97aafbf4c9ae929c5d30549cf07035de9d1e20b6416198c659e491ded5e7b4a329ddef41ebc1c59a5b'
7
- data.tar.gz: edebfda332b465d557454b248f4b917b7f8c1801da6f937ec7e6efb01baa2904fe237bdadb29d94241ebc916301eeb70e59bbb4f7291335e918664724806336e
6
+ metadata.gz: b234ac70213d6af97dcd37bd808429e3e1b970e29ca1712b74b73f5808992c10807bcd8b2743f47ded07e09a0fdf814e09d3452a13d98dc4cd465d12ac35793d
7
+ data.tar.gz: 1c8a83b052a6c1668301cab7e05e1c141415970fad258ce0a2611216f20b98d6ec945231ebe42e0b1773367c35cf9b6d6fb1f545f269345097e3e46d7f30a905
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixpoints (0.2.0)
4
+ fixpoints (0.2.1)
5
5
  activerecord (>= 5.0.0)
6
6
  rspec
7
7
 
@@ -92,6 +92,10 @@ class Fixpoint
92
92
 
93
93
  rows = result.to_a
94
94
  rows.sort_by! { |row| row['id'] } if result.columns.include?('id') # let's make the order of items stable
95
+ # fix jsonb columns by re-parsing them, so they are not saved as string to the yaml file
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 }
98
+
95
99
  acc[table_name] = rows
96
100
  end
97
101
  end
@@ -1,3 +1,3 @@
1
1
  module Fixpoints
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
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-09-30 00:00:00.000000000 Z
11
+ date: 2020-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord