adjutant 0.1.4 → 0.1.5
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 +4 -4
- data/lib/adjutant/comment.rb +1 -1
- data/lib/adjutant/version.rb +1 -1
- data/spec/adjutant/comment_spec.rb +2 -2
- data/spec/adjutant/file_parser_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdbe894918d1a44c8c194475a4b2cd2cfae16091
|
4
|
+
data.tar.gz: 840d7313c2b80bf8c4574bce84c838969d52e676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dbda01d7bb76a4a986b5e904c6895cee3c98ec664d17b66ce8dd0e6b2991cbf66a7b7ef38f6a6c19237b66eb5c6725497b907515d817343240d29380bcbc075
|
7
|
+
data.tar.gz: eac2fce3f15513dea017f5c0303a33675edc3a8ed8fb3f9a9edc0213d4ce972ab582bc7481fc89d90da6f7b29d673f901c8a08476bfeb1e86a166e129d6587b9
|
data/lib/adjutant/comment.rb
CHANGED
data/lib/adjutant/version.rb
CHANGED
@@ -29,7 +29,7 @@ RSpec.describe Adjutant::Comment do
|
|
29
29
|
describe '#add' do
|
30
30
|
let(:part1) { "Hello" }
|
31
31
|
let(:part2) { "world!" }
|
32
|
-
let(:text) { "Hello
|
32
|
+
let(:text) { "Hello\nworld!" }
|
33
33
|
|
34
34
|
it 'adds new text to empty comment' do
|
35
35
|
comment = Adjutant::Comment.new
|
@@ -64,7 +64,7 @@ RSpec.describe Adjutant::Comment do
|
|
64
64
|
comment = Adjutant::Comment.new
|
65
65
|
comment.add(message, index)
|
66
66
|
comment.add(message2, index+1)
|
67
|
-
expect(comment.print).to eq([message+"
|
67
|
+
expect(comment.print).to eq([message+"\n"+message2, index+1])
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -28,8 +28,8 @@ RSpec.describe Adjutant::FileParser do
|
|
28
28
|
let(:comments) do
|
29
29
|
[
|
30
30
|
[ "@Baltazore is trying to check first line comment", 1 ],
|
31
|
-
[ "@baltazore, Let's check multiline comments
|
32
|
-
[ "TODO
|
31
|
+
[ "@baltazore, Let's check multiline comments,\nthem really rocks", 7],
|
32
|
+
[ "TODO:\n- [ ] This Github flavoured markdown\n- [ ] such nice\n- [ ] very exciting", 11 ]
|
33
33
|
]
|
34
34
|
end
|
35
35
|
let(:file_parser) { Adjutant::FileParser.new(file) }
|