geolexica-site 1.7.0 → 1.7.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: 155f4fb9860c56621bad3a761700bf2a9e4e57182dce5fe724ddf7ac9f6bd82c
4
- data.tar.gz: f4a4e6945bf5633c45c3836ea39ca630d00d9178b0349db6e4a3c462a1a0df87
3
+ metadata.gz: 15b495f9a0fb2000feaf13849e27cab781530adef34bec171f10c0db4f48b82e
4
+ data.tar.gz: 23df781a50acdddc241980d7ae0dc62693b83c3c63f354381af578f2b4c35095
5
5
  SHA512:
6
- metadata.gz: 78025de75ea5c5d1c239fe1aee06beb4232279b94d15e7be2b0b2588ae37d21e8848b688ef4508e24759f663908735dfaced792c0e3de9b0faaff2d166c34bc5
7
- data.tar.gz: 7b3c5228e9ab23b6acd75ffc5d9a608eb24c9600c2f53d5c94ca33363e701f78db0489522f8467bf836ed40bc855b437d1c2ae146d2cf75874d98be664e8e64c
6
+ metadata.gz: 027e284b33bf4724566523d24c815070fe59652ce216a92967dae9ea2fb951059458c1e334c39116e5c59bfd89bc12823ae05ecd55bfaad232d536f97eccd7a0
7
+ data.tar.gz: 0346a01f3f6def2a86dd5e57c13b702e9645a99395ea7f579304675a3c537ce6ed053817e0bcc759edca0fb046bf1e4126c0cfb36328e82aa8d719137d918db2
@@ -0,0 +1,21 @@
1
+ name: release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ next_version:
7
+ description: |
8
+ Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
9
+ required: true
10
+ default: 'skip'
11
+ push:
12
+ tags: [ v* ]
13
+
14
+ jobs:
15
+ release:
16
+ uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
17
+ with:
18
+ next_version: ${{ github.event.inputs.next_version }}
19
+ secrets:
20
+ rubygems-api-key: ${{ secrets.GEOLEXICA_RUBYGEMS_API_KEY }}
21
+
@@ -0,0 +1,27 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test-jekyll-geolexica:
10
+ name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
11
+ runs-on: ${{ matrix.os }}
12
+
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ ruby: [ "2.7", "3.0", "3.1" ]
17
+ os: [ ubuntu-latest, windows-latest, macos-latest ]
18
+
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+
22
+ - uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+
27
+ - run: bundle
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ronald.tse@ribose.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in geolexica-site.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/README.adoc CHANGED
@@ -3,7 +3,18 @@ image:https://img.shields.io/gem/v/geolexica-site?style=for-the-badge[
3
3
  Latest Version, link="https://rubygems.org/gems/geolexica-site"]
4
4
  endif::[]
5
5
 
6
- == Version policy for this gem
6
+ = Geolexica Site gem
7
+
8
+ == Purpose
9
+
10
+ The `geolexica-site` gem is used as a manifest to pull in all the necessary
11
+ gems for a Geolexica site and have them version bound, mainly:
12
+
13
+ * https://github.com/geolexica/geolexica-server[`geolexica-server`]
14
+ * https://github.com/geolexica/jekyll-geolexica[`jekyll-geolexica`]
15
+
16
+
17
+ == Version policy
7
18
 
8
19
  MAJOR version bump:: Jekyll version bump; upgrade must be conducted
9
20
  with care.
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "geolexica/site"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # (c) Copyright 2020 Ribose Inc.
2
4
  #
3
5
 
4
- require_relative "lib/geolexica-site/version.rb"
6
+ require_relative "lib/geolexica/site/version"
5
7
 
6
8
  all_files_in_git = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0") }
7
9
 
@@ -9,34 +11,36 @@ ribose_url = "https://open.ribose.com/"
9
11
  github_url = "https://github.com/geolexica/geolexica-site"
10
12
 
11
13
  Gem::Specification.new do |spec|
