-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from AresMUSH/v0.9
V0.9
- Loading branch information
Showing
32 changed files
with
282 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bundle install | ||
bundle exec rake add_plugin[$*] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
brew update | ||
brew install yarn | ||
brew install git | ||
brew install redis | ||
brew install node | ||
|
||
command curl -sSL https://rvm.io/mpapis.asc | gpg --import - | ||
\curl -sSL https://get.rvm.io | bash -s stable --rails | ||
source /home/ares/.rvm/scripts/rvm | ||
rvm install ruby-2.4.1 | ||
rvm use ruby-2.4.1 | ||
|
||
gem install bundler | ||
|
||
npm install -g ember-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
choco install git | ||
choco install yarn | ||
choco install redis-64 | ||
choco install github | ||
choco install nodejs.install | ||
choco install ruby --version 2.4.3.1 | ||
choco install ruby2.devkit | ||
|
||
gem install bundler | ||
|
||
npm install -g ember-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.8 | ||
0.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module AresMUSH | ||
|
||
puts "=======================================================================" | ||
puts "Add timestamps to channel history. " | ||
puts "=======================================================================" | ||
|
||
|
||
Channel.all.each do |c| | ||
messages = c.messages | ||
new_messages = c.messages.map { |m| { message: m, timestamp: DateTime.now }} | ||
c.update(messages: new_messages) | ||
end | ||
puts "Upgrade complete!" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
module AresMUSH | ||
module Forum | ||
class RecentForumPostsRequestHandler | ||
def handle(request) | ||
|
||
enactor = request.enactor | ||
|
||
error = WebHelpers.check_login(request, true) | ||
return error if error | ||
|
||
posts = BbsPost.all.select { |p| Forum.can_read_category?(enactor, p.bbs_board ) } | ||
.sort_by { |p| p.last_updated }.reverse[0..6] | ||
|
||
recent = [] | ||
|
||
posts.each do |p| | ||
if (p.bbs_replies.empty?) | ||
recent << { | ||
id: p.id, | ||
category_id: p.bbs_board.id, | ||
author: { | ||
name: p.author_name, | ||
icon: p.author ? WebHelpers.icon_for_char(p.author) : nil | ||
}, | ||
date: p.created_date_str_short(enactor), | ||
subject: p.subject, | ||
is_reply: false | ||
} | ||
else | ||
last_reply = p.bbs_replies.to_a[-1] | ||
recent << { | ||
id: p.id, | ||
category_id: p.bbs_board.id, | ||
author: { | ||
name: last_reply.author_name, | ||
icon: last_reply.author ? WebHelpers.icon_for_char(last_reply.author) : nil | ||
}, | ||
date: last_reply.created_date_str_short(enactor), | ||
subject: p.subject, | ||
is_reply: true | ||
} | ||
end | ||
end | ||
|
||
recent | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.