spoom 1.1.9 → 1.1.10

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: 54a219cd3c4f0e2ea998e4aa5a81a7556c9aed944fdfe38f6aff1267c421336e
4
- data.tar.gz: 10671ff002575fc844189cd4371c8f5c35960fc09c3335e7d3a9a234f89fd4ec
3
+ metadata.gz: bf4b48623b21fd35fca6bc9d67b7e4c147de6980ba4780d3bbb9880d1b781f4f
4
+ data.tar.gz: 33a0d165f33f09ac6bb06ad4144f2140d11204cbf32a7042db4775f0d6a648c4
5
5
  SHA512:
6
- metadata.gz: 3413d1409199b453275c3e41bfa79c4a4b88632d2917c7215eb46812768378a767f6eb9b6b79c3f2eeb7a99d14942bb63c3bdf0f4112cfd8be731ff76706dd06
7
- data.tar.gz: 1ccd808b2ed86a945e44c6dc4a5a8bdc231b64eacaa70a3b6a4757b0e415911c9328d70ae148158751e36d320045e8f5d9dc23e4a08aa4305bceb36860f7f346
6
+ metadata.gz: dd20daeb72d8c44be432a8b99cc10a833927fd7990073a1b11ab554c0188a0556ab19afc75a4593c7d4f3192ebc0f4ea4e0ae8650c7baf93011c7931b87ac9fc
7
+ data.tar.gz: 4c1bca7683664aa11da04eb5a578681a0f993be20d15c8c0af0df9f86715df3b4b916a0019d49f4650e1614bb60101db26fee8f66b95dbc69f51d37c27229daa
@@ -25,7 +25,7 @@ module Spoom
25
25
  STRICTNESS_INTERNAL,
26
26
  ].freeze, T::Array[String])
27
27
 
28
- SIGIL_REGEXP = T.let(/^#\s*typed\s*:\s*(\w*)\s*$/.freeze, Regexp)
28
+ SIGIL_REGEXP = T.let(/^#[\ t]*typed[\ t]*:[ \t]*(\w*)[ \t]*/.freeze, Regexp)
29
29
 
30
30
  # returns the full sigil comment string for the passed strictness
31
31
  sig { params(strictness: String).returns(String) }
@@ -59,6 +59,12 @@ module Spoom
59
59
  Dir.glob("#{@path}/**/*").sort
60
60
  end
61
61
 
62
+ # Return the content of the file at `rel_path`
63
+ sig { params(rel_path: String).returns(String) }
64
+ def read(rel_path)
65
+ File.read(absolute_path(rel_path))
66
+ end
67
+
62
68
  # Actions
63
69
 
64
70
  # Run `git init` in this project
data/lib/spoom/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Spoom
5
- VERSION = "1.1.9"
5
+ VERSION = "1.1.10"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spoom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Terrasa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-22 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler