openstax_kitchen 9.1.0 → 9.2.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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/kitchen/directions/bake_first_elements.rb +8 -0
- data/lib/kitchen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddd15ebcb9ead1f1e6301bfc025a93bb3ca7e75d2e412eae3a63d3496574eea5
|
|
4
|
+
data.tar.gz: 82af5aa1d8151438286f9e6cc21c052f5c7d1549b1966abaf3018f5578fb6f53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 268bf8bcf65bc1deb38d20e433b503e28eefc0048a5174bb7ea378354354f7c671e88b72378d03ad03ef077f2d15e5870c691bbdec358664e2f5c2c9344a9f33
|
|
7
|
+
data.tar.gz: ef6c551bb52f90e7bf3301b38879cf2262a62dcc4b91b87c02c4ec944e30f71542dac6b4b3b65763e027737a13fd7b7a77ca86b57366025109b4539eb989f9f4
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [9.2.0] - 2021-07-19
|
|
10
|
+
|
|
11
|
+
* Update `BakeFirstElements` to also add the `.has-first-inline-list` class (minor)
|
|
12
|
+
|
|
9
13
|
## [9.1.0] - 2021-07-16
|
|
10
14
|
|
|
11
15
|
* Add `BakeNoteIFrames` direction (minor)
|
data/Gemfile.lock
CHANGED
|
@@ -4,6 +4,7 @@ module Kitchen
|
|
|
4
4
|
module Directions
|
|
5
5
|
module BakeFirstElements
|
|
6
6
|
def self.v1(within:)
|
|
7
|
+
# add has-first-element class
|
|
7
8
|
selectors = [
|
|
8
9
|
'div.os-problem-container > div.os-table',
|
|
9
10
|
'div.os-problem-container > span[data-type="media"]',
|
|
@@ -16,6 +17,13 @@ module Kitchen
|
|
|
16
17
|
problem.parent.add_class('has-first-element')
|
|
17
18
|
end
|
|
18
19
|
end
|
|
20
|
+
|
|
21
|
+
# add first-inline-element class
|
|
22
|
+
inline_list = within&.first('div.os-solution-container > ol[type="1"]:first-child')
|
|
23
|
+
return unless inline_list
|
|
24
|
+
|
|
25
|
+
inline_list.add_class('first-inline-list-element')
|
|
26
|
+
inline_list.parent.add_class('has-first-inline-list-element')
|
|
19
27
|
end
|
|
20
28
|
end
|
|
21
29
|
end
|
data/lib/kitchen/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openstax_kitchen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.
|
|
4
|
+
version: 9.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JP Slavinsky
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-07-
|
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|