Skip to content

Commit 587286b

Browse files
committed
Initial commit
1 parent d805844 commit 587286b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+969
-1
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
*.rbc
22
*.sassc
3+
.ruby-gemset
4+
.ruby-version
35
.sass-cache
46
capybara-*.html
57
.rspec
@@ -13,4 +15,4 @@ capybara-*.html
1315
/spec/tmp/*
1416
**.orig
1517
rerun.txt
16-
pickle-email-*.html
18+
pickle-email-*.html

Gemfile

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'rails', '3.2.13'
4+
5+
# Bundle edge Rails instead:
6+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
7+
8+
gem 'sqlite3'
9+
10+
11+
# Gems used only for assets and not required
12+
# in production environments by default.
13+
group :assets do
14+
gem 'sass-rails', '~> 3.2.3'
15+
gem 'coffee-rails', '~> 3.2.1'
16+
17+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
18+
gem 'therubyracer', :platforms => :ruby
19+
20+
gem 'uglifier', '>= 1.0.3'
21+
end
22+
23+
gem 'jquery-rails'
24+
25+
group :development do
26+
gem 'puma'
27+
end
28+
29+
group :test do
30+
gem 'factory_girl_rails'
31+
end
32+
33+
# To use ActiveModel has_secure_password
34+
# gem 'bcrypt-ruby', '~> 3.0.0'
35+
36+
# To use Jbuilder templates for JSON
37+
# gem 'jbuilder'
38+
39+
# Use unicorn as the app server
40+
# gem 'unicorn'
41+
42+
# Deploy with Capistrano
43+
# gem 'capistrano'
44+
45+
# To use debugger
46+
# gem 'debugger'

Gemfile.lock

+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actionmailer (3.2.13)
5+
actionpack (= 3.2.13)
6+
mail (~> 2.5.3)
7+
actionpack (3.2.13)
8+
activemodel (= 3.2.13)
9+
activesupport (= 3.2.13)
10+
builder (~> 3.0.0)
11+
erubis (~> 2.7.0)
12+
journey (~> 1.0.4)
13+
rack (~> 1.4.5)
14+
rack-cache (~> 1.2)
15+
rack-test (~> 0.6.1)
16+
sprockets (~> 2.2.1)
17+
activemodel (3.2.13)
18+
activesupport (= 3.2.13)
19+
builder (~> 3.0.0)
20+
activerecord (3.2.13)
21+
activemodel (= 3.2.13)
22+
activesupport (= 3.2.13)
23+
arel (~> 3.0.2)
24+
tzinfo (~> 0.3.29)
25+
activeresource (3.2.13)
26+
activemodel (= 3.2.13)
27+
activesupport (= 3.2.13)
28+
activesupport (3.2.13)
29+
i18n (= 0.6.1)
30+
multi_json (~> 1.0)
31+
arel (3.0.2)
32+
builder (3.0.4)
33+
coffee-rails (3.2.2)
34+
coffee-script (>= 2.2.0)
35+
railties (~> 3.2.0)
36+
coffee-script (2.2.0)
37+
coffee-script-source
38+
execjs
39+
coffee-script-source (1.6.2)
40+
erubis (2.7.0)
41+
execjs (1.4.0)
42+
multi_json (~> 1.0)
43+
factory_girl (4.2.0)
44+
activesupport (>= 3.0.0)
45+
factory_girl_rails (4.2.1)
46+
factory_girl (~> 4.2.0)
47+
railties (>= 3.0.0)
48+
hike (1.2.2)
49+
i18n (0.6.1)
50+
journey (1.0.4)
51+
jquery-rails (2.2.1)
52+
railties (>= 3.0, < 5.0)
53+
thor (>= 0.14, < 2.0)
54+
json (1.7.7)
55+
libv8 (3.11.8.17)
56+
mail (2.5.3)
57+
i18n (>= 0.4.0)
58+
mime-types (~> 1.16)
59+
treetop (~> 1.4.8)
60+
mime-types (1.22)
61+
multi_json (1.7.2)
62+
polyglot (0.3.3)
63+
puma (1.6.3)
64+
rack (~> 1.2)
65+
rack (1.4.5)
66+
rack-cache (1.2)
67+
rack (>= 0.4)
68+
rack-ssl (1.3.3)
69+
rack
70+
rack-test (0.6.2)
71+
rack (>= 1.0)
72+
rails (3.2.13)
73+
actionmailer (= 3.2.13)
74+
actionpack (= 3.2.13)
75+
activerecord (= 3.2.13)
76+
activeresource (= 3.2.13)
77+
activesupport (= 3.2.13)
78+
bundler (~> 1.0)
79+
railties (= 3.2.13)
80+
railties (3.2.13)
81+
actionpack (= 3.2.13)
82+
activesupport (= 3.2.13)
83+
rack-ssl (~> 1.3.2)
84+
rake (>= 0.8.7)
85+
rdoc (~> 3.4)
86+
thor (>= 0.14.6, < 2.0)
87+
rake (10.0.4)
88+
rdoc (3.12.2)
89+
json (~> 1.4)
90+
ref (1.0.4)
91+
sass (3.2.7)
92+
sass-rails (3.2.6)
93+
railties (~> 3.2.0)
94+
sass (>= 3.1.10)
95+
tilt (~> 1.3)
96+
sprockets (2.2.2)
97+
hike (~> 1.2)
98+
multi_json (~> 1.0)
99+
rack (~> 1.0)
100+
tilt (~> 1.1, != 1.3.0)
101+
sqlite3 (1.3.7)
102+
therubyracer (0.11.4)
103+
libv8 (~> 3.11.8.12)
104+
ref
105+
thor (0.18.1)
106+
tilt (1.3.7)
107+
treetop (1.4.12)
108+
polyglot
109+
polyglot (>= 0.3.1)
110+
tzinfo (0.3.37)
111+
uglifier (2.0.1)
112+
execjs (>= 0.3.0)
113+
multi_json (~> 1.0, >= 1.0.2)
114+
115+
PLATFORMS
116+
ruby
117+
118+
DEPENDENCIES
119+
coffee-rails (~> 3.2.1)
120+
factory_girl_rails
121+
jquery-rails
122+
puma
123+
rails (= 3.2.13)
124+
sass-rails (~> 3.2.3)
125+
sqlite3
126+
therubyracer
127+
uglifier (>= 1.0.3)

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
Iepc::Application.load_tasks

app/assets/images/rails.png

6.49 KB
Loading

app/assets/javascripts/application.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// the compiled file.
9+
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require_tree .
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
11+
*= require_self
12+
*= require_tree .
13+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
protect_from_forgery
3+
end

app/helpers/application_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/mailers/.gitkeep

Whitespace-only changes.

app/models/.gitkeep

Whitespace-only changes.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Iepc</title>
5+
<%= stylesheet_link_tag "application", :media => "all" %>
6+
<%= javascript_include_tag "application" %>
7+
<%= csrf_meta_tags %>
8+
</head>
9+
<body>
10+
11+
<%= yield %>
12+
13+
</body>
14+
</html>

config.ru

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file is used by Rack-based servers to start the application.
2+
3+
require ::File.expand_path('../config/environment', __FILE__)
4+
run Iepc::Application

config/application.rb

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
require File.expand_path('../boot', __FILE__)
2+
3+
require 'rails/all'
4+
5+
if defined?(Bundler)
6+
# If you precompile assets before deploying to production, use this line
7+
Bundler.require(*Rails.groups(:assets => %w(development test)))
8+
# If you want your assets lazily compiled in production, use this line
9+
# Bundler.require(:default, :assets, Rails.env)
10+
end
11+
12+
module Iepc
13+
class Application < Rails::Application
14+
# Settings in config/environments/* take precedence over those specified here.
15+
# Application configuration should go into files in config/initializers
16+
# -- all .rb files in that directory are automatically loaded.
17+
18+
# Custom directories with classes and modules you want to be autoloadable.
19+
# config.autoload_paths += %W(#{config.root}/extras)
20+
21+
# Only load the plugins named here, in the order given (default is alphabetical).
22+
# :all can be used as a placeholder for all plugins not explicitly named.
23+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24+
25+
# Activate observers that should always be running.
26+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27+
28+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30+
# config.time_zone = 'Central Time (US & Canada)'
31+
32+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34+
# config.i18n.default_locale = :de
35+
36+
# Configure the default encoding used in templates for Ruby 1.9.
37+
config.encoding = "utf-8"
38+
39+
# Configure sensitive parameters which will be filtered from the log file.
40+
config.filter_parameters += [:password]
41+
42+
# Enable escaping HTML in JSON.
43+
config.active_support.escape_html_entities_in_json = true
44+
45+
# Use SQL instead of Active Record's schema dumper when creating the database.
46+
# This is necessary if your schema can't be completely dumped by the schema dumper,
47+
# like if you have constraints or database-specific column types
48+
# config.active_record.schema_format = :sql
49+
50+
# Enforce whitelist mode for mass assignment.
51+
# This will create an empty whitelist of attributes available for mass-assignment for all models
52+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
53+
# parameters by using an attr_accessible or attr_protected declaration.
54+
config.active_record.whitelist_attributes = true
55+
56+
# Enable the asset pipeline
57+
config.assets.enabled = true
58+
59+
# Version of your assets, change this if you want to expire all your assets
60+
config.assets.version = '1.0'
61+
end
62+
end

config/boot.rb

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require 'rubygems'
2+
3+
# Set up gems listed in the Gemfile.
4+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5+
6+
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

config/database.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SQLite version 3.x
2+
# gem install sqlite3
3+
#
4+
# Ensure the SQLite 3 gem is defined in your Gemfile
5+
# gem 'sqlite3'
6+
development:
7+
adapter: sqlite3
8+
database: db/development.sqlite3
9+
pool: 5
10+
timeout: 5000
11+
12+
# Warning: The database defined as "test" will be erased and
13+
# re-generated from your development database when you run "rake".
14+
# Do not set this db to the same as development or production.
15+
test:
16+
adapter: sqlite3
17+
database: db/test.sqlite3
18+
pool: 5
19+
timeout: 5000
20+
21+
production:
22+
adapter: sqlite3
23+
database: db/production.sqlite3
24+
pool: 5
25+
timeout: 5000

config/database.yml.sample

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SQLite version 3.x
2+
# gem install sqlite3
3+
#
4+
# Ensure the SQLite 3 gem is defined in your Gemfile
5+
# gem 'sqlite3'
6+
development:
7+
adapter: sqlite3
8+
database: db/development.sqlite3
9+
pool: 5
10+
timeout: 5000
11+
12+
# Warning: The database defined as "test" will be erased and
13+
# re-generated from your development database when you run "rake".
14+
# Do not set this db to the same as development or production.
15+
test:
16+
adapter: sqlite3
17+
database: db/test.sqlite3
18+
pool: 5
19+
timeout: 5000
20+
21+
production:
22+
adapter: sqlite3
23+
database: db/production.sqlite3
24+
pool: 5
25+
timeout: 5000

config/environment.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Load the rails application
2+
require File.expand_path('../application', __FILE__)
3+
4+
# Initialize the rails application
5+
Iepc::Application.initialize!

0 commit comments

Comments
 (0)