restpack_serializer 0.6.11 → 0.6.14

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: bc9e5ce33121a450eefdd7af1aba1f70d6bc6a5d013f544b553dee69f22db41d
4
- data.tar.gz: 259cca75737c8c32da93b489d9162cc49807bf7deafd2fcf86b06e508779a93a
3
+ metadata.gz: 73139cc9d5574e492f76550569777581a9b85c82da373ed735a69ac0988e0375
4
+ data.tar.gz: 827c7f4be5bd763673952cfe066691d9e09682de3d1ec020bbb8045b9e61bf17
5
5
  SHA512:
6
- metadata.gz: 9b507e519351d23fbfa540950f90b2f7a625d04d313d80baf5e500c67a63498ceb44efac4c356e91eaf074a3df1f56b19819fffff9daf299a956b15813272a5f
7
- data.tar.gz: 2748b0bc4dae717f07697326e61d5f9077dcc55075cf0b5416dee5c172da810565dfb2d6a65bb31dac0196510483839be3e5245f835d4c75b5c4d0b52998d5b3
6
+ metadata.gz: 2153ad26404c162d6000f38538e7f0d785531515a129a71e8356b7297a531e281ca52fa290f4fc430a8b68d51e79ba7749a180ee8808fade8ba461ba97b8e078
7
+ data.tar.gz: 4664d3f50834afae704e0bbe63ab2c99d0f3fc722629887158d89511b36d19c91b4f4d1b7f94c315c7b44650aa71aded615741c058ace2a164100744d9f181c4
@@ -0,0 +1,30 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ fail-fast: false
11
+
12
+ matrix:
13
+ ruby-version:
14
+ - 2.1
15
+ - 2.2
16
+ - 2.3
17
+ - 2.4
18
+ - 2.5
19
+ - 2.6
20
+ - 2.7
21
+ - "3.0"
22
+ - 3.1
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: ${{ matrix.ruby-version }}
29
+ bundler-cache: true
30
+ - run: bundle exec rake test
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.7.5
data/Gemfile CHANGED
@@ -4,3 +4,7 @@ gemspec
4
4
 
5
5
  gem 'coveralls', require: false
6
6
  gem 'memory_profiler', require: false
7
+
8
+ if RUBY_VERSION < "2.2"
9
+ gem "sqlite3", "~> 1.3.0"
10
+ end
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Serializer
3
- VERSION = '0.6.11'
3
+ VERSION = '0.6.14'
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ require_relative 'restpack_serializer/serializable'
6
6
  require_relative 'restpack_serializer/factory'
7
7
  require_relative 'restpack_serializer/result'
8
8
 
9
- Kaminari::Hooks.init
9
+ Kaminari::Hooks.init if defined?(Kaminari::Hooks)
10
10
 
11
11
  module RestPack
12
12
  module Serializer
@@ -17,9 +17,9 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'activesupport', ['>= 4.0.3', '< 6.1']
21
- gem.add_dependency 'activerecord', ['>= 4.0.3', '< 6.1']
22
- gem.add_dependency 'kaminari', '~> 0.17.0'
20
+ gem.add_dependency 'activesupport', ['>= 4.0.3', '< 7.1']
21
+ gem.add_dependency 'activerecord', ['>= 4.0.3', '< 7.1']
22
+ gem.add_dependency 'kaminari', ['>= 0.17.0', '< 2.0']
23
23
 
24
24
  gem.add_development_dependency 'restpack_gem', '~> 0.0.9'
25
25
  gem.add_development_dependency 'rake', '~> 11.3'
data/spec/fixtures/db.rb CHANGED
@@ -6,6 +6,8 @@ ActiveRecord::Base.establish_connection(
6
6
  :database => 'test.db'
7
7
  )
8
8
 
9
+ ActiveRecord::Migration.verbose = false
10
+
9
11
  ActiveRecord::Schema.define(:version => 1) do
10
12
  create_table "artists", :force => true do |t|
11
13
  t.string "name"
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,8 @@ require './spec/fixtures/serializers'
5
5
  require './spec/support/factory'
6
6
  require 'database_cleaner'
7
7
  require 'coveralls'
8
+
9
+ Coveralls::Output.silent = true unless ENV["CI"]
8
10
  Coveralls.wear!
9
11
  FactoryGirl.find_definitions
10
12
 
@@ -20,10 +22,6 @@ RSpec.configure do |config|
20
22
  DatabaseCleaner.strategy = :transaction
21
23
  end
22
24
 
23
- config.before(:each, :js => true) do
24
- DatabaseCleaner.strategy = :truncation
25
- end
26
-
27
25
  config.before(:each) do
28
26
  DatabaseCleaner.start
29
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 4.0.3
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 4.0.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activerecord
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 4.0.3
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.1'
42
+ version: '7.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,21 +49,27 @@ dependencies:
49
49
  version: 4.0.3
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.1'
52
+ version: '7.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: kaminari
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: 0.17.0
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '2.0'
60
63
  type: :runtime
61
64
  prerelease: false
62
65
  version_requirements: !ruby/object:Gem::Requirement
63
66
  requirements:
64
- - - "~>"
67
+ - - ">="
65
68
  - !ruby/object:Gem::Version
66
69
  version: 0.17.0
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.0'
67
73
  - !ruby/object:Gem::Dependency
68
74
  name: restpack_gem
69
75
  requirement: !ruby/object:Gem::Requirement
@@ -183,10 +189,10 @@ executables: []
183
189
  extensions: []
184
190
  extra_rdoc_files: []
185
191
  files:
192
+ - ".github/workflows/ci.yml"
186
193
  - ".gitignore"
187
194
  - ".rspec"
188
195
  - ".ruby-version"
189
- - ".travis.yml"
190
196
  - Gemfile
191
197
  - Guardfile
192
198
  - LICENSE
@@ -232,7 +238,7 @@ files:
232
238
  homepage: https://github.com/RestPack
233
239
  licenses: []
234
240
  metadata: {}
235
- post_install_message:
241
+ post_install_message:
236
242
  rdoc_options: []
237
243
  require_paths:
238
244
  - lib
@@ -247,8 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
253
  - !ruby/object:Gem::Version
248
254
  version: '0'
249
255
  requirements: []
250
- rubygems_version: 3.0.3
251
- signing_key:
256
+ rubygems_version: 3.1.6
257
+ signing_key:
252
258
  specification_version: 4
253
259
  summary: Model serialization, paging, side-loading and filtering
254
260
  test_files:
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.1
4
- script: bundle exec rake test