digi_moji 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6cac885fd44251e38ed8fea8c2782dc49cb7b4c
4
- data.tar.gz: 19ae1b1c342e1974c64af59d13205ddf7fe87305
3
+ metadata.gz: d83bd7bdf91834c2572d2b202fc25975ce91a339
4
+ data.tar.gz: 82a7de8583fee4167c5f85fbec813c00d5c74d8b
5
5
  SHA512:
6
- metadata.gz: 431111951d4fa8336b001d7ada67b141f5b25746a708516752b68be460832616846709540a7e8eea81acb607a96137760177ae75b257ed3c6567f6b117488e4e
7
- data.tar.gz: 86d328f8fc24ca053935b5163c49cc2b70ad229164b70b62844bdb926f198314cdb9740bc5a44ef6612246e637c5b588951aa537106e724906f52ec468962ae4
6
+ metadata.gz: 58b7a056c9f5a47fe0fb5a9ea6d5bb7195a92c8bb6aba174846a33cd7fcf8ac7de58b49db2bab9dfecc11c32ea167a0ca9f425a136f344ceb708b02d9f713ed2
7
+ data.tar.gz: 0aa8459853acc150d3ceb3c1700813aa1c2bc232fcac00aebb47132c3fc265beaac0aada7e3b27698159db5c29672ba352154fcbf2924280b57bbe54d720e79e
data/lib/digi_moji.rb CHANGED
@@ -50,3 +50,9 @@ module DigiMoji
50
50
  end
51
51
  end
52
52
  end
53
+
54
+ class String
55
+ def to_digimoji(**opts)
56
+ DigiMoji::String.new(self, **opts)
57
+ end
58
+ end
@@ -1,3 +1,3 @@
1
1
  module DigiMoji
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -68,5 +68,15 @@ describe DigiMoji::String do
68
68
  end
69
69
  end
70
70
  end
71
+
72
+ describe String do
73
+ describe "#to_digimoji" do
74
+ it "returns a DigiMoji::String object" do
75
+ str = "Aa".to_digimoji
76
+ expect(str).to be_an_instance_of(DigiMoji::String)
77
+ expect(str.to_s).to eq @str_Aa
78
+ end
79
+ end
80
+ end
71
81
  end
72
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digi_moji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyoendo