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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df33d6b0ba524fe49e9e5310bcdb730406576a3b88f0462e2eedd932d08fc0cf
4
- data.tar.gz: 6a23406fdebb4676c22424d14ab805304789814e84302a685aa245e2bf87f846
3
+ metadata.gz: ddd15ebcb9ead1f1e6301bfc025a93bb3ca7e75d2e412eae3a63d3496574eea5
4
+ data.tar.gz: 82af5aa1d8151438286f9e6cc21c052f5c7d1549b1966abaf3018f5578fb6f53
5
5
  SHA512:
6
- metadata.gz: 3af05295d5045ec827b6e817443a4648591d138bc9d3cf697221187e26088badc6c76048f8b3902a167c073c1e9ee94b4c4f48934171428b649c879e23abd95f
7
- data.tar.gz: 35ce7b8d16222c5f338d2eb6e9749158980e075b2d09bfa82e034e74bcfad13b748b80bceb1941fc0a8b4d26cf834474a0e7699a7327b55c6e6e42bc1e122024
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openstax_kitchen (9.1.0)
4
+ openstax_kitchen (9.2.0)
5
5
  activesupport
6
6
  i18n
7
7
  nokogiri
@@ -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
@@ -3,5 +3,5 @@
3
3
  # A library for modifying the structure of OpenStax book XML.
4
4
  #
5
5
  module Kitchen
6
- VERSION = '9.1.0'
6
+ VERSION = '9.2.0'
7
7
  end
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.1.0
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-16 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport