monotonic_tick_count 0.3.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: 3334a3f10f1f875e1a03c06e4efb13cc9b5251639474bcda2061fcaf2e0c5470
4
- data.tar.gz: 6bd00418e474ad9917299a5339e5a269ba7aee8bce41bc70c8472a382d254578
3
+ metadata.gz: 7aa272dc6f2780b1b0b5db30a18473aedef738f2f9922d7762cc7741d54370ce
4
+ data.tar.gz: 1a31738e2ccf4cc32aeb0ed9991fe0d0732ce83f2563c83a71be920f477b1140
5
5
  SHA512:
6
- metadata.gz: c7567141f262a3b0fa5821ff33f96c9509abb2dfe7bad08da567f9347a31b4d3c06b70e4e602fea5aa86c61e307c948b255cca8bbc0de614db49498cce33b7b1
7
- data.tar.gz: 0ad1c0679e0e427544181096bc6eca1c1d280c0b0093dba481dd5a50a162db36d047f6f87a7333372da51bf5f53cd8e02aecfd4fc1de000bea9f1baed045117b
6
+ metadata.gz: 78ccd24245b16853c4ef113a827626ced69eb13976274d28265215724b578b6c61c9f2fd92ef90a3fa6d0d37d0eec416d381b568062f0bb2ecc3428a8510c96c
7
+ data.tar.gz: aedc70afe4cdf404230c79499ba16937fb361e45a9b0c294687aefee0c7699fdf84551f023412d50f80a871ac688789115a83d175e5133380c0b335684db8c21
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "22:00"
8
+ timezone: PST8PDT
9
+ open-pull-requests-limit: 99
10
+ versioning-strategy: lockfile-only
11
+ commit-message:
12
+ prefix: No-Jira
13
+ include: scope
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: Test
3
+
4
+ on: [push]
5
+
6
+ jobs:
7
+ tests:
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2]
14
+ gemfile:
15
+ - Gemfile
16
+ - gemfiles/rails_5.gemfile
17
+ - gemfiles/rails_6.gemfile
18
+ - gemfiles/rails_7.gemfile
19
+ exclude:
20
+ - ruby: 2.5
21
+ gemfile: gemfiles/rails_7.gemfile
22
+ - ruby: 2.6
23
+ gemfile: gemfiles/rails_7.gemfile
24
+
25
+ env:
26
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
27
+
28
+ name: Unit Tests (${{ matrix.ruby }} - ${{ matrix.gemfile }})
29
+
30
+ steps:
31
+ - uses: actions/checkout@v2
32
+ - uses: ruby/setup-ruby@v1
33
+ with:
34
+ ruby-version: ${{ matrix.ruby }}
35
+ bundler: 2.2.29
36
+ bundler-cache: true
37
+ - name: Unit tests
38
+ run: bundle exec rspec
39
+
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.5
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.5
data/Appraisals CHANGED
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-4' do
4
- gem 'activesupport', '~> 4.2'
5
- end
6
-
7
3
  appraise 'rails-5' do
8
4
  gem 'activesupport', '~> 5.2'
9
5
  end
@@ -11,3 +7,7 @@ end
11
7
  appraise 'rails-6' do
12
8
  gem 'activesupport', '~> 6.0'
13
9
  end
10
+
11
+ appraise 'rails-7' do
12
+ gem 'activesupport', '~> 7.0'
13
+ end
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
- # CHANGELOG for `pnapi_models`
1
+ # CHANGELOG for `monotonic_tick_count`
2
2
 
3
3
  Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ **Note:** this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [1.1.0] - 2023-03-06
8
+ ### Added
9
+ - Relaxed upperbound for ActiveSupport making it compatible for 7
10
+
11
+ ## [1.0.0] - Unreleased
12
+ ### Removed
13
+ - Removed explicit support for Rails 4 in testing
6
14
 
7
15
  ## [0.3.0] - 2020-07-24
8
16
  ### Added
@@ -19,6 +27,8 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
19
27
  ### Changed
