gollum 2.2.4 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum might be problematic. Click here for more details.

data/Rakefile CHANGED
@@ -145,7 +145,7 @@ task :gemspec => :validate do
145
145
  split("\n").
146
146
  sort.
147
147
  reject { |file| file =~ /^\./ }.
148
- reject { |file| file =~ /^(rdoc|pkg|test)/ }.
148
+ reject { |file| file =~ /^(rdoc|pkg|test|Home\.md)/ }.
149
149
  map { |file| " #{file}" }.
150
150
  join("\n")
151
151
 
data/gollum.gemspec CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
5
5
  s.required_ruby_version = ">= 1.8.7"
6
6
 
7
7
  s.name = 'gollum'
8
- s.version = '2.2.4'
9
- s.date = '2012-10-13'
8
+ s.version = '2.2.5'
9
+ s.date = '2012-10-14'
10
10
  s.rubyforge_project = 'gollum'
11
11
 
12
12
  s.summary = "A simple, Git-powered wiki."
@@ -47,7 +47,6 @@ Gem::Specification.new do |s|
47
47
  s.files = %w[
48
48
  Gemfile
49
49
  HISTORY.md
50
- Home.md
51
50
  LICENSE
52
51
  README.md
53
52
  Rakefile
data/lib/gollum.rb CHANGED
@@ -23,7 +23,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
23
23
  require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
24
24
 
25
25
  module Gollum
26
- VERSION = '2.2.4'
26
+ VERSION = '2.2.5'
27
27
 
28
28
  def self.assets_path
29
29
  ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
data/lib/gollum/markup.rb CHANGED
@@ -511,10 +511,15 @@ module Gollum
511
511
  #
512
512
  # Returns the placeholder'd String data.
513
513
  def extract_code(data)
514
- data.gsub!(/^([ \t]*)~~~ ?([^\r\n]+)?\r?\n(.+?)\r?\n\1~~~\r?$/m) do
514
+ data.gsub!(/^([ \t]*)(~~~+) ?([^\r\n]+)?\r?\n(.+?)\r?\n\1(~~~+)\r?$/m) do
515
515
  m_indent = $1
516
- m_lang = $2
517
- m_code = $3
516
+ m_start = $2 # ~~~
517
+ m_lang = $3
518
+ m_code = $4
519
+ m_end = $5 # ~~~
520
+
521
+ # start and finish tilde fence must be the same length
522
+ return '' if m_start.length != m_end.length
518
523
 
519
524
  lang = m_lang ? m_lang.strip : nil
520
525
  id = Digest::SHA1.hexdigest("#{lang}.#{m_code}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-13 00:00:00.000000000 Z
13
+ date: 2012-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: grit
@@ -323,7 +323,6 @@ extra_rdoc_files:
323
323
  files:
324
324
  - Gemfile
325
325
  - HISTORY.md
326
- - Home.md
327
326
  - LICENSE
328
327
  - README.md
329
328
  - Rakefile
data/Home.md DELETED
@@ -1,3 +0,0 @@
1
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vulputate tincidunt sollicitudin. Quisque sit amet leo sed nunc eleifend rhoncus in consectetur leo. Vivamus posuere semper convallis. Duis malesuada lacus sed erat lobortis tincidunt mattis ligula consectetur. Sed aliquam vulputate eros at euismod. Aenean egestas lorem ligula, quis faucibus turpis. Curabitur a eros in ipsum gravida ornare. Sed elementum enim vel mi scelerisque dapibus. Nulla id libero ligula, quis tempus sem. Morbi nec felis tortor, ac cursus risus. Mauris elementum tortor id lacus eleifend non lobortis tellus pharetra. Etiam posuere cursus vestibulum. $x \lt y$
2
-
3
- Morbi tincidunt dolor vel massa dictum volutpat. Vestibulum quis nibh metus, id tincidunt nisl. Vivamus eget sem ac risus eleifend rhoncus at eu nisl. Nunc elit massa, vulputate ac gravida eget, condimentum quis justo. Integer scelerisque, libero vel consequat ultricies, eros libero sagittis libero, pellentesque bibendum quam massa ut orci. Maecenas sit amet urna eget quam aliquam posuere. Nulla facilisi. Duis imperdiet augue sit amet metus ornare et hendrerit dui feugiat. Aenean a lacus neque. Sed eu enim tincidunt dolor pharetra porttitor. Vestibulum ut felis dui, rutrum iaculis orci. Duis eu bibendum tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse mollis sagittis purus sit amet sollicitudin. Phasellus vel interdum erat.