oh_my_method 0.0.2 → 0.0.3

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: a3bc3302ab1d82a0a3948cb20c6fd3e4fa130c9b
4
- data.tar.gz: dbd2976ac34ca453f56100fefb7a97656dd9f6bf
3
+ metadata.gz: de64df8090017c131c6c5b34a24a53a1942585f3
4
+ data.tar.gz: 210b2aa51a39f20a0efe82fba868077356c2525e
5
5
  SHA512:
6
- metadata.gz: 0845542bc0c5f0ef6882d8bbd144dfca727222e60d1a3eb1d960b1246ed31552a9a369b44282595a5f8f2806c776bf43cc3982258f46e0e2ec9966545e5e0337
7
- data.tar.gz: 29be6d29ec4ef5a826175587e7fabe59f7701d5607933bdae2f4cb99c33c288f42a93f9733a628196ac7b63f7839bf08810172b12ba4c1cc98bb1d44f1fc1d45
6
+ metadata.gz: e24904ff458fa1c90bc089c0f3180f15e6a1746649b7e77e32795637d0d18777ca950fe5ba0db9ebb9665f82b7096d6658f60e256a92eecd430e0b25af3e332a
7
+ data.tar.gz: 3df4827b441824e282fd534a9b39a0f6926e3ef9b046930e6cf748d3da1e39deee98bf188f06ef461e0f508e4057fc8025eb8047e41e090eec09e71363caac66
@@ -0,0 +1,5 @@
1
+ class String
2
+ def palindrome?
3
+ self == self.reverse
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module OhMyMethod
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/oh_my_method.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  require "oh_my_method/version"
2
2
  require "oh_my_method/integer"
3
+ require "oh_my_method/string"
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe "String Class" do
4
+ it "palindrome?" do
5
+ expect("hello".palindrome?).to eq false
6
+ expect("heeeh".palindrome?).to eq true
7
+ expect("Heeeh".palindrome?).to eq false
8
+ expect("ABCBA".palindrome?).to eq true
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oh_my_method
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - siman-man
@@ -52,9 +52,11 @@ files:
52
52
  - Rakefile
53
53
  - lib/oh_my_method.rb
54
54
  - lib/oh_my_method/integer.rb
55
+ - lib/oh_my_method/string.rb
55
56
  - lib/oh_my_method/version.rb
56
57
  - oh_my_method.gemspec
57
58
  - spec/oh_my_method/integer_spec.rb
59
+ - spec/oh_my_method/string_spec.rb
58
60
  - spec/spec_helper.rb
59
61
  homepage: https://github.com/siman-man/oh_my_method
60
62
  licenses:
@@ -82,5 +84,6 @@ specification_version: 4
82
84
  summary: Collection of we method.
83
85
  test_files:
84
86
  - spec/oh_my_method/integer_spec.rb
87
+ - spec/oh_my_method/string_spec.rb
85
88
  - spec/spec_helper.rb
86
89
  has_rdoc: