Add Faker
This commit is contained in:
parent
b93a3b372c
commit
abab1ed226
4 changed files with 9 additions and 1 deletions
2
Gemfile
2
Gemfile
|
@ -6,6 +6,8 @@ gem 'tox', path: '../tox.rb'
|
|||
|
||||
gem 'curses', '~> 1.2'
|
||||
|
||||
gem 'faker', '~> 1.8'
|
||||
|
||||
group :development, :test do
|
||||
gem 'rubocop', '~> 0.49.1'
|
||||
end
|
||||
|
|
|
@ -8,6 +8,9 @@ GEM
|
|||
specs:
|
||||
ast (2.3.0)
|
||||
curses (1.2.3)
|
||||
faker (1.8.4)
|
||||
i18n (~> 0.5)
|
||||
i18n (0.8.6)
|
||||
parallel (1.11.2)
|
||||
parser (2.4.0.0)
|
||||
ast (~> 2.2)
|
||||
|
@ -30,6 +33,7 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
curses (~> 1.2)
|
||||
faker (~> 1.8)
|
||||
rubocop (~> 0.49.1)
|
||||
tox!
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
require 'thread'
|
||||
require 'curses'
|
||||
|
||||
require 'faker'
|
||||
|
||||
require 'widgets/menu'
|
||||
require 'widgets/peers'
|
||||
require 'widgets/chat'
|
||||
|
|
|
@ -15,7 +15,7 @@ module Widgets
|
|||
@top = 0
|
||||
|
||||
@items = 1.upto(height - 1 + 10).map do
|
||||
['Qwe'].*(3 * (1 + rand(15))).join(' ')
|
||||
Faker::Name.name
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Reference in a new issue