jekyll-indico 0.6.0 → 0.6.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: d07e0cc35ca21aab0d8b934a3e4dbc4ce9754f9b381e018a9030ec74c09291db
4
- data.tar.gz: ceb2b86e65b6d40da965925abd98ab1b07830e255daf67ef2dce019d9da1e0c6
3
+ metadata.gz: 772fa536fed11533f53b2d2e643a4ffd3c9443d93bf6a546185aa9c5d70a0f5a
4
+ data.tar.gz: f4558987c3f3d9a2c62c13bec9617088318b63ec3667ab8b3aa24a085a7ca429
5
5
  SHA512:
6
- metadata.gz: f0c639bf38480127762ab82011e4953a57b8f11f4e16bb484750690eabeef6ce2fb3f5a109f64336938555c8e1db059eac09d6881ccfdb4810fedd411b565038
7
- data.tar.gz: 4fc89a0896dfdf28f3719e5ea7775a1080912fd221361600da28531175ce570885b060c1542ffb979af03ad0360f68807ff643d7fc17634df23baa3f434d03d4
6
+ metadata.gz: 3973f9788e6afc35aaf231fec4c3b813d6f37f010e20ade8fa0c739f02b3caa7658ba5bc1bcda2856e5376bbe404c03b9ae1c6695b3978e0ac1950905eefcdf6
7
+ data.tar.gz: '042863f213053df58b317bea185d459493d3a9ae56553cd61ccf8bdcb78b1530af50af4f752df5ff4752f2dc551a3c7a7ad97ced47aecdadf86918a228eb85d3'
@@ -7,15 +7,24 @@ on:
7
7
  branches:
8
8
  - main
9
9
 
10
+ concurrency:
11
+ group: test-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
10
14
  jobs:
11
15
  test:
12
16
  runs-on: ubuntu-latest
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ ruby: [2.6, 3.1]
13
21
 
14
22
  steps:
15
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v3
16
24
 
17
25
  - uses: ruby/setup-ruby@v1
18
26
  with:
27
+ ruby-version: ${{ matrix.ruby }}
19
28
  bundler-cache: true
20
29
 
21
30
  - name: Style checking
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v4.1.0
3
+ rev: v4.2.0
4
4
  hooks:
5
5
  - id: check-added-large-files
6
6
  - id: mixed-line-ending
@@ -11,7 +11,7 @@ repos:
11
11
  - id: check-yaml
12
12
 
13
13
  - repo: https://github.com/Lucas-C/pre-commit-hooks
14
- rev: v1.1.11
14
+ rev: v1.1.13
15
15
  hooks:
16
16
  - id: remove-crlf
17
17
  - id: forbid-tabs
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.10
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-indico (0.6.0)
4
+ jekyll-indico (0.6.1)
5
5
  jekyll (>= 3.8, < 5.0)
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
12
  ast (2.4.2)
13
13
  colorator (1.1.0)
14
- concurrent-ruby (1.1.9)
14
+ concurrent-ruby (1.1.10)
15
15
  diff-lcs (1.5.0)
16
16
  em-websocket (0.5.3)
17
17
  eventmachine (>= 0.12.9)
@@ -20,9 +20,9 @@ GEM
20
20
  ffi (1.15.5)
21
21
  forwardable-extended (2.6.0)
22
22
  http_parser.rb (0.8.0)
23
- i18n (1.9.1)
23
+ i18n (1.10.0)
24
24
  concurrent-ruby (~> 1.0)
25
- jekyll (4.2.1)
25
+ jekyll (4.2.2)
26
26
  addressable (~> 2.4)
27
27
  colorator (~> 1.0)
28
28
  em-websocket (~> 0.5)
@@ -37,11 +37,11 @@ GEM
37
37
  rouge (~> 3.0)
38
38
  safe_yaml (~> 1.0)
39
39
  terminal-table (~> 2.0)
40
- jekyll-sass-converter (2.1.0)
40
+ jekyll-sass-converter (2.2.0)
41
41
  sassc (> 2.0.1, < 3.0)
42
42
  jekyll-watch (2.2.1)
43
43
  listen (~> 3.0)
44
- kramdown (2.3.1)
44
+ kramdown (2.4.0)
45
45
  rexml
46
46
  kramdown-parser-gfm (1.1.0)
47
47
  kramdown (~> 2.0)
@@ -50,47 +50,47 @@ GEM
50
50
  rb-fsevent (~> 0.10, >= 0.10.3)
51
51
  rb-inotify (~> 0.9, >= 0.9.10)
52
52
  mercenary (0.4.0)
53
- parallel (1.21.0)
54
- parser (3.1.0.0)
53
+ parallel (1.22.1)
54
+ parser (3.1.2.0)
55
55
  ast (~> 2.4.1)
56
56
  pathutil (0.16.2)
57
57
  forwardable-extended (~> 2.6)
58
- public_suffix (4.0.6)
58
+ public_suffix (4.0.7)
59
59
  rainbow (3.1.1)
60
60
  rake (13.0.6)
