jekyll-google_search_console_verification_file 1.0.1 → 1.1.0

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: bf327c8f9a6b4b1d211c14f8db2aa48af23c6c1bdbbabab4a66a9e7bb36227ff
4
- data.tar.gz: 7d489613d1476185481149da3b46a8f3a374b46419c3d7e662eb229347552db0
3
+ metadata.gz: 947a05c9c35c2b17d3768c5815626486ef19fb9ee51c0fdfc08fb984c5df929e
4
+ data.tar.gz: 4ca77065e760288b68a3d61a5918c75ff486432c5a65cb91d0d2654f09c51221
5
5
  SHA512:
6
- metadata.gz: 227e8df2496e287e49e27be79606d2f7e48167a75cf2b73d965994c91d88bcae5619e1713832223796e3d313e491dddc92ee937dcc659b118e74e6cac4d44d35
7
- data.tar.gz: 359491da6c149dd6c464f5db3d75aa4b5e55a828623f3fccd57fe1d741ac1ff6228349dde67460379025741005e96470db266530c51e7455e9f096d02ff502a7
6
+ metadata.gz: 3faf99ebb5a4d4f34df4f06e8cec4acd11e5517863e2a647c9156a7e5c697e7d010f49297336e88e10774bab9f316f250e316e8eb7682d737c1320f742f2f383
7
+ data.tar.gz: 56d951284941a8881ec4bd59615cd5489b45ea711c757fa6573373a83e784759f6c5fb49cb4438c250696476a502e2eb3e97737a338d409eec0dafcdb353e390
data/.codeclimate.yml CHANGED
@@ -15,10 +15,8 @@ plugins:
15
15
  config:
16
16
  languages:
17
17
  - ruby
18
- - javascript
19
18
  ratings:
20
19
  paths:
21
20
  - "**.rb"
22
- - "**.js"
23
21
  exclude_paths:
24
22
  - script/
@@ -1,5 +1,6 @@
1
1
  # Reference: https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2
2
  # Validation: https://dependabot.com/docs/config-file/validator/
3
+
3
4
  version: 2
4
5
  updates:
5
6
  - package-ecosystem: "bundler"
@@ -0,0 +1,30 @@
1
+ name: Continuous Deployment # Well, semi-continuous
2
+
3
+ on:
4
+ push:
5
+ tags: v[0-9]+.[0-9]+.[0-9]+
6
+ env:
7
+ RUBY_VER: 3.0.1
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Set up Ruby
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ env.RUBY_VER }}
17
+ bundler-cache: true
18
+ - name: Run CI Build with Rake
19
+ run: bundle exec rake
20
+ release-github:
21
+ needs: [test]
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v2
25
+ - name: Build and publish gem to GitHub Packages
26
+ if: contains(github.ref, 'refs/tags/v')
27
+ uses: jstastny/publish-gem-to-github@master
28
+ with:
29
+ token: ${{ github.token }}
30
+ owner: ${{ github.repository_owner }}
@@ -0,0 +1,37 @@
1
+ name: "CodeQL"
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ # The branches below must be a subset of the branches above
8
+ branches: [ main ]
9
+ schedule:
10
+ - cron: '41 19 1 * *'
11
+
12
+ jobs:
13
+ analyze:
14
+ name: Analyze
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ actions: read
18
+ contents: read
19
+ security-events: write
20
+
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ language: [ 'ruby' ]
25
+
26
+ steps:
27
+ - name: Checkout repository
28
+ uses: actions/checkout@v2
29
+
30
+ # Initializes the CodeQL tools for scanning.
31
+ - name: Initialize CodeQL
32
+ uses: github/codeql-action/init@v1
33
+ with:
34
+ languages: ${{ matrix.language }}
35
+
36
+ - name: Perform CodeQL Analysis
37
+ uses: github/codeql-action/analyze@v1
data/.gitignore CHANGED
@@ -8,7 +8,7 @@ gemfiles/Gemfile*.lock
8
8
  # Bundle local config
9
9
  .bundle/
10
10
 
11
- # Package gem from ($rake install)
11
+ # Package gem from $(rake install)
12
12
  pkg/
13
13
 
14
14
  # simplecov
@@ -19,3 +19,6 @@ coverage/
19
19
  .rspec_status
20
20
  spec/dest/
21
21
  spec/reports/
22
+
23
+ # Jekyll - when switching from gh-pages-source branch
24
+ _site/
data/.rubocop.yml CHANGED
@@ -21,6 +21,8 @@ AllCops:
21
21
 
22
22
  Gemspec/DateAssignment:
23
23
  Enabled: true
24
+ Gemspec/RequireMFA:
25
+ Enabled: true
24
26
 
25
27
  Layout/LineEndStringConcatenationIndentation:
26
28
  Enabled: true
@@ -67,6 +69,16 @@ Lint/UnreachableCode:
67
69
  Severity: error
68
70
  Lint/UselessAccessModifier:
69
71
  Enabled: false
72
+ Lint/AmbiguousOperatorPrecedence:
73
+ Enabled: true
74
+ Lint/AmbiguousRange:
75
+ Enabled: true
76
+ Lint/IncompatibleIoSelectWithFiberScheduler:
77
+ Enabled: true
78
+ Lint/RequireRelativeSelfPath:
79
+ Enabled: true
80
+ Lint/UselessRuby2Keywords:
81
+ Enabled: true
70
82
 
71
83
  Metrics/BlockLength:
72
84
  Enabled: true
@@ -78,6 +90,11 @@ Naming/FileName:
78
90
  - lib/jekyll-google_search_console_verification_file.rb
79
91
  Naming/InclusiveLanguage:
80
92
  Enabled: true
93
+ Naming/BlockForwarding:
94
+ Enabled: true
95
+
96
+ Security/IoMethods:
97
+ Enabled: true
81
98
 
82
99
  Style/ArgumentsForwarding:
83
100
  Enabled: true
@@ -115,6 +132,22 @@ Style/StringLiteralsInInterpolation:
115
132
  EnforcedStyle: double_quotes
116
133
  Style/SwapValues:
117
134
  Enabled: true
135
+ Style/FileRead:
136
+ Enabled: true
137
+ Style/FileWrite:
138
+ Enabled: true
139
+ Style/MapToHash:
140
+ Enabled: true
141
+ Style/NumberedParameters:
142
+ Enabled: true
143
+ Style/NumberedParametersLimit:
144
+ Enabled: true
145
+ Style/OpenStructUse:
146
+ Enabled: true
147
+ Style/RedundantSelfAssignmentBranch:
148
+ Enabled: true
149
+ Style/SelectByRegexp:
150
+ Enabled: true
118
151
 
119
152
 
120
153
  # Reference: https://github.com/rubocop/rubocop-rake/blob/master/config/default.yml
@@ -135,3 +168,9 @@ RSpec/Rails/AvoidSetupHook:
135
168
  Enabled: false
136
169
  RSpec/BeforeAfterAll:
137
170
  Enabled: false
171
+ RSpec/ExcessiveDocstringSpacing:
172
+ Enabled: true
173
+ RSpec/SubjectDeclaration:
174
+ Enabled: true
175
+ RSpec/FactoryBot/SyntaxMethods:
176
+ Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.1
1
+ 3.1.0
data/.simplecov CHANGED
@@ -1,6 +1,7 @@
1
1
  # vi: ft=ruby
2
2
 
3
3
  SimpleCov.start do
4
- enable_coverage :branch # Add branch coverage statistics.
5
- minimum_coverage 90 # Minimum coverage percentage.
4
+ enable_coverage :branch # Add branch coverage statistics.
5
+ minimum_coverage 90 # Minimum coverage percentage.
6
+ command_name "test:bdd" # Must be set for codeclimat reporter
6
7
  end
data/.travis.yml CHANGED
@@ -11,6 +11,7 @@ env:
11
11
  global:
12
12
  - CC_TEST_REPORTER_ID=9a84a9f695de3b120b6fcead4e089b45420f7518fb2123dc5424f862d381c4ff
13
13
  language: ruby
14
+ dist: focal # TODO Remove this when solved: https://github.com/rvm/rvm/issues/5133
14
15
  # Buid matrix (rvm x gemfile = 2x2) with one version from each supported major version in range defined in .gemspec for
15
16
  rvm:
16
17
  - 2.7.0
