request_local_cache 0.3.0 → 0.3.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
- SHA1:
3
- metadata.gz: 47af0341216d52a9001ef6dd2f48c7ee533af254
4
- data.tar.gz: 59ba83bcd5344d4770a9f1d3f5163a0de284c4d2
2
+ SHA256:
3
+ metadata.gz: 8c05bdf5aa183e31bad2de4db9a45f09aa006d77fd2bbdcc852a7e61f83a2a45
4
+ data.tar.gz: a3fe39c00b9a0586768f734ebc9ba971ce8ee6220d9eeabd5b5317398087d568
5
5
  SHA512:
6
- metadata.gz: 20259390319e32da0c9d8a14c6a4f6709cd0ac37175de7cd10b840fe51e25b506559d712aa5220d6e5ee91a02c06a887f23212692fde2e7b8439285cd0b0d513
7
- data.tar.gz: df179c3051692cb99076ac83b488451c4a86557135d8c16b00c142295f1d56d834b3671a0e160e1b9267c0b50976367b5bf949f0eb153e396b35a179f67e8e19
6
+ metadata.gz: 494b0e3cba5464ed36056f11ce75eef83041a317c83759c95abf4088ba917b41bf960102c6c8dfe53739e667bdebae158e6d39db1e0ce1241a658e57cc5a51f5
7
+ data.tar.gz: 9c43db47f1e3cef64226a2ee7a52e52dd97e89dec971e4ec496cc0f11b10c5d880f8b84497e349531185047c44f825ec281f5bc7c36edb8cf4f471e6f378b68e
@@ -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/Rakefile CHANGED
@@ -1 +1,5 @@
1
1
  require 'bundler/gem_tasks'
2
+
3
+ task :version do |t|
4
+ puts RequestLocalCache::VERSION
5
+ end
@@ -1,3 +1,3 @@
1
1
  module RequestLocalCache
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -6,7 +6,7 @@ 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 = ['Karolis Astrauka']
9
+ spec.authors = ['Vinted']
10
10
  spec.email = ['admin@vinted.com']
11
11
 
12
12
  spec.summary = %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', '~> 1.10'
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
- - Karolis Astrauka
7
+ - Vinted
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2021-04-06 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: '1.10'
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: '1.10'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github/workflows/build_release_action.yaml"
62
63
  - ".gitignore"
63
64
  - Gemfile
64
65
  - LICENSE
@@ -90,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.6.11
94
+ rubygems_version: 3.1.4
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: RequestLocalCache gives you per-request cache