bens-hello-world 4.10.2 → 4.10.4

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: 77463a548a5ed111182a38263777fd453a27e4d54bee020cd12d4b39c7b7c2c9
4
- data.tar.gz: 7e6746a72924383abc7609cdb5300200a476094731533affd57703a27d0edbfd
3
+ metadata.gz: ebe9ddd773c7713a2bd37531f2edb8bf4323843effd5d2c9070c39e4b707f331
4
+ data.tar.gz: 8e7b4519c2ab8e4384cabf4dd6f5326d1b21bcca99579449438e87e7aa93bcfc
5
5
  SHA512:
6
- metadata.gz: de2e45f7f0d7f42a1ed1cc416ffa8c554daeb9955cdc7eb986f0217ee2649b8ac3a1bc31059949e191c430b836a7155bca1a04d472ece2e7848c03afbf2ddc59
7
- data.tar.gz: 2b7e596be68233359b1baa06888e2a5a093af6c4dd9cc81f9f3dd6d949e1c2da8cbe29b054f07dc049376ac986c732648338708a5aad4e4be16bbcf625652820
6
+ metadata.gz: fb9743f4010b6f1d4bf1e67d9fee6a9bbdd59815fdfc654be474bdee15b2f3469fc41c455a3e2e5952e5a7109dc287258b9aa5d9b6872e635d8ce4df11579dc5
7
+ data.tar.gz: 266508a87b71238b9a2f58f784ca7af0702ce54c24eaf140937942e410b001d6092d7964d5cc30a01cdbb8954b2b331cf01068a2057b2ba8ef530d6eb7dbf92f
@@ -0,0 +1,41 @@
1
+ # This manual workflow build and push pagy to rubygems and creates a release tag at the current master commit
2
+
3
+ name: Release Pagy
4
+ on:
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+
9
+ release-pagy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2 # checks out default branch
13
+
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 3.0.0
17
+ - run: bundle install
18
+
19
+ - name: Build and push
20
+ run: |
21
+ mkdir -p $HOME/.gem
22
+ printf -- "---\n:rubygems_api_key: ${RUBYGEMS_TOKEN}\n" > $HOME/.gem/credentials
23
+ chmod 0600 $HOME/.gem/credentials
24
+ gem build *.gemspec
25
+ gem push *.gem
26
+ env:
27
+ RUBYGEMS_TOKEN: "${{secrets.RUBYGEMS_TOKEN}}"
28
+
29
+ - name: Create the release tag
30
+ uses: actions/github-script@v3
31
+ with:
32
+ github-token: ${{ github.token }}
33
+ script: |
34
+ const fs = require("fs")
35
+ eval(fs.readFileSync("./lib/javascripts/pagy.js").toString())
36
+ github.git.createRef({
37
+ owner: context.repo.owner,
38
+ repo: context.repo.repo,
39
+ ref: `refs/tags/${Pagy.version}`,
40
+ sha: context.sha
41
+ })
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bens-hello-world (4.10.2)
4
+ bens-hello-world (4.10.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  module Bens
2
2
  module Hello
3
3
  module World
4
- VERSION = "4.10.2"
4
+ VERSION = "4.10.4"
5
5
  end
6
6
  end
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  function Pagy(){}
4
4
 
5
- Pagy.version = '4.10.2'
5
+ Pagy.version = '4.10.4'
6
6
 
7
7
  Pagy.delay = 100
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bens-hello-world
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.2
4
+ version: 4.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - BK
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a pure dummy gem. Hello world. We wanna test out github actions
14
14
  and publishing ruby gems.
@@ -18,7 +18,7 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - ".github/workflows/publish-gem-and-tag.yml"
21
+ - ".github/workflows/release-pagy.yml"
22
22
  - ".github/workflows/release.yml"
23
23
  - ".gitignore"
24
24
  - ".rspec"
@@ -1,66 +0,0 @@
1
-
2
- name: publish-gem-and-tag
3
-
4
- on:
5
- workflow_dispatch:
6
-
7
- jobs:
8
- publish-gem-and-tag:
9
- runs-on: ubuntu-latest
10
-
11
- steps:
12
-
13
- - uses: actions/checkout@v2 # checks out default branch
14
-
15
- - uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: 3.0.0
18
- - run: bundle install
19
-
20
- - name: publish gem
21
- run: |
22
- mkdir -p $HOME/.gem
23
- touch $HOME/.gem/credentials
24
- chmod 0600 $HOME/.gem/credentials
25
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
26
- gem build *.gemspec
27
- gem push *.gem
28
- env:
29
- GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
30
-
31
- # now, after the gem has been successfully published
32
- # we would need to automatically tag based on the current commit
33
-
34
- # # We wanna use this one for pagy
35
- # echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/pagy.rb"))"
36
-
37
- # - name: Get version number
38
- # id: version
39
- # run: |
40
- # echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
41
- # - name: Create tag
42
- # uses: actions/github-script@v3
43
- # with:
44
- # github-token: ${{ github.token }}
45
- # script: |
46
- # github.git.createRef({
47
- # owner: context.repo.owner,
48
- # repo: context.repo.repo,
49
- # ref: `refs/tags/${{steps.version.outputs.version}}`,
50
- # sha: context.sha
51
- # })
52
-
53
- - name: Create tag
54
- uses: actions/github-script@v3
55
- with:
56
- github-token: ${{ github.token }}
57
- script: |
58
- const fs = require("fs")
59
- eval(fs.readFileSync("./lib/javascripts/pagy.js").toString())
60
-
61
- github.git.createRef({
62
- owner: context.repo.owner,
63
- repo: context.repo.repo,
64
- ref: `refs/tags/${Pagy.version}`,
65
- sha: context.sha
66
- })