ex-string 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
- SHA1:
3
- metadata.gz: 2ee38d964df03118da8778a86cef7f26ede0095d
4
- data.tar.gz: 0db2e9adc9d1c0d36acf0d061baab1c8f3d50f34
2
+ SHA256:
3
+ metadata.gz: 8f68bbcd00a1e036881ec0b78cce40ea7b1b5bfcacd40df90db4f0dddcd48d03
4
+ data.tar.gz: aede5fc7549711555320279bb3ab3b067cf8327cd6f744b5e5c47a2a24bfe762
5
5
  SHA512:
6
- metadata.gz: ab50827b0d3b25b89b145a9930452a60287150127c637f0013b843b8238ce8f3ddf48f98567a8b5954c067e7ec27bd621a68c7857c4705d604d61670f9a2945c
7
- data.tar.gz: bc46fd5689eee301213ea8ecc79a46eeda88898bb32fb7ca64c4bcaba27db8349cbe7d99903e1229ba6a0a2ba603de925f5c8735c376b7f51c87f7baed3da8fc
6
+ metadata.gz: cf65622be79eb7e2cfa8b2c9849ca1c481d86749219f4bff7a5fcb3a092764ec4dfaa3e68f604261fbe48e432cf24cd71ea7092b8d033c2a13dbd12867b3b491
7
+ data.tar.gz: 8b8ba28fe9939bbe9c02f808c5d0f8d53edcd337a12311260d356b6250b1d701e92334df3b9b4b11a3a4aaaa86d547343cb16ac95ad5c2f8bc9f388ee50690a8
data/ex-string.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Elliott Hilaire"]
10
10
  spec.email = ["elliott.hilaire@gmail.com"]
11
11
 
12
- spec.summary = "Coming soon."
13
- spec.description = "A gem that is coming soon."
12
+ spec.summary = "An experiment in reimplementing the Elixir String module in Ruby"
13
+ spec.description = "An experiment in reimplementing the Elixir String module in Ruby"
14
14
  spec.homepage = "https://github.com/elliotthilaire/ex-string"
15
15
  spec.license = "MIT"
16
16
 
@@ -1,5 +1,5 @@
1
1
  module Ex
2
2
  module String
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
data/lib/ex/string.rb CHANGED
@@ -2,6 +2,11 @@ require "ex/string/version"
2
2
 
3
3
  module Ex
4
4
  module String
5
- # Your code goes here...
5
+
6
+ def pad_leading(string, count, padding = " ")
7
+ string.rjust(count, padding)
8
+ end
9
+
10
+ module_function :pad_leading
6
11
  end
7
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ex-string
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
  - Elliott Hilaire
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-28 00:00:00.000000000 Z
11
+ date: 2019-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
- description: A gem that is coming soon.
55
+ description: An experiment in reimplementing the Elixir String module in Ruby
56
56
  email:
57
57
  - elliott.hilaire@gmail.com
58
58
  executables: []
@@ -90,9 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.6.8
93
+ rubygems_version: 2.7.6
94
94
  signing_key:
95
95
  specification_version: 4
96
- summary: Coming soon.
96
+ summary: An experiment in reimplementing the Elixir String module in Ruby
97
97
  test_files: []
98
- has_rdoc: