monotonic_tick_count 0.2.1 → 0.3.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: 8959e6880634a46051dd28e4d93f8b8a3d5c4550bda0418b295fa74dd8607f93
4
- data.tar.gz: 60b61d19511e6aa03ba207256c090d0a01e930d1ec947a20a123ed1a8aaf5153
3
+ metadata.gz: 3334a3f10f1f875e1a03c06e4efb13cc9b5251639474bcda2061fcaf2e0c5470
4
+ data.tar.gz: 6bd00418e474ad9917299a5339e5a269ba7aee8bce41bc70c8472a382d254578
5
5
  SHA512:
6
- metadata.gz: 592c767309c9c8930e5aab010456da3e4e8b15e30b993123661dcd8edefcbb27ae1fc8eff4fec0f5474aca6ecc9cc5446f492f1fe33c6fda87f47168ac4a7da0
7
- data.tar.gz: b8674d845f67025e476abddff9109331dfa0816e28be328afe545f303260aeb1aebaca0990857cabf9fe1aba2305e9db03e6d7cbf8788789503a07d8a51e2988
6
+ metadata.gz: c7567141f262a3b0fa5821ff33f96c9509abb2dfe7bad08da567f9347a31b4d3c06b70e4e602fea5aa86c61e307c948b255cca8bbc0de614db49498cce33b7b1
7
+ data.tar.gz: 0ad1c0679e0e427544181096bc6eca1c1d280c0b0093dba481dd5a50a162db36d047f6f87a7333372da51bf5f53cd8e02aecfd4fc1de000bea9f1baed045117b
@@ -0,0 +1,10 @@
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
@@ -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
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
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/groovy
2
2
  @Library('jenkins-pipeline@v0.4.5')
3
- import com.invoca.docker.*;
3
+ import com.invoca.utils.*;
4
+
4
5
  pipeline {
5
6
  agent {
6
7
  kubernetes {
@@ -10,7 +11,7 @@ pipeline {
10
11
  }
11
12
 
12
13
  environment {
13
- GITHUB_TOKEN = credentials('github_token')
14
+ GITHUB_TOKEN = credentials('github_token')
14
15
  BUNDLE_GEM__FURY__IO = credentials('gemfury_deploy_token')
15
16
  }
16
17
 
@@ -20,22 +21,40 @@ pipeline {
20
21
  updateGitHubStatus('clean-build', 'pending', 'Unit tests.')
21
22
  script {
22
23
  sh 'bundle install'
24
+ sh 'bundle exec appraisal install'
23
25
  }
24
26
  }
25
27
  }
26
- stage('Unit Test') {
27
- steps {
28
- script {
29
- sh 'bundle exec rspec --format RspecJunitFormatter --out spec/reports/rspec.xml'
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' } }
30
49
  }
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
50
  }
37
51
  }
38
52
  }
53
+
54
+ post {
55
+ success { updateGitHubStatus('clean-build', 'success', 'Unit tests.') }
56
+ failure { updateGitHubStatus('clean-build', 'failure', 'Unit tests.') }
57
+ }
39
58
  }
40
59
 
41
60
  void updateGitHubStatus(String context, String status, String description) {
@@ -44,7 +63,7 @@ void updateGitHubStatus(String context, String status, String description) {
44
63
  sha: env.GIT_COMMIT,
45
64
  description: description,
46
65
  context: context,
47
- targetURL: env.BUILD_URL,
66
+ targetURL: env.RUN_DISPLAY_URL,
48
67
  token: env.GITHUB_TOKEN,
49
68
  status: status
50
69
  ])
@@ -0,0 +1 @@
1
+ 2.6.5
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-4' do
4
+ gem 'activesupport', '~> 4.2'
5
+ end
6
+
7
+ appraise 'rails-5' do
8
+ gem 'activesupport', '~> 5.2'
9
+ end
10
+
11
+ appraise 'rails-6' do
12
+ gem 'activesupport', '~> 6.0'
13
+ end
@@ -1,10 +1,12 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
1
+ # CHANGELOG for `pnapi_models`
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
+ ## [0.3.0] - 2020-07-24
8
+ ### Added
9
+ - Added support for rails 5 and 6
8
10
 
9
11
  ## [0.2.1] - 2020-07-09
10
12
  ### Changed
@@ -17,6 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
19
  ### Changed
18
20
  - prepared for initial release
19
21
 
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
22
+ [0.3.0]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.1...v0.3.0
23
+ [0.2.1]: https://github.com/Invoca/monotonic_tick_count/compare/v0.2.0...v0.2.1
22
24
  [0.2.0]: https://github.com/Invoca/monotonic_tick_count/releases/tag/v0.2.0
