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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f103046f49374cf61bc34341760c19d4983be7a9
4
- data.tar.gz: 16aca5fe7a55cc6ecbb4d3cd19f462e9f7753470
3
+ metadata.gz: 2e3e0532b2c1e6027c7230b8ecb8a5a090019b7b
4
+ data.tar.gz: a28bbd8da74cfc2246e3852a53b6dcd84423f8ad
5
5
  SHA512:
6
- metadata.gz: b58cb7195b2f4fada3e477b240467c190f7ae0815d52ef594ee827f428bcb39f458a3c7d44a9f5d8ae6797f6b58034948f126dd0f659d2c5d0c08527c03abb36
7
- data.tar.gz: a3c5c9a244badd20e5279b8276ace39bb1ab064d78f0cd1944c9b4a6f0bc6d4f0375cfe4924d4f9e3a6f43fe3918aef51cfee8edc12cf71f84261b1f41b8ac1d
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 to_a(char: "\s", strip: true)
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
@@ -5,5 +5,5 @@
5
5
  # ----------------------------------------------------------------------------
6
6
 
7
7
  module Extras
8
- VERSION = "0.1.0"
8
+ VERSION = "0.2.0"
9
9
  end
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.1.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: 2016-04-07 00:00:00.000000000 Z
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.6.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.