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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2663b19c9fce63e5b29a4674f942f78b87299fd3
4
- data.tar.gz: e42c61dafa3025fa8e1d43ed9bb38c9888c959a4
2
+ SHA256:
3
+ metadata.gz: 6cd40d2a7224650bb0d87b76c7ed199a56e7fabb011522f706c6bbb811534949
4
+ data.tar.gz: 4f2a21a7a36d3ceb2c062798027634ed86fecd94d0daa78381fa5e41c0dd7580
5
5
  SHA512:
6
- metadata.gz: d4eaa07d726cc4894b6209ba942f177b2f1cc257e61ed630c1d06e06e14319d41c8b3999b0d0f29c6114b345feede8982eec64c0c40cb406f73e6bbaaa7d4203
7
- data.tar.gz: 9b49b6cfdb1d838c840ee6348bc8aa9daa62d550dbf70d094e08b94c690654b30bc833d2d535907f1ef9ce58c6f8f4421022a8c2ec8c404ee3cbd2fed3c13094
6
+ metadata.gz: 0ff425b08957a6298d1049bf5514d74788e4706d4e06d1a8ca214fc3fda54614ab48a8d2940fbcd8a86c0e5260814a1ad9ae4e63fe8f646ad358419350d24ea3
7
+ data.tar.gz: 331400502d5211fc963f86a559bd4b10a216df9d947aa24866e17aa04262d6ebda1070c4dc12f8d485e82658f7dfbfc083dc953a1f30b7cb6e6cb320ba3d8448
data/.gitignore CHANGED
@@ -11,7 +11,9 @@ lib/bundler/man
11
11
  pkg
12
12
  rdoc
13
13
  spec/reports
14
+ *.swp
14
15
  test/tmp
15
16
  test/version_tmp
16
17
  tmp
17
18
  .tmp
19
+ vendor/bundle
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.2.2)
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.3)
13
- rake (12.3.1)
14
- rspec (2.11.0)
15
- rspec-core (~> 2.11.0)
16
- rspec-expectations (~> 2.11.0)
17
- rspec-mocks (~> 2.11.0)
18
- rspec-core (2.11.1)
19
- rspec-expectations (2.11.3)
20
- diff-lcs (~> 1.1.3)
21
- rspec-mocks (2.11.3)
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
- 1.16.2
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
 
@@ -1,5 +1,5 @@
1
1
  module Rake
2
2
  module Notes
3
- VERSION = "0.2.2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -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.2.2
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: 2018-06-05 00:00:00.000000000 Z
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
- rubyforge_project:
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