monotonic_tick_count 0.2.0.rails.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -3
- data/lib/monotonic_tick_count/version.rb +1 -1
- data/monotonic_tick_count.gemspec +10 -7
- metadata +10 -11
- data/.jenkins/Jenkinsfile +0 -51
- data/.jenkins/ruby_build_pod.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24396582479ebb18e5024106bfedb5b8ed4c21d9e91f9b1ab1e511d37c035d71
|
4
|
+
data.tar.gz: 843d6385685841f6820a31be5566b7ff8fdef751e27618566365fbd28d3e353f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9398249d9f6d1b395598c2085de84f447225487fdc879419c134ac9a5e694f8c1e2ee5b335105f291aa503908aad0e00a4f0f208265d7ec2a1a67b69750e2a31
|
7
|
+
data.tar.gz: 5d2c0a7fff1738e1ae6f6d24ae3bd1459e7f5fe792767cd336a6fe7f3d587cede05f7041914b5eabb821ff95b51248d51a14568750fec9591b414abbe3b13ad3
|
data/Gemfile
CHANGED
@@ -6,11 +6,10 @@ source 'https://rubygems.org'
|
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
group :development do
|
9
|
-
gem 'bundler', '~> 1.
|
9
|
+
gem 'bundler', '~> 1.15'
|
10
10
|
gem 'pry'
|
11
11
|
gem 'rake'
|
12
|
-
gem 'rspec'
|
13
|
-
gem 'rspec_junit_formatter', '~> 0.4'
|
12
|
+
gem 'rspec'
|
14
13
|
gem 'rspec-mocks'
|
15
14
|
gem 'rubocop', '0.54.0'
|
16
15
|
end
|
@@ -8,17 +8,20 @@ require "monotonic_tick_count/version"
|
|
8
8
|
Gem::Specification.new do |spec|
|
9
9
|
spec.name = "monotonic_tick_count"
|
10
10
|
spec.version = MonotonicTickCount::VERSION
|
11
|
-
spec.authors = ["
|
12
|
-
spec.email = ["
|
11
|
+
spec.authors = ["Colin Kelley"]
|
12
|
+
spec.email = ["colindkelley@gmail.com"]
|
13
13
|
|
14
14
|
spec.summary = "PORO to hold a monotonic tick count. Useful for measuring time differences."
|
15
|
-
spec.description =
|
15
|
+
spec.description = "PORO to hold a monotonic tick count. Useful for measuring time differences."
|
16
16
|
spec.homepage = "https://github.com/invoca/monotonic_tick_count"
|
17
17
|
spec.license = "MIT"
|
18
18
|
|
19
|
-
spec.metadata
|
20
|
-
|
21
|
-
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
22
25
|
|
23
26
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
24
27
|
f.match(%r{^(test|spec|features)/})
|
@@ -27,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
27
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
31
|
spec.require_paths = ["lib"]
|
29
32
|
|
30
|
-
spec.add_dependency "activesupport", "
|
33
|
+
spec.add_dependency "activesupport", "~> 4.2"
|
31
34
|
end
|
metadata
CHANGED
@@ -1,39 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monotonic_tick_count
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.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:
|
11
|
+
date: 2019-09-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
19
|
version: '4.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
26
|
version: '4.2'
|
27
27
|
description: PORO to hold a monotonic tick count. Useful for measuring time differences.
|
28
28
|
email:
|
29
|
-
-
|
29
|
+
- colindkelley@gmail.com
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- ".gitignore"
|
35
|
-
- ".jenkins/Jenkinsfile"
|
36
|
-
- ".jenkins/ruby_build_pod.yml"
|
37
35
|
- ".rubocop.yml"
|
38
36
|
- ".travis.yml"
|
39
37
|
- Gemfile
|
@@ -61,11 +59,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
61
59
|
version: '0'
|
62
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
61
|
requirements:
|
64
|
-
- - "
|
62
|
+
- - ">="
|
65
63
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
64
|
+
version: '0'
|
67
65
|
requirements: []
|
68
|
-
|
66
|
+
rubyforge_project:
|
67
|
+
rubygems_version: 2.7.6
|
69
68
|
signing_key:
|
70
69
|
specification_version: 4
|
71
70
|
summary: PORO to hold a monotonic tick count. Useful for measuring time differences.
|
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
|
-
}
|
data/.jenkins/ruby_build_pod.yml
DELETED
@@ -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
|
-
|