Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rwdaigle/gisted
base: 3ff6339843
...
head fork: rwdaigle/gisted
compare: c8e341dc0b
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
View
1  Gemfile
@@ -20,6 +20,7 @@ gem 'scrolls'
gem 'lograge'
gem 'newrelic_rpm'
gem 'airbrake'
+gem 'kanshi', :require => false
gem 'jquery-rails'
gem 'haml-rails'
View
6 Gemfile.lock
@@ -65,6 +65,10 @@ GEM
json (1.7.5)
jwt (0.1.5)
multi_json (>= 1.0)
+ kanshi (0.2.1)
+ pg
+ scrolls (~> 0.2)
+ sequel (~> 3.0)
lograge (0.0.6)
actionpack
activesupport
@@ -137,6 +141,7 @@ GEM
sass (>= 3.1.10)
tilt (~> 1.3)
scrolls (0.2.3)
+ sequel (3.40.0)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
@@ -171,6 +176,7 @@ DEPENDENCIES
dalli
haml-rails
jquery-rails
+ kanshi
lograge
newrelic_rpm
octokit
View
3  Procfile
@@ -1,2 +1,3 @@
web: bundle exec thin start -p $PORT
-worker: bundle exec rake qc:work
+worker: bundle exec rake qc:work
+kanshi: bundle exec kanshi
View
2  app/models/gist.rb
@@ -8,6 +8,8 @@ class Gist < ActiveRecord::Base
belongs_to :user
has_many :files, :class_name => 'GistFile', :dependent => :delete_all
+ index_name BONSAI_INDEX_NAME
+
mapping do
indexes :description, :analyzer => 'snowball', :boost => 10
indexes :gh_created_at, type: 'date'
View
4 config/initializers/tire.rb
@@ -1,7 +1,9 @@
require 'yajl/json_gem'
Tire.configure do
- url ENV['SEARCHBOX_URL']
+ url ENV['BASE_BONSAI_URL']
+ BONSAI_INDEX_NAME = ENV['BONSAI_INDEX_URL'][/[^\/]+$/]
+ # url ENV['SEARCHBOX_URL']
logger STDOUT, :level => ENV['LOG_LEVEL']
end

No commit comments for this range

Something went wrong with that request. Please try again.