monotonic_tick_count 0.2.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8959e6880634a46051dd28e4d93f8b8a3d5c4550bda0418b295fa74dd8607f93
4
- data.tar.gz: 60b61d19511e6aa03ba207256c090d0a01e930d1ec947a20a123ed1a8aaf5153
3
+ metadata.gz: 7aa272dc6f2780b1b0b5db30a18473aedef738f2f9922d7762cc7741d54370ce
4
+ data.tar.gz: 1a31738e2ccf4cc32aeb0ed9991fe0d0732ce83f2563c83a71be920f477b1140
5
5
  SHA512:
6
- metadata.gz: 592c767309c9c8930e5aab010456da3e4e8b15e30b993123661dcd8edefcbb27ae1fc8eff4fec0f5474aca6ecc9cc5446f492f1fe33c6fda87f47168ac4a7da0
7
- data.tar.gz: b8674d845f67025e476abddff9109331dfa0816e28be328afe545f303260aeb1aebaca0990857cabf9fe1aba2305e9db03e6d7cbf8788789503a07d8a51e2988
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,38 @@
1
+ ---
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ - '!v*.pre*'
7
+
8
+ name: Create Release
9
+
10
+ jobs:
11
+ build:
12
+ name: Create Release
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Get version from tag
16
+ id: tag_name
17
+ shell: bash
18
+ run: |
19
+ echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
20
+ - name: Checkout code
21
+ uses: actions/checkout@v2
22
+ - name: Get Changelog Entry
23
+ id: changelog_reader
24
+ uses: mindsers/changelog-reader-action@v1
25
+ with:
26
+ version: ${{ steps.tag_name.outputs.current_version }}
27
+ path: ./CHANGELOG.md
28
+ - name: Create Release
29
+ id: create_release
30
+ uses: actions/create-release@v1
31
+ env:
32
+ GITHUB_TOKEN: ${{ secrets.GEM_RELEASE_GIT_TOKEN }}
33
+ with:
34
+ tag_name: ${{ github.ref }}
35
+ release_name: Release ${{ github.ref }}
36
+ body: ${{ steps.changelog_reader.outputs.log_entry }}
37
+ draft: false
38
+ prerelease: false
@@ -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/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -9,3 +8,4 @@
9
8
  /tmp/
10
9
  .rubocop-http*
11
10
  .idea
