kilya 0.0.3 → 0.0.6
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/.gitignore +2 -0
- data/Rakefile +8 -0
- data/bin/kilya +1 -2
- data/kilya.gemspec +1 -1
- data/lib/kilya.rb +12 -8
- data/lib/services/string_builder.rb +7 -0
- data/test/test_kilya.rb +12 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7721bbcbaec01abe3435af363b9e526706a363f39b3c252f064b92da32db95a8
|
4
|
+
data.tar.gz: 59b6b5235b56e43f74c369525ece78a5103669dc6943e2012cc5d2cd18f72ed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f7c7d1ed5a0b0e6ccb22c8f9c97b50fc29b0508f1f6038bba8d635a8cafb6d34c7722492fc18f5d0a43d7f070c1e89a4af5cae4c80ab22a91bf22cfa982d6d7
|
7
|
+
data.tar.gz: 89d6500ca89306f57c3497e9e1bcfce9ae7bc08bb4351f6b3aa235dcaed0acc11701f2bc39b2481a993792748e568962411baeb2c76c6f7ad63f28ca83350267
|
data/.gitignore
CHANGED
data/Rakefile
ADDED
data/bin/kilya
CHANGED
data/kilya.gemspec
CHANGED
data/lib/kilya.rb
CHANGED
@@ -1,12 +1,16 @@
|
|
1
|
+
# main pont
|
2
|
+
require 'services/string_builder'
|
3
|
+
|
1
4
|
class Kilya
|
5
|
+
# It's my first simple gem
|
6
|
+
#
|
7
|
+
# Example:
|
8
|
+
# >> Kilya.reverse("abcd")
|
9
|
+
# => "dcba"
|
10
|
+
#
|
11
|
+
# Arguments:
|
12
|
+
# line: (String)
|
2
13
|
class << self
|
3
|
-
|
4
|
-
puts "Hello i'm kIlya"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def say(line)
|
9
|
-
words = line.nil? ? "Nothing to say" : line
|
10
|
-
puts words
|
14
|
+
include Services::StringBuilder
|
11
15
|
end
|
12
16
|
end
|
data/test/test_kilya.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'kilya'
|
3
|
+
|
4
|
+
class TestKilya < Minitest::Test
|
5
|
+
def test_reverse_string
|
6
|
+
assert_equal("aaasss", Kilya.reverse("sssaaa"))
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_not_empty_reverse
|
10
|
+
assert_equal("nothing to reverse", Kilya.reverse(nil))
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kilya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Kondratev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Class Kilya for test new gem.
|
14
14
|
email: ilyafulleveline@gmail.com
|
@@ -18,9 +18,12 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
|
+
- Rakefile
|
21
22
|
- bin/kilya
|
22
23
|
- kilya.gemspec
|
23
24
|
- lib/kilya.rb
|
25
|
+
- lib/services/string_builder.rb
|
26
|
+
- test/test_kilya.rb
|
24
27
|
homepage: https://github.com/ikondratev/kilya
|
25
28
|
licenses:
|
26
29
|
- MIT
|