jekyll-google_search_console_verification_file 0.1.0 → 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: 2a6ca17ec0bd69f37d9d9e92f524f679724d6a67ded417aafab55508b3a9fe1f
4
- data.tar.gz: 7df68efc8d1976dd260bca2ad95afd42d673cafacb541dbbe8ea62b8b854389b
3
+ metadata.gz: 947a05c9c35c2b17d3768c5815626486ef19fb9ee51c0fdfc08fb984c5df929e
4
+ data.tar.gz: 4ca77065e760288b68a3d61a5918c75ff486432c5a65cb91d0d2654f09c51221
5
5
  SHA512:
6
- metadata.gz: 23c8646764aa5a745488b879bde235ecaae2294d6d074e06d1a7ee140e1a507455e7b371ad4d7808fc506657b34c91c3eaac261f9aeb324aadc156f3b472ec95
7
- data.tar.gz: 647cc1e5df74cda1e2b3ba90e6bdff7d93d437875c947ea676c8e7cc31cb8afe6c5692016ae6d8e205041466dc5c44013049d9d492b476e695e94920e35c7892
6
+ metadata.gz: 3faf99ebb5a4d4f34df4f06e8cec4acd11e5517863e2a647c9156a7e5c697e7d010f49297336e88e10774bab9f316f250e316e8eb7682d737c1320f742f2f383
7
+ data.tar.gz: 56d951284941a8881ec4bd59615cd5489b45ea711c757fa6573373a83e784759f6c5fb49cb4438c250696476a502e2eb3e97737a338d409eec0dafcdb353e390
data/.codeclimate.yml CHANGED
@@ -5,6 +5,7 @@ version: "2"
5
5
  plugins:
6
6
  rubocop:
7
7
  enabled: true
8
+ channel: rubocop-1-18-3
8
9
  fixme:
9
10
  enabled: true
10
11
  eslint:
@@ -14,10 +15,8 @@ plugins:
14
15
  config:
15
16
  languages:
16
17
  - ruby
17
- - javascript
18
18
  ratings:
19
19
  paths:
20
20
  - "**.rb"
21
- - "**.js"
22
21
  exclude_paths:
23
22
  - script/
@@ -1,4 +1,6 @@
1
1
  # Reference: https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2
+ # Validation: https://dependabot.com/docs/config-file/validator/
3
+
2
4
  version: 2
3
5
  updates:
4
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
@@ -5,6 +5,10 @@ require:
5
5
  - rubocop-rake
6
6
  - rubocop-rspec
7
7
 
8
+ inherit_mode:
9
+ merge:
10
+ - Exclude # Merge my AllCops.Excllude with default exludes from https://github.com/rubocop/rubocop/blob/master/config/default.yml
11
+
8
12
  AllCops:
9
13
  TargetRubyVersion: 3.0
10
14
  Include:
@@ -17,6 +21,8 @@ AllCops:
17
21
 
18
22
  Gemspec/DateAssignment:
19
23
  Enabled: true
24
+ Gemspec/RequireMFA:
25
+ Enabled: true
20
26
 
21
27
  Layout/LineEndStringConcatenationIndentation:
22
28
  Enabled: true
@@ -63,6 +69,16 @@ Lint/UnreachableCode:
63
69
  Severity: error
64
70
  Lint/UselessAccessModifier:
65
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
66
82
 
67
83
  Metrics/BlockLength:
68
84
  Enabled: true
@@ -74,6 +90,11 @@ Naming/FileName:
74
90
  - lib/jekyll-google_search_console_verification_file.rb
75
91
  Naming/InclusiveLanguage:
76
92
  Enabled: true
93
+ Naming/BlockForwarding:
94
+ Enabled: true
95
+
96
+ Security/IoMethods:
97
+ Enabled: true
77
98
 
78
99
  Style/ArgumentsForwarding:
79
100
  Enabled: true
@@ -111,6 +132,22 @@ Style/StringLiteralsInInterpolation:
111
132
  EnforcedStyle: double_quotes
112
133
  Style/SwapValues:
113
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
114
151
 
115
152
 
116
153
  # Reference: https://github.com/rubocop/rubocop-rake/blob/master/config/default.yml
