From 90960eaef1a3fcddc4793ec0aba979f765778692 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Sun, 17 Jan 2016 21:36:45 -0500 Subject: [PATCH] Rename app to slack-pixiv-bot, update Gemfile for latest version of Ruby, new gems. --- Gemfile | 4 +++- config.ru | 6 +++--- slack-numberman.rb | 4 ---- slack-pixiv.rb | 4 ++++ {slack-numberman => slack-pixiv}/app.rb | 2 +- {slack-numberman => slack-pixiv}/commands/calculate.rb | 0 6 files changed, 11 insertions(+), 9 deletions(-) delete mode 100644 slack-numberman.rb create mode 100644 slack-pixiv.rb rename {slack-numberman => slack-pixiv}/app.rb (65%) rename {slack-numberman => slack-pixiv}/commands/calculate.rb (100%) 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