11
+ gemfiles/*.lock
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.5
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.5
data/Appraisals ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-5' do
4
+ gem 'activesupport', '~> 5.2'
5
+ end
6
+
7
+ appraise 'rails-6' do
8
+ gem 'activesupport', '~> 6.0'
9
+ end
10
+
11
+ appraise 'rails-7' do
12
+ gem 'activesupport', '~> 7.0'
13
+ end
data/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
1
+ # CHANGELOG for `monotonic_tick_count`
3
2
 
4
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3
+ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
4
 
7
- ## [Unreleased]
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
14
+
15
+ ## [0.3.0] - 2020-07-24
16
+ ### Added
17
+ - Added support for rails 5 and 6
8
18
 
9
19
  ## [0.2.1] - 2020-07-09
10
20
  ### Changed
@@ -17,6 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
27
  ### Changed
18
28
  - prepared for initial release
19
29
 
20
- [Unreleased]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.1...HEAD
21
- [0.2.1]: https://github.com/Invoca/monotonic_tick_count/releases/tag/v0.2.0...v0.2.1
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
32
+ [0.3.0]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.1...v0.3.0
33
+ [0.2.1]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.0...v0.2.1
22
34
  [0.2.0]: https://github.com/Invoca/monotonic_tick_count/releases/tag/v0.2.0
data/Gemfile CHANGED
@@ -5,12 +5,10 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in monotonic_tick_count.gemspec
6
6
  gemspec
7
7
 
8
- group :development do
9
- gem 'bundler', '~> 1.15'
10
- gem 'pry'
11
- gem 'rake'
12
- gem 'rspec', '~> 3.7'
13
- gem 'rspec_junit_formatter', '~> 0.4'
14
- gem 'rspec-mocks'
15
- gem 'rubocop', '0.54.0'
16
- end
8
+ gem 'appraisal'
9
+ gem 'pry'
10
+ gem 'rake'
11
+ gem 'rspec', '~> 3.7'
12
+ gem 'rspec_junit_formatter', '~> 0.4'
13
+ gem 'rspec-mocks'
14
+ gem 'rubocop', '0.54.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,80 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ monotonic_tick_count (1.1.0)
5
+ activesupport (>= 5.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (6.1.5)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ appraisal (2.4.0)
17
+ bundler
18
+ rake
19
+ thor (>= 0.14.0)
20
+ ast (2.4.2)
21
+ coderay (1.1.3)
22
+ concurrent-ruby (1.1.10)
23
+ diff-lcs (1.4.4)
24
+ i18n (1.10.0)
25
+ concurrent-ruby (~> 1.0)
26
+ method_source (1.0.0)
27
+ minitest (5.15.0)
28
+ parallel (1.20.1)
29
+ parser (3.0.2.0)
30
+ ast (~> 2.4.1)
31
+ powerpack (0.1.3)
32
+ pry (0.14.1)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
35
+ rainbow (3.0.0)
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
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.10.0)
46
+ rspec-mocks (3.10.2)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-support (3.10.2)
50
+ rspec_junit_formatter (0.4.1)
51
+ rspec-core (>= 2, < 4, != 2.12.0)
52
+ rubocop (0.54.0)
53
+ parallel (~> 1.10)
54
+ parser (>= 2.5)
55
+ powerpack (~> 0.1)
56
+ rainbow (>= 2.2.2, < 4.0)
57
+ ruby-progressbar (~> 1.7)
58
+ unicode-display_width (~> 1.0, >= 1.0.1)
59
+ ruby-progressbar (1.11.0)
60
+ thor (1.1.0)
61
+ tzinfo (2.0.4)
62
+ concurrent-ruby (~> 1.0)
63
+ unicode-display_width (1.7.0)
64
+ zeitwerk (2.5.4)
65
+
66
+ PLATFORMS
67
+ ruby
68
+
69
+ DEPENDENCIES
70
+ appraisal
71
+ monotonic_tick_count!
72
+ pry
73
+ rake
74
+ rspec (~> 3.7)
75
+ rspec-mocks
76
+ rspec_junit_formatter (~> 0.4)
77
+ rubocop (= 0.54.0)
78
+
79
+ BUNDLED WITH
80
+ 2.2.29
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "pry"
7
+ gem "rake"
8
+ gem "rspec", "~> 3.7"
9
+ gem "rspec_junit_formatter", "~> 0.4"
10
+ gem "rspec-mocks"
11
+ gem "rubocop", "0.54.0"
12
+ gem "activesupport", "~> 5.2"
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "pry"
7
+ gem "rake"
8
+ gem "rspec", "~> 3.7"
9
+ gem "rspec_junit_formatter", "~> 0.4"
10
+ gem "rspec-mocks"
11
+ gem "rubocop", "0.54.0"
12
+ gem "activesupport", "~> 6.0"
13
+
14
+ gemspec path: "../"
@@ -0,0 +1,14 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "pry"
7
+ gem "rake"
8
+ gem "rspec", "~> 3.7"
9
+ gem "rspec_junit_formatter", "~> 0.4"
10
+ gem "rspec-mocks"
11
+ gem "rubocop", "0.54.0"
12
+ gem "activesupport", "~> 7.0"
13
+
14
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MonotonicTickCount
4
- VERSION = "0.2.1"
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"
33
+ spec.add_dependency "activesupport", ">= 5.2"
34
34
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monotonic_tick_count
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Kelley
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-09 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.2'
26
+ version: '5.2'
27
27
  description: PORO to hold a monotonic tick count. Useful for measuring time differences.
28
28
  email:
29
29
  - colindkelley@gmail.com
@@ -31,18 +31,26 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".github/dependabot.yml"
35
+ - ".github/workflows/gem_release.yml"
36
+ - ".github/workflows/test.yml"
34
37
  - ".gitignore"
35
- - ".jenkins/Jenkinsfile"
36
- - ".jenkins/ruby_build_pod.yml"
37
38
  - ".rubocop.yml"
38
- - ".travis.yml"
39
+ - ".ruby-version"
40
+ - ".tool-versions"
41
+ - Appraisals
39
42
  - CHANGELOG.md
40
43
  - Gemfile
44
+ - Gemfile.lock
41
45
  - LICENSE.txt
42
46
  - README.md
43
47
  - Rakefile
44
48
  - bin/console
45
49
  - bin/setup
50
+ - gemfiles/.bundle/config
51
+ - gemfiles/rails_5.gemfile
52
+ - gemfiles/rails_6.gemfile
53
+ - gemfiles/rails_7.gemfile
46
54
  - lib/monotonic_tick_count.rb
47
55
  - lib/monotonic_tick_count/version.rb
48
56
  - monotonic_tick_count.gemspec
@@ -51,7 +59,7 @@ licenses:
51
59
  - MIT
52
60
  metadata:
53
61
  allowed_push_host: https://rubygems.org
54
- post_install_message:
62
+ post_install_message:
55
63
  rdoc_options: []
56
64
  require_paths:
57
65
  - lib
@@ -66,8 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
74
  - !ruby/object:Gem::Version
67
75
  version: '0'
68
76
  requirements: []
69
- rubygems_version: 3.0.1
70
- signing_key:
77
+ rubygems_version: 3.4.7
78
+ signing_key:
71
79
  specification_version: 4
72
80
  summary: PORO to hold a monotonic tick count. Useful for measuring time differences.
73
81
  test_files: []
data/.jenkins/Jenkinsfile DELETED
@@ -1,51 +0,0 @@
1
- #!/usr/bin/groovy
2
- @Library('jenkins-pipeline@v0.4.5')
3
- import com.invoca.docker.*;
4
- pipeline {
5
- agent {
6
- kubernetes {
7
- defaultContainer "ruby"
8
- yamlFile ".jenkins/ruby_build_pod.yml"
9
- }
10
- }
11
-
12
- environment {
13
- GITHUB_TOKEN = credentials('github_token')
14
- BUNDLE_GEM__FURY__IO = credentials('gemfury_deploy_token')
15
- }
16
-
17
- stages {
18
- stage('Setup') {
19
- steps {
20
- updateGitHubStatus('clean-build', 'pending', 'Unit tests.')
21
- script {
22
- sh 'bundle install'
23
- }
24
- }
25
- }
26
- stage('Unit Test') {
27
- steps {
28
- script {
29
- sh 'bundle exec rspec --format RspecJunitFormatter --out spec/reports/rspec.xml'
30
- }
31
- }
32
- post {
33
- always { junit '*/reports/*.xml' }
34
- success { updateGitHubStatus('clean-build', 'success', 'Unit tests.') }
35
- failure { updateGitHubStatus('clean-build', 'failure', 'Unit tests.') }
36
- }
37
- }
38
- }
39
- }
40
-
41
- void updateGitHubStatus(String context, String status, String description) {
42
- gitHubStatus([
43
- repoSlug: 'Invoca/monotonic_tick_count',
44
- sha: env.GIT_COMMIT,
45
- description: description,
46
- context: context,
47
- targetURL: env.BUILD_URL,
48
- token: env.GITHUB_TOKEN,
49
- status: status
50
- ])
51
- }
@@ -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