20
28
  - prepared for initial release
21
29
 
30
+ [1.1.0]: https://github.com/Invoca/monotonic_tick_count/compare/v1.0.0...v1.1.0
31
+ [1.0.0]: https://github.com/Invoca/monotonic_tick_count/compare/v0.3.0...v1.0.0
22
32
  [0.3.0]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.1...v0.3.0
23
33
  [0.2.1]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.0...v0.2.1
24
34
  [0.2.0]: https://github.com/Invoca/monotonic_tick_count/releases/tag/v0.2.0
data/Gemfile CHANGED
@@ -6,7 +6,6 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'appraisal'
9
- gem 'bundler', '~> 1.15'
10
9
  gem 'pry'
11
10
  gem 'rake'
12
11
  gem 'rspec', '~> 3.7'
data/Gemfile.lock CHANGED
@@ -1,52 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monotonic_tick_count (0.3.0)
5
- activesupport (>= 4.2, < 7)
4
+ monotonic_tick_count (1.1.0)
5
+ activesupport (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.0.3.2)
10
+ activesupport (6.1.5)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
- i18n (>= 0.7, < 2)
13
- minitest (~> 5.1)
14
- tzinfo (~> 1.1)
15
- zeitwerk (~> 2.2, >= 2.2.2)
16
- appraisal (2.3.0)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ appraisal (2.4.0)
17
17
  bundler
18
18
  rake
19
19
  thor (>= 0.14.0)
20
- ast (2.4.1)
20
+ ast (2.4.2)
21
21
  coderay (1.1.3)
22
- concurrent-ruby (1.1.6)
22
+ concurrent-ruby (1.1.10)
23
23
  diff-lcs (1.4.4)
24
- i18n (1.8.5)
24
+ i18n (1.10.0)
25
25
  concurrent-ruby (~> 1.0)
26
26
  method_source (1.0.0)
27
- minitest (5.14.1)
28
- parallel (1.19.2)
29
- parser (2.7.1.4)
27
+ minitest (5.15.0)
28
+ parallel (1.20.1)
29
+ parser (3.0.2.0)
30
30
  ast (~> 2.4.1)
31
- powerpack (0.1.2)
32
- pry (0.13.1)
31
+ powerpack (0.1.3)
32
+ pry (0.14.1)
33
33
  coderay (~> 1.1)
34
34
  method_source (~> 1.0)
35
35
  rainbow (3.0.0)
36
- rake (13.0.1)
37
- rspec (3.9.0)
38
- rspec-core (~> 3.9.0)
39
- rspec-expectations (~> 3.9.0)
40
- rspec-mocks (~> 3.9.0)
41
- rspec-core (3.9.2)
42
- rspec-support (~> 3.9.3)
43
- rspec-expectations (3.9.2)
36
+ rake (13.0.6)
37
+ rspec (3.10.0)
38
+ rspec-core (~> 3.10.0)
39
+ rspec-expectations (~> 3.10.0)
40
+ rspec-mocks (~> 3.10.0)
41
+ rspec-core (3.10.1)
42
+ rspec-support (~> 3.10.0)
43
+ rspec-expectations (3.10.1)
44
44
  diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.9.0)
46
- rspec-mocks (3.9.1)
45
+ rspec-support (~> 3.10.0)
46
+ rspec-mocks (3.10.2)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.9.0)
49
- rspec-support (3.9.3)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-support (3.10.2)
50
50
  rspec_junit_formatter (0.4.1)
51
51
  rspec-core (>= 2, < 4, != 2.12.0)
52
52
  rubocop (0.54.0)
@@ -56,20 +56,18 @@ GEM
56
56
  rainbow (>= 2.2.2, < 4.0)
57
57
  ruby-progressbar (~> 1.7)
58
58
  unicode-display_width (~> 1.0, >= 1.0.1)