@@ -131,3 +168,9 @@ RSpec/Rails/AvoidSetupHook:
131
168
  Enabled: false
132
169
  RSpec/BeforeAfterAll:
133
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,2 +1,26 @@
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
+
14
+ ## [1.0.1] - 2021-08-18
15
+ ### Fixed
16
+ - Fix gemspec dependency range stynax.
17
+
18
+ ## [1.0.0] - 2021-07-04
19
+ - No changes from `v0.2.0` but just bumping to final first major release version!
20
+
21
+ ## [0.2.0] - 2021-07-04
22
+ ### Added
23
+ - Using the `gem-release` gem extension to make release process easier.
24
+
1
25
  ## [0.1.0] - 2021-07-04
2
26
  - First release version. The plugin is fully working but I suspect that there might be a few point releases just to nail the release process. Once this is working, there will soon be an 1.0.0 release!
data/Gemfile CHANGED
@@ -12,9 +12,11 @@ gemspec
12
12
  # Reference: https://github.com/rubygems/bundler/pull/7222
13
13
  # However there's an argument for using gemspec too: https://bundler.io/guides/creating_gem.html#testing-our-gem
14
14
  group :development, :test do
15
+ gem "appraisal", "~> 2.4", require: false
16
+ gem "gem-release", "~> 2.0", require: false
15
17
  gem "rake", "~> 13.0", require: false
18
+ gem "solargraph", require: false
16
19
  gem "travis", "~> 1.0", require: false
17
- gem "appraisal", "~> 2.4", require: false
18
20
  end
19
21
 
20
22
  group :test do
