boolean_timestamp 1.0.0 → 1.1.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
2
  SHA256:
3
- metadata.gz: d20b9909e7be91e64f90de5ccc3c4080678a96e3c89c91301d8dcbb76d19fe19
4
- data.tar.gz: 49d931170052f330e27d057e6cb9e8097bcdef74a8ec3131e1fc8fcde8b4581d
3
+ metadata.gz: 3738817bfe23ad90e764681488a280e00781a7d666d76abf0c2694afc89f396b
4
+ data.tar.gz: ba3d43865593bb497ecb98546fa1027801fbd8598686e81ce724cb4c897a836f
5
5
  SHA512:
6
- metadata.gz: 322f0edb31cbc91735b792020869f4108a3902be47d67cf45ef13e99c4c63a24525ab954f6bf9f6811efc4bd428067164fe6b494c31437c858729d546298d99a
7
- data.tar.gz: 47a1955970419409767ea71f31dd45b5f122a371630b22c3d2fa5452293789f3a339ca58fcc0cb0e6d796049300896d263c6babec0f033cd0190478a44146c90
6
+ metadata.gz: 63c110852a36838f83e618d00e02e3dff1542cfa5f1004bc218535aee73886754c0aefdfabdd1d50d46ce8aa1334d02291ceebbf8564fadb8fca44831161c72c
7
+ data.tar.gz: 509344e839b843bb8da7f24354e84956cf5fb06b766dcfed950249229a6e06362e4647340dfcedc88e092a85d49e85431b18b3b4082a2c5c1683e2de07750b84
@@ -0,0 +1,83 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - 'ml/**'
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
+ jobs:
13
+ RSpec:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby-version:
19
+ - '2.5' # deprecated
20
+ - '2.6'
21
+ - '2.7'
22
+ - '3.0'
23
+ - '3.1'
24
+ gemfile:
25
+ - activerecord_5_2 # deprecated
26
+ - activerecord_6_0
27
+ - activerecord_6_1
28
+ - activerecord_7_0
29
+ include:
30
+ - ruby-version: '3.0'
31
+ gemfile: activerecord_7_0
32
+ coverage: 'true'
33
+ exclude:
34
+ - ruby-version: 2.5
35
+ gemfile: activerecord_7_0
36
+ - ruby-version: 2.6
37
+ gemfile: activerecord_7_0
38
+ - ruby-version: 3.0
39
+ gemfile: activerecord_5_2
40
+ - ruby-version: 3.1
41
+ gemfile: activerecord_5_2
42
+ env:
43
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
44
+ steps:
45
+ - name: Database setup
46
+ run: |
47
+ sudo sed -i s/peer/trust/g /etc/postgresql/*/main/pg_hba.conf
48
+ sudo systemctl start postgresql.service
49
+ sudo systemctl start mysql.service
50
+ - uses: actions/checkout@v2
51
+ - name: Set up Ruby ${{ matrix.ruby-version }}
52
+ uses: ruby/setup-ruby@v1
53
+ with:
54
+ ruby-version: ${{ matrix.ruby-version }}
55
+ bundler-cache: true
56
+ - uses: amancevice/setup-code-climate@v0
57
+ name: CodeClimate setup
58
+ if: ${{ matrix.coverage == 'true' }}
59
+ with:
60
+ cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
61
+ - name: CodeClimate before-build
62
+ run: cc-test-reporter before-build
63
+ if: ${{ matrix.coverage == 'true' }}
64
+ continue-on-error: true
65
+ - name: Run tests
66
+ env:
67
+ COVERAGE: ${{ matrix.coverage }}
68
+ run: bundle exec rake spec:all
69
+ - name: CodeClimate after-build
70
+ run: cc-test-reporter after-build
71
+ if: ${{ matrix.coverage == 'true' }}
72
+ continue-on-error: true
73
+ Standard:
74
+ runs-on: ubuntu-latest
75
+ steps:
76
+ - uses: actions/checkout@v2
77
+ - name: Set up Ruby
78
+ uses: ruby/setup-ruby@v1
79
+ with:
80
+ ruby-version: '3.0'
81
+ bundler-cache: true
82
+ - name: Standard
83
+ run: bundle exec rake standard
data/Appraisals CHANGED
@@ -9,3 +9,7 @@ end
9
9
  appraise "activerecord-6-1" do
10
10
  gem "activerecord", "~> 6.1.2"
11
11
  end
12
+
13
+ appraise "activerecord-7-0" do
14
+ gem "activerecord", "~> 7.0.1"
15
+ end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.1.0] - 2022-02-25
6
+ ### Added
7
+ - Support for Rails 7.0
8
+ - Support for Ruby 3.1
9
+ - Deprecate support for Ruby 2.5
10
+ - Deprecate support for Rails 5.2
11
+
5
12
  ## [1.0.0] - 2021-03-26
6
13
  ### Breaking
7
14
  - Drop support for Rails < 5.2.0
@@ -26,7 +33,8 @@
26
33
  ### Added
27
34
  - Copy/paste of code from app where it was originally used
28
35
 
29
- [Unreleased]: https://github.com/molawson/boolean_timestamp/compare/v1.0.0...HEAD
36
+ [Unreleased]: https://github.com/molawson/boolean_timestamp/compare/v1.1.0...HEAD
37
+ [1.1.0]: https://github.com/molawson/boolean_timestamp/compare/v1.0.0...v1.1.0
30
38
  [1.0.0]: https://github.com/molawson/boolean_timestamp/compare/v0.2.1...v1.0.0
31
39
  [0.2.1]: https://github.com/molawson/boolean_timestamp/compare/v0.2.0...v0.2.1
32
40
  [0.2.0]: https://github.com/molawson/boolean_timestamp/compare/v0.1.0...v0.2.0
data/Gemfile.lock CHANGED
@@ -1,69 +1,68 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boolean_timestamp (1.0.0)
4
+ boolean_timestamp (1.1.0)
5
5
  activerecord (>= 5.2.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.1.3)
11
- activesupport (= 6.1.3)
12
- activerecord (6.1.3)
13
- activemodel (= 6.1.3)
14
- activesupport (= 6.1.3)
15
- activesupport (6.1.3)
10
+ activemodel (7.0.1)
11
+ activesupport (= 7.0.1)
12
+ activerecord (7.0.1)
13
+ activemodel (= 7.0.1)
14
+ activesupport (= 7.0.1)
15
+ activesupport (7.0.1)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
19
19
  tzinfo (~> 2.0)
20
- zeitwerk (~> 2.3)
21
- appraisal (2.4.0)
20
+ appraisal (2.4.1)
22
21
  bundler
23
22
  rake
24
23
  thor (>= 0.14.0)
25
24
  ast (2.4.2)
26
- concurrent-ruby (1.1.8)
27
- diff-lcs (1.4.4)
28
- docile (1.3.5)
29
- i18n (1.8.9)
25
+ concurrent-ruby (1.1.9)
26
+ diff-lcs (1.5.0)
27
+ docile (1.4.0)
28
+ i18n (1.8.11)
30
29
  concurrent-ruby (~> 1.0)
31
- minitest (5.14.4)
30
+ minitest (5.15.0)
32
31
  mysql2 (0.5.3)
33
- parallel (1.20.1)
34
- parser (3.0.0.0)
32
+ parallel (1.21.0)
33
+ parser (3.1.0.0)
35
34
  ast (~> 2.4.1)
36
35
  pg (1.2.3)
37
- rainbow (3.0.0)
38
- rake (13.0.3)
39
- regexp_parser (2.1.1)
40
- rexml (3.2.4)
36
+ rainbow (3.1.1)
37
+ rake (13.0.6)
38
+ regexp_parser (2.2.0)
39
+ rexml (3.2.5)
41
40
  rspec (3.10.0)
42
41
  rspec-core (~> 3.10.0)
43
42
  rspec-expectations (~> 3.10.0)
44
43
  rspec-mocks (~> 3.10.0)
45
44
  rspec-core (3.10.1)
46
45
  rspec-support (~> 3.10.0)
47
- rspec-expectations (3.10.1)
46
+ rspec-expectations (3.10.2)
48
47
  diff-lcs (>= 1.2.0, < 2.0)
49
48
  rspec-support (~> 3.10.0)
50
49
  rspec-mocks (3.10.2)
51
50
  diff-lcs (>= 1.2.0, < 2.0)
52
51
  rspec-support (~> 3.10.0)
53
- rspec-support (3.10.2)
54
- rubocop (1.11.0)
52
+ rspec-support (3.10.3)
53
+ rubocop (1.25.0)
55
54
  parallel (~> 1.10)
56
- parser (>= 3.0.0.0)
55
+ parser (>= 3.1.0.0)
57
56
  rainbow (>= 2.2.2, < 4.0)
58
57
  regexp_parser (>= 1.8, < 3.0)
59
58
  rexml
60
- rubocop-ast (>= 1.2.0, < 2.0)
59
+ rubocop-ast (>= 1.15.1, < 2.0)
61
60
  ruby-progressbar (~> 1.7)
62
61
  unicode-display_width (>= 1.4.0, < 3.0)
63
- rubocop-ast (1.4.1)
64
- parser (>= 2.7.1.5)
65
- rubocop-performance (1.10.1)
66
- rubocop (>= 0.90.0, < 2.0)
62
+ rubocop-ast (1.15.1)
63
+ parser (>= 3.0.1.1)
64
+ rubocop-performance (1.13.2)
65
+ rubocop (>= 1.7.0, < 2.0)
67
66
  rubocop-ast (>= 0.4.0)
68
67
  ruby-progressbar (1.11.0)
69
68
  simplecov (0.21.2)
@@ -71,20 +70,21 @@ GEM
71
70
  simplecov-html (~> 0.11)
72
71
  simplecov_json_formatter (~> 0.1)
73
72
  simplecov-html (0.12.3)
74
- simplecov_json_formatter (0.1.2)
73
+ simplecov_json_formatter (0.1.3)
75
74
  sqlite3 (1.4.2)
76
- standard (1.0.4)
77
- rubocop (= 1.11.0)
78
- rubocop-performance (= 1.10.1)
79
- thor (1.1.0)
75
+ standard (1.7.0)
76
+ rubocop (= 1.25.0)
77
+ rubocop-performance (= 1.13.2)
78
+ thor (1.2.1)
80
79
  timecop (0.9.4)
81
80
  tzinfo (2.0.4)
82
81
  concurrent-ruby (~> 1.0)
83
- unicode-display_width (2.0.0)
84
- zeitwerk (2.4.2)
82
+ unicode-display_width (2.1.0)
85
83
 
86
84
  PLATFORMS
85
+ arm64-darwin-21
87
86
  x86_64-darwin-19
87
+ x86_64-linux
88
88
 
89
89
  DEPENDENCIES
90
90
  appraisal
@@ -99,4 +99,4 @@ DEPENDENCIES
99
99
  timecop
100
100
 
101
101
  BUNDLED WITH
102
- 2.2.15
102
+ 2.3.8
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # BooleanTimestamp
2
2
 
3
- [![Build Status](https://travis-ci.org/molawson/boolean_timestamp.svg?branch=main)](https://travis-ci.org/molawson/boolean_timestamp)
3
+ [![CI](https://github.com/molawson/boolean_timestamp/actions/workflows/ci.yml/badge.svg)](https://github.com/molawson/boolean_timestamp/actions/workflows/ci.yml)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/23eb9fb7a853d24551fa/maintainability)](https://codeclimate.com/github/molawson/boolean_timestamp/maintainability)
5
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/23eb9fb7a853d24551fa/test_coverage)](https://codeclimate.com/github/molawson/boolean_timestamp/test_coverage)
6
6
 
@@ -88,6 +88,20 @@ future.published? # => true
88
88
  Article.published # => [published, future]
89
89
  Article.not_published # => [draft]
90
90
  ```
91
+ ## Version Support
92
+
93
+ This gem works with a variety of Ruby and Rails versions. The aim is to cover as broad a range of versions as is practical. This matrix should mostly reflect the versions of Ruby and Rails that are supported in some way by their maintainers (i.e. receiving at least some security patches).
94
+
95
+ | | Ruby 2.5 | Ruby 2.6 | Ruby 2.7 | Ruby 3.0 | Ruby 3.1 |
96
+ | --- | :---: | :---: | :---: | :---: | :---: |
97
+ | **Rails 5.2** | :warning: | :warning: | :warning: | :no_entry: | :no_entry: |
98
+ | **Rails 6.0** | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
99
+ | **Rails 6.1** | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
100
+ | **Rails 7.0** | :no_entry: | :no_entry: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
101
+
102
+ * :white_check_mark: - fully tested and supported
103
+ * :no_entry: - not tested or supported
104
+ * :warning: - support and testing will be removed in the next major release of this gem (usually because at least one of the versions of Ruby or Rails has reached EOL for its maintainers)
91
105
 
92
106
  ## Development
93
107
 
@@ -0,0 +1,19 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "mysql2"
7
+ gem "pg"
8
+ gem "rake", ">= 12.3.3"
9
+ gem "rspec", "~> 3.0"
10
+ gem "sqlite3"
11
+ gem "standard", "~> 1.0"
12
+ gem "timecop"
13
+ gem "activerecord", "~> 7.0.1"
14
+
15
+ group :test do
16
+ gem "simplecov", require: false
17
+ end
18
+
19
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module BooleanTimestamp
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boolean_timestamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mo Lawson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 2022-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -39,11 +39,11 @@ extra_rdoc_files: []
39
39
  files:
40
40
  - ".editorconfig"
41
41
  - ".git-blame-ignore-revs"
42
+ - ".github/workflows/ci.yml"
42
43
  - ".gitignore"
43
44
  - ".rspec"
44
45
  - ".rubocop.yml"
45
46
  - ".standard.yml"
46
- - ".travis.yml"
47
47
  - Appraisals
48
48
  - CHANGELOG.md
49
49
  - CODE_OF_CONDUCT.md
@@ -58,6 +58,7 @@ files:
58
58
  - gemfiles/activerecord_5_2.gemfile
59
59
  - gemfiles/activerecord_6_0.gemfile
60
60
  - gemfiles/activerecord_6_1.gemfile
61
+ - gemfiles/activerecord_7_0.gemfile
61
62
  - lib/boolean_timestamp.rb
62
63
  - lib/boolean_timestamp/version.rb
63
64
  homepage: https://github.com/molawson/boolean_timestamp
@@ -83,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
84
  - !ruby/object:Gem::Version
84
85
  version: '0'
85
86
  requirements: []
86
- rubygems_version: 3.1.2
87
+ rubygems_version: 3.2.22
87
88
  signing_key:
88
89
  specification_version: 4
89
90
  summary: The precision of a timestamp column with the API of a boolean column
data/.travis.yml DELETED
@@ -1,32 +0,0 @@
1
- env:
2
- global:
3
- - COVERAGE=true
4
- services:
5
- - sqlite3
6
- - mysql
7
- - postgresql
8
- language: ruby
9
- rvm:
10
- - 2.5
11
- - 2.6
12
- - 2.7
13
- - 3.0
14
- gemfile:
15
- - gemfiles/activerecord_5_2.gemfile
16
- - gemfiles/activerecord_6_0.gemfile
17
- - gemfiles/activerecord_6_1.gemfile
18
- matrix:
19
- exclude:
20
- - rvm: 3.0
21
- gemfile: gemfiles/activerecord_5_2.gemfile
22
- before_install:
23
- - yes | gem update --system --force
24
- - gem install bundler
25
- before_script:
26
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
27
- - chmod +x ./cc-test-reporter
28
- - ./cc-test-reporter before-build
29
- script:
30
- - bundle exec rake spec:all
31
- after_script:
32
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT