Skip to content

Commit cd9a71d

Browse files
committed
Revert "Mongo grave "
1 parent bd438ee commit cd9a71d

32 files changed

+152
-518
lines changed

Gemfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ gem 'simple_form'
122122
gem 'tweet-button'
123123
gem 'local_time'
124124

125-
gem 'elasticsearch-model'
126-
gem 'elasticsearch-rails'
127-
128125
# DROP BEFORE RAILS 4
129126
# Mongo
130127
gem 'mongoid'
@@ -177,7 +174,6 @@ group :test do
177174
gem 'timecop'
178175
gem 'vcr'
179176
gem 'webmock', '<1.16'
180-
gem 'stripe-ruby-mock', git: 'https://github.com/rebelidealist/stripe-ruby-mock', branch: 'live-tests'
181177
end
182178

183179
group :production do

Gemfile.lock

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ GIT
3838
mime-types (>= 1.25, < 3.0)
3939
rest-client (~> 1.4)
4040

41-
GIT
42-
remote: https://github.com/rebelidealist/stripe-ruby-mock
43-
revision: f4229cbe762bc2a5a302cdd83088c283881e9c5a
44-
branch: live-tests
45-
specs:
46-
stripe-ruby-mock (1.10.1.7)
47-
dante (>= 0.2.0)
48-
jimson-temp
49-
stripe (>= 1.15.0)
50-
5141
GEM
5242
remote: https://rubygems.org/
5343
remote: https://rails-assets.org/
@@ -116,7 +106,6 @@ GEM
116106
rack (>= 0.9.0)
117107
binding_of_caller (0.7.2)
118108
debug_inspector (>= 0.0.1)
119-
blankslate (3.1.3)
120109
bson (1.10.2)
121110
bson_ext (1.10.2)
122111
bson (~> 1.10.2)
@@ -184,7 +173,6 @@ GEM
184173
httparty (~> 0.10)
185174
json
186175
curb (0.8.6)
187-
dante (0.2.0)
188176
database_cleaner (1.3.0)
189177
debug_inspector (0.0.2)
190178
debugger-linecache (1.2.0)
@@ -204,19 +192,6 @@ GEM
204192
execjs
205193
eco-source (1.1.0.rc.1)
206194
ejs (1.1.1)
207-
elasticsearch (1.0.4)
208-
elasticsearch-api (= 1.0.4)
209-
elasticsearch-transport (= 1.0.4)
210-
elasticsearch-api (1.0.4)
211-
multi_json
212-
elasticsearch-model (0.1.4)
213-
activesupport (> 3)
214-
elasticsearch (> 0.4)
215-
hashie
216-
elasticsearch-rails (0.1.4)
217-
elasticsearch-transport (1.0.4)
218-
faraday
219-
multi_json
220195
em-http-request (1.1.2)
221196
addressable (>= 2.3.4)
222197
cookiejar
@@ -346,11 +321,6 @@ GEM
346321
jbuilder (2.1.3)
347322
activesupport (>= 3.0.0, < 5)
348323
multi_json (~> 1.2)
349-
jimson-temp (0.9.5)
350-
blankslate (>= 3.1.2)
351-
multi_json (~> 1.0)
352-
rack (~> 1.4)
353-
rest-client (~> 1.0)
354324
journey (1.0.4)
355325
jquery-rails (2.0.3)
356326
railties (>= 3.1.0, < 5.0)
@@ -757,8 +727,6 @@ DEPENDENCIES
757727
createsend
758728
database_cleaner
759729
dotenv-rails
760-
elasticsearch-model
761-
elasticsearch-rails
762730
ember-rails!
763731
fabrication-rails
764732
faraday (~> 0.8.1)
@@ -838,7 +806,6 @@ DEPENDENCIES
838806
spring-commands-rspec
839807
squeel (= 1.0.1)
840808
stripe!
841-
stripe-ruby-mock!
842809
strong_parameters
843810
syntax
844811
timecop

app/jobs/refresh_user_job.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ def perform(user_id, full=false)
77

88
user = User.find(user_id)
99

10+
if user.github_id
11+
user.destroy_github_cache
12+
end
13+
1014
return if !full && user.last_refresh_at > 3.days.ago
1115

1216
begin
@@ -17,6 +21,7 @@ def perform(user_id, full=false)
1721
user.calculate_score!
1822
ensure
1923
user.touch(:last_refresh_at)
24+
user.destroy_github_cache
2025
end
2126
end
2227
end

app/jobs/team_migrator_batch_job.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/jobs/team_migrator_job.rb

Lines changed: 0 additions & 169 deletions
This file was deleted.

app/models/concerns/team_migration.rb

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/models/concerns/team_search.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/models/followed_team.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# TODO, rename to Teams::Follower
21
class FollowedTeam < ActiveRecord::Base
3-
belongs_to :team, class_name: 'PgTeam'
4-
belongs_to :user
52
end
63

74
# == Schema Information
5+
# Schema version: 20140728214411
86
#
97
# Table name: followed_teams
108
#
119
# id :integer not null, primary key
1210
# user_id :integer
1311
# team_document_id :string(255)
14-
# created_at :datetime default(2012-03-12 21:01:09 UTC)
15-
# team_id :integer
12+
# created_at :datetime default(2014-02-20 22:39:11 UTC)
1613
#

0 commit comments

Comments
 (0)