rsplit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -2
- data/LICENSE +1 -1
- data/README.md +13 -9
- data/lib/rsplit.rb +2 -0
- data/lib/rsplit/version.rb +3 -1
- data/rsplit.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df402fc74963c48ba73d231cf7f287e4aa3e4a20
|
4
|
+
data.tar.gz: '0758f84597240f89b6e0b7ff2335716d534a18dd'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4085bb795b9a96f165b8b5f5b8167031c985f6b363733d40f609b62957bb1804d1ad0e32763f9df51684120b29c0f40f5b701fced189d806c8c0ed7a5c77bfae
|
7
|
+
data.tar.gz: 8d25a764db7c3031a816d9f678460e491d7888f4930104fb9e0eda3286103ca3a597a14f866b19129322f651f98d5658ef7da9947eb04df1d885fa1d482ccae4
|
data/.travis.yml
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- 2.0.0
|
4
|
-
- 2.1.
|
5
|
-
- 2.2.
|
4
|
+
- 2.1.10
|
5
|
+
- 2.2.5
|
6
|
+
- 2.3.1
|
7
|
+
- ruby-head
|
8
|
+
- jruby-1.7.25
|
9
|
+
- jruby-9.1.0.0
|
10
|
+
- jruby-head
|
11
|
+
- rbx-2
|
6
12
|
before_install: gem install bundler -v 1.10.6
|
13
|
+
matrix:
|
14
|
+
allow_failures:
|
15
|
+
- rvm: ruby-head
|
16
|
+
- rvm: jruby-1.7.25
|
17
|
+
- rvm: jruby-9.1.0.0
|
18
|
+
- rvm: jruby-head
|
19
|
+
- rvm: rbx-2
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# rsplit
|
1
|
+
# String#rsplit
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rsplit.svg)](http://badge.fury.io/rb/rsplit)
|
4
4
|
[![Build Status](https://travis-ci.org/Tatzyr/rsplit.svg?branch=master)](https://travis-ci.org/Tatzyr/rsplit)
|
@@ -35,15 +35,11 @@ Or install it yourself as:
|
|
35
35
|
```ruby
|
36
36
|
require "rsplit"
|
37
37
|
|
38
|
-
"
|
39
|
-
|
38
|
+
"Dalton Kuhic dalton.kuhic@example.com".rsplit(" ", 2)
|
39
|
+
# => ["Dalton Kuhic", "dalton.kuhic@example.com"]
|
40
40
|
|
41
|
-
"
|
42
|
-
|
43
|
-
"..1.2..3.4".rsplit(".", 4) #=> ["..1.2", "", "3", "4"]
|
44
|
-
"..1.2..3.4".rsplit(".", -1) #=> ["", "", "1", "2", "", "3", "4"]
|
45
|
-
|
46
|
-
"".rsplit(".") #=> []
|
41
|
+
"Sallie Hickle Jr. sallie@example.org".rsplit(" ", 2)
|
42
|
+
# => ["Sallie Hickle Jr.", "sallie@example.org"]
|
47
43
|
```
|
48
44
|
|
49
45
|
## Development
|
@@ -55,3 +51,11 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
55
51
|
## Contributing
|
56
52
|
|
57
53
|
Bug reports and pull requests are welcome on GitHub at https://github.com/Tatzyr/rsplit.
|
54
|
+
|
55
|
+
## Licence
|
56
|
+
|
57
|
+
See [LICENSE](LICENSE).
|
58
|
+
|
59
|
+
## Author
|
60
|
+
|
61
|
+
[Tatsuya Otsuka](https://github.com/Tatzyr)
|
data/lib/rsplit.rb
CHANGED
data/lib/rsplit/version.rb
CHANGED
data/rsplit.gemspec
CHANGED
@@ -6,11 +6,11 @@ require 'rsplit/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "rsplit"
|
8
8
|
spec.version = RSplit::VERSION
|
9
|
-
spec.authors = ["
|
9
|
+
spec.authors = ["Tatsuya Otsuka"]
|
10
10
|
spec.email = ["tatzyr@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Divides string into substrings based on a delimiter (starting from right), returning an array of these substrings.}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/Tatzyr/rsplit"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
16
|
spec.bindir = "exe"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsplit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Tatsuya Otsuka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -85,7 +85,7 @@ files:
|
|
85
85
|
- lib/rsplit.rb
|
86
86
|
- lib/rsplit/version.rb
|
87
87
|
- rsplit.gemspec
|
88
|
-
homepage: https://github.com/
|
88
|
+
homepage: https://github.com/Tatzyr/rsplit
|
89
89
|
licenses:
|
90
90
|
- Zlib
|
91
91
|
metadata: {}
|
@@ -105,9 +105,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.6
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Divides string into substrings based on a delimiter (starting from right),
|
112
112
|
returning an array of these substrings.
|
113
113
|
test_files: []
|
114
|
+
has_rdoc:
|