paquito 0.11.1 → 0.11.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: 16e714e285eb20638e454a8f16b25cca8de5cd8823f5e54c41682e4d89ecb117
4
- data.tar.gz: aa0cfbae2407f420372f14ea51dec65ac1c4e76ae15052a4ac5138030fb09604
3
+ metadata.gz: c17414fe5eb86f48716aba9c725c46366b93f55dc5995c835cd37e67d4497407
4
+ data.tar.gz: 56998f2dbe8154770b95baf199fa1c4e784c5463d85350537407d9786aa85aeb
5
5
  SHA512:
6
- metadata.gz: 319017b42b899a7048320919b54b7539ffd8cd2863171ac4b65939108add519808731bd35bcf2040df4651e0b34c05b8c4c0eb280cfab9404fc207636cdcad6b
7
- data.tar.gz: 8b6777bc73a75db05c218621983f8fe1fa77320250b9dadaa963a4a841f6c7e7f0161482d2fd45bd3f0f871d4b65c4943e18be689122ecb5a0d6b029978a0468
6
+ metadata.gz: 6b6d275659c0714a06ec387799c15d0011a8e568530c16a7719b187d314a47ec8b8b91a19d131e1c5adb182bccf7f591a41b2f19032fdda416be93584aaaed9a
7
+ data.tar.gz: 9ae37989ccbad977917fd0528c023f73fd56b4ba160058d6ab90b9fbeeb5db8dd4cf3d1eded1d976c92c3ffa666a7e6397a519deda464fb15f231f6d1f9141b0
@@ -9,32 +9,56 @@ jobs:
9
9
  fail-fast: false
10
10
  steps:
11
11
  - name: Checkout
12
- uses: actions/checkout@v3
12
+ uses: actions/checkout@v4
13
13
  - name: Set up Ruby
14
14
  uses: ruby/setup-ruby@v1
15
15
  with:
16
- ruby-version: '3.2'
17
16
  bundler-cache: true
18
17
  - name: Run test
19
18
  run: bundle exec rubocop
20
19
 
20
+ install:
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ fail-fast: false
24
+
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v4
28
+
29
+ - name: Set up Ruby
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: '3.3'
33
+ bundler-cache: true
34
+
35
+ - name: Install gem
36
+ run: bundle exec rake install
37
+
38
+
21
39
  rubies:
22
40
  runs-on: ubuntu-latest
23
41
  strategy:
24
42
  fail-fast: false
25
43
  matrix:
26
- ruby: [ ruby-head, '3.3', '3.2', '3.1', '3.0', '2.7' ]
44
+ ruby: [ ruby-head, '3.3', '3.2', '3.1']
45
+ rails: [ '7.2', '7.1']
46
+ include:
47
+ - ruby: '2.7'
48
+ rails: '7.1'
49
+ - ruby: '3.0'
50
+ rails: '7.1'
51
+ env:
52
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile
27
53
  steps:
28
54
  - name: Checkout
29
- uses: actions/checkout@v3
30
- - name: Remove Gemfile.lock
31
- run: rm Gemfile.lock
55
+ uses: actions/checkout@v4
56
+
32
57
  - name: Set up Ruby
33
58
  uses: ruby/setup-ruby@v1
34
59
  with:
35
60
  ruby-version: ${{ matrix.ruby }}
36
61
  bundler-cache: true
62
+
37
63
  - name: Run test
38
64
  run: bundle exec rake
