diff --git a/Gemfile b/Gemfile index c36fb20..97953b0 100644 --- a/Gemfile +++ b/Gemfile @@ -1,11 +1,13 @@ source 'http://rubygems.org' -ruby '2.2.3' +ruby '2.2.4' gem 'slack-ruby-bot' gem 'wolfram' gem 'puma' gem 'sinatra' +gem 'mechanize' +gem 'nokogiri' group :development, :test do gem 'rake' diff --git a/config.ru b/config.ru index d193c85..cdfda3c 100644 --- a/config.ru +++ b/config.ru @@ -1,11 +1,11 @@ $LOAD_PATH.unshift(File.dirname(__FILE__)) -require 'slack-numberman' +require 'slack-pixiv' require 'web' Thread.new do begin - SlackNumberman::App.instance.run + SlackPixiv::App.instance.run rescue Exception => e STDERR.puts "ERROR: #{e}" STDERR.puts e.backtrace @@ -13,4 +13,4 @@ Thread.new do end end -run SlackNumberman::Web +run SlackPixiv::Web diff --git a/slack-numberman.rb b/slack-numberman.rb deleted file mode 100644 index 3354730..0000000 --- a/slack-numberman.rb +++ /dev/null @@ -1,4 +0,0 @@ -require 'slack-ruby-bot' -require 'wolfram' -require 'slack-numberman/commands/calculate' -require 'slack-numberman/app' diff --git a/slack-pixiv.rb b/slack-pixiv.rb new file mode 100644 index 0000000..43d6f12 --- /dev/null +++ b/slack-pixiv.rb @@ -0,0 +1,4 @@ +require 'slack-ruby-bot' +require 'wolfram' +require 'slack-pixiv/commands/calculate' +require 'slack-pixiv/app' diff --git a/slack-numberman/app.rb b/slack-pixiv/app.rb similarity index 65% rename from slack-numberman/app.rb rename to slack-pixiv/app.rb index f57a6de..a933a7a 100644 --- a/slack-numberman/app.rb +++ b/slack-pixiv/app.rb @@ -1,4 +1,4 @@ -module SlackNumberman +module SlackPixiv class App < SlackRubyBot::App end end diff --git a/slack-numberman/commands/calculate.rb b/slack-pixiv/commands/calculate.rb similarity index 100% rename from slack-numberman/commands/calculate.rb rename to slack-pixiv/commands/calculate.rb