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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f64bc5f5e4c4866af5621ceea6f21b1a9e46afe
4
- data.tar.gz: 8cfde7aed450b1766b176260550283d9c2fb4aeb
3
+ metadata.gz: 15edcb9ce93d68c2ff670585a37a08868042228e
4
+ data.tar.gz: 4c0615b1c3f71b6b70472457c600d58db3039a76
5
5
  SHA512:
6
- metadata.gz: 02435a08032e309b5261e9cc1ec41eb5e5b00c875329b9105d83ffe6962dbfee4ab10feab65eefd76abdcf0ed5dc1f95a78525609faca47cc73b08e5f915edef
7
- data.tar.gz: eb91cdc1fd6daed6f663f098073335326c6d20fd434ffd944505d636ee7e5e6f97e84ee609b16ad285a4e4fa12f36023619c8773124cf79b0f01a7c176f7be3e
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
@@ -1,6 +1 @@
1
1
  require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
@@ -2,6 +2,7 @@ require "stringify/version"
2
2
 
3
3
  module Stringify
4
4
  def self.combine_with(connector, *args)
5
+ args.flatten!
5
6
  return args.first if args.count == 1
6
7
  strings = args.map { |string| string.to_s }
7
8
  connector = connector.to_s
@@ -1,3 +1,3 @@
1
1
  module Stringify
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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("delimeter", "string1", "string2", ...... "string N")'}
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.1.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-14 00:00:00.000000000 Z
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
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
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: []