AsciiGenerator 1.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 +7 -0
- data/lib/AsciiGenerator.rb +20 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b2730d14a5d7536c7542b180dba6f9047d023e57fa8aad07412a53322496edce
|
4
|
+
data.tar.gz: 13167ed5596f46103469c12d1d51f5dcbdd06cdb476ffedccc64b12ecc70cab2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0c1470af6198aeaf92ce0fc256a65fff1fb45f7cf132fc88d6c4a3755f64be57f699409a4c101162b2b35dae86f6d539d8ccf681b93b2d09d3db111e02c3eba6
|
7
|
+
data.tar.gz: 26a8663072aeba0631cea7188e14d3c90f4fc06ba8e27b6133de86edd79bb99fb09a4fcb6357bbee112b4ba6fe0a927c3e0a8da08d3e7cefd1572bc4cb8bdd1c
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'open-uri'
|
2
|
+
|
3
|
+
class AsciiGenerator
|
4
|
+
|
5
|
+
def self.font_list
|
6
|
+
return open("http://artii.herokuapp.com/fonts_list").read
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.ascii(font, string)
|
10
|
+
return open("http://artii.herokuapp.com/make?text=#{string}&font=#{font}").read
|
11
|
+
end
|
12
|
+
|
13
|
+
def font_list
|
14
|
+
return open("http://artii.herokuapp.com/fonts_list").read
|
15
|
+
end
|
16
|
+
|
17
|
+
def ascii(font, string)
|
18
|
+
return open("http://artii.herokuapp.com/make?text=#{string}&font=#{font}").read
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: AsciiGenerator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Muham'RB
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Ascii Text generator with list font
|
14
|
+
email: paraghostsociety@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/AsciiGenerator.rb
|
20
|
+
homepage: https://rubygems.org/gems/AsciiGenerator
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.0.3
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Ascii Text generator class
|
43
|
+
test_files: []
|