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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7ade5ef06a52ba977c6cdf02258e8b39b47336d
4
- data.tar.gz: 4baaed035761d72a020831da9c6b80f002c83116
3
+ metadata.gz: cdbe894918d1a44c8c194475a4b2cd2cfae16091
4
+ data.tar.gz: 840d7313c2b80bf8c4574bce84c838969d52e676
5
5
  SHA512:
6
- metadata.gz: fb8cd05f8e2b38c6d795938764a0fdb7c6dfcc10ba727dc613658c60bc170a344fa6567fb22b27385c003b8ec113646e1a596cef51cbf8d875b2df3b5e9d4c4e
7
- data.tar.gz: 0373d16b91be83dd143fe230a080942f3fee186c5871577e1c78b744cca8b6843d5cd880ebece289bd66aec268d67c39e8282f3967aa274d82c3f4b933a12655
6
+ metadata.gz: 0dbda01d7bb76a4a986b5e904c6895cee3c98ec664d17b66ce8dd0e6b2991cbf66a7b7ef38f6a6c19237b66eb5c6725497b907515d817343240d29380bcbc075
7
+ data.tar.gz: eac2fce3f15513dea017f5c0303a33675edc3a8ed8fb3f9a9edc0213d4ce972ab582bc7481fc89d90da6f7b29d673f901c8a08476bfeb1e86a166e129d6587b9
@@ -11,7 +11,7 @@ module Adjutant
11
11
  if empty?
12
12
  comment.to_s
13
13
  else
14
- self.text + "\\n" + comment
14
+ "#{self.text}\n#{comment}"
15
15
  end
16
16
  end
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Adjutant
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -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\\nworld!" }
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+"\\n"+message2, index+1])
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,\\nthem really rocks", 7],
32
- [ "TODO:\\n- [ ] This Github flavoured markdown\\n- [ ] such nice\\n- [ ] very exciting", 11 ]
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) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adjutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Baltazore