rsplit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95101f15c0ddc30d20c39200daaf556c44dd12c3
4
- data.tar.gz: 66a90f5715bc6b986f4300b084179ae17e8baa55
3
+ metadata.gz: df402fc74963c48ba73d231cf7f287e4aa3e4a20
4
+ data.tar.gz: '0758f84597240f89b6e0b7ff2335716d534a18dd'
5
5
  SHA512:
6
- metadata.gz: def6bca623cc837da97513a4f1b136ba73015efbb2f753c8ed1863f52055c3885619f248271932e99ea394259498bfe98ce5ef4a8815e14367614a90941878b1
7
- data.tar.gz: d369b94b17d8ea785e635bf63059efc5ba1a318566f157550ba6e0037096dcec17e1b1e577186af63437005d2596c62b2b8d7d780e7667247c42a74fa7621d94
6
+ metadata.gz: 4085bb795b9a96f165b8b5f5b8167031c985f6b363733d40f609b62957bb1804d1ad0e32763f9df51684120b29c0f40f5b701fced189d806c8c0ed7a5c77bfae
7
+ data.tar.gz: 8d25a764db7c3031a816d9f678460e491d7888f4930104fb9e0eda3286103ca3a597a14f866b19129322f651f98d5658ef7da9947eb04df1d885fa1d482ccae4
@@ -1,6 +1,19 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 2.1.6
5
- - 2.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
@@ -1,6 +1,6 @@
1
1
  The zlib license (Zlib)
2
2
 
3
- Copyright (c) 2015 OTSUKA Tatsuya
3
+ Copyright (c) 2015 Tatsuya Otsuka
4
4
 
5
5
  This software is provided 'as-is', without any express or implied
6
6
  warranty. In no event will the authors be held liable for any damages
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
- " now's the time".rsplit #=> ["now's", "the", "time"]
39
- " now's the time".rsplit(" ") #=> ["now's", "the", "time"]
38
+ "Dalton Kuhic dalton.kuhic@example.com".rsplit(" ", 2)
39
+ # => ["Dalton Kuhic", "dalton.kuhic@example.com"]
40
40
 
41
- "mellow yellow".rsplit("ello") #=> ["m", "w y", "w"]
42
- "..1.2..3.4".rsplit(".") #=> ["1", "2", "", "3", "4"]
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)
@@ -1,3 +1,5 @@
1
+ # -*- frozen_string_literal: true -*-
2
+
1
3
  require "rsplit/version"
2
4
 
3
5
  module RSplit
@@ -1,3 +1,5 @@
1
+ # -*- frozen_string_literal: true -*-
2
+
1
3
  module RSplit
2
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
3
5
  end
@@ -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 = ["OTSUKA Tatsuya"]
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/tatzyr/rsplit"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - OTSUKA Tatsuya
7
+ - Tatsuya Otsuka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-25 00:00:00.000000000 Z
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/tatzyr/rsplit
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.4.8
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: