buzztools 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/lib/buzztools/config.rb +1 -1
- data/lib/buzztools/extend_array.rb +2 -2
- data/lib/buzztools/extend_hash.rb +2 -2
- data/lib/buzztools/extend_string.rb +5 -5
- data/lib/buzztools/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: 0f43553f226cfb1524f5160d0570ed5e3fb0a1e5
|
4
|
+
data.tar.gz: c6c836de0a6069897b22e403060d3bc07e901da8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b1fd3ed438b8f8fd87b90b4842f9cce014bd828479ecdcc9ec2f649be15186bd0c67c568f14a104113d9a020aa1e6ca972182d14713cd99347b01703db032f
|
7
|
+
data.tar.gz: a8fdba0a760b224ecefe2fd3caba04916772c96550b06f37d9252b173ef45d028aa9c50d908a6b8b8d2a775498f88f33373d0ae6cd7e7abd0e6bd18dacadeafb
|
data/lib/buzztools/config.rb
CHANGED
@@ -4,7 +4,7 @@ module Buzztools
|
|
4
4
|
attr_reader :default_values
|
5
5
|
|
6
6
|
def initialize(aDefaultValues,aNewValues=nil,&aBlock)
|
7
|
-
@default_values = aDefaultValues.
|
7
|
+
@default_values = aDefaultValues.dup
|
8
8
|
reset()
|
9
9
|
if aNewValues
|
10
10
|
block_given? ? read(aNewValues,&aBlock) : read(aNewValues)
|
@@ -20,7 +20,7 @@ module ExtendArray
|
|
20
20
|
|
21
21
|
def filter_include(aValues,aArray=nil)
|
22
22
|
aArray ||= self
|
23
|
-
filter_include!(aValues,aArray.
|
23
|
+
filter_include!(aValues,aArray.dup)
|
24
24
|
end
|
25
25
|
|
26
26
|
def filter_exclude!(aValues,aArray=nil)
|
@@ -37,7 +37,7 @@ module ExtendArray
|
|
37
37
|
|
38
38
|
def filter_exclude(aValues,aArray=nil)
|
39
39
|
aArray ||= self
|
40
|
-
filter_exclude!(aValues,aArray.
|
40
|
+
filter_exclude!(aValues,aArray.dup)
|
41
41
|
end
|
42
42
|
|
43
43
|
def to_csv
|
@@ -17,7 +17,7 @@ module HashUtils
|
|
17
17
|
|
18
18
|
def filter_include(aKeys,aHash=nil)
|
19
19
|
aHash ||= self
|
20
|
-
filter_include!(aKeys,aHash.
|
20
|
+
filter_include!(aKeys,aHash.dup)
|
21
21
|
end
|
22
22
|
|
23
23
|
def filter_exclude!(aKeys,aHash=nil)
|
@@ -34,7 +34,7 @@ module HashUtils
|
|
34
34
|
|
35
35
|
def filter_exclude(aKeys,aHash=nil)
|
36
36
|
aHash ||= self
|
37
|
-
filter_exclude!(aKeys,aHash.
|
37
|
+
filter_exclude!(aKeys,aHash.dup)
|
38
38
|
end
|
39
39
|
|
40
40
|
def has_values_for?(aKeys,aHash=nil)
|
@@ -49,7 +49,7 @@ String.class_eval do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def extract(aValue=$/)
|
52
|
-
extract!(aValue,self.
|
52
|
+
extract!(aValue,self.dup)
|
53
53
|
end
|
54
54
|
|
55
55
|
# Like chomp! but operates on the leading characters instead.
|
@@ -70,7 +70,7 @@ String.class_eval do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def bite(aValue=$/)
|
73
|
-
bite!(aValue,self.
|
73
|
+
bite!(aValue,self.dup)
|
74
74
|
end
|
75
75
|
|
76
76
|
def deprefix!(aPrefix=$/,aString=self)
|
@@ -83,7 +83,7 @@ String.class_eval do
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def deprefix(aValue=$/)
|
86
|
-
deprefix!(aValue,self.
|
86
|
+
deprefix!(aValue,self.dup)
|
87
87
|
end
|
88
88
|
|
89
89
|
def desuffix!(aSuffix=$/,aString=self)
|
@@ -113,7 +113,7 @@ String.class_eval do
|
|
113
113
|
end
|
114
114
|
|
115
115
|
def ensure_prefix(aValue=$/)
|
116
|
-
ensure_prefix!(aValue,self.
|
116
|
+
ensure_prefix!(aValue,self.dup)
|
117
117
|
end
|
118
118
|
|
119
119
|
def ensure_suffix!(aSuffix=$/,aString=self)
|
@@ -122,7 +122,7 @@ String.class_eval do
|
|
122
122
|
end
|
123
123
|
|
124
124
|
def ensure_suffix(aValue=$/)
|
125
|
-
ensure_suffix!(aValue,self.
|
125
|
+
ensure_suffix!(aValue,self.dup)
|
126
126
|
end
|
127
127
|
|
128
128
|
def to_integer(aDefault=nil)
|
data/lib/buzztools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buzztools
|
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
|
- Gary McGhee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.5.1
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: reusable function library
|