59
- ruby-progressbar (1.10.1)
60
- thor (1.0.1)
61
- thread_safe (0.3.6)
62
- tzinfo (1.2.7)
63
- thread_safe (~> 0.1)
59
+ ruby-progressbar (1.11.0)
60
+ thor (1.1.0)
61
+ tzinfo (2.0.4)
62
+ concurrent-ruby (~> 1.0)
64
63
  unicode-display_width (1.7.0)
65
- zeitwerk (2.4.0)
64
+ zeitwerk (2.5.4)
66
65
 
67
66
  PLATFORMS
68
67
  ruby
69
68
 
70
69
  DEPENDENCIES
71
70
  appraisal
72
- bundler (~> 1.15)
73
71
  monotonic_tick_count!
74
72
  pry
75
73
  rake
@@ -79,4 +77,4 @@ DEPENDENCIES
79
77
  rubocop (= 0.54.0)
80
78
 
81
79
  BUNDLED WITH
82
- 1.17.3
80
+ 2.2.29
@@ -3,7 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
- gem "bundler", "~> 1.15"
7
6
  gem "pry"
8
7
  gem "rake"
9
8
  gem "rspec", "~> 3.7"
@@ -3,7 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
- gem "bundler", "~> 1.15"
7
6
  gem "pry"
8
7
  gem "rake"
9
8
  gem "rspec", "~> 3.7"
@@ -3,13 +3,12 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
- gem "bundler", "~> 1.15"
7
6
  gem "pry"
8
7
  gem "rake"
9
8
  gem "rspec", "~> 3.7"
10
9
  gem "rspec_junit_formatter", "~> 0.4"
11
10
  gem "rspec-mocks"
12
11
  gem "rubocop", "0.54.0"
13
- gem "activesupport", "~> 4.2"
12
+ gem "activesupport", "~> 7.0"
14
13
 
15
14
  gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MonotonicTickCount
4
- VERSION = "0.3.0"
4
+ VERSION = "1.1.0"
5
5
  end
@@ -1,8 +1,8 @@
1
-
2
1
  # frozen_string_literal: true
3
2
 
4
3
  lib = File.expand_path('lib', __dir__)
5
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
6
  require "monotonic_tick_count/version"
7
7
 
8
8
  Gem::Specification.new do |spec|
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "activesupport", ">= 4.2", "< 7"
33
+ spec.add_dependency "activesupport", ">= 5.2"
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monotonic_tick_count
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Kelley
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '7'
19
+ version: '5.2'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '4.2'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '7'
26
+ version: '5.2'
33
27
  description: PORO to hold a monotonic tick count. Useful for measuring time differences.
34
28
  email:
35
29
  - colindkelley@gmail.com
@@ -37,14 +31,13 @@ executables: []
37
31
  extensions: []
38
32
  extra_rdoc_files: []
39
33
  files:
40
- - ".dependabot/config.yml"
34
+ - ".github/dependabot.yml"
41
35
  - ".github/workflows/gem_release.yml"
36
+ - ".github/workflows/test.yml"
42
37
  - ".gitignore"
43
- - ".jenkins/Jenkinsfile"
44
- - ".jenkins/ruby_build_pod.yml"
45
38
  - ".rubocop.yml"
46
39
  - ".ruby-version"
47
- - ".travis.yml"
40
+ - ".tool-versions"
48
41
  - Appraisals
49
42
  - CHANGELOG.md
50
43
  - Gemfile
@@ -55,9 +48,9 @@ files:
55
48
  - bin/console
56
49
  - bin/setup
57
50
  - gemfiles/.bundle/config
58
- - gemfiles/rails_4.gemfile
59
51
  - gemfiles/rails_5.gemfile
60
52
  - gemfiles/rails_6.gemfile
53
+ - gemfiles/rails_7.gemfile
61
54
  - lib/monotonic_tick_count.rb
62
55
  - lib/monotonic_tick_count/version.rb
63
56
  - monotonic_tick_count.gemspec
@@ -81,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
74
  - !ruby/object:Gem::Version
82
75
  version: '0'