data/OSSMETADATA ADDED
@@ -0,0 +1 @@
1
+ osslifecycle=active
data/README.md CHANGED
@@ -1,12 +1,20 @@
1
- # Jekyll Google Search Console Verification File Generator Plugin - UNRELEASED
2
- [![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)
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
+ [![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
+ [![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://app.travis-ci.com/github/erikw/jekyll-google_search_console_verification_file)
3
5
  [![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/59050f3f66ed1f1ee32e/maintainability)](https://codeclimate.com/github/erikw/jekyll-google_search_console_verification_file/maintainability)
4
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)
5
11
 
6
12
 
7
13
 
14
+ :point_right: **Live demo**: https://erikw.github.io/jekyll-google_search_console_verification_file/
8
15
 
9
- 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/googlef47733b3288357e4.html).
16
+
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).
10
18
 
11
19
  ## Why?
12
20
  Why use this plugin?
@@ -50,7 +58,7 @@ Note that if you do place a verification file in the root of the source tree, th
50
58
  verification_file_code: 47733b3288357e4
51
59
  ```
52
60
  1. Now just build your site and verify that the verification file now exist!
53
- ```bash
61
+ ```console
54
62
  $ bundle exec jekyll build
55
63
  $ ls _site/ | grep "google.*\.html"
56
64
  google47733b3288357e4.html
@@ -84,7 +92,10 @@ Following the setup at [how-to-specify-local-ruby-gems-in-your-gemfile](https://
84
92
  - Optionally restore the original gem include in `Gemfile` or keep building from a branch in the github repo.
85
93
 
86
94
  ## Releasing
87
- ## Using gem bundler/gem_tasks
95
+ Instructions for releasing on rubygems.org below. Optionally make a GitHub [release](https://github.com/erikw/jekyll-google_search_console_verification_file/releases) after this for the pushed git tag.
96
+
97
+ ## Using bundler/gem_tasks rake tasks
98
+ Following instructions from [bundler.io](https://bundler.io/guides/creating_gem.html#releasing-the-gem):
88
99
  ```console
89
100
  $ vi -p lib/jekyll-google_search_console_verification_file/version.rb CHANGELOG.md
90
101
  $ bundle exec rake build
@@ -96,6 +107,14 @@ $ gem install pkg/jekyll-google_search_console_verification_file-$ver.gem
96
107
  $ bundle exec rake release
97
108
  ```
98
109
 
110
+ ## Using gem-release gem extension
111
+ Using [gem-release](https://github.com/svenfuchs/gem-release):
112
+ ```console
113
+ $ vi CHANGELOG.md && git add CHANGELOG.md && git commit -m "Update CHANGELOG.md" && git push
114
+ $ gem bump --version minor --tag --sign --push --release
115
+ ```
116
+ For `--version`, use `major|minor|patch` as needed.
117
+
99
118
  ## Multi-versions
100
119
  * For ruby, just use RVM to switch between supported ruby version specified in `.gemspec`.
101
120
  * To run with different jekyll versions, [Appraisal](https://github.com/thoughtbot/appraisal) is used with [`Appraisals`](Appraisals) to generate different [`gemfiles/`](gemfiles/)
@@ -142,3 +161,6 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/erikw/
142
161
 
143
162
  # License
144
163
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
164
+
165
+ # More Jekyll
166
+ Check out my other Jekyll repositories [here](https://github.com/erikw?tab=repositories&q=jekyll-&type=&language=&sort=).
@@ -9,14 +9,14 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["erik.westrup@gmail.com"]
10
10
 
11
11
  spec.summary = "Generate a Google Search Console verification file from your _config.yml e.g. google47733b3288357e4.html to the root of your Jekyll site."
12
- spec.description = "This is a very simple plugin that will generate a Google Search Console (GSC from here) verification file 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 https://erikw.me/googlef47733b3288357e4.html."
13
- spec.homepage = "https://github.com/erikw/jekyll-google_search_console_verification_file/tree/dev"
12
+ spec.description = "This is a very simple plugin that will generate a Google Search Console (GSC from here) verification file 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 https://erikw.me/google47733b3288357e4.html."
13
+ spec.homepage = "https://github.com/erikw/jekyll-google_search_console_verification_file/"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.7", "< 4"
15
+ spec.required_ruby_version = [">= 2.7", "< 4"]
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/erikw/jekyll-google_search_console_verification_file/tree/dev"
19
- spec.metadata["changelog_uri"] = "https://github.com/erikw/jekyll-google_search_console_verification_file/blob/dev/CHANGELOG.md"
18
+ spec.metadata["source_code_uri"] = "https://github.com/erikw/jekyll-google_search_console_verification_file/"
19
+ spec.metadata["changelog_uri"] = "https://github.com/erikw/jekyll-google_search_console_verification_file/blob/main/CHANGELOG.md"
20
20
 
21
21
  # Specify which files should be added to the gem when it is released.
22
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_dependency "jekyll", ">= 3.7", "< 5.0"
30
+ spec.add_dependency "jekyll", [">= 3.7", "< 5.0"]
31
31
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module GoogleSearchConsoleVerificationFile
5
- VERSION = "0.1.0"
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: 0.1.0
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-07-04 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
@@ -33,7 +33,7 @@ dependencies:
33
33
  description: This is a very simple plugin that will generate a Google Search Console
34
34
  (GSC from here) verification file to your _site/ directory in a Jekyll project.
35
35
  This file is used by GSC to verify that you own the site and looks for example like
36
- https://erikw.me/googlef47733b3288357e4.html.
36
+ https://erikw.me/google47733b3288357e4.html.
37
37
  email:
38
38
  - erik.westrup@gmail.com
39
39
  executables: []
@@ -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
@@ -71,13 +74,13 @@ files:
71
74
  - script/lint
72
75
  - script/setup
73
76
  - script/test
74
- homepage: https://github.com/erikw/jekyll-google_search_console_verification_file/tree/dev
77
+ homepage: https://github.com/erikw/jekyll-google_search_console_verification_file/
75
78
  licenses:
76
79
  - MIT
77
80
  metadata:
78
- homepage_uri: https://github.com/erikw/jekyll-google_search_console_verification_file/tree/dev
79
- source_code_uri: https://github.com/erikw/jekyll-google_search_console_verification_file/tree/dev
80
- changelog_uri: https://github.com/erikw/jekyll-google_search_console_verification_file/blob/dev/CHANGELOG.md
81
+ homepage_uri: https://github.com/erikw/jekyll-google_search_console_verification_file/
82
+ source_code_uri: https://github.com/erikw/jekyll-google_search_console_verification_file/
83
+ changelog_uri: https://github.com/erikw/jekyll-google_search_console_verification_file/blob/main/CHANGELOG.md
81
84
  post_install_message:
82
85
  rdoc_options: []
83
86
  require_paths:
@@ -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