graphql-decorate 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eebb3163d3b156e31469281fed745c5512628d8d53bac95d14a482d5973eba3f
|
4
|
+
data.tar.gz: cf29b63e882f792f0b862b311b7dbc1f52b5be1d0685863afeeb0a11e7bb5dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d14eee9d8590363f51582f8d199ea8f89b6f7af6d7391097839c43ac3573830b68eb81937b0e73645bfffc21caa2188ee187d979c2b25637872a171d504b0c9
|
7
|
+
data.tar.gz: 3dd3cfeabf0b687aa4fc80e91779378b113b9b56145f6a172ca0930bc954511fba709266f62f552d257fd65b76d8b66b7bb1e6aaf211ef497ac2fbc8ce066e66
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
release:
|
5
|
+
types: [ published ]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Publish
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.6
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.6.x
|
18
|
+
|
19
|
+
- name: Verify version number matches
|
20
|
+
run: |
|
21
|
+
echo "Verifying the version matches the gem version"
|
22
|
+
VERSION_TAG=$(echo $GITHUB_REF | cut -d / -f 3)
|
23
|
+
GEM_VERSION=$(ruby -e "require 'rubygems'; gemspec = Dir.entries('.').find { |file| file =~ /.*\.gemspec/ }; spec = Gem::Specification::load(gemspec); puts spec.version")
|
24
|
+
if [[ $VERSION_TAG != "v$GEM_VERSION" ]]; then
|
25
|
+
echo "Version tag does not match gem version"
|
26
|
+
exit 2;
|
27
|
+
fi
|
28
|
+
|
29
|
+
- name: Publish to RubyGems
|
30
|
+
run: |
|
31
|
+
mkdir -p $HOME/.gem
|
32
|
+
touch $HOME/.gem/credentials
|
33
|
+
chmod 0600 $HOME/.gem/credentials
|
34
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
35
|
+
gem build *.gemspec
|
36
|
+
gem push *.gem
|
37
|
+
env:
|
38
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -24,10 +24,7 @@ jobs:
|
|
24
24
|
steps:
|
25
25
|
- uses: actions/checkout@v2
|
26
26
|
- name: Set up Ruby
|
27
|
-
|
28
|
-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
29
|
-
# uses: ruby/setup-ruby@v1
|
30
|
-
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
27
|
+
uses: ruby/setup-ruby@v1
|
31
28
|
with:
|
32
29
|
ruby-version: ${{ matrix.ruby-version }}
|
33
30
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-decorate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Brook
|
@@ -79,7 +79,8 @@ executables: []
|
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
|
-
- ".github/workflows/
|
82
|
+
- ".github/workflows/gem-push-on-release.yml"
|
83
|
+
- ".github/workflows/rspec.yml"
|
83
84
|
- ".gitignore"
|
84
85
|
- Gemfile
|
85
86
|
- LICENSE.txt
|
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
118
|
requirements: []
|
118
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.0.3
|
119
120
|
signing_key:
|
120
121
|
specification_version: 4
|
121
122
|
summary: A decorator integration for the GraphQL gem
|