jekyll-indico 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -2
- data/lib/jekyll-indico/generator.rb +3 -2
- data/lib/jekyll-indico/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f3a7088e3b7081c49c46f538daeda9508eebdf9
|
4
|
+
data.tar.gz: 1a7c3de25e8ec40d3cc872133dbdf53bb3e96cf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe2cc076a05b4648d61b63fa768c2a94ce6531188a82fa678b8bf0f0a918d24726183051ea1e11fbc000e25581fb00469f207181c427cd76f581bece516aee50
|
7
|
+
data.tar.gz: 7a4d272f85799ee69771612522b889a304ee951199a0147da8c839ad37116ad6c28047da4fe13953ae0d31b600f1b39363d8ac916967658b93b70b7f4e97ae71
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,6 +13,7 @@ Your `_config.yaml` file should contain the categories you want to download:
|
|
13
13
|
indico:
|
14
14
|
url: https://indico.cern.ch # Indico instance to use (REQUIRED)
|
15
15
|
data: indico # Optional, folder name in _data to use
|
16
|
+
cache-command: bundle exec rake cache # Optional, user msg if you support it
|
16
17
|
ids:
|
17
18
|
topical: 10570
|
18
19
|
blueprint: 11329
|
@@ -75,10 +76,11 @@ bundle install --path vendor/bundle
|
|
75
76
|
bundle exec rake
|
76
77
|
```
|
77
78
|
|
78
|
-
To release, make sure the version is new
|
79
|
+
To release, make sure the version in `lib/jekyll-indico/version.rb` is new and
|
80
|
+
you have updated your lock file with `bundle instal` then:
|
79
81
|
|
80
82
|
```bash
|
81
|
-
bundle exec rake
|
83
|
+
bundle exec rake release
|
82
84
|
```
|
83
85
|
|
84
86
|
This tags, pushes the tag, and publishes.
|
@@ -12,6 +12,7 @@ module JekyllIndico
|
|
12
12
|
# Main entry point for Jekyll
|
13
13
|
def generate(site)
|
14
14
|
@site = site
|
15
|
+
@cache_msg = @site.config.dig('indico', 'cache-command')
|
15
16
|
|
16
17
|
meeting_ids = Meetings.meeting_ids(@site.config)
|
17
18
|
meeting_ids.each do |name, number|
|
@@ -30,8 +31,8 @@ module JekyllIndico
|
|
30
31
|
# Do nothing if already downloaded
|
31
32
|
return if @site.data[data_path].key? name
|
32
33
|
|
33
|
-
|
34
|
-
|
34
|
+
msg = @cache_msg ? " - run `#{@cache_msg}` to cache" : ''
|
35
|
+
puts "Accessing Indico meeting API for #{name}:#{number}#{msg}"
|
35
36
|
iris_meeting = Meetings.new(base_url, number)
|
36
37
|
@site.data[data_path][name] = iris_meeting.dict
|
37
38
|
end
|