terminal_character 0.2.2 → 0.3.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 +4 -4
- data/README.md +10 -33
- data/lib/character.rb +130 -57
- data/lib/terminal_character/version.rb +1 -1
- data/lib/terminal_character.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 544f4b2bc6577847669973007560d5f76364398551ba57c1b9bd2c9aa0443f38
|
4
|
+
data.tar.gz: e0baaa83e0f5da75c286b3d98ca871d86d059981dfa9c0e4597f32626a5a98d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b7bf3d6560abd39d4df4ec3f65e78ee1289d5c03a90974d29793e60dd887692b28f0aa9eecc1edd6ddeea1a24de9a521847acb5d8fe874d68a8fd08eff2a881
|
7
|
+
data.tar.gz: f00da09d939962961ed23f127bb9599c71688489dcd9f660735f151df9103ac4525394b0af98926dabb370d45ebb2e6572b848b8c1a5f13166fd85f783fae09f
|
data/README.md
CHANGED
@@ -1,35 +1,12 @@
|
|
1
1
|
# TerminalCharacter
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
-
|
27
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/terminal_character.
|
32
|
-
|
33
|
-
## License
|
34
|
-
|
35
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
3
|
+
### 使い方
|
4
|
+
1. Gemfileに`gem 'terminal_character'`と記載する
|
5
|
+
2. railsアプリケーションのvsコードの適当なファイルに`puts_character`と記載する
|
6
|
+
記載例:トップページを表示するコントローラーのindexアクション
|
7
|
+
```ruby
|
8
|
+
def index
|
9
|
+
puts_character
|
10
|
+
end
|
11
|
+
```
|
12
|
+
3. サーバー起動後、記載した`puts_character`が読まれる挙動をするとターミナルにちいかわのキャラが表示される
|
data/lib/character.rb
CHANGED
@@ -1,62 +1,62 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
def chiikawa_usagi
|
4
|
-
"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
.### `````````.##```.```.`````````````.``````.`````````````````````````.###.````````````````````````.````````` ####. ###
|
40
|
-
.###``````````.##``````````.```.`````````.``````.```.````````.````.``.` ###``.```.`````````````````````.```.````.###.
|
41
|
-
####`````.````````````.```..##.. `.```````````````````.`.``.``.````````` #``````````.``.`````````````````````````.###.
|
42
|
-
###`````````.``````.````.########.```.``````.```````.########.``````````````.`````````````.`````.``.````````````` ###~
|
43
|
-
###`````````````.``````.##### ####``````.`````.``..##### ####.``.```.```.``````.````````````.````````.``.```.``.`.###~
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
4
|
+
" .####. .#####.
|
5
|
+
.####### .###``####.
|
6
|
+
.####````##..###```` ####
|
7
|
+
.####`````###.### `````####
|
8
|
+
.### ``````###.##```````####
|
9
|
+
###~ ``````#####~~ `````####
|
10
|
+
.###~~ `````####~~~~ ````###.
|
11
|
+
###~~~ `````####~~~~ ````###
|
12
|
+
###~~~ `````####~~~~ ``` ###
|
13
|
+
###~~~ `````#####~~~ ````##.
|
14
|
+
###~~~ `````####~~~~ ````##
|
15
|
+
###~~~~ ````####~~~~ ````##
|
16
|
+
.###~~~~ ```.###~~~~ ````##.
|
17
|
+
###~~~~ ``` ###~~~~ ````##
|
18
|
+
.##~~~~ ```.###~~~ `````##.
|
19
|
+
###~~~~ ```.###~~~ ```.##
|
20
|
+
.##~~~~ ``` ####~~ ```.##.
|
21
|
+
.###~~~ ```.###~~~~ ``.##
|
22
|
+
.###~~~ ```.###~~~~ `` ##
|
23
|
+
.####~~ ``.###~~~~ `` #.
|
24
|
+
.####~ ` ###~~ `` ### .###~#~..
|
25
|
+
..####~``` ###### ````#`~.###########~~..
|
26
|
+
..############'````````````.```````````` ###########..
|
27
|
+
..######``##`````````````````.`````````````````````~#########.
|
28
|
+
.#######```````````````````````````````````````````````````########.
|
29
|
+
.#####~~````````````````````.``.```````.``.``````````````````````..######.
|
30
|
+
..####~```````.`` ...```````````````````.`````.``.````````````````````` .#####. .. .#~
|
31
|
+
.######````````..#######`.`````````````.`````.#####.. ``.`````````````````` .####. ##~ ### `.###
|
32
|
+
##### ``````` .####`#~~ ```````.``````````````###########.``.``.``.````````````.####. ### #~ .##~
|
33
|
+
.####````````.#####~````````````````.``.````````````` ~######. ````````.`````````` .###~ .#~.. #` ...
|
34
|
+
#####``````.`.###= ````````````.`````````````.```````````` #####.``````````.`````````.###.##########.. ####`
|
35
|
+
.#### `````.``.###```````````.`````````````````````````````````#####.``.````````.```````####``````~#######.
|
36
|
+
.###~`````````###'```````````````````.``````.`````.```````.`````` #####``````````````.````###``````````~#####. ####.
|
37
|
+
###~```````.`.###``````````.`````.``````.``````.`````.`````````````#####``.``.````````````.###``````````` #####. #
|
38
|
+
####`````.``` ###``````````````.`````````````````````````.`````.`````.####`````````.````.```#```.```````````.####. ###.
|
39
|
+
.### `````````.##```.```.`````````````.``````.`````````````````````````.###.````````````````````````.````````` ####. ###
|
40
|
+
.###``````````.##``````````.```.`````````.``````.```.````````.````.``.` ###``.```.`````````````````````.```.````.###.
|
41
|
+
####`````.````````````.```..##.. `.```````````````````.`.``.``.````````` #``````````.``.`````````````````````````.###.
|
42
|
+
###`````````.``````.````.########.```.``````.```````.########.``````````````.`````````````.`````.``.````````````` ###~
|
43
|
+
###`````````````.``````.##### ####``````.`````.``..##### ####.``.```.```.``````.````````````.````````.``.```.``.`.###~
|
44
|
+
###````.````````````.``.##### `####````````````````.#### ####~````````````````````.```````````````````````````````####
|
45
|
+
###``````.``... ...... .######``###```.````````.```.#####`#####````.```````.``````````.``.`````````````````````````~###
|
46
|
+
.###```````..#.~~##~~##~.#########`````````.````````.#########``...~~##~~#~ `.``.```````````.```.``.``````.```.`.``.###
|
47
|
+
###`.```` ~###~##~~###~.~ `.`````.```.`````.``.```` #####`` ###~###~##~~#~.````````````````````````.````````````####
|
48
|
+
####````.~~##~~##~~#####~ ```````````````... ```````````````.~###~##~~##~~###`````.````.``````````````````````````###.
|
49
|
+
.###.```` ##~~##~~#~~#~~~``````````..#.``###````..`````````` ###~###~###~~##..`````````````.``.`````````.``.````` ###
|
50
|
+
.###.````` ~~~.~~~~~~~ ````````````.########..###.`````````` ~~~###~~~~~~~~````.````.```````````.``.``````````.`###~
|
51
|
+
####.```````````````````````````.``###########. ````.``.````` ##~.~.##` ````````````````````````````.``````` .###
|
52
|
+
.####.`````````````````````.``````` ###...```````````````````````````````````````````.````.`.`````````.`````######.
|
53
|
+
.###. ````````````````.````````````~###~`````````````````````````````````````.````````````.~~####.``````````~####~
|
54
|
+
#####.``````.````.````````.``````````````````.`````.``````````````````````````.````.```` ~~~~####.``.`.```` ~##~
|
55
|
+
######. ````````````````````.`````````````````.`````.`````````````````.```````````````````` ~##########~~###
|
56
|
+
.#######.. `````.``.```.````.``````.``.``````````.```.``.``.```.``.````.```.``.```.``` ..###~#####````#
|
57
|
+
.############......```````.``.``````.``.``.`````````````. .....~~...~########~#########`
|
58
|
+
#`########################~~#################################################`##`
|
59
|
+
~##`````````############################````##`
|
60
60
|
"
|
61
61
|
end
|
62
62
|
|
@@ -137,4 +137,77 @@ def chiikawa_hachiware
|
|
137
137
|
####~~~###~. .##~
|
138
138
|
~~~ ~#####
|
139
139
|
"
|
140
|
-
end
|
140
|
+
end
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
def chiikawa_chiikawa
|
146
|
+
"
|
147
|
+
..######..
|
148
|
+
.###########~.
|
149
|
+
.########.. ....... .#### .####
|
150
|
+
.###` ~#####. ...~~######################..##### #####
|
151
|
+
.#### ####.#########``###~ ~########### .####
|
152
|
+
#### ######## ~#### ####
|
153
|
+
####~ #### ###
|
154
|
+
.###. ###
|
155
|
+
.###. .#####..
|
156
|
+
~## #######..
|
157
|
+
..### ######.
|
158
|
+
..###` ######.
|
159
|
+
.#### #####.
|
160
|
+
.###` ..... ######.
|
161
|
+
.##### ..####. ####### .#####.
|
162
|
+
.#### .####``# #`` #####.
|
163
|
+
.#### #`# #####.
|
164
|
+
.##### #####
|
165
|
+
##### #####
|
166
|
+
.#### .#######.. #####
|
167
|
+
.#### ..###. ####### #####
|
168
|
+
.#### .######### ##~# ..~~~~~~~... #####
|
169
|
+
#### .######~` .##..####~###~.~ #####
|
170
|
+
.#### ...~~.~~~.. `` .###..####.###~### .####
|
171
|
+
#### ..##....~~.~~~~. .... .###..####~######## ####.
|
172
|
+
.### ..####.###.##..~#.` .### ##~..###..###.##~ ####.
|
173
|
+
#### ..####.####.###.### .##. ####~ .## `...~##.~##..~#. ####
|
174
|
+
#### ..####.####.###~#### ###############` `..##~#.~~#` ####.
|
175
|
+
#### ##~~~.##..###.~~.``` #### .### ````` .####
|
176
|
+
#### ..~~~~.~..~..` .###. .### .####
|
177
|
+
#### ```` ###~. #### ####
|
178
|
+
.###. ######## .####
|
179
|
+
#### .###
|
180
|
+
###. .######. .###
|
181
|
+
#### .###~ ###
|
182
|
+
#### .###
|
183
|
+
#### .###
|
184
|
+
#### ####
|
185
|
+
####. .####
|
186
|
+
#####. ########..
|
187
|
+
#####. ~#######.
|
188
|
+
####~. .####~
|
189
|
+
#####. ####
|
190
|
+
##### ###... ...####
|
191
|
+
.#### ##########~
|
192
|
+
.#### ###
|
193
|
+
.#### ... ###
|
194
|
+
###. .dMMt .###
|
195
|
+
.#########~ .. .###
|
196
|
+
~````# #### .###
|
197
|
+
####. .####
|
198
|
+
#### .####
|
199
|
+
#### ####
|
200
|
+
.###~ .####
|
201
|
+
.####. .####
|
202
|
+
.#####. ..#####
|
203
|
+
.##~~####. .#####
|
204
|
+
### ######. ..#####
|
205
|
+
.####. .######.. ...#####
|
206
|
+
.#######~ #########.. .######~
|
207
|
+
##############~~~~. .## ###
|
208
|
+
########## .### .###
|
209
|
+
####. #### .###
|
210
|
+
#####..#####..###
|
211
|
+
.##``#######
|
212
|
+
"
|
213
|
+
end
|
data/lib/terminal_character.rb
CHANGED