61
61
  rb-fsevent (0.11.1)
62
62
  rb-inotify (0.10.1)
63
63
  ffi (~> 1.0)
64
- regexp_parser (2.2.0)
64
+ regexp_parser (2.3.1)
65
65
  rexml (3.2.5)
66
66
  rouge (3.28.0)
67
- rspec (3.10.0)
68
- rspec-core (~> 3.10.0)
69
- rspec-expectations (~> 3.10.0)
70
- rspec-mocks (~> 3.10.0)
71
- rspec-core (3.10.2)
72
- rspec-support (~> 3.10.0)
73
- rspec-expectations (3.10.2)
67
+ rspec (3.11.0)
68
+ rspec-core (~> 3.11.0)
69
+ rspec-expectations (~> 3.11.0)
70
+ rspec-mocks (~> 3.11.0)
71
+ rspec-core (3.11.0)
72
+ rspec-support (~> 3.11.0)
73
+ rspec-expectations (3.11.0)
74
74
  diff-lcs (>= 1.2.0, < 2.0)
75
- rspec-support (~> 3.10.0)
76
- rspec-mocks (3.10.3)
75
+ rspec-support (~> 3.11.0)
76
+ rspec-mocks (3.11.1)
77
77
  diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.10.0)
79
- rspec-support (3.10.3)
80
- rubocop (1.25.1)
78
+ rspec-support (~> 3.11.0)
79
+ rspec-support (3.11.0)
80
+ rubocop (1.28.2)
81
81
  parallel (~> 1.10)
82
82
  parser (>= 3.1.0.0)
83
83
  rainbow (>= 2.2.2, < 4.0)
84
84
  regexp_parser (>= 1.8, < 3.0)
85
85
  rexml
86
- rubocop-ast (>= 1.15.1, < 2.0)
86
+ rubocop-ast (>= 1.17.0, < 2.0)
87
87
  ruby-progressbar (~> 1.7)
88
88
  unicode-display_width (>= 1.4.0, < 3.0)
89
- rubocop-ast (1.15.1)
90
- parser (>= 3.0.1.1)
89
+ rubocop-ast (1.17.0)
90
+ parser (>= 3.1.1.0)
91
91
  rubocop-rake (0.6.0)
92
92
  rubocop (~> 1.0)
93
- rubocop-rspec (2.8.0)
93
+ rubocop-rspec (2.10.0)
94
94
  rubocop (~> 1.19)
95
95
  ruby-progressbar (1.11.0)
96
96
  safe_yaml (1.0.5)
@@ -101,7 +101,7 @@ GEM
101
101
  unicode-display_width (1.8.0)
102
102
 
103
103
  PLATFORMS
104
- x86_64-darwin-20
104
+ x86_64-darwin-21
105
105
  x86_64-linux
106
106
 
107
107
  DEPENDENCIES
@@ -114,4 +114,4 @@ DEPENDENCIES
114
114
  rubocop-rspec (~> 2.2)
115
115
 
116
116
  BUNDLED WITH
117
- 2.3.6
117
+ 2.3.13
@@ -18,10 +18,14 @@ end.parse!
18
18
  puts "Reading #{options[:config]}"
19
19
 
20
20
  config = YAML.safe_load(File.read(options[:config]))
21
- meeting_ids = JekyllIndico::Meetings.meeting_ids(config)
22
- base_url = JekyllIndico::Meetings.base_url(config)
21
+ meeting_ids = config.dig('indico', 'ids')
22
+ base_url = config.dig('indico', 'url')
23
23
  data_path = config.dig('indico', 'data') || 'indico'
24
24
 
25
+ raise MissingURL, 'indico: url: MISSING from your config!' unless base_url
26
+ raise MissingIDs, 'indico: ids: MISSING from your config!' unless meeting_ids
27
+ raise MissingIDs, 'indico: ids: must be a hash!' unless meeting_ids.is_a?(Hash)
28
+
25
29
  JekyllIndico.cache(base_url, meeting_ids, data_path) do |name, number|
26
30
  puts "Accessing #{number} for #{name}"
27
31
  end
@@ -71,8 +71,8 @@ module JekyllIndico
71
71
 
72
72
  req = Net::HTTP::Get.new(uri)
73
73
  if ENV['INDICO_TOKEN']
74
- req['Authorization'] = "Bearer #{ENV['INDICO_TOKEN']}"
75
- elsif ENV['INDICO_SECRET_KEY'] || ENV['INDICO_API_KEY']
74
+ req['Authorization'] = "Bearer #{ENV.fetch('INDICO_TOKEN', nil)}"
75
+ elsif ENV.fetch('INDICO_SECRET_KEY', nil) || ENV.fetch('INDICO_API_KEY', nil)
76
76
  raise Error, 'Use INDICO_TOKEN with a new-style token'
77
77
  end
78
78
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllIndico
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-indico
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Schreiner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-10 00:00:00.000000000 Z
11
+ date: 2022-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.0.3.1
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Read and/or cache indico meeting lists for Jekyll