snippr 0.15.9 → 0.15.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTQ4YTMwOTVhODM2N2ExOGI4YTU0ZWViNTZiOTFmYzJhNDJkMzg0Mg==
4
+ MTM3MjI1MmNmMmIxYmEzYTY4Nzk1MjI3MDFlNjVhNzEzZTQyYmFiZA==
5
5
  data.tar.gz: !binary |-
6
- YzU2MTNkZDYzYTFkZGEwNzhmZjRkYzM5M2U4OTJmODVjYmFhNzE0YQ==
7
- !binary "U0hBNTEy":
6
+ MjJkYWVmM2Q2ZWVjOGUzNTdjZmY2OGZkMDQ4ODhmYWI4OGY1NmIzNQ==
7
+ SHA512:
8
8
  metadata.gz: !binary |-
9
- Yjc5OThiZDEwZWVlODk3ZDY5OTVkNDNlYjFkOGM2OGUwMTUxNGU1YTI2MjMy
10
- ZmI0Y2Y2NGUxYzk2ZDlkMzZjNzA2NDhiNDhjODEyMDJjZThlNDBiNTkwYWY1
11
- ZGUzNTI4Zjg4NWMxNjBkZWJkMzg5ODUxMzg4MWJlZTBjMzY5ZmI=
9
+ OTA3NjY3YmVkODRjZjlkYmJkMzIzNTE5NjY4NThiOTBlMjY2Y2JhYzJhMTQy
10
+ OGExN2Y4NTBkZjUyNjk1OTYxYTM3YTRjNWNjN2ZmZDFjN2I5OWUzZjRiYzBh
11
+ NjJjMjJiODQ3MmRkNWZhMzJjMjljNmQ0NDk0NjYyNTg2YzhkYmM=
12
12
  data.tar.gz: !binary |-
13
- MDgzY2RlZDUyODQ5MjVkZjUyY2E1N2JjOTBlMDIxNTEyODNjOGE1NTNjNTA1
14
- NWMzZTExY2U0NjM1NmY0OGMxNzc2YWMxOTNkOGU2MGZlMjc2Mzg0NDE3YTQ5
15
- NzkyZDUwNTAzM2Y1ODg0MWExMTYyNDgwYmM3YTdlZTQ4YTI2YjE=
13
+ YjM5NWEyZmM0MDY1OWUzNWZmZWVkNTA4ZTM2NjBjODk4MzBkYjQ2ZjRmNjY0
14
+ YjQxZjE4NmYzMjFmNjc5OWM3ODAzYmJhODIzYzdkYWMyMzU2OGRiMjcwNDQy
15
+ ZTY4M2Y2NmUxMWVhZWRkM2QwMWQwYTc0MjQ2NTNhN2EzOThlMTk=
@@ -5,7 +5,7 @@ module Snippr
5
5
  SEGMENT_MARKER = /[=✄]{4}\s(.*?):\s(.*?)\s[=✄]{4}/
6
6
 
7
7
  def initialize(raw_content)
8
- @raw_content = insert_dummy_filter(raw_content.clone)
8
+ @raw_content = insert_dummy_filter(clean_up(raw_content.clone))
9
9
  end
10
10
 
11
11
  def content
@@ -42,5 +42,9 @@ module Snippr
42
42
  end
43
43
  content
44
44
  end
45
+
46
+ def clean_up(content)
47
+ content.gsub("\r","")
48
+ end
45
49
  end
46
50
  end
data/snippr.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "snippr"
4
- s.version = "0.15.9"
4
+ s.version = "0.15.10"
5
5
  s.date = Time.now
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Daniel Harrington", "Thomas Jachmann", "Frank Schumacher"]
@@ -30,4 +30,8 @@ describe "SegmentParser" do
30
30
  it "doesn't need a newline after the last segment" do
31
31
  Snippr::SegmentParser.new("a\n==== valid_from: 1099-05-01 09:00:00 ====").content.should be_empty
32
32
  end
33
+
34
+ it "chooses the correct segment even with \r\n" do
35
+ Snippr::SegmentParser.new("alt\r\n==== valid_from: 1099-05-01 09:00:00 ====\r\nneu\r\n").content.should == "neu"
36
+ end
33
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snippr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.9
4
+ version: 0.15.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Harrington
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-07 00:00:00.000000000 Z
13
+ date: 2013-09-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  requirements: []
214
214
  rubyforge_project: snippr
215
- rubygems_version: 2.0.6
215
+ rubygems_version: 2.1.4
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: File based content management