string_splitter 0.3.1 → 0.4.0

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
  SHA256:
3
- metadata.gz: 67fd08fc0c1d5928d849206b28130eadedbd7c38755f1c123f4c3d46cbbc5619
4
- data.tar.gz: b102be89d4c59f9a2d3dd4661277a4fd3a31816f7dbae1630f2f6954bedad62a
3
+ metadata.gz: 6e73d7818b793f4c8dcbba35afb97045428085f17c07df328875383b2d162818
4
+ data.tar.gz: 6a15e18b265779aeaf5d8b18c5e13d70299ed7abbc52da815e2cee46419ce9a1
5
5
  SHA512:
6
- metadata.gz: 87d567793e20367c52625d5fa9dd6cea5470221b3d53bc54d0bd59f0f8835635d81a67e1fcecba5fcce5a116c6ba6c346c4b74fa563ac21bee5ff0d06d07ad8b
7
- data.tar.gz: eab3f78e4c61e77c7bb283eb50e871d665fd4a323913e9fbf525ab2a6bfa05f0ebbabf490284371c00be6690f937f485823a8bc9dc3f59aafc9bff71c8cbe893
6
+ metadata.gz: dee0e70311f3718d0f7b68f77b56c657e137c8a658905ddc58f4fbef536b80071dced6a9836d0ad531b93e15c16c5f25ec42965f02a0a1e016de179b133bf746
7
+ data.tar.gz: 72a237dd80e3e06aad4a5bcc4545e6ea4d3d8167beb9afa6b502d964d510857947fe6071a88ded9f83df77a54da059c97abc1b3e70d8c14a03c8b77b0a01a675
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.0 - 2018-06-24
2
+
3
+ - **breaking change**: remove the `offset` alias for `split.index`
4
+
1
5
  ## 0.3.1 - 2018-06-24
2
6
 
3
7
  - remove trailing empty field when the separator is empty (#1)
data/README.md CHANGED
@@ -179,7 +179,7 @@ ss.split(line, at: [1..5, 8])
179
179
 
180
180
  # VERSION
181
181
 
182
- 0.3.1
182
+ 0.4.0
183
183
 
184
184
  # SEE ALSO
185
185
 
@@ -21,7 +21,6 @@ class StringSplitter
21
21
  index + 1
22
22
  end
23
23
 
24
- alias_method :offset, :index
25
24
  alias_method :pos, :position
26
25
  end
27
26
 
@@ -159,11 +158,11 @@ class StringSplitter
159
158
  #
160
159
  # before:
161
160
  #
162
- # %r| <(\w+-comment)> [^<]* </\1> |x
161
+ # %r| <(\w+-comment)> [^<]* </\1-comment> |x
163
162
  #
164
163
  # after:
165
164
  #
166
- # %r| ( <(\w+-comment)> [^<]* </\2> ) |x
165
+ # %r| ( <(\w+-comment)> [^<]* </\2-comment> ) |x
167
166
 
168
167
  def increment_backrefs(delimiter, ncaptures)
169
168
  if delimiter.is_a?(Regexp) && ncaptures > 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class StringSplitter
4
- VERSION = '0.3.1'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_splitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chocolateboy