extras 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -3
- data/lib/extras/string.rb +1 -1
- data/lib/extras/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e3e0532b2c1e6027c7230b8ecb8a5a090019b7b
|
4
|
+
data.tar.gz: a28bbd8da74cfc2246e3852a53b6dcd84423f8ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0ecd752a4f38607930040a1cb03f109ae8c566f788b5c478ea0cf0033ec2ae9ac18e5b9097e005ecd64197b899f05ff06b35fc25ac8836e858cddd88e57cf5c
|
7
|
+
data.tar.gz: 9a6b86be660c3d0d73d6456ba0800c82f2195ba541fae22f0df54967f971903894104939d6832d11241e154372b6e8c849db560dac514ea4c2cf2dc8cf75fa1c
|
data/Gemfile
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
# ----------------------------------------------------------------------------
|
2
1
|
# Frozen-string-literal: true
|
3
2
|
# Copyright: 2015-2016 Jordon Bedwell - MIT License
|
4
3
|
# Encoding: utf-8
|
5
|
-
# ----------------------------------------------------------------------------
|
6
4
|
|
7
5
|
source "https://rubygems.org"
|
8
6
|
gem "rake", :require => false
|
@@ -18,7 +16,7 @@ group :test do
|
|
18
16
|
end
|
19
17
|
|
20
18
|
group :development do
|
19
|
+
gem "rubocop", :require => false
|
21
20
|
gem "luna-rubocop-formatters", :require => false
|
22
|
-
gem "rubocop", :github => "bbatsov/rubocop", :require => false
|
23
21
|
gem "pry", :require => false
|
24
22
|
end
|
data/lib/extras/string.rb
CHANGED
@@ -22,7 +22,7 @@ module Extras
|
|
22
22
|
# Split a string into an array.
|
23
23
|
# ------------------------------------------------------------------------
|
24
24
|
|
25
|
-
def
|
25
|
+
def char_to_a(char: "\s", strip: true)
|
26
26
|
escaped = char.regexp_escape
|
27
27
|
split(/(?<!\\)#{escaped}/).map do |v|
|
28
28
|
strip ? v.gsub(/\\#{escaped}/, char) : v
|
data/lib/extras/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: forwardable-extended
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.5.1
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Add neat extras into your Ruby stuff.
|