aesthetify 1.0.0 → 1.0.1

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: 26e9f57ded41bc8c54354ae4643929b173d715ac
4
- data.tar.gz: b36d0dc2c464331b734dc7da5eab243154741146
3
+ metadata.gz: 00d85874813e3f4fbc7ed1caccbc3b278d04fcc0
4
+ data.tar.gz: 69f7d840c31a38cdd980c44f67368366728c7b1b
5
5
  SHA512:
6
- metadata.gz: a47803fbb2325ce23dca838aa221c523cf748b01081332d15dc442a318cae53a8d19f7e362381869619e516cac1b5ae9b0036da9292bd711b9297ab7c748eb85
7
- data.tar.gz: 9e54cf05e1cc2e50c9a5283641070be4d0d8604455f01e0248559d8e15a7972c0303b8afac06605c90ff9db6f9ced9bfed021a6e5e86eb2e4868c580689fd7e0
6
+ metadata.gz: cffc8d7f31151e78e3e1436846b3f7b972ad872f18264a81736f1dd4fe1ece904139e976cbc91f22f3d0f430845abfd564a5e3489f7feb0a849a262b3cfd8f8d
7
+ data.tar.gz: 8a2dcfb2fb21c2d06d4bcd10c3c6457559e6d257def780c47fd4099fc1b8590db4059bb727ef32b5e4aecdf6375b3bf9e1f4056e8de49f1589aee61eb7d023cb
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aesthetify (1.0.0)
4
+ aesthetify (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- minitest (5.10.2)
9
+ minitest (5.11.3)
10
10
  minitest-proveit (1.0.0)
11
11
  minitest (> 5, < 7)
12
- rake (12.0.0)
12
+ rake (12.3.0)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
@@ -22,4 +22,4 @@ DEPENDENCIES
22
22
  rake
23
23
 
24
24
  BUNDLED WITH
25
- 1.15.1
25
+ 1.16.1
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # aesthetify
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/aesthetify.svg)](https://badge.fury.io/rb/aesthetify)
4
+
3
5
  aesthetify makes it simple to take any string and transform it for the
4
6
  AESTHETIC. In addition, it also makes creating Fullwidth text
5
7
  just as simple.
@@ -32,5 +34,12 @@ puts text
32
34
  #=> This is the SAD BOYS club
33
35
  ```
34
36
 
37
+ ## Supported Ruby versions
38
+ aesthetify supports all of the currently supported versions of Ruby. As of
39
+ 2018-03-18 these are:
40
+ - Ruby 2.3 - 2.3.6
41
+ - Ruby 2.4 - 2.4.3
42
+ - Ruby 2.5
43
+
35
44
  ## License
36
- aesthetify is released under the [MIT License](https://opensource.org/licenses/MIT).
45
+ aesthetify is licensed under the [MIT License](https://opensource.org/licenses/MIT).
data/aesthetify.gemspec CHANGED
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "aesthetify"
3
- s.version = "1.0.0"
3
+ s.version = "1.0.1"
4
4
  s.authors = "TheAssailant"
5
5
  s.email = "TheAssailant@users.noreply.github.com"
6
6
  s.summary = %q{aesthetify is a gem that lets you transform ASCII text into fullwidth text of 2 distinct flavors: regular Fullwidth and AESTHETIC}
7
7
  s.homepage = "https://github.com/TheAssailant/aesthetify"
8
8
  s.license = "MIT"
9
9
 
10
- s.required_ruby_version = "~> 2.1"
10
+ s.required_ruby_version = "~> 2.3"
11
11
 
12
12
  s.add_development_dependency "bundler", "~> 1.15"
13
13
 
data/lib/aesthetify.rb CHANGED
@@ -8,12 +8,13 @@
8
8
  class String
9
9
  def aesthetify
10
10
  output = []
11
- self.split("").each do |letter|
11
+ # Did you know? You can do something like this without a `self`
12
+ split("").each do |letter|
12
13
  # We skip lowercase letters so we can turn them uppercase for the
13
14
  # aesthetify method
14
- if (0x0021..0x0060).include?(letter.ord) || (0x007B..0x007E).include?(letter.ord)
15
+ if (0x0021..0x0060).cover?(letter.ord) || (0x007B..0x007E).cover?(letter.ord)
15
16
  output << (letter.ord + 0xFF00 - 32).chr(Encoding::UTF_8)
16
- elsif (0x0061..0x007A).include?(letter.ord)
17
+ elsif (0x0061..0x007A).cover?(letter.ord)
17
18
  output << (letter.ord + 0xFF00 - 64).chr(Encoding::UTF_8)
18
19
  else
19
20
  output << letter
@@ -23,13 +24,13 @@ class String
23
24
  end
24
25
 
25
26
  def aesthetify!
26
- self.replace self.aesthetify
27
+ replace aesthetify
27
28
  end
28
29
 
29
30
  def fullwidth
30
31
  output = []
31
- self.split("").each do |letter|
32
- if(0x0021..0x007E).include?(letter.ord)
32
+ split("").each do |letter|
33
+ if (0x0021..0x007E).cover?(letter.ord)
33
34
  output << (letter.ord + 0xFF00 - 32).chr(Encoding::UTF_8)
34
35
  else
35
36
  output << letter
@@ -39,6 +40,6 @@ class String
39
40
  end
40
41
 
41
42
  def fullwidth!
42
- self.replace self.fullwidth
43
+ replace fullwidth
43
44
  end
44
45
  end
@@ -12,6 +12,8 @@ FULLWIDTH1 = " !"#$%&'()*+,-./012345
12
12
  FULLWIDTH2 = "The quick brown fox jumps over the lazy dog."
13
13
 
14
14
  class AesthetifyTest < Minitest::Test
15
+ prove_it!
16
+
15
17
  def test_aesthetify
16
18
  assert_equal AESTHETIFY1, DATA1.aesthetify
17
19
  assert_equal AESTHETIFY2, DATA2.aesthetify
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aesthetify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TheAssailant
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.1'
54
+ version: '2.3'
55
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ">="
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 2.5.2
62
+ rubygems_version: 2.6.11
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: "aesthetify is a gem that lets you transform ASCII text into fullwidth text