diff --git a/Gemfile b/Gemfile index 35bb4a9..f001286 100644 --- a/Gemfile +++ b/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 diff --git a/Gemfile.lock b/Gemfile.lock index 5b3da89..4a931bc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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! diff --git a/lib/main.rb b/lib/main.rb index 0ffe404..e8e7ade 100644 --- a/lib/main.rb +++ b/lib/main.rb @@ -3,6 +3,8 @@ require 'thread' require 'curses' +require 'faker' + require 'widgets/menu' require 'widgets/peers' require 'widgets/chat' diff --git a/lib/widgets/list.rb b/lib/widgets/list.rb index da9874f..524b13c 100644 --- a/lib/widgets/list.rb +++ b/lib/widgets/list.rb @@ -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