openstax_kitchen 8.0.0 → 8.0.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: 46fe1771e5853e9149dc1df841fafeaba3d3b157ab850d66f94745406867d901
4
- data.tar.gz: 1f97e7a288fb5a9c7c96c3f9352238736ac9854a8b0a06379328253f89e9552f
3
+ metadata.gz: 50c444687ca21462df4d8110fd8789f10ba40a439b5d037b3eba8d255b5e16fa
4
+ data.tar.gz: 353afbf616ae3f9794ee13594cf9baa244fbc1077e55c78c193aac1a89cefffd
5
5
  SHA512:
6
- metadata.gz: d5a8b103ba036bd0db84ad87857873ff3f6c048c03951e6e5543577330df875025a97338c62b96f6278ca751be81a04be3e95ef6468458fed086e3bdad7adcc3
7
- data.tar.gz: ff6c97185d2c264019fe041e17b83678c12f1f894bef9c0d11d01eab304b6a9c3200c2c9e03405267dc462a52775d78b44daa0050a9002ac1ea6bfef1998f111
6
+ metadata.gz: 0b52d4418f83bdacfac36d7d6c904500cd4bb965795f91e718c6588e0f27c72eb5b73d9b05db9f2bafa60711717c93888a0d09ced10c6986e7ec0a83d7283a31
7
+ data.tar.gz: 34ebd35add4868907853f3a3e4cc839f521352d3eadc763350487e5a7f372f947e6e837d0fea7ad198810d968c1e1bfc7a591f515b65218253c084db21b85a45
data/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
  ## [Unreleased]
8
8
 
9
9
 
10
+ ## [8.0.1] - 2021-06-29
11
+
12
+ * Added tags to classnames to optimize searches in `calculus strategy` for `move_solutions_to_answer_key` (minor)
13
+
10
14
  ## [8.0.0] - 2021-06-29
11
15
 
12
16
  * Sort terms in `BakeChapterGlossary` in language specific way (major)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openstax_kitchen (8.0.0)
4
+ openstax_kitchen (8.0.1)
5
5
  activesupport
6
6
  i18n
7
7
  nokogiri
@@ -4,11 +4,11 @@ module Kitchen::Directions::MoveSolutionsToAnswerKey
4
4
  module Strategies
5
5
  class Calculus
6
6
  def bake(chapter:, append_to:)
7
- checkpoint_solutions = chapter.search('.checkpoint [data-type="solution"]').cut
7
+ checkpoint_solutions = chapter.search('div.checkpoint div[data-type="solution"]').cut
8
8
  append_solution_area(I18n.t(:checkpoint), checkpoint_solutions, append_to)
9
9
 
10
- chapter.search('.section-exercises').each do |section|
11
- section_solutions = section.search('[data-type="solution"]').cut
10
+ chapter.search('section.section-exercises').each do |section|
11
+ section_solutions = section.search('div[data-type="solution"]').cut
12
12
  section_title = I18n.t(
13
13
  :section_exercises,
14
14
  number: "#{chapter.count_in(:book)}.#{section.count_in(:chapter)}"
@@ -16,8 +16,8 @@ module Kitchen::Directions::MoveSolutionsToAnswerKey
16
16
  append_solution_area(section_title, section_solutions, append_to)
17
17
  end
18
18
 
19
- chapter.search('.review-exercises').each do |section|
20
- section_solutions = section.search('[data-type="solution"]').cut
19
+ chapter.search('section.review-exercises').each do |section|
20
+ section_solutions = section.search('div[data-type="solution"]').cut
21
21
  append_solution_area(I18n.t(:review_exercises), section_solutions, append_to)
22
22
  end
23
23
  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 = '8.0.0'
6
+ VERSION = '8.0.1'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_kitchen
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky