hub_kernel 0.28.0 → 0.29.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: 3502ce7bf5c817ad2af27af2dedf3089f9f5fba2238e1d833058eee55b652fda
4
- data.tar.gz: 465b5294ef3a4493dad58e8e7763fe2cfc64332830267d9c3382fc971c3ba747
3
+ metadata.gz: 0b75dd33da96e8bc1bd5161a74fc004c527892842f1cd118827353874fb7e0a4
4
+ data.tar.gz: 9f17abdb22deb70e29c7bc80642e4a264340220cbdbbec299ef2b4ba51fa3c1b
5
5
  SHA512:
6
- metadata.gz: d131c019e052d61f4648ae09274dcf4aae9709622f67f75718681438a839c7fe238fc90a77386e7d0f0376ceaa823687a7b751a145c580e3ebcbe5d57f1b6516
7
- data.tar.gz: ba18eeab7e2c11aeccbdd17736245c2e925d7699d2a56d685c26507dc8261a6f52123a2e6c92634aba41a6a17f9a4564a51793b206307aa7052295f7e85e915b
6
+ metadata.gz: eff51e2b76a8a5dd6c4c98e083c5b6090bea2318feb468d7c2e25ee8d625aec56eb55dba088e1f3f622f73f11a413e841661a2d2de09a6a6713a8e0b235b4371
7
+ data.tar.gz: fd005c78271dba55057cca73001445d614ba461c7ae0b1cc1b0fc26e60d26d7a1aab5b9e0a1ddef1bf14eba701f5264e7af7b993b7b2fdc2235889cde018aaf7
data/README.md CHANGED
@@ -371,7 +371,7 @@ end
371
371
  - By default the test reads every `.rb` and `.erb` file under `app/` and under each hub
372
372
  folder's `app/`, helpers and services included.
373
373
  - A constant inside another hub's class counts as naming that class.
374
- - In a `.rb` file, the text of a double-quoted string names no class, so a label such as
374
+ - In a `.rb` file or an `.erb` view, the text of a double-quoted string names no class, so a label such as
375
375
  `"Billing"` is not a crossing. Code interpolated into the string is still read.
376
376
  - A name no hub owns, such as a namespace, is not a crossing, and neither is a class on
377
377
  the `shared` list.
@@ -19,8 +19,7 @@ module HubKernel
19
19
 
20
20
  def in(path, source)
21
21
  hub = owner_of_file(path)
22
- code = path.end_with?(".rb") ? without_string_text(source) : source
23
- code.scan(/[A-Z]\w*(?:::[A-Z]\w*)*/).filter_map { |name| owned_class_in(name) }.uniq.select { |name| crossing?(name, hub) }
22
+ without_string_text(source).scan(/[A-Z]\w*(?:::[A-Z]\w*)*/).filter_map { |name| owned_class_in(name) }.uniq.select { |name| crossing?(name, hub) }
24
23
  end
25
24
 
26
25
  def read_folders(paths)
@@ -1,3 +1,3 @@
1
1
  module HubKernel
2
- VERSION = "0.28.0"
2
+ VERSION = "0.29.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hub_kernel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider