slurper 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/slurper/engine.rb +6 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f503c8c5d2871e1890d34c16bba6094bb3692b39b2955812fd68aac603aef9b
4
- data.tar.gz: 3502295dd0c244d11c43afbf84894de91badacb83dc9ff7d1c5de07f0cf12330
3
+ metadata.gz: 4e976a68f21248ec4c2237a6642e86d6ff89326f72c0b292cf1cd373c7798c8f
4
+ data.tar.gz: ba67bb8991f5aeab1540aee68b3458e87752fd12f12d83aa579cdacde986b1b0
5
5
  SHA512:
6
- metadata.gz: d3f24bb509e2f0dfe762532f4680a557baae35f6e09d0b89bf0e577b57db5610013d0ea22e0d7f78728f76d98cbaad1f753c6e7f47d4fb23377db64bc3d3b3e6
7
- data.tar.gz: fc5b2aad9969b731596340eb1a56d574ff0d09e876e6149b774fffef79954971e038600d1d3b2a75637117e5e398446659804459a0f77225d5e3fd32b4344d4d
6
+ metadata.gz: deb08cbf16a1cd45b50280a9a6ef2b84d8a9d336777a6d844da49a0665f4e2c6a6b3d8f9a14e8927e335cbecbd80319942a9323887d60a975e5647d8af46f495
7
+ data.tar.gz: cca9fac7f92e025b929a01ae076edefad39e4c65786d7db70d7279123d6d277b1a1166595255eaab9299175c661a8c6c2d08214d9f33f08c62e7588f3b67da5b
@@ -23,12 +23,12 @@ module Slurper
23
23
 
24
24
  def yamlize_story_file
25
25
  IO.read(story_file)
26
- .then {|x| x.strip}
27
- .then {|x| x.gsub(/^ \b/, " ") }
28
- .then {|x| x.gsub(/^/, " ") }
29
- .then {|x| x.gsub(/ $/, "") }
30
- .then {|x| x.gsub(/ ==.*/, "-") }
31
- .then {|x| x.gsub(/ description:$/, " description: |") }
26
+ .yield_self {|x| x.strip}
27
+ .yield_self {|x| x.gsub(/^ \b/, " ") }
28
+ .yield_self {|x| x.gsub(/^/, " ") }
29
+ .yield_self {|x| x.gsub(/ $/, "") }
30
+ .yield_self {|x| x.gsub(/ ==.*/, "-") }
31
+ .yield_self {|x| x.gsub(/ description:$/, " description: |") }
32
32
  end
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slurper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Lowe
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-02-01 00:00:00.000000000 Z
14
+ date: 2019-02-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport