minitest-sequel 0.3.2 → 0.4.0

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
- SHA1:
3
- metadata.gz: c9b69eb798a1a88a328678ec0ef96ee4d43490b9
4
- data.tar.gz: 174ce35f1a271ee1a34b9021a7953f5bd7c5403f
2
+ SHA256:
3
+ metadata.gz: c3264c6433380c988f31f93d66cdb8f45ee1462cf398fcabd1d5b6e5f04c5104
4
+ data.tar.gz: cb9c428a9eefc588c2467450378afda44f9e1bbec3960a96531be398355c07b9
5
5
  SHA512:
6
- metadata.gz: 03d00d739df2fc802d74898518027e1701a5100ac9311d3ccbd0f8038264cc0385c9b864a058eba665821d856681cdb6c85cf5ca2b0d36668037ab5574bd81f2
7
- data.tar.gz: e9cec731ae4069f8c478adf4f2179153fd84580ebfa2ed26175ceeba800382ea4c498c4724d4b66005e133451e2312738b90837c7381ff862ceff6191ef95ba9
6
+ metadata.gz: 881f6ace636163bffd8026fcbc5502c9ca4a4ed28cfc97a8acfcc1af4370fafc01ee28455d20aa4edb419e533ff87f3933b0a5af4ac6e97599df7bf14c8d86f3
7
+ data.tar.gz: 5a04be3b799848daa8e308dde6aa91f6cda085127ce80b7ce18c141fb4abaff6ece95615c4e1c9246136412966c366180fe8266b40823c8e74b5fd25b2c7100d
@@ -0,0 +1,24 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
12
+ day: "saturday"
13
+ time: "21:45"
14
+ timezone: Asia/Kuala_Lumpur
15
+ - package-ecosystem: "bundler" # See documentation for possible values
16
+ directory: "/" # Location of package manifests
17
+ groups:
18
+ patch-and-minor-dependencies:
19
+ update-types: ["patch", "minor"]
20
+ schedule:
21
+ interval: "weekly"
22
+ day: "saturday"
23
+ time: "21:45"
24
+ timezone: Asia/Kuala_Lumpur
@@ -0,0 +1,45 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ # GitHub recommends pinning actions to a commit SHA.
7
+ # To get a newer version, you will need to update the SHA.
8
+ # You can also reference a tag or branch, but the action may change without warning.
9
+
10
+ name: Ruby
11
+
12
+ on:
13
+ push:
14
+ branches: ["master", "ruby-v3x"]
15
+ pull_request:
16
+ branches: ["master", "ruby-v3x"]
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ lint_and_test:
23
+ env:
24
+ RACK_ENV: test
25
+ COVERAGE: "true"
26
+ strategy:
27
+ matrix:
28
+ os: [ubuntu-latest, macos-latest]
29
+ ruby-version: ["3.0", "3.1", "3.2", "3.3"]
30
+ # Disable JRuby for now
31
+ # ruby-version: ["3.0", "3.1", "3.2", "3.3", "jruby-9.4"]
32
+ runs-on: ${{ matrix.os }}
33
+ timeout-minutes: 3
34
+
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+ - name: Set up Ruby
38
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
39
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
40
+ uses: ruby/setup-ruby@v1
41
+ with:
42
+ ruby-version: ${{ matrix.ruby-version }}
43
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
44
+ - name: Run rake (lint and test)
45
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  /rubocop/
11
11
  /.vscode
12
+ NOTES.md
data/.rubocop.yml ADDED
@@ -0,0 +1,48 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require:
4
+ - rubocop-minitest
5
+ - rubocop-performance
6
+ - rubocop-rake
7
+
8
+ # The behavior of RuboCop can be controlled via the .rubocop.yml
9
+ # configuration file. It makes it possible to enable/disable
10
+ # certain cops (checks) and to alter their behavior if they accept
11
+ # any parameters. The file can be placed either in your home
12
+ # directory or in some project directory.
13
+ #
14
+ # RuboCop will start looking for the configuration file in the directory
15
+ # where the inspected file is and continue its way up to the root directory.
16
+ #
17
+ # See https://docs.rubocop.org/rubocop/configuration
18
+
19
+ AllCops:
20
+ TargetRubyVersion: "3.0"
21
+ NewCops: enable
22
+
23
+ Metrics/BlockLength:
24
+ Enabled: true
25
+ Exclude:
26
+ - "spec/**/*.rb"
27
+ - "**/*.gemspec"
28
+
29
+ Metrics/ModuleLength:
30
+ Enabled: true
31
+ Exclude:
32
+ - "lib/minitest/sequel/validations.rb"
33
+
34
+ Style/Documentation:
35
+ Exclude:
36
+ - "spec/**/*"
37
+ - "test/**/*"
38
+
39
+ Style/RegexpLiteral:
40
+ Enabled: true
41
+ EnforcedStyle: slashes
42
+ # AllowInnerSlashes: false
43
+
44
+ Layout/LineLength:
45
+ Enabled: true
46
+ Max: 100
47
+ Exclude:
48
+ - "**/*.gemspec"
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,7 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2024-10-07 15:17:42 UTC using RuboCop version 1.66.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,20 +1,27 @@
1
1
  # Contributor Code of Conduct
2
2
 
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
3
+ As contributors and maintainers of this project, we pledge to respect all people
4
+ who contribute through reporting issues, posting feature requests, updating
5
+ documentation, submitting pull requests or patches, and other activities.
4
6
 
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of
6
- level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance,
7
+ We are committed to making participation in this project a harassment-free
8
+ experience for everyone, regardless of level of experience, gender, gender
9
+ identity and expression, sexual orientation, disability, personal appearance,
7
10
  body size, race, ethnicity, age, or religion.
