rake-notes 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +18 -12
- data/lib/rake/notes/source_annotation_extractor.rb +2 -0
- data/lib/rake/notes/version.rb +1 -1
- data/spec/rake/notes/source_annotation_extractor_spec.rb +8 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6cd40d2a7224650bb0d87b76c7ed199a56e7fabb011522f706c6bbb811534949
|
4
|
+
data.tar.gz: 4f2a21a7a36d3ceb2c062798027634ed86fecd94d0daa78381fa5e41c0dd7580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff425b08957a6298d1049bf5514d74788e4706d4e06d1a8ca214fc3fda54614ab48a8d2940fbcd8a86c0e5260814a1ad9ae4e63fe8f646ad358419350d24ea3
|
7
|
+
data.tar.gz: 331400502d5211fc963f86a559bd4b10a216df9d947aa24866e17aa04262d6ebda1070c4dc12f8d485e82658f7dfbfc083dc953a1f30b7cb6e6cb320ba3d8448
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake-notes (0.
|
4
|
+
rake-notes (1.0.0)
|
5
5
|
colored
|
6
6
|
rake
|
7
7
|
|
@@ -9,23 +9,29 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
colored (1.2)
|
12
|
-
diff-lcs (1.1
|
13
|
-
rake (
|
14
|
-
rspec (
|
15
|
-
rspec-core (~>
|
16
|
-
rspec-expectations (~>
|
17
|
-
rspec-mocks (~>
|
18
|
-
rspec-core (
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
diff-lcs (1.5.1)
|
13
|
+
rake (13.2.1)
|
14
|
+
rspec (3.13.0)
|
15
|
+
rspec-core (~> 3.13.0)
|
16
|
+
rspec-expectations (~> 3.13.0)
|
17
|
+
rspec-mocks (~> 3.13.0)
|
18
|
+
rspec-core (3.13.0)
|
19
|
+
rspec-support (~> 3.13.0)
|
20
|
+
rspec-expectations (3.13.0)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.13.0)
|
23
|
+
rspec-mocks (3.13.1)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.13.0)
|
26
|
+
rspec-support (3.13.1)
|
22
27
|
|
23
28
|
PLATFORMS
|
24
29
|
ruby
|
30
|
+
x86_64-linux
|
25
31
|
|
26
32
|
DEPENDENCIES
|
27
33
|
rake-notes!
|
28
34
|
rspec
|
29
35
|
|
30
36
|
BUNDLED WITH
|
31
|
-
|
37
|
+
2.5.9
|
@@ -97,6 +97,8 @@ module Rake
|
|
97
97
|
results.update(extract_annotations_from(item, /-\s*#\s*(#{tag}):?\s*(.*)$/))
|
98
98
|
elsif item =~ /\.slim$/
|
99
99
|
results.update(extract_annotations_from(item, /\/\s*\s*(#{tag}):?\s*(.*)$/))
|
100
|
+
elsif item =~ /\.md$/
|
101
|
+
results.update(extract_annotations_from(item, /\*\*\s*(#{tag})\**:?\s*(.*)\**$/))
|
100
102
|
end
|
101
103
|
end
|
102
104
|
|
data/lib/rake/notes/version.rb
CHANGED
@@ -3,8 +3,6 @@ require 'spec_helper'
|
|
3
3
|
require 'rake/notes/source_annotation_extractor'
|
4
4
|
|
5
5
|
describe Rake::Notes::SourceAnnotationExtractor do
|
6
|
-
let(:fixture_path) { "#{Dir.pwd}/.tmp" }
|
7
|
-
|
8
6
|
before do
|
9
7
|
@current_path = Dir.pwd
|
10
8
|
Dir.mkdir(fixture_path) unless Dir.exist?(fixture_path)
|
@@ -43,6 +41,8 @@ describe Rake::Notes::SourceAnnotationExtractor do
|
|
43
41
|
fixture_file "Puppetfile", "# TODO: note in puppetfile"
|
44
42
|
fixture_file "Gemfile", "# TODO: note in gemfile"
|
45
43
|
fixture_file "feature.feature", "# TODO: note in cucumber feature"
|
44
|
+
fixture_file "README.md", "**TODO**: note in markdown version one"
|
45
|
+
fixture_file "CONTRIBUTING.md", "**TODO: note in markdown version two**"
|
46
46
|
end
|
47
47
|
|
48
48
|
it { should match(/note in erb/) }
|
@@ -65,6 +65,8 @@ describe Rake::Notes::SourceAnnotationExtractor do
|
|
65
65
|
it { should match(/note in puppetfile/) }
|
66
66
|
it { should match(/note in gemfile/) }
|
67
67
|
it { should match(/note in cucumber feature/) }
|
68
|
+
it { should match(/note in markdown version one/) }
|
69
|
+
it { should match(/note in markdown version two/) }
|
68
70
|
end
|
69
71
|
|
70
72
|
def fixture_file(path, contents)
|
@@ -73,4 +75,8 @@ describe Rake::Notes::SourceAnnotationExtractor do
|
|
73
75
|
f.puts contents
|
74
76
|
end
|
75
77
|
end
|
78
|
+
|
79
|
+
def fixture_path
|
80
|
+
"#{Dir.pwd}/.tmp"
|
81
|
+
end
|
76
82
|
end
|
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.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Rehm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
|
+
- ".ruby-version"
|
64
65
|
- Gemfile
|
65
66
|
- Gemfile.lock
|
66
67
|
- LICENSE.txt
|
@@ -91,8 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
92
|
- !ruby/object:Gem::Version
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
|
-
|
95
|
-
rubygems_version: 2.6.14.1
|
95
|
+
rubygems_version: 3.5.9
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: rake notes task for non-Rails' projects
|