83
76
  requirements: []
84
- rubygems_version: 3.0.3
77
+ rubygems_version: 3.4.7
85
78
  signing_key:
86
79
  specification_version: 4
87
80
  summary: PORO to hold a monotonic tick count. Useful for measuring time differences.
@@ -1,10 +0,0 @@
1
- ---
2
- version: 1
3
- update_configs:
4
- - package_manager: "ruby:bundler"
5
- directory: "/"
6
- update_schedule: "live"
7
- version_requirement_updates: "off"
8
- commit_message:
9
- prefix: "No-Jira"
10
- include_scope: true
data/.jenkins/Jenkinsfile DELETED
@@ -1,70 +0,0 @@
1
- #!/usr/bin/groovy
2
- @Library('jenkins-pipeline@v0.4.5')
3
- import com.invoca.utils.*;
4
-
5
- pipeline {
6
- agent {
7
- kubernetes {
8
- defaultContainer "ruby"
9
- yamlFile ".jenkins/ruby_build_pod.yml"
10
- }
11
- }
12
-
13
- environment {
14
- GITHUB_TOKEN = credentials('github_token')
15
- BUNDLE_GEM__FURY__IO = credentials('gemfury_deploy_token')
16
- }
17
-
18
- stages {
19
- stage('Setup') {
20
- steps {
21
- updateGitHubStatus('clean-build', 'pending', 'Unit tests.')
22
- script {
23
- sh 'bundle install'
24
- sh 'bundle exec appraisal install'
25
- }
26
- }
27
- }
28
-
29
- stage('Appraisals') {
30
- parallel {
31
- stage('Current') {
32
- steps { sh 'bundle exec rspec --format RspecJunitFormatter --out spec/reports/current/rspec.xml' }
33
- post { always { junit 'spec/reports/current/*.xml' } }
34
- }
35
-
36
- stage('Rails 4') {
37
- steps { sh 'bundle exec appraisal rails-4 rspec --format RspecJunitFormatter --out spec/reports/rails-4/rspec.xml' }
38
- post { always { junit 'spec/reports/rails-4/*.xml' } }
39
- }
40
-
41
- stage('Rails 5') {
42
- steps { sh 'bundle exec appraisal rails-5 rspec --format RspecJunitFormatter --out spec/reports/rails-5/rspec.xml' }
43
- post { always { junit 'spec/reports/rails-5/*.xml' } }
44
- }
45
-
46
- stage('Rails 6') {
47
- steps { sh 'bundle exec appraisal rails-6 rspec --format RspecJunitFormatter --out spec/reports/rails-6/rspec.xml' }
48
- post { always { junit 'spec/reports/rails-6/*.xml' } }
49
- }
50
- }
51
- }
52
- }
53
-
54
- post {
55
- success { updateGitHubStatus('clean-build', 'success', 'Unit tests.') }
56
- failure { updateGitHubStatus('clean-build', 'failure', 'Unit tests.') }
57
- }
58
- }
59
-
60
- void updateGitHubStatus(String context, String status, String description) {
61
- gitHubStatus([
62
- repoSlug: 'Invoca/monotonic_tick_count',
63
- sha: env.GIT_COMMIT,
64
- description: description,
65
- context: context,
66
- targetURL: env.RUN_DISPLAY_URL,
67
- token: env.GITHUB_TOKEN,
68
- status: status
69
- ])
70
- }
@@ -1,19 +0,0 @@
1
- ---
2
- apiVersion: v1
3
- kind: Pod
4
- metadata:
5
- labels:
6
- jenkins/monotonic-tick_count: 'true'
7
- namespace: jenkins
8
- name: monotonic-tick_count
9
- spec:
10
- containers:
11
- - name: ruby
12
- image: ruby:2.6.5
13
- tty: true
14
- resources:
15
- requests:
16
- memory: "100Mi"
17
- command:
18
- - cat
19
-
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.1.2
5
- before_install: gem install bundler -v 1.15.1