data/Gemfile CHANGED
@@ -5,12 +5,11 @@ 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 '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'
@@ -0,0 +1,82 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ monotonic_tick_count (0.3.0)
5
+ activesupport (>= 4.2, < 7)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (6.0.3.2)
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)
17
+ bundler
18
+ rake
19
+ thor (>= 0.14.0)
20
+ ast (2.4.1)
21
+ coderay (1.1.3)
22
+ concurrent-ruby (1.1.6)
23
+ diff-lcs (1.4.4)
24
+ i18n (1.8.5)
25
+ concurrent-ruby (~> 1.0)
26
+ method_source (1.0.0)
27
+ minitest (5.14.1)
28
+ parallel (1.19.2)
29
+ parser (2.7.1.4)
30
+ ast (~> 2.4.1)
31
+ powerpack (0.1.2)
32
+ pry (0.13.1)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
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)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.9.0)
46
+ rspec-mocks (3.9.1)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.9.0)
49
+ rspec-support (3.9.3)
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.10.1)
60
+ thor (1.0.1)
61
+ thread_safe (0.3.6)
62
+ tzinfo (1.2.7)
63
+ thread_safe (~> 0.1)
64
+ unicode-display_width (1.7.0)
65
+ zeitwerk (2.4.0)
66
+
67
+ PLATFORMS
68
+ ruby
69
+
70
+ DEPENDENCIES
71
+ appraisal
72
+ bundler (~> 1.15)
73
+ monotonic_tick_count!
74
+ pry
75
+ rake
76
+ rspec (~> 3.7)
77
+ rspec-mocks
78
+ rspec_junit_formatter (~> 0.4)
79
+ rubocop (= 0.54.0)
80
+
81
+ BUNDLED WITH
82
+ 1.17.3
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,15 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler", "~> 1.15"
7
+ gem "pry"
8
+ gem "rake"
9
+ gem "rspec", "~> 3.7"
10
+ gem "rspec_junit_formatter", "~> 0.4"
11
+ gem "rspec-mocks"
12
+ gem "rubocop", "0.54.0"
13
+ gem "activesupport", "~> 4.2"
14
+
15
+ gemspec path: "../"
@@ -0,0 +1,15 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler", "~> 1.15"
7
+ gem "pry"
8
+ gem "rake"
9
+ gem "rspec", "~> 3.7"
10
+ gem "rspec_junit_formatter", "~> 0.4"
11
+ gem "rspec-mocks"
12
+ gem "rubocop", "0.54.0"
13
+ gem "activesupport", "~> 5.2"
14
+
15
+ gemspec path: "../"
@@ -0,0 +1,15 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "bundler", "~> 1.15"
7
+ gem "pry"
8
+ gem "rake"
9
+ gem "rspec", "~> 3.7"
10
+ gem "rspec_junit_formatter", "~> 0.4"
11
+ gem "rspec-mocks"
12
+ gem "rubocop", "0.54.0"
13
+ gem "activesupport", "~> 6.0"
14
+
15
+ 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 = "0.3.0"
5
5
  end
@@ -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", ">= 4.2", "< 7"
34
34
  end
metadata CHANGED
@@ -1,29 +1,35 @@
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: 0.3.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: 2020-07-24 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
19
  version: '4.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
27
33
  description: PORO to hold a monotonic tick count. Useful for measuring time differences.
28
34
  email:
29
35
  - colindkelley@gmail.com
@@ -31,18 +37,27 @@ executables: []
31
37
  extensions: []
32
38
  extra_rdoc_files: []
33
39
  files:
40
+ - ".dependabot/config.yml"
41
+ - ".github/workflows/gem_release.yml"
34
42
  - ".gitignore"
35
43
  - ".jenkins/Jenkinsfile"
36
44
  - ".jenkins/ruby_build_pod.yml"
37
45
  - ".rubocop.yml"
46
+ - ".ruby-version"
38
47
  - ".travis.yml"
48
+ - Appraisals
39
49
  - CHANGELOG.md
40
50
  - Gemfile
51
+ - Gemfile.lock
41
52
  - LICENSE.txt
42
53
  - README.md
43
54
  - Rakefile
44
55
  - bin/console
45
56
  - bin/setup
57
+ - gemfiles/.bundle/config
58
+ - gemfiles/rails_4.gemfile
59
+ - gemfiles/rails_5.gemfile
60
+ - gemfiles/rails_6.gemfile
46
61
  - lib/monotonic_tick_count.rb
47
62
  - lib/monotonic_tick_count/version.rb
48
63
  - monotonic_tick_count.gemspec
@@ -51,7 +66,7 @@ licenses:
51
66
  - MIT
52
67
  metadata:
53
68
  allowed_push_host: https://rubygems.org
54
- post_install_message:
69
+ post_install_message:
55
70
  rdoc_options: []
56
71
  require_paths:
57
72
  - lib
@@ -66,8 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
81
  - !ruby/object:Gem::Version
67
82
  version: '0'
68
83
  requirements: []
69
- rubygems_version: 3.0.1
70
- signing_key:
84
+ rubygems_version: 3.0.3
85
+ signing_key:
71
86
  specification_version: 4
72
87
  summary: PORO to hold a monotonic tick count. Useful for measuring time differences.
73
88
  test_files: []