39
- - name: Install gem
40
- run: bundle exec rake install
data/.gitignore CHANGED
@@ -6,3 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /gemfiles/*.lock
10
+
data/.rubocop.yml CHANGED
@@ -1,9 +1,6 @@
1
1
  inherit_gem:
2
2
  rubocop-shopify: rubocop.yml
3
3
 
4
- AllCops:
5
- TargetRubyVersion: 2.7
6
-
7
4
  Style/ClassMethodsDefinitions:
8
5
  Enabled: false
9
6
 
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.11.2
4
+
5
+ * Attempt to load `active_support/core_ext/time/calculations` before `Paquito::Types.time_unpack` is defined (#47)
6
+
3
7
  # 0.11.1
4
8
 
5
9
  * Fix SingleBytePrefixVersionWithStringBypass to better support raw UTF-8 strings.
data/Gemfile.lock CHANGED
@@ -1,59 +1,79 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paquito (0.11.1)
4
+ paquito (0.11.2)
5
5
  msgpack (>= 1.5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.0.7.1)
11
- activesupport (= 7.0.7.1)
12
- activerecord (7.0.7.1)
13
- activemodel (= 7.0.7.1)
14
- activesupport (= 7.0.7.1)
15
- activesupport (7.0.7.1)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
10
+ activemodel (7.2.1)
11
+ activesupport (= 7.2.1)
12
+ activerecord (7.2.1)
13
+ activemodel (= 7.2.1)
14
+ activesupport (= 7.2.1)
15
+ timeout (>= 0.4.0)
16
+ activesupport (7.2.1)
17
+ base64
18
+ bigdecimal
19
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
+ connection_pool (>= 2.2.5)
21
+ drb
17
22
  i18n (>= 1.6, < 2)
23
+ logger (>= 1.4.2)
18
24
  minitest (>= 5.1)
19
- tzinfo (~> 2.0)
25
+ securerandom (>= 0.3)
26
+ tzinfo (~> 2.0, >= 2.0.5)
20
27
  ast (2.4.2)
28
+ base64 (0.2.0)
21
29
  benchmark-ips (2.12.0)
30
+ bigdecimal (3.1.8)
22
31
  byebug (11.1.3)
23
- concurrent-ruby (1.2.2)
24
- i18n (1.14.1)
32
+ concurrent-ruby (1.3.4)
33
+ connection_pool (2.4.1)
34
+ drb (2.2.1)
35
+ i18n (1.14.5)
25
36
  concurrent-ruby (~> 1.0)
26
- json (2.6.3)
27
- minitest (5.18.0)
37
+ json (2.7.1)
38
+ language_server-protocol (3.17.0.3)
39
+ logger (1.6.0)
40
+ minitest (5.25.1)
28
41
  msgpack (1.7.2)
29
- parallel (1.22.1)
30
- parser (3.2.1.1)
42
+ parallel (1.24.0)
43
+ parser (3.3.0.5)
31
44
  ast (~> 2.4.1)
45
+ racc
46
+ racc (1.7.3)
32
47
  rainbow (3.1.1)
33
48
  rake (13.0.6)
34
- regexp_parser (2.7.0)
35
- rexml (3.2.5)
36
- rubocop (1.48.1)
49
+ regexp_parser (2.9.0)
50
+ rexml (3.3.6)
51
+ strscan
52
+ rubocop (1.62.1)
37
53
  json (~> 2.3)
54
+ language_server-protocol (>= 3.17.0)
38
55
  parallel (~> 1.10)
39
- parser (>= 3.2.0.0)
56
+ parser (>= 3.3.0.2)
40
57
  rainbow (>= 2.2.2, < 4.0)
41
58
  regexp_parser (>= 1.8, < 3.0)
42
59
  rexml (>= 3.2.5, < 4.0)
43
- rubocop-ast (>= 1.26.0, < 2.0)
60
+ rubocop-ast (>= 1.31.1, < 2.0)
44
61
  ruby-progressbar (~> 1.7)
45
62
  unicode-display_width (>= 2.4.0, < 3.0)
46
- rubocop-ast (1.27.0)
47
- parser (>= 3.2.1.0)
63
+ rubocop-ast (1.31.2)
64
+ parser (>= 3.3.0.4)
48
65
  rubocop-shopify (2.12.0)
49
66
  rubocop (~> 1.44)
50
67
  ruby-progressbar (1.13.0)
68
+ securerandom (0.3.1)
51
69
  sorbet-runtime (0.5.10712)
52
- sqlite3 (1.7.3-arm64-darwin)
53
- sqlite3 (1.7.3-x86_64-linux)
70
+ sqlite3 (2.0.4-arm64-darwin)
71
+ sqlite3 (2.0.4-x86_64-linux-gnu)
72
+ strscan (3.1.0)
73
+ timeout (0.4.1)
54
74
  tzinfo (2.0.6)
55
75
  concurrent-ruby (~> 1.0)
56
- unicode-display_width (2.4.2)
76
+ unicode-display_width (2.5.0)
57
77
 
58
78
  PLATFORMS
59
79
  arm64-darwin
@@ -73,4 +93,4 @@ DEPENDENCIES
73
93
  sqlite3
74
94
 
75
95
  BUNDLED WITH
76
- 2.3.22
96
+ 2.5.7
data/dev.yml CHANGED
@@ -1,8 +1,7 @@
1
1
  name: paquito
2
2
 
3
3
  up:
4
- - ruby:
5
- version: 2.7.8
4
+ - ruby
6
5
  - bundler
7
6
 
8
7
  commands:
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "msgpack", ">= 1.5.2"
6
+
7
+ gem "rake", "~> 13.0"
8
+ gem "activesupport", "~> 7.1.0"
9
+ gem "activerecord", "~> 7.1.0"
10
+ gem "sqlite3", "< 2"
11
+ gem "benchmark-ips"
12
+
13
+ gem "minitest", "~> 5.0"
14
+
15
+ gem "rubocop"
16
+ gem "rubocop-shopify", "~> 2.0", require: false
17
+ gem "byebug"
18
+
19
+ gem "sorbet-runtime"
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "msgpack", ">= 1.5.2"
6
+
7
+ gem "rake", "~> 13.0"
8
+ gem "activesupport", "~> 7.2.0"
9
+ gem "activerecord", "~> 7.2.0"
10
+ gem "sqlite3"
11
+ gem "benchmark-ips"
12
+
13
+ gem "minitest", "~> 5.0"
14
+
15
+ gem "rubocop"
16
+ gem "rubocop-shopify", "~> 2.0", require: false
17
+ gem "byebug"
18
+
19
+ gem "sorbet-runtime"
data/lib/paquito/types.rb CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  require "paquito/errors"
4
4
 
5
+ begin
6
+ require "active_support"
7
+ require "active_support/core_ext/time/calculations"
8
+ rescue LoadError
9
+ # We don't actually depend on ActiveSupport, we just want to use
10
+ # Time.at_without_coercion if it's available. Otherwise, we'll just use
11
+ # Time.at and ignore this error.
12
+ end
13
+
5
14
  module Paquito
6
15
  module Types
7
16
  autoload :ActiveRecordPacker, "paquito/types/active_record_packer"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paquito
4
- VERSION = "0.11.1"
4
+ VERSION = "0.11.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paquito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-20 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -35,6 +35,7 @@ files:
35
35
  - ".github/workflows/cla.yml"
36
36
  - ".gitignore"
37
37
  - ".rubocop.yml"
38
+ - ".ruby-version"
38
39
  - CHANGELOG.md
39
40
  - Gemfile
40
41
  - Gemfile.lock
@@ -47,6 +48,8 @@ files:
47
48
  - bin/console
48
49
  - bin/setup
49
50
  - dev.yml
51
+ - gemfiles/rails_7.1.gemfile
52
+ - gemfiles/rails_7.2.gemfile
50
53
  - lib/paquito.rb
51
54
  - lib/paquito/active_record_coder.rb
52
55
  - lib/paquito/allow_nil.rb
@@ -77,7 +80,7 @@ metadata:
77
80
  allowed_push_host: https://rubygems.org
78
81
  homepage_uri: https://github.com/Shopify/paquito
79
82
  source_code_uri: https://github.com/Shopify/paquito
80
- post_install_message:
83
+ post_install_message:
81
84
  rdoc_options: []
82
85
  require_paths:
83
86
  - lib
@@ -92,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
95
  - !ruby/object:Gem::Version
93
96
  version: '0'
94
97
  requirements: []
95
- rubygems_version: 3.5.6
96
- signing_key:
98
+ rubygems_version: 3.5.21
99
+ signing_key:
97
100
  specification_version: 4
98
101
  summary: Framework for defining efficient and extendable serializers
99
102
  test_files: []