-
Notifications
You must be signed in to change notification settings - Fork 0
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 #64 from true-runes/development
v1.2.0
- Loading branch information
Showing
10 changed files
with
176 additions
and
107 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
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 |
---|---|---|
|
@@ -26,3 +26,7 @@ group :development do | |
gem 'rubocop-rails' | ||
gem 'spring' | ||
end | ||
|
||
group :test do | ||
gem 'rspec_junit_formatter' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class Selector | ||
class << self | ||
# 対象を絞って高速化する | ||
# 'hashtag' には '#' は不要 | ||
def excluded_already_existing_tweets_by_hashtag_from_tweet_storage(hashtag) | ||
BySearchWordTweet.where( | ||
search_word: "##{hashtag}" | ||
).where.not( | ||
id_number: Tweet.contains_hashtag(hashtag).pluck(:id_number) | ||
) | ||
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
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,5 +1,13 @@ | ||
FactoryBot.define do | ||
factory :tweet do | ||
|
||
id_number { 192789663528910849 } | ||
full_text { "おはようございます!\nこんにちは!" } | ||
source { '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>' } | ||
in_reply_to_tweet_id_number { nil } | ||
in_reply_to_user_id_number { nil } | ||
is_retweet { false } | ||
language { 'ja' } | ||
is_public { true } | ||
tweeted_at { Time.zone.now.yesterday } | ||
end | ||
end |
Oops, something went wrong.