12
- spec.name = "geolexica-site"
13
- spec.version = GeolexicaSite::VERSION
14
- spec.authors = ["Ribose Inc."]
15
- spec.email = ["open.source@ribose.com"]
16
-
17
- spec.summary = "Geolexica sites generator based on Jekyll"
18
- spec.homepage = ribose_url
19
- spec.license = "MIT"
20
-
21
- spec.metadata = {
22
- "homepage_uri" => ribose_url,
23
- "source_code_uri" => github_url,
14
+ spec.name = "geolexica-site"
15
+ spec.version = Geolexica::Site::VERSION
16
+ spec.authors = ["Ribose Inc."]
17
+ spec.email = ["open.source@ribose.com"]
18
+
19
+ spec.summary = "Geolexica sites generator based on Jekyll"
20
+ spec.homepage = ribose_url
21
+ spec.license = "MIT"
22
+ spec.required_ruby_version = ">= 2.6.0"
23
+
24
+ spec.metadata = {
25
+ "homepage_uri" => ribose_url,
26
+ "source_code_uri" => github_url
24
27
  }
25
28
 
26
- spec.files = all_files_in_git
29
+ spec.files = all_files_in_git
27
30
 
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
33
 
31
34
  # Major dependencies.
35
+ spec.add_runtime_dependency "geolexica-server", "~> 0.0.0"
32
36
  spec.add_runtime_dependency "jekyll", "~> 4.2.0"
33
- spec.add_runtime_dependency "jekyll-geolexica", "~> 1.7.0"
37
+ spec.add_runtime_dependency "jekyll-geolexica", "~> 1.8.3"
34
38
 
35
39
  # Most useful Jekyll plugins.
36
40
  spec.add_runtime_dependency "jekyll-asciidoc", "~> 3.0.0"
37
- spec.add_runtime_dependency "jekyll-tidy-json", "~> 1.2.0"
38
41
  spec.add_runtime_dependency "jekyll-plugin-frontend-build", "~> 0.0.3"
39
42
  spec.add_runtime_dependency "jekyll-theme-isotc211-helpers", "~> 0.6.0"
43
+ spec.add_runtime_dependency "jekyll-tidy-json", "~> 1.2.0"
40
44
  spec.add_runtime_dependency "liquid-pry", "~> 1.0"
41
45
 
42
46
  # These are less important gems. Freezing them is probably a good idea.
@@ -46,8 +50,8 @@ Gem::Specification.new do |spec|
46
50
 
47
51
  # These gems are indirectly but widely used throughout the project,
48
52
  # therefore adding some version constraints is a good idea.
49
- spec.add_runtime_dependency "liquid", "~> 4.0.3"
50
53
  spec.add_runtime_dependency "asciidoctor", "~> 2.0"
54
+ spec.add_runtime_dependency "liquid", "~> 4.0.3"
51
55
 
52
56
  # Helpful on Windows
53
57
  spec.add_runtime_dependency "tzinfo", "~> 2.0"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Geolexica
4
+ module Site
5
+ VERSION = "1.7.4"
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "site/version"
4
+
5
+ module Geolexica
6
+ module Site
7
+ class Error < StandardError; end
8
+
9
+ # NOOP #
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ module Geolexica
2
+ module Site
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Geolexica::Site do
4
+ it "has a version number" do
5
+ expect(Geolexica::Site::VERSION).not_to be nil
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "geolexica/site"
4
+
5
+ RSpec.configure do |config|
6
+ # Enable flags like --only-failures and --next-failure
7
+ config.example_status_persistence_file_path = ".rspec_status"
8
+
9
+ # Disable RSpec exposing methods globally on `Module` and `main`
10
+ config.disable_monkey_patching!
11
+
12
+ config.expect_with :rspec do |c|
13
+ c.syntax = :expect
14
+ end
15
+ end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geolexica-site
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2022-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: geolexica-server
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: jekyll
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -30,14 +44,14 @@ dependencies:
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 1.7.0
47
+ version: 1.8.3
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 1.7.0
54
+ version: 1.8.3
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: jekyll-asciidoc
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -53,47 +67,47 @@ dependencies:
53
67
  - !ruby/object:Gem::Version
54
68
  version: 3.0.0
55
69
  - !ruby/object:Gem::Dependency
56
- name: jekyll-tidy-json
70
+ name: jekyll-plugin-frontend-build
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 1.2.0
75
+ version: 0.0.3
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: 1.2.0
82
+ version: 0.0.3
69
83
  - !ruby/object:Gem::Dependency
70
- name: jekyll-plugin-frontend-build
84
+ name: jekyll-theme-isotc211-helpers
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: 0.0.3
89
+ version: 0.6.0
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: 0.0.3
96
+ version: 0.6.0
83
97
  - !ruby/object:Gem::Dependency
84
- name: jekyll-theme-isotc211-helpers
98
+ name: jekyll-tidy-json
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: 0.6.0
103
+ version: 1.2.0
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: 0.6.0
110
+ version: 1.2.0
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: liquid-pry
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -151,33 +165,33 @@ dependencies:
151
165
  - !ruby/object:Gem::Version
152
166
  version: 1.4.0
153
167
  - !ruby/object:Gem::Dependency
154
- name: liquid
168
+ name: asciidoctor
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: 4.0.3
173
+ version: '2.0'
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: 4.0.3
180
+ version: '2.0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: asciidoctor
182
+ name: liquid
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: '2.0'
187
+ version: 4.0.3
174
188
  type: :runtime
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: '2.0'
194
+ version: 4.0.3
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: tzinfo
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -241,11 +255,24 @@ executables: []
241
255
  extensions: []
242
256
  extra_rdoc_files: []
243
257
  files:
258
+ - ".github/workflows/release.yml"
259
+ - ".github/workflows/test.yaml"
260
+ - ".gitignore"
261
+ - ".rspec"
262
+ - ".rubocop.yml"
263
+ - CODE_OF_CONDUCT.md
264
+ - Gemfile
244
265
  - LICENSE.txt
245
266
  - README.adoc
267
+ - Rakefile
268
+ - bin/console
269
+ - bin/setup
246
270
  - geolexica-site.gemspec
247
- - lib/geolexica-site.rb
248
- - lib/geolexica-site/version.rb
271
+ - lib/geolexica/site.rb
272
+ - lib/geolexica/site/version.rb
273
+ - sig/geolexica/site.rbs
274
+ - spec/geolexica/site_spec.rb
275
+ - spec/spec_helper.rb
249
276
  homepage: https://open.ribose.com/
250
277
  licenses:
251
278
  - MIT
@@ -260,14 +287,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
260
287
  requirements:
261
288
  - - ">="
262
289
  - !ruby/object:Gem::Version
263
- version: '0'
290
+ version: 2.6.0
264
291
  required_rubygems_version: !ruby/object:Gem::Requirement
265
292
  requirements:
266
293
  - - ">="
267
294
  - !ruby/object:Gem::Version
268
295
  version: '0'
269
296
  requirements: []
270
- rubygems_version: 3.1.4
297
+ rubygems_version: 3.3.26
271
298
  signing_key:
272
299
  specification_version: 4
273
300
  summary: Geolexica sites generator based on Jekyll
@@ -1,8 +0,0 @@
1
- # (c) Copyright 2020 Ribose Inc.
2
- #
3
-
4
- # frozen_string_literal: true
5
-
6
- module GeolexicaSite
7
- VERSION = "1.7.0"
8
- end
@@ -1 +0,0 @@
1
- # NOOP #