public
Created

settings at revision 1123493

  • Download Gist
Gemfile
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
source ":-D"
source :rubygems
 
gem "rails", "~> 3.1.4"
gem "rake", "~> 0.9.2"
gem "mysql2", "~> 0.3.11"
 
gem "activerecord-sqlserver-adapter", "~> 3.1.4" # must match rails minor version
gem "tiny_tds"
 
gem 'acts-as-taggable-on', "~> 2.2.2"
gem "acts_as_list", "~> 0.1.4"
gem "authlogic", "~> 3.1.0"
gem "rails3-jquery-autocomplete", "~> 1.0.5", :git => 'https://github.com/itrcdevs/rails3-jquery-autocomplete.git'
gem "awesome_nested_set", "~> 2.1.2"
gem "cancan", "~> 1.6.7"
gem "comcast-ldap", "~> 0.3.1"
gem "comma", "~> 3.0.3"
gem "crack", "~> 0.3.1" # Required for HTTParty
gem "dnsruby", "~> 1.53"
gem "dynamic_form"
gem "exception_logger", "= 0.1.10", :require => "exception_logger", :git => 'https://github.com/itrcdevs/exception_logger.git', :ref => '908b606b58bb52ee982b'
gem "formtastic", "~> 2.0.2"
gem "foreigner"
gem "friendly_id", "~> 3.3.0"
gem "haml", "~> 3.1.4"
gem "haml-rails", "~> 0.3.4"
gem "hpna", "~> 0.7.2.1"
gem "httparty", "~> 0.8.1" # Required for HPSA Connector
gem "i18n", "~> 0.6.0"
gem "ipaddress", "~> 0.8.0"
gem "json", "~> 1.7.0"
gem "json_pure", "~> 1.7.0"
gem "libxml-ruby", "~> 2.3.2"
gem "mechanize", "~> 2.3"
gem "net-ldap", "~> 0.2.2"
gem "progressbar", "~> 0.11.0"
gem "restfulie", "~> 1.1.0"
gem "hypertemplate", git: "https://github.com/itrcdevs/hypertemplate.git"
gem "savon", "~> 0.7.9" # Required for HPNA Connector
gem 'simple_form'
gem "simple-navigation", "~> 3.7.0"
gem "snmp", "~> 1.1.0"
gem 'vestal_versions', "~> 1.3.0", git: 'https://github.com/teambox/vestal_versions.git', :branch => 'rails3.1'
gem "will_paginate", "~> 3.0.2"
gem "load_balancer_parser", "~> 0.0.4"
gem 'draper', "~> 0.11.1"
gem 'delayed_job', :git => 'https://github.com/itrcdevs/delayed_job.git'
gem 'delayed_job_active_record'
gem 'whenever', require: false
gem 'rack-pjax', "~> 0.5.7"
gem "unicorn"
gem "rabl", "~> 0.6.3"
 
group :test do
gem 'minitest', "~> 3.0"
gem 'turn'
gem "mocha", "~> 0.11.0"
gem "shoulda-matchers", "~> 1.0.0"
gem "shoulda", "~> 3.0.1"
gem "factory_girl_rails", "~> 3.2.0"
gem "simplecov", "~> 0.6.2" #:git => "https://github.com/itrcdevs/simplecov.git"
gem "ci_reporter", "~> 1.7.0"
gem "vcr", "~> 2.1.0"
gem "webmock", "~> 1.8.0"
 
gem "growl"
gem "rb-fsevent", :require => false
 
gem 'guard'
gem 'guard-minitest', :git => "https://github.com/itrcdevs/guard-minitest.git", :branch => "fix_for_spork-minitest"
gem 'spork-minitest', ">= 0.0.3"
gem 'guard-spork'
end
 
group :development do
gem "capistrano"
gem "annotate"
gem "term-ansicolor"
gem "foreman"
end
 
group :assets do
gem 'sass-rails', '= 3.1.4'
gem 'coffee-rails', '~> 3.1.1'
gem 'compass-rails', '~> 1.0.1'
gem 'uglifier'
gem 'therubyracer'
end
 
gem 'jquery-rails'
 
group :test, :development do
gem "awesome_print"
gem "railroady"
end
application.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
require File.expand_path('../boot', __FILE__)
 
require 'rails/all'
 
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
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
 
module ItrcApp
class Application < Rails::Application
# Enable the asset pipeline
config.assets.enabled = true
 
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
 
# Other assets that need to exist separately from main manifests
config.assets.precompile += ['ie.css', 'ie6.css', 'errors.css', 'exception_logger.css']
config.assets.precompile += ['exception_logger.js', 'deprecated/main_menu.js']
 
# Don't fully boot the app when precompiling assets (speeds up precompile)
#config.assets.initialize_on_precompile = false
 
config.middleware.use Rack::Pjax
 
config.autoload_paths += %W(#{config.root}/app/models/device_kinds #{config.root}/lib #{config.root}/app/presenters #{config.root}/app/sweepers)
 
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
 
config.time_zone = 'Eastern Time (US & Canada)'
 
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
 
# JavaScript files you want as :defaults (application.js is always included).
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
 
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
 
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
 
# set itrc default generators
config.generators do |g|
g.helper false
g.orm :active_record
g.template_engine :haml
g.test_framework :test_unit, :fixture => false
g.scaffold_controller :scaffold_controller
g.fixture_replacement :factory_girl
end
 
end
end
development.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
ItrcApp::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
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
 
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
 
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
 
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
 
# Print deprecation notices to the Rails logger
config.active_support.deprecation = :log
 
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
 
# Do not compress assets
config.assets.compress = false
 
# Expands the lines which load the assets
config.assets.debug = true
end
 
SERVER_NAME = "http://itrc.dev"
environment.rb
Ruby
1 2 3 4 5 6 7 8 9 10
# Load the rails application
require File.expand_path('../application', __FILE__)
 
YAML::ENGINE.yamler = 'syck'
 
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
 
# Initialize the rails application
ItrcApp::Application.initialize!
production.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
ItrcApp::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
 
# Code is not reloaded between requests
config.cache_classes = true
 
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
 
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
 
# Compress JavaScripts and CSS
config.assets.compress = true
 
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
 
# Generate digests for assets URLs
config.assets.digest = true
 
# Defaults to Rails.root.join("public/assets")
# config.assets.manifest = YOUR_PATH
 
# Specifies the header that your server uses for sending files
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
 
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
 
# See everything in the log (default is :info)
# config.log_level = :debug
 
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
 
# Use a different cache store in production
# config.cache_store = :mem_cache_store
 
# Enable serving of images, stylesheets, and JavaScripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
 
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )
 
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
 
# Enable threaded mode
# config.threadsafe!
 
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
 
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
 
# email setup
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => ':-D',
:enable_starttls_auto => ':-D',
:authentication => ':-D',
:user_name => ':-D',
:password => ':-D'
}
 
end
 
SERVER_NAME = ":-D"
sass.rb
Ruby
1 2
Sass::Plugin.options[:style] = Rails.env == 'development' ? :nested : :compressed
Sass::Plugin.options[:line_comments] = Rails.env == 'development'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.