rake-notes 0.2.1 → 0.2.2
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
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 2663b19c9fce63e5b29a4674f942f78b87299fd3
|
|
4
|
+
data.tar.gz: e42c61dafa3025fa8e1d43ed9bb38c9888c959a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4eaa07d726cc4894b6209ba942f177b2f1cc257e61ed630c1d06e06e14319d41c8b3999b0d0f29c6114b345feede8982eec64c0c40cb406f73e6bbaaa7d4203
|
|
7
|
+
data.tar.gz: 9b49b6cfdb1d838c840ee6348bc8aa9daa62d550dbf70d094e08b94c690654b30bc833d2d535907f1ef9ce58c6f8f4421022a8c2ec8c404ee3cbd2fed3c13094
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rake-notes (0.2.
|
|
4
|
+
rake-notes (0.2.2)
|
|
5
5
|
colored
|
|
6
6
|
rake
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ GEM
|
|
|
10
10
|
specs:
|
|
11
11
|
colored (1.2)
|
|
12
12
|
diff-lcs (1.1.3)
|
|
13
|
-
rake (
|
|
13
|
+
rake (12.3.1)
|
|
14
14
|
rspec (2.11.0)
|
|
15
15
|
rspec-core (~> 2.11.0)
|
|
16
16
|
rspec-expectations (~> 2.11.0)
|
|
@@ -28,4 +28,4 @@ DEPENDENCIES
|
|
|
28
28
|
rspec
|
|
29
29
|
|
|
30
30
|
BUNDLED WITH
|
|
31
|
-
1.16.
|
|
31
|
+
1.16.2
|
|
@@ -89,7 +89,7 @@ module Rake
|
|
|
89
89
|
results.update(find_in(item))
|
|
90
90
|
elsif item =~ /\.(builder|rb|coffee|rake|pp|ya?ml|gemspec|feature)$/ || RUBYFILES.include?(File.basename(item))
|
|
91
91
|
results.update(extract_annotations_from(item, /#\s*(#{tag}):?\s*(.*)$/))
|
|
92
|
-
elsif item =~ /\.(css|scss|js)$/
|
|
92
|
+
elsif item =~ /\.(css|scss|js|ts|tsx)$/
|
|
93
93
|
results.update(extract_annotations_from(item, /\/\/\s*(#{tag}):?\s*(.*)$/))
|
|
94
94
|
elsif item =~ /\.erb$/
|
|
95
95
|
results.update(extract_annotations_from(item, /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/))
|
data/lib/rake/notes/version.rb
CHANGED
|
@@ -30,6 +30,8 @@ describe Rake::Notes::SourceAnnotationExtractor do
|
|
|
30
30
|
fixture_file "application.js", "// TODO: note in js"
|
|
31
31
|
fixture_file "application.css", "// TODO: note in css"
|
|
32
32
|
fixture_file "application.css.scss", "// TODO: note in scss"
|
|
33
|
+
fixture_file "component.tsx", "// TODO: note in tsx"
|
|
34
|
+
fixture_file "application.ts", "// TODO note in ts"
|
|
33
35
|
fixture_file "application_controller.rb", 1000.times.map { "" }.join("\n") << "# TODO: note in ruby"
|
|
34
36
|
fixture_file "task.rake", "# TODO: note in rake"
|
|
35
37
|
fixture_file "init.pp", "# TODO: note in puppet"
|
|
@@ -51,6 +53,8 @@ describe Rake::Notes::SourceAnnotationExtractor do
|
|
|
51
53
|
it { should match(/note in js/) }
|
|
52
54
|
it { should match(/note in css/) }
|
|
53
55
|
it { should match(/note in scss/) }
|
|
56
|
+
it { should match(/note in tsx/) }
|
|
57
|
+
it { should match(/note in ts/) }
|
|
54
58
|
it { should match(/note in rake/) }
|
|
55
59
|
it { should match(/note in puppet/) }
|
|
56
60
|
it { should match(/note in yml/) }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rake-notes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabio Rehm
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
92
|
version: '0'
|
|
93
93
|
requirements: []
|
|
94
94
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 2.
|
|
95
|
+
rubygems_version: 2.6.14.1
|
|
96
96
|
signing_key:
|
|
97
97
|
specification_version: 4
|
|
98
98
|
summary: rake notes task for non-Rails' projects
|