stringify 0.1.0 → 0.2.0
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 +4 -4
- data/README.md +13 -2
- data/Rakefile +0 -5
- data/lib/stringify.rb +1 -0
- data/lib/stringify/version.rb +1 -1
- data/stringify.gemspec +1 -2
- metadata +5 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15edcb9ce93d68c2ff670585a37a08868042228e
|
4
|
+
data.tar.gz: 4c0615b1c3f71b6b70472457c600d58db3039a76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809184352bb3f96b6dd2223e824bc2cead3456641647748d163553da290c01cbda20434c0b4bdb1a17406259975a01d89894a4ffce0c5e912f8ec910bba069f1
|
7
|
+
data.tar.gz: be848317f0ddc365baf97265867aa81054514e89a8aa9f6e17828ff4d9813b1318c7029765876dd2fd0477b62792536cd062c74111f26d2c66f3de86a8af5e03
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Stringify
|
2
2
|
|
3
|
-
Stringify will combine the multiple strings provided on a delimeter given.
|
3
|
+
Stringify will combine the multiple (strings with strings) or (strings with arrays) or (arrays with arrays) provided on a delimeter given.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -20,10 +20,21 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
combine_with("-", "hello", "ruby", "world")
|
23
|
+
Stringify.combine_with("-", "hello", "ruby", "world")
|
24
24
|
|
25
25
|
It will join all strings with "-" like "hello-ruby-world"
|
26
26
|
|
27
|
+
|
28
|
+
Stringify.combine_with("-", ["welcome", "to"], "ruby", "world")
|
29
|
+
|
30
|
+
Result will be = "welcome-to-ruby-world"
|
31
|
+
|
32
|
+
|
33
|
+
Stringify.combine_with("-", ["welcome", ["to"]], ["ruby"], "world")
|
34
|
+
|
35
|
+
Result will be = "welcome-to-ruby-world"
|
36
|
+
|
37
|
+
|
27
38
|
You can use any delimeter
|
28
39
|
|
29
40
|
## Contributing
|
data/Rakefile
CHANGED
data/lib/stringify.rb
CHANGED
data/lib/stringify/version.rb
CHANGED
data/stringify.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["bilal.khan@square63.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{This gem while join your multiple strings witrh a delimeter}
|
13
|
-
spec.description = %q{You can combine your N strings on a delimeter by using method 'Combine_with(
|
13
|
+
spec.description = %q{You can combine your N strings/arrays on a delimeter by using method 'Stringify.Combine_with(delimeter, <comma separated strings/arrays>)'. You can join any number of strings with strings or strings with arrays or arrays with arrays.}
|
14
14
|
spec.homepage = "https://github.com/Bilkhaan/Stringify"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -29,5 +29,4 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.10"
|
31
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "rspec"
|
33
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stringify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bilal Khan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,22 +38,9 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
description: You can combine your N strings on a delimeter by using method 'Combine_with("delimeter",
|
56
|
-
"string1", "string2", ...... "string N")'
|
41
|
+
description: You can combine your N strings/arrays on a delimeter by using method
|
42
|
+
'Stringify.Combine_with(delimeter, <comma separated strings/arrays>)'. You can join
|
43
|
+
any number of strings with strings or strings with arrays or arrays with arrays.
|
57
44
|
email:
|
58
45
|
- bilal.khan@square63.com
|
59
46
|
executables: []
|