ss_syntax 0.0.3 → 0.0.4

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
2
  SHA1:
3
- metadata.gz: 1561fe0dc4b71302bcf87ee76f15a7540e7d206a
4
- data.tar.gz: 8ceb88c9af5f7b90ff7ef1c7b1b1c45f0b33071b
3
+ metadata.gz: f9f38fa7358232de0481cb2df655fe6ba1c0b80d
4
+ data.tar.gz: af6d081609a1cbb3f235351bcfcce15dd321c766
5
5
  SHA512:
6
- metadata.gz: 555ed132c7f9af1fed838fc2f945794ab82dd5f483f8aa09de7b60fd5e07b5012d04cc997ef0f86533210294f0be91ee58b479fe71abf952a8a227bf0e369663
7
- data.tar.gz: 3c009224cdb4943c75a45b159dec39a4838da97928ebaee1fd97b5f73ac949b0661aa2c3e6bffb782ab671a449895a6062100d14271d149f4c6bd368c1dbb67e
6
+ metadata.gz: efb7a9fc0b0a7c6ebf29c70f592eec7ccea455936c4a6bb1783d4008850d278773ab0e0ef2e970e0b14603105db47004ff9c943ad2f276aec8f92fc001ff64b0
7
+ data.tar.gz: ee6530c32c769808145e4af1412ff86c90fa0341d99371957da27d4b864ec2cdb1148f8f2cf9b214c47c1d50b2775320f7e53781c16f8d64ed17412d18708c96
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ss_syntax (0.0.2)
4
+ ss_syntax (0.0.3)
5
5
  slop
6
6
 
7
7
  GEM
@@ -23,8 +23,12 @@ module SsSyntax
23
23
  html_text = ''
24
24
  @parse_text.each_line do |line|
25
25
  line.chomp!
26
- html_text += "<p>#{line}</p>" if line != ''
27
- html_text += "<br />"
26
+
27
+ if line != ''
28
+ html_text += "<p>#{line}</p>"
29
+ else
30
+ html_text += "<br />"
31
+ end
28
32
  end
29
33
 
30
34
  html_text
@@ -1,3 +1,3 @@
1
1
  module SsSyntax
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -27,7 +27,7 @@ EOS
27
27
 
28
28
  describe '#to_h' do
29
29
  it 'default' do
30
- re_html = "<br /><p>hoge「hoge」</p><br /><p>fuga(fuga)</p><br />"
30
+ re_html = "<br /><p>hoge「hoge」</p><p>fuga(fuga)</p>"
31
31
 
32
32
  expect(SsSyntax::Parse.new(@text).to_h).to eq re_html
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ss_syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - henteko