expiring_memoize 0.1.0 → 0.1.1

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: 47ee17e75d5b48533d67f92bc9651c1eb10e15d1944fb9267530e76b5925d18e
4
- data.tar.gz: d480dcbf5f10dfc42ae7b49a05bdbb8e5c5dd4f59c49c35d1d25d1dcd6b6a900
3
+ metadata.gz: b23d6cf1116fc97270b67bec6c8aed6b32b18b18896c9697f245b2d4fe7f98ab
4
+ data.tar.gz: 23f903e7247efcb30abff49932b88c329bfd5aeb97f098d3af39f1252ebe49bb
5
5
  SHA512:
6
- metadata.gz: 68ce781238798de20734ad6e7b2ee30e4b8e1a8518d4d93c8fa5511f5a21bddae6cd7565e3b3d7e246ecca977f013c31791ec3ca4046727c9971399b5aa66e35
7
- data.tar.gz: 3e660cbb73620eb5116ff422da898549dd9080403592ceb394ded7ef87935f160cb98e2293778c9a621be8ccbe2a3078b94b941007ba1810a1fbc286c2a0aa71
6
+ metadata.gz: 70b4434f6bfd4b67f905c209bbe304375a8326d38f1bfdac0cf9e74b7d3a00e4a112998a50a1021e32201a89019238a756e14ebfc99f17b0e24f0a4581b34a1f
7
+ data.tar.gz: 435796cf16fcca9fae1027c5e0748f013cc311a725fecb8abc9b54f82a5e9ec749a8744936d1f183978690bb634e3f449a4b83d22df3b9e66e7acbc2cd47a9af
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.1] - 2020-03-04
10
+
11
+ ### Changed
12
+
13
+ - Bumped Rake to 12.3.3 for CVE-2020-8130
14
+
15
+ ## [0.1.0] - 2019-09-30
16
+
17
+ [Unreleased]: https://github.com/conjurinc/expiring_memoize/compare/v0.1.1...HEAD
18
+ [0.1.1]: https://github.com/conjurinc/expiring_memoize/compare/v0.1.0...v0.1.1
19
+ [0.1.0]: https://github.com/conjurinc/expiring_memoize/compare/v0.1.0
@@ -0,0 +1,14 @@
1
+ FROM ruby:2.5
2
+
3
+ RUN mkdir /src
4
+ WORKDIR /src
5
+
6
+ COPY expiring_memoize.gemspec /src
7
+ COPY Gemfile /src
8
+ COPY lib/expiring_memoize/version.rb /src/lib/expiring_memoize/
9
+
10
+ RUN bundle install
11
+
12
+ COPY . /src/
13
+
14
+ CMD [ "rake", "spec" ]
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env groovy
2
+
3
+ pipeline {
4
+ agent { label 'executor-v2' }
5
+
6
+ options {
7
+ timestamps()
8
+ buildDiscarder(logRotator(numToKeepStr: '30'))
9
+ }
10
+
11
+ triggers {
12
+ cron(getDailyCronString())
13
+ }
14
+
15
+ stages {
16
+ stage('Test') {
17
+ steps { sh './test' }
18
+ }
19
+
20
+ // Only publish to RubyGems if branch is 'master'
21
+ stage('Publish to RubyGems?') {
22
+ agent { label 'releaser-v2' }
23
+
24
+ when {
25
+ branch 'master'
26
+ }
27
+ steps {
28
+ // Clean up first
29
+ sh 'docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd'
30
+
31
+ sh './publish'
32
+
33
+ // Clean up again...
34
+ sh 'docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd'
35
+ deleteDir()
36
+ }
37
+ }
38
+ }
39
+
40
+ post {
41
+ always {
42
+ cleanupAndNotify(currentBuild.currentResult)
43
+ }
44
+ }
45
+ }
@@ -1,6 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2019 Rafał Rzepecki
4
+ Copyright (c) 2020 CyberArk Software Ltd. All rights reserved.
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.17"
27
- spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rake", ">= 12.3.3"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module ExpiringMemoize
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/publish ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash -e
2
+
3
+ docker pull registry.tld/conjurinc/publish-rubygem
4
+
5
+ summon --yaml "RUBYGEMS_API_KEY: !var rubygems/api-key" \
6
+ docker run --rm --env-file @SUMMONENVFILE -v "$(pwd)":/opt/src \
7
+ registry.tld/conjurinc/publish-rubygem expiring_memoize
data/test ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/bash -eu
2
+
3
+ docker build -f Dockerfile.test -t expiring_memoize .
4
+ docker run --rm -v "$(pwd):/src" expiring_memoize rake spec
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expiring_memoize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Rzepecki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +62,10 @@ files:
62
62
  - ".gitignore"
63
63
  - ".rspec"
64
64
  - ".travis.yml"
65
+ - CHANGELOG.md
66
+ - Dockerfile.test
65
67
  - Gemfile
68
+ - Jenkinsfile
66
69
  - LICENSE.txt
67
70
  - README.md
68
71
  - Rakefile
@@ -71,6 +74,8 @@ files:
71
74
  - expiring_memoize.gemspec
72
75
  - lib/expiring_memoize.rb
73
76
  - lib/expiring_memoize/version.rb
77
+ - publish
78
+ - test
74
79
  homepage: https://github.com/dividedmind/expiring_memoize
75
80
  licenses:
76
81
  - MIT
@@ -90,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
95
  - !ruby/object:Gem::Version
91
96
  version: '0'
92
97
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.7.6.2
98
+ rubygems_version: 3.0.3
95
99
  signing_key:
96
100
  specification_version: 4
97
101
  summary: Memoize with TTL.