Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rebranding

  • Loading branch information...
commit 0da93503c8399ffb4bb1413f19113867aad85865 1 parent 372a825
@antono authored
View
1  .gitignore
@@ -5,3 +5,4 @@ tmp/**/*
doc/*
.sass-cache/
tmp/
+TAGS
View
1  .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.2
View
2  Rakefile
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
require 'rake'
-Shelltube::Application.load_tasks
+Shelr::Application.load_tasks
View
2  app/controllers/records_controller.rb
@@ -1,5 +1,5 @@
class RecordsController < ApplicationController
- #before_filter :login_or_oauth_required, only: [:create, :update, :destroy, :new]
+
respond_to :html, :json
def index
View
2  app/views/layouts/application.html.haml
@@ -16,7 +16,7 @@
%link{ href: "/favicon.png", rel: "icon", type: "image/png" }
= csrf_meta_tag
%body
- <a href="http://github.com/red-brigade/shelr"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://assets0.github.com/img/5d21241b64dc708fcbb701f68f72f41e9f1fadd6?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_left_red_aa0000.png&path=" alt="Fork me on GitHub"></a>
+ = render :partial => 'shared/forkme'
#wrapper
%header
View
1  app/views/shared/_forkme.html.erb
@@ -0,0 +1 @@
+<a href="http://github.com/red-brigade/shelr"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://assets0.github.com/img/5d21241b64dc708fcbb701f68f72f41e9f1fadd6?repo=&url=http%3A%2F%2Fs3.amazonaws.com%2Fgithub%2Fribbons%2Fforkme_left_red_aa0000.png&path=" alt="Fork me on GitHub"></a>
View
2  config.ru
@@ -3,4 +3,4 @@
require ::File.expand_path('../config/environment', __FILE__)
require 'sass/plugin/rack'
use Sass::Plugin::Rack
-run Shelltube::Application
+run Shelr::Application
View
22 config/application.rb
@@ -1,12 +1,18 @@
require File.expand_path('../boot', __FILE__)
require "action_controller/railtie"
+require "rails/test_unit/railtie"
+require "sprockets/railtie"
+
+if defined?(Bundler)
+ # If you precompile assets before deploying to production, use this line
+ puts "=> Bundler require"
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
+ # If you want your assets lazily compiled in production, use this line
+ # Bundler.require(:default, :assets, Rails.env)
+end
-# If you have a Gemfile, require the gems listed there, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(:default, Rails.env) if defined?(Bundler)
-
-module Shelltube
+module Shelr
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded.
@@ -39,9 +45,9 @@ class Application < Rails::Application
g.test_framework :rspec, :fixture => false, :views => false
end
- config.secret_token = 'Veni Vidi Vici! Venis Vidas Venkos!'
+ config.secret_token = ENV['SECRET_TOKEN']
- # Configure sensitive parameters which will be filtered from the log file.
- config.filter_parameters += [:password]
+ # config.middleware.use OmniAuth::Strategies::GitHub,
+ # ENV['GITHUB_ID'], ENV['GITHUB_SECRET']
end
end
View
30 config/boot.rb
@@ -1,19 +1,21 @@
require 'rubygems'
-require 'bundler'
# Set up gems listed in the Gemfile.
-gemfile = File.expand_path('../../Gemfile', __FILE__)
-begin
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
- # For heroku
- #def FileUtils.mkdir_p(foo)
- # puts foo
- #end
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
- ENV['BUNDLE_GEMFILE'] = gemfile
- Bundler.setup
-rescue Bundler::GemNotFound => e
- STDERR.puts e.message
- STDERR.puts "Try running `bundle install`."
- exit!
-end if File.exist?(gemfile)
+# require 'rubygems'
+
+# # Set up gems listed in the Gemfile.
+# gemfile = File.expand_path('../../Gemfile', __FILE__)
+
+# begin
+# puts '=> Gemfile found'
+# ENV['BUNDLE_GEMFILE'] = gemfile
+# require 'bundler/setup'
+# rescue Bundler::GemNotFound => e
+# STDERR.puts e.message
+# STDERR.puts "Try running `bundle install`."
+# exit!
+# end if File.exist?(gemfile)
View
2  config/environment.rb
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Shelltube::Application.initialize!
+Shelr::Application.initialize!
View
2  config/environments/development.rb
@@ -1,4 +1,4 @@
-Shelltube::Application.configure do
+Shelr::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
View
2  config/environments/production.rb
@@ -1,4 +1,4 @@
-Shelltube::Application.configure do
+Shelr::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The production environment is meant for finished, "live" apps.
View
4 config/environments/test.rb
@@ -1,4 +1,4 @@
-Shelltube::Application.configure do
+Shelr::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
@@ -23,7 +23,7 @@
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
+ # config.action_mailer.delivery_method = :test
# Use SQL instead of Active Record's schema dumper when creating the test database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
View
7 config/initializers/session_store.rb
@@ -1,8 +1,3 @@
# Be sure to restart your server when you modify this file.
-Shelltube::Application.config.session_store :cookie_store, :key => '_shelltube_session'
-
-# Use the database for sessions instead of the cookie-based default,
-# which shouldn't be used to store highly confidential information
-# (create the session table with "rails generate session_migration")
-# Shelltube::Application.config.session_store :active_record_store
+Shelr::Application.config.session_store :cookie_store, :key => '_shelr_session'
View
2  config/routes.rb
@@ -1,4 +1,4 @@
-Shelltube::Application.routes.draw do
+Shelr::Application.routes.draw do
resources :records
resources :users do
View
2  script/rails
@@ -1,4 +1,4 @@
-#!/usr/bin/env ruby1.9.1
+#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
APP_PATH = File.expand_path('../../config/application', __FILE__)
View
5 spec/controllers/authentications_controller_spec.rb
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe AuthenticationsController do
-
-end
View
5 spec/models/authentication_spec.rb
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe Authentication do
- pending "add some examples to (or delete) #{__FILE__}"
-end
Please sign in to comment.
Something went wrong with that request. Please try again.