8
11
 
9
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory
10
- comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
12
+ Examples of unacceptable behavior by participants include the use of sexual
13
+ language or imagery, derogatory comments or personal attacks, trolling, public
14
+ or private harassment, insults, or other unprofessional conduct.
11
15
 
12
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki
13
- edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not
16
+ Project maintainers have the right and responsibility to remove, edit, or
17
+ reject comments, commits, code, wiki edits, issues, and other contributions
18
+ that are not aligned to this Code of Conduct. Project maintainers who do not
14
19
  follow the Code of Conduct may be removed from the project team.
15
20
 
16
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or
17
- contacting one or more of the project maintainers.
21
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
22
+ reported by opening an issue or contacting one or more of the project
23
+ maintainers.
18
24
 
19
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0,
25
+ This Code of Conduct is adapted from the
26
+ [Contributor Covenant](http://contributor-covenant.org), version 1.0.0,
20
27
  available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile CHANGED
@@ -1,4 +1,83 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- # Specify your gem's dependencies in minitest-sequel.gemspec
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in minitest-have_tag.gemspec
4
6
  gemspec
7
+
8
+ # adding these to silence warnings for Ruby v3.5
9
+ gem 'fiddle'
10
+ gem 'logger'
11
+ gem 'ostruct'
12
+
13
+ group :development do
14
+ # A command line tool to easily handle events on file system modifications
15
+ # DOCS: https://github.com/guard/guard
16
+ gem 'guard'
17
+ # automatically runs your tests with Minitest framework
18
+ # DOCS: https://github.com/guard/guard-minitest
19
+ gem 'guard-minitest'
20
+
21
+ # Ruby testing framework
22
+ # DOCS: https://github.com/seattlerb/minitest
23
+ gem 'minitest', '~> 5.7', '>= 5.7.0'
24
+ # Adds specific assertions for testing exceptions with minitest
25
+ # DOCS: https://github.com/kematzy/minitest-assert_errors
26
+ gem 'minitest-assert_errors'
27
+ # Around and before_all/after_all hooks for Minitest
28
+ # DOCS: https://github.com/jeremyevans/minitest-hooks
29
+ gem 'minitest-hooks', '~> 1.1', '>= 1.1.0'
30
+ # Colored red/green output for Minitest
31
+ # DOCS: https://github.com/blowmage/minitest-rg
32
+ gem 'minitest-rg', '~> 5.3', '>= 5.3.0'
33
+
34
+ # Ruby build program with capabilities similar to Make
35
+ # DOCS: https://github.com/ruby/rake
36
+ gem 'rake', '~> 13.0'
37
+
38
+ # Ruby static code analyzer and formatter
39
+ # DOCS: https://github.com/rubocop/rubocop
40
+ gem 'rubocop', '~> 1.31', require: false
41
+ # Code style checking for Minitest files
42
+ # DOCS: https://github.com/rubocop/rubocop-minitest
43
+ gem 'rubocop-minitest', require: false
44
+ # Performance optimization analysis for your projects
45
+ # DOCS: https://github.com/rubocop/rubocop-performance
46
+ gem 'rubocop-performance', require: false
47
+ # A RuboCop extension focused on enforcing Rake best practices and coding conventions
48
+ # DOCS: https://github.com/rubocop/rubocop-rake
49
+ gem 'rubocop-rake', require: false
50
+
51
+ # SQLite3 interface for Ruby
52
+ # DOCS: https://github.com/sparklemotion/sqlite3-ruby
53
+ gem 'sqlite3'
54
+
55
+ # Code coverage for Ruby
56
+ # DOCS: https://github.com/simplecov-ruby/simplecov
57
+ gem 'simplecov'
58
+
59
+ # A Ruby language server that provides intellisense, code completion, and inline documentation
60
+ # DOCS: https://github.com/castwide/solargraph
61
+ gem 'solargraph'
62
+ end
63
+
64
+ # Linux-specific gems
65
+ install_if -> { RUBY_PLATFORM.include?('linux') } do
66
+ # Linux inotify wrapper for Ruby
67
+ # DOCS: https://github.com/guard/rb-inotify
68
+ gem 'rb-inotify', require: false
69
+ end
70
+
71
+ # macOS-specific gems
72
+ install_if -> { RUBY_PLATFORM.include?('darwin') } do
73
+ # FSEvents API with signals handled for macOS
74
+ # DOCS: https://github.com/thibaudgg/rb-fsevent
75
+ gem 'rb-fsevent', require: false
76
+ end
77
+
78
+ # Windows-specific gems
79
+ install_if -> { Gem.win_platform? } do
80
+ # Windows Directory Monitor - A library which can be used to monitor directories for changes
81
+ # DOCS: https://github.com/Maher4Ever/wdm
82
+ gem 'wdm'
83
+ end
data/Guardfile ADDED
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # A sample Guardfile
4
+ # More info at https://github.com/guard/guard#readme
5
+
6
+ ## Uncomment and set this to only include directories you want to watch
7
+ # directories %w(app lib config test spec features) \
8
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
9
+
10
+ ## Note: if you are using the `directories` clause above and you are not
11
+ ## watching the project directory ('.'), then you will want to move
12
+ ## the Guardfile to a watched dir and symlink it back, e.g.
13
+ #
14
+ # $ mkdir config
15
+ # $ mv Guardfile config/
16
+ # $ ln -s config/Guardfile .
17
+ #
18
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
19
+
20
+ guard :minitest do
21
+ # with Minitest::Spec
22
+ watch(%r{^spec/(.*)_spec\.rb$})
23
+ watch(%r{^lib/minitest/sequel/(.+)\.rb$}) { 'spec' }
24
+ # watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
25
+ watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
26
+ end