panko_serializer 0.7.5 → 0.7.6
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 +4 -4
- data/.github/workflows/ruby.yml +6 -9
- data/Gemfile +3 -12
- data/docs/docs/introduction.md +1 -1
- data/docs/package-lock.json +2479 -2442
- data/docs/package.json +1 -1
- data/lib/panko/version.rb +1 -1
- data/panko_serializer.gemspec +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4d6afa062eeef46ccbd192d068e9d407003acfd98dd60b3e269caff356bb756
|
4
|
+
data.tar.gz: 5049cbdef5d0e33e3731fe4a1469a047726c9b25be853d79f692b6eabe0888b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef58e0cd54374934883ac2dd17146e00ddcdc7f2858664cfb57f78e113990ebe2a766e6766c71bd217db842e96024ff51695ef34a16506ab9d50e6f01462b271
|
7
|
+
data.tar.gz: d4bb8d589442812bd12a0e2d4c9d477ab3f5280c1eb9f80594eb93ca5e4153bbbbe0aa2ed517f851b247722d1d8c6240d7cb68dd625f067421a149b04988401b
|
data/.github/workflows/ruby.yml
CHANGED
@@ -9,11 +9,8 @@ jobs:
|
|
9
9
|
strategy:
|
10
10
|
fail-fast: false
|
11
11
|
matrix:
|
12
|
-
ruby: [
|
13
|
-
rails: ['
|
14
|
-
exclude:
|
15
|
-
- ruby: '3.0'
|
16
|
-
rails: '5.2.0'
|
12
|
+
ruby: ['2.6', '2.7', '3.0']
|
13
|
+
rails: ['6.0.0', '6.1.0']
|
17
14
|
|
18
15
|
steps:
|
19
16
|
- uses: actions/checkout@v2
|
@@ -21,12 +18,12 @@ jobs:
|
|
21
18
|
uses: actions/setup-ruby@v1
|
22
19
|
with:
|
23
20
|
ruby-version: ${{ matrix.ruby }}
|
24
|
-
|
21
|
+
|
25
22
|
- name: Install deps
|
26
23
|
run: |
|
27
24
|
sudo apt update -y
|
28
25
|
sudo apt install -y libsqlite3-dev
|
29
|
-
|
26
|
+
|
30
27
|
- name: Gems Cache
|
31
28
|
id: gem-cache
|
32
29
|
uses: actions/cache@v1
|
@@ -35,7 +32,7 @@ jobs:
|
|
35
32
|
key: ${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.rails }}-gem
|
36
33
|
restore-keys: |
|
37
34
|
${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.rails }}-gem
|
38
|
-
|
35
|
+
|
39
36
|
- name: Install gems
|
40
37
|
env:
|
41
38
|
RAILS_VERSION: ${{ matrix.rails }}
|
@@ -43,7 +40,7 @@ jobs:
|
|
43
40
|
gem install bundler
|
44
41
|
bundle config set path 'vendor/bundle'
|
45
42
|
bundle check || bundle install --jobs 4 --retry 3
|
46
|
-
|
43
|
+
|
47
44
|
- name: Compile & test
|
48
45
|
env:
|
49
46
|
RAILS_VERSION: ${{ matrix.rails }}
|
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ source "https://rubygems.org"
|
|
3
3
|
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
raw_rails_version = ENV.fetch("RAILS_VERSION", "
|
6
|
+
raw_rails_version = ENV.fetch("RAILS_VERSION", "6.1.0")
|
7
7
|
rails_version = "~> #{raw_rails_version}"
|
8
8
|
|
9
9
|
gem "activesupport", rails_version
|
@@ -12,17 +12,8 @@ gem "activerecord", rails_version, group: :test
|
|
12
12
|
|
13
13
|
|
14
14
|
group :benchmarks do
|
15
|
-
|
16
|
-
|
17
|
-
else
|
18
|
-
gem "sqlite3", "~> 1.4"
|
19
|
-
end
|
20
|
-
|
21
|
-
if raw_rails_version.include? "4.2"
|
22
|
-
gem "pg", "~> 0.15"
|
23
|
-
else
|
24
|
-
gem "pg", ">= 0.18", "< 2.0"
|
25
|
-
end
|
15
|
+
gem "sqlite3", "~> 1.4"
|
16
|
+
gem "pg", ">= 0.18", "< 2.0"
|
26
17
|
|
27
18
|
gem "memory_profiler"
|
28
19
|
gem "ruby-prof", platforms: [:mri]
|
data/docs/docs/introduction.md
CHANGED
@@ -6,7 +6,7 @@ sidebar_label: Introduction
|
|
6
6
|
|
7
7
|
Panko is library which is inspired by ActiveModelSerializers 0.9 for serializing ActiveRecord/Ruby objects to JSON strings, fast.
|
8
8
|
|
9
|
-
To achieve it's [performance](https://panko
|
9
|
+
To achieve it's [performance](https://panko.dev/docs/performance.html):
|
10
10
|
|
11
11
|
* Oj - Panko relies Oj since it's fast and allow to to serialize incrementally using `Oj::StringWriter`
|
12
12
|
* Serialization Descriptor - Panko computes most of the metadata ahead of time, to save time later in serialization.
|