Browse Source

Rename app to slack-pixiv-bot, update Gemfile for

latest version of Ruby, new gems.
master
Daniel Muckerman 8 years ago
parent
commit
90960eaef1
6 changed files with 11 additions and 9 deletions
  1. +3
    -1
      Gemfile
  2. +3
    -3
      config.ru
  3. +0
    -4
      slack-numberman.rb
  4. +4
    -0
      slack-pixiv.rb
  5. +1
    -1
      slack-pixiv/app.rb
  6. +0
    -0
      slack-pixiv/commands/calculate.rb

+ 3
- 1
Gemfile View File

@ -1,11 +1,13 @@
source 'http://rubygems.org' source 'http://rubygems.org'
ruby '2.2.3'
ruby '2.2.4'
gem 'slack-ruby-bot' gem 'slack-ruby-bot'
gem 'wolfram' gem 'wolfram'
gem 'puma' gem 'puma'
gem 'sinatra' gem 'sinatra'
gem 'mechanize'
gem 'nokogiri'
group :development, :test do group :development, :test do
gem 'rake' gem 'rake'

+ 3
- 3
config.ru View File

@ -1,11 +1,11 @@
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.dirname(__FILE__))
require 'slack-numberman'
require 'slack-pixiv'
require 'web' require 'web'
Thread.new do Thread.new do
begin begin
SlackNumberman::App.instance.run
SlackPixiv::App.instance.run
rescue Exception => e rescue Exception => e
STDERR.puts "ERROR: #{e}" STDERR.puts "ERROR: #{e}"
STDERR.puts e.backtrace STDERR.puts e.backtrace
@ -13,4 +13,4 @@ Thread.new do
end end
end end
run SlackNumberman::Web
run SlackPixiv::Web

+ 0
- 4
slack-numberman.rb View File

@ -1,4 +0,0 @@
require 'slack-ruby-bot'
require 'wolfram'
require 'slack-numberman/commands/calculate'
require 'slack-numberman/app'

+ 4
- 0
slack-pixiv.rb View File

@ -0,0 +1,4 @@
require 'slack-ruby-bot'
require 'wolfram'
require 'slack-pixiv/commands/calculate'
require 'slack-pixiv/app'

slack-numberman/app.rb → slack-pixiv/app.rb View File

@ -1,4 +1,4 @@
module SlackNumberman
module SlackPixiv
class App < SlackRubyBot::App class App < SlackRubyBot::App
end end
end end

slack-numberman/commands/calculate.rb → slack-pixiv/commands/calculate.rb View File


Loading…
Cancel
Save