xmp2assert 4 → 5

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: 5a15f8a34b7183990bbd04f98d8f5b1fcc54cb9c
4
- data.tar.gz: 7d04d08869fb960cf5ba2e5d5729be6b370ddc66
3
+ metadata.gz: ead66153d54037ddd64a7d9f6249abd0e35bfc38
4
+ data.tar.gz: f041305358aa731b972e1a730033b8bc3732fbcd
5
5
  SHA512:
6
- metadata.gz: 2e2b16bb8de650a087f79498a57f74ccdf1c6a881be820de74eec8cc7a361b7ab4a7df7de77e8e427d8c507d9768dc68381d820a8ba2f3fcfd7ec0c3f5db9fae
7
- data.tar.gz: 65c30d860c41290b76038f0f76aec79a3ec3e67d8070f709fa354d76057967234c6a19e222d6bf89dba633075c9bdc74a2e088b01723318020a49cbefb50eeb6
6
+ metadata.gz: 06611e88009ad40fa0c8a08a71c3fd2f83e8f211881a14f4218ee44aa134e26a8f554e3f285e23f9038e931081a5fec7056ae67998fe4233eb7e478d2b3d2581
7
+ data.tar.gz: 1ab5fb590fc8e7bd845b26834f5c8c9838e19e0f9ce5a6dc4e192ae52b8c47eeb8ecb8e1a95b26575f6e3271395284bfb7532582618e7e23ba63dcf87f770dea
@@ -24,4 +24,4 @@
24
24
  # SOFTWARE.
25
25
  ;
26
26
 
27
- XMP2Assert::VERSION = 4
27
+ XMP2Assert::VERSION = 5
@@ -48,11 +48,11 @@ module XMP2Assert::XMP2Rexp
48
48
  # :NOTE: we are editing regular expressions using regular expressions. In
49
49
  # order to hack this method you must be a seasoned regular expression
50
50
  # craftsperson who can count backslashes at ease.
51
- src = Regexp.escape xmp
51
+ src = Regexp.escape xmp.chomp
52
52
  src.gsub!(/([^\\])(\\n|\\ )+/, '\\1\s+')
53
53
  src.gsub!(/(#<[\w:]+?:)0x[0-9a-f]+/, '\\10x[0-9a-f]+')
54
54
  src.gsub!(/\\\.rb:\d+/, '\\.rb:\d+')
55
55
 
56
- return Regexp.new "\\A#{src}\\z"
56
+ return Regexp.new "\\A#{src}\\n?\\z"
57
57
  end
58
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmp2assert
3
3
  version: !ruby/object:Gem::Version
4
- version: '4'
4
+ version: '5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Urabe, Shyouhei