bbcode-rails 0.9.0 → 0.9.1

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: f2d33272d04f3a4dca99ee3945d33c30a8f6e7cf
4
- data.tar.gz: a3dd428fe61086e512730366187aef2e2ceb9d5c
3
+ metadata.gz: e92689b8f46d26711cfcab4041edd5b64f02a21a
4
+ data.tar.gz: 3c7892df9c5f386f3fe64130670e2bf0c226f7b8
5
5
  SHA512:
6
- metadata.gz: 9f1b88ae515b2761320aea8bae8ec1d440520ffb82095e069a264bced7e5cb6257fa58bf62995aecc97c60ab80a3e0803e5e0849be2d940b489950a8e27700f6
7
- data.tar.gz: 051b5b5df34e0627efb45816b22d502e7887098b903cd7cda41a456b2fddcaacebf60966a420c8b0677455004cccb9097db0a8f084b96e3df3d1f6fab5539037
6
+ metadata.gz: 20ec7751adda1c00022ad58f9e5f789d93490348d1d6376afb6b4e87e8ddac7a520071994bf431e152767c294c7a1ad3f2a615f0813459a5e9d467d097624ecd
7
+ data.tar.gz: b1d80c0d6396fc43af8a0ea401d6eb7a50e6b01aa4a0e527407469d9bc7cab32dd9d1d5a30f50511526bef732bdeb3483af206f3105042cb428cd36b88122387
data/lib/bbcode-rails.rb CHANGED
@@ -30,7 +30,7 @@ module BBCode
30
30
 
31
31
  # Taken from bb-ruby, who took it from Rails Actionpack
32
32
  str.gsub!(/\r\n?/, "\n") # \r\n and \r => \n
33
- str.gsub!(/\n/, '<br>') # 1 newline => br
33
+ str.gsub!(/\n+/, '<br>') # 1+ newline => br
34
34
 
35
35
 
36
36
  # Let's iterate over the pieces to build a tree
@@ -1,3 +1,3 @@
1
1
  module BBCode
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbcode-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Müller