data/CHANGELOG.md CHANGED
@@ -1,10 +1,25 @@
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](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+
10
+ ### Changed
11
+ - Updated format of this file
12
+ - Bump ruby to 3.0.2 from 3.0.1
13
+
1
14
  ## [1.0.1] - 2021-08-18
2
- - Fix gemspec dependency range stynax
15
+ ### Fixed
16
+ - Fix gemspec dependency range stynax.
3
17
 
4
18
  ## [1.0.0] - 2021-07-04
5
19
  - No changes from `v0.2.0` but just bumping to final first major release version!
6
20
 
7
21
  ## [0.2.0] - 2021-07-04
22
+ ### Added
8
23
  - Using the `gem-release` gem extension to make release process easier.
9
24
 
10
25
  ## [0.1.0] - 2021-07-04
data/OSSMETADATA ADDED
@@ -0,0 +1 @@
1
+ osslifecycle=active
data/README.md CHANGED
@@ -1,12 +1,18 @@
1
- # Jekyll Google Search Console Verification File Generator Plugin
1
+ # Jekyll Google Search Console Verification File Generator Plugin [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Generate%20a%20Google%20Search%20Console%20verification%20file%20for%20your%20Jekyll%20site%20with%20this%20plugin&url=https://github.com/erikw/jekyll-google_search_console_verification_file&via=erik_westrup&hashtags=jekyll,plugin)
2
2
  [![Gem Version](https://badge.fury.io/rb/jekyll-google_search_console_verification_file.svg)](https://badge.fury.io/rb/jekyll-google_search_console_verification_file)
3
3
  [![Gem Downloads](https://ruby-gem-downloads-badge.herokuapp.com/jekyll-google_search_console_verification_file?color=brightgreen&type=total&label=gem%20downloads)](https://rubygems.org/gems/jekyll-google_search_console_verification_file)
4
- [![Travis Build Status](https://img.shields.io/travis/erikw/jekyll-google_search_console_verification_file/main?logo=travis)](https://travis-ci.com/erikw/jekyll-google_search_console_verification_file)
4
+ [![Travis Build Status](https://img.shields.io/travis/erikw/jekyll-google_search_console_verification_file/main?logo=travis)](https://app.travis-ci.com/github/erikw/jekyll-google_search_console_verification_file)
5
5
  [![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/59050f3f66ed1f1ee32e/maintainability)](https://codeclimate.com/github/erikw/jekyll-google_search_console_verification_file/maintainability)
6
6
  [![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/59050f3f66ed1f1ee32e/test_coverage)](https://codeclimate.com/github/erikw/jekyll-google_search_console_verification_file/test_coverage)
7
+ [![CodeQL](https://github.com/erikw/jekyll-google_search_console_verification_file/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/erikw/jekyll-google_search_console_verification_file/actions/workflows/codeql-analysis.yml)
8
+ [![SLOC](https://img.shields.io/tokei/lines/github/erikw/jekyll-google_search_console_verification_file)](#)
9
+ [![License](https://img.shields.io/github/license/erikw/jekyll-google_search_console_verification_file)](LICENSE.txt)
10
+ [![OSS Lifecycle](https://img.shields.io/osslifecycle/erikw/jekyll-google_search_console_verification_file)](https://github.com/Netflix/osstracker)
7
11
 
8
12
 
9
13
 
14
+ :point_right: **Live demo**: https://erikw.github.io/jekyll-google_search_console_verification_file/
15
+
10
16
 
11
17
  This is a very simple plugin that will generate a Google Search Console (GSC from here) [verification file](https://support.google.com/webmasters/answer/9008080?hl=en) to your `_site/` directory in a Jekyll project. This file is used by GSC to verify that you own the site and looks for example like my [googlef47733b3288357e4.html](https://erikw.me/google47733b3288357e4.html).
12
18
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module GoogleSearchConsoleVerificationFile
5
- VERSION = "1.0.1"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-google_search_console_verification_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Westrup
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -44,6 +44,8 @@ files:
44
44
  - ".codeclimate.yml"
45
45
  - ".editorconfig"
46
46
  - ".github/dependabot.yml"
47
+ - ".github/workflows/cd.yml"
48
+ - ".github/workflows/codeql-analysis.yml"
47
49
  - ".gitignore"
48
50
  - ".rspec"
49
51
  - ".rubocop.yml"
@@ -55,6 +57,7 @@ files:
55
57
  - CONTRIBUTING.md
56
58
  - Gemfile
57
59
  - LICENSE.txt
60
+ - OSSMETADATA
58
61
  - README.md
59
62
  - Rakefile
60
63
  - SECURITY.md
@@ -96,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
99
  - !ruby/object:Gem::Version
97
100
  version: '0'
98
101
  requirements: []
99
- rubygems_version: 3.2.15
102
+ rubygems_version: 3.3.3
100
103
  signing_key:
101
104
  specification_version: 4
102
105
  summary: Generate a Google Search Console verification file from your _config.yml