request_local_cache 0.2.0 → 0.3.2
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 +5 -5
- data/.github/workflows/build_release_action.yaml +50 -0
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/Gemfile.lock +32 -0
- data/LICENSE +21 -0
- data/Rakefile +4 -0
- data/lib/request_local_cache/railtie.rb +2 -2
- data/lib/request_local_cache/version.rb +1 -1
- data/request_local_cache.gemspec +3 -3
- metadata +13 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: de10ed9910dc23214d70933727028793d264739f54b1f0eed1f1bac971b164c3
|
|
4
|
+
data.tar.gz: 35b4890013ab5e3e980cc9eab0a52fdeb8f6a02d437163888b8e74abf5606ecc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59ddad40a04ac6af58cf797d6767d8fd1ac0ba47812dbaae5a3c8c6457403f44e00f4cddd29793b83e95049c735a37c9a83136d3b76431fdb1b8d102e603e23e
|
|
7
|
+
data.tar.gz: fc87c8eb41d79fe424acfce35ee7f19a47fbede90499eec0db4f3355a1e435a4ddd3c97eab553c6abc2d4bf0503f0507bcbfd6bc045420ee600014d511c4de3a
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Build and release ruby gem
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [ master ]
|
|
6
|
+
push:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-release-pipeline:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
container: ruby:2.7.2
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
- name: Setup
|
|
16
|
+
run: |
|
|
17
|
+
gem install bundler
|
|
18
|
+
bundle install
|
|
19
|
+
|
|
20
|
+
- name: Build
|
|
21
|
+
id: build
|
|
22
|
+
if: success() && github.ref == 'refs/heads/master'
|
|
23
|
+
run: |
|
|
24
|
+
bundle exec rake build
|
|
25
|
+
echo "::set-output name=gem_version::v$(bundle exec rake version)"
|
|
26
|
+
|
|
27
|
+
- name: Release
|
|
28
|
+
if: success() && github.ref == 'refs/heads/master'
|
|
29
|
+
run: |
|
|
30
|
+
mkdir -p $HOME/.gem
|
|
31
|
+
touch $HOME/.gem/credentials
|
|
32
|
+
chmod 600 $HOME/.gem/credentials
|
|
33
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
34
|
+
gem push pkg/*
|
|
35
|
+
env:
|
|
36
|
+
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"
|
|
37
|
+
|
|
38
|
+
- name: Tag repo with new gem version
|
|
39
|
+
if: success() && github.ref == 'refs/heads/master'
|
|
40
|
+
uses: actions/github-script@v3
|
|
41
|
+
with:
|
|
42
|
+
github-token: ${{ github.token }}
|
|
43
|
+
script: |
|
|
44
|
+
github.git.createRef({
|
|
45
|
+
owner: context.repo.owner,
|
|
46
|
+
repo: context.repo.repo,
|
|
47
|
+
ref: "refs/tags/${{ steps.build.outputs.gem_version }}",
|
|
48
|
+
sha: context.sha
|
|
49
|
+
})
|
|
50
|
+
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.7.2
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
request_local_cache (0.3.2)
|
|
5
|
+
activesupport (>= 4.2.0)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
activesupport (7.0.2.3)
|
|
11
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
12
|
+
i18n (>= 1.6, < 2)
|
|
13
|
+
minitest (>= 5.1)
|
|
14
|
+
tzinfo (~> 2.0)
|
|
15
|
+
concurrent-ruby (1.1.9)
|
|
16
|
+
i18n (1.10.0)
|
|
17
|
+
concurrent-ruby (~> 1.0)
|
|
18
|
+
minitest (5.15.0)
|
|
19
|
+
rake (10.5.0)
|
|
20
|
+
tzinfo (2.0.4)
|
|
21
|
+
concurrent-ruby (~> 1.0)
|
|
22
|
+
|
|
23
|
+
PLATFORMS
|
|
24
|
+
x86_64-linux
|
|
25
|
+
|
|
26
|
+
DEPENDENCIES
|
|
27
|
+
bundler
|
|
28
|
+
rake (~> 10.0)
|
|
29
|
+
request_local_cache!
|
|
30
|
+
|
|
31
|
+
BUNDLED WITH
|
|
32
|
+
2.2.22
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-2017 Vinted
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/Rakefile
CHANGED
|
@@ -7,8 +7,8 @@ module RequestLocalCache
|
|
|
7
7
|
app.config.middleware.insert_after Rack::MethodOverride, RequestLocalCache::Middleware
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
if
|
|
11
|
-
|
|
10
|
+
if ActiveSupport.const_defined?(:Reloader) && ActiveSupport::Reloader.respond_to?(:to_complete)
|
|
11
|
+
ActiveSupport::Reloader.to_prepare do
|
|
12
12
|
RequestLocalCache.clear!
|
|
13
13
|
end
|
|
14
14
|
end
|
data/request_local_cache.gemspec
CHANGED
|
@@ -6,8 +6,8 @@ require 'request_local_cache/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'request_local_cache'
|
|
8
8
|
spec.version = RequestLocalCache::VERSION
|
|
9
|
-
spec.authors = ['
|
|
10
|
-
spec.email = ['
|
|
9
|
+
spec.authors = ['Vinted']
|
|
10
|
+
spec.email = ['admin@vinted.com']
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{RequestLocalCache gives you per-request cache}
|
|
13
13
|
spec.description = %q{RequestLocalCache gives you per-request cache}
|
|
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
|
|
22
22
|
spec.add_dependency 'activesupport', '>= 4.2.0'
|
|
23
23
|
|
|
24
|
-
spec.add_development_dependency 'bundler'
|
|
24
|
+
spec.add_development_dependency 'bundler'
|
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
26
26
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: request_local_cache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Vinted
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -28,16 +28,16 @@ dependencies:
|
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '0'
|
|
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: '
|
|
40
|
+
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -54,13 +54,17 @@ dependencies:
|
|
|
54
54
|
version: '10.0'
|
|
55
55
|
description: RequestLocalCache gives you per-request cache
|
|
56
56
|
email:
|
|
57
|
-
-
|
|
57
|
+
- admin@vinted.com
|
|
58
58
|
executables: []
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
+
- ".github/workflows/build_release_action.yaml"
|
|
62
63
|
- ".gitignore"
|
|
64
|
+
- ".ruby-version"
|
|
63
65
|
- Gemfile
|
|
66
|
+
- Gemfile.lock
|
|
67
|
+
- LICENSE
|
|
64
68
|
- README.md
|
|
65
69
|
- Rakefile
|
|
66
70
|
- bin/console
|
|
@@ -89,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
93
|
- !ruby/object:Gem::Version
|
|
90
94
|
version: '0'
|
|
91
95
|
requirements: []
|
|
92
|
-
|
|
93
|
-
rubygems_version: 2.6.11
|
|
96
|
+
rubygems_version: 3.1.4
|
|
94
97
|
signing_key:
|
|
95
98
|
specification_version: 4
|
|
96
99
|
summary: RequestLocalCache gives you per-request cache
|