Skip to content

Commit d84a973

Browse files
committed
Add a a skeleton for rails 4.1.1
1 parent e5196bc commit d84a973

37 files changed

+704
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*.log
16+
/tmp

spec/integration/rails_4.1.1/Gemfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
source 'https://rubygems.org'
2+
3+
4+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5+
gem 'rails', '4.1.1'
6+
# Use sqlite3 as the database for Active Record
7+
gem 'sqlite3'
8+
# Use SCSS for stylesheets
9+
gem 'sass-rails', '~> 4.0.3'
10+
# Use Uglifier as compressor for JavaScript assets
11+
gem 'uglifier', '>= 1.3.0'
12+
# Use CoffeeScript for .js.coffee assets and views
13+
gem 'coffee-rails', '~> 4.0.0'
14+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
15+
# gem 'therubyracer', platforms: :ruby
16+
17+
# Use jquery as the JavaScript library
18+
gem 'jquery-rails'
19+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
20+
gem 'turbolinks'
21+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22+
gem 'jbuilder', '~> 2.0'
23+
# bundle exec rake doc:rails generates the API under doc/api.
24+
gem 'sdoc', '~> 0.4.0', group: :doc
25+
26+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
27+
gem 'spring', group: :development
28+
29+
# Use ActiveModel has_secure_password
30+
# gem 'bcrypt', '~> 3.1.7'
31+
32+
# Use unicorn as the app server
33+
# gem 'unicorn'
34+
35+
# Use Capistrano for deployment
36+
# gem 'capistrano-rails', group: :development
37+
38+
# Use debugger
39+
# gem 'debugger', group: [:development, :test]
40+
41+
group :development do
42+
if(ENV['AUTOMATED_TEST'] && ENV['AUTOMATED_TEST'] != '')
43+
gem 'annotate', :path => ENV['AUTOMATED_TEST']
44+
else
45+
gem 'annotate', :path => '../../..'
46+
end
47+
end
48+
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
PATH
2+
remote: ../../..
3+
specs:
4+
annotate (2.6.3)
5+
activerecord (>= 2.3.0)
6+
rake (>= 0.8.7)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
actionmailer (4.1.1)
12+
actionpack (= 4.1.1)
13+
actionview (= 4.1.1)
14+
mail (~> 2.5.4)
15+
actionpack (4.1.1)
16+
actionview (= 4.1.1)
17+
activesupport (= 4.1.1)
18+
rack (~> 1.5.2)
19+
rack-test (~> 0.6.2)
20+
actionview (4.1.1)
21+
activesupport (= 4.1.1)
22+
builder (~> 3.1)
23+
erubis (~> 2.7.0)
24+
activemodel (4.1.1)
25+
activesupport (= 4.1.1)
26+
builder (~> 3.1)
27+
activerecord (4.1.1)
28+
activemodel (= 4.1.1)
29+
activesupport (= 4.1.1)
30+
arel (~> 5.0.0)
31+
activesupport (4.1.1)
32+
i18n (~> 0.6, >= 0.6.9)
33+
json (~> 1.7, >= 1.7.7)
34+
minitest (~> 5.1)
35+
thread_safe (~> 0.1)
36+
tzinfo (~> 1.1)
37+
arel (5.0.1.20140414130214)
38+
builder (3.2.2)
39+
coffee-rails (4.0.1)
40+
coffee-script (>= 2.2.0)
41+
railties (>= 4.0.0, < 5.0)
42+
coffee-script (2.2.0)
43+
coffee-script-source
44+
execjs
45+
coffee-script-source (1.7.0)
46+
erubis (2.7.0)
47+
execjs (2.0.2)
48+
hike (1.2.3)
49+
i18n (0.6.9)
50+
jbuilder (2.0.7)
51+
activesupport (>= 3.0.0, < 5)
52+
multi_json (~> 1.2)
53+
jquery-rails (3.1.0)
54+
railties (>= 3.0, < 5.0)
55+
thor (>= 0.14, < 2.0)
56+
json (1.8.1)
57+
mail (2.5.4)
58+
mime-types (~> 1.16)
59+
treetop (~> 1.4.8)
60+
mime-types (1.25.1)
61+
minitest (5.3.4)
62+
multi_json (1.10.1)
63+
polyglot (0.3.4)
64+
rack (1.5.2)
65+
rack-test (0.6.2)
66+
rack (>= 1.0)
67+
rails (4.1.1)
68+
actionmailer (= 4.1.1)
69+
actionpack (= 4.1.1)
70+
actionview (= 4.1.1)
71+
activemodel (= 4.1.1)
72+
activerecord (= 4.1.1)
73+
activesupport (= 4.1.1)
74+
bundler (>= 1.3.0, < 2.0)
75+
railties (= 4.1.1)
76+
sprockets-rails (~> 2.0)
77+
railties (4.1.1)
78+
actionpack (= 4.1.1)
79+
activesupport (= 4.1.1)
80+
rake (>= 0.8.7)
81+
thor (>= 0.18.1, < 2.0)
82+
rake (10.3.2)
83+
rdoc (4.1.1)
84+
json (~> 1.4)
85+
sass (3.2.19)
86+
sass-rails (4.0.3)
87+
railties (>= 4.0.0, < 5.0)
88+
sass (~> 3.2.0)
89+
sprockets (~> 2.8, <= 2.11.0)
90+
sprockets-rails (~> 2.0)
91+
sdoc (0.4.0)
92+
json (~> 1.8)
93+
rdoc (~> 4.0, < 5.0)
94+
spring (1.1.3)
95+
sprockets (2.11.0)
96+
hike (~> 1.2)
97+
multi_json (~> 1.0)
98+
rack (~> 1.0)
99+
tilt (~> 1.1, != 1.3.0)
100+
sprockets-rails (2.1.3)
101+
actionpack (>= 3.0)
102+
activesupport (>= 3.0)
103+
sprockets (~> 2.8)
104+
sqlite3 (1.3.9)
105+
thor (0.19.1)
106+
thread_safe (0.3.3)
107+
tilt (1.4.1)
108+
treetop (1.4.15)
109+
polyglot
110+
polyglot (>= 0.3.1)
111+
turbolinks (2.2.2)
112+
coffee-rails
113+
tzinfo (1.1.0)
114+
thread_safe (~> 0.1)
115+
uglifier (2.5.0)
116+
execjs (>= 0.3.0)
117+
json (>= 1.8.0)
118+
119+
PLATFORMS
120+
ruby
121+
122+
DEPENDENCIES
123+
annotate!
124+
coffee-rails (~> 4.0.0)
125+
jbuilder (~> 2.0)
126+
jquery-rails
127+
rails (= 4.1.1)
128+
sass-rails (~> 4.0.3)
129+
sdoc (~> 0.4.0)
130+
spring
131+
sqlite3
132+
turbolinks
133+
uglifier (>= 1.3.0)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
== README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...
25+
26+
27+
Please feel free to use a different markup language if you do not plan to run
28+
<tt>rake doc:app</tt>.

spec/integration/rails_4.1.1/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Rails.application.load_tasks

spec/integration/rails_4.1.1/app/models/.keep

Whitespace-only changes.

spec/integration/rails_4.1.1/app/models/concerns/.keep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# == Schema Information
2+
#
3+
# Table name: tasks
4+
#
5+
# id :integer not null, primary key
6+
# content :string(255)
7+
# status :integer
8+
# created_at :datetime
9+
# updated_at :datetime
10+
#
11+
12+
13+
class Task < ActiveRecord::Base
14+
enum status: %w(normal active completed)
15+
end
Lines changed: 4 additions & 0 deletions
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 Rails.application
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
require File.expand_path('../boot', __FILE__)
2+
3+
require 'rails/all'
4+
5+
# Require the gems listed in Gemfile, including any gems
6+
# you've limited to :test, :development, or :production.
7+
Bundler.require(*Rails.groups)
8+
9+
module Rails411
10+
class Application < Rails::Application
11+
# Settings in config/environments/* take precedence over those specified here.
12+
# Application configuration should go into files in config/initializers
13+
# -- all .rb files in that directory are automatically loaded.
14+
15+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
16+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
17+
# config.time_zone = 'Central Time (US & Canada)'
18+
19+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21+
# config.i18n.default_locale = :de
22+
end
23+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Set up gems listed in the Gemfile.
2+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3+
4+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
Lines changed: 25 additions & 0 deletions
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+
#
7+
default: &default
8+
adapter: sqlite3
9+
pool: 5
10+
timeout: 5000
11+
12+
development:
13+
<<: *default
14+
database: db/development.sqlite3
15+
16+
# Warning: The database defined as "test" will be erased and
17+
# re-generated from your development database when you run "rake".
18+
# Do not set this db to the same as development or production.
19+
test:
20+
<<: *default
21+
database: db/test.sqlite3
22+
23+
production:
24+
<<: *default
25+
database: db/production.sqlite3
Lines changed: 5 additions & 0 deletions
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+
Rails.application.initialize!
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Rails.application.configure do
2+
# Settings specified here will take precedence over those in config/application.rb.
3+
4+
# In the development environment your application's code is reloaded on
5+
# every request. This slows down response time but is perfect for development
6+
# since you don't have to restart the web server when you make code changes.
7+
config.cache_classes = false
8+
9+
# Do not eager load code on boot.
10+
config.eager_load = false
11+
12+
# Show full error reports and disable caching.
13+
config.consider_all_requests_local = true
14+
config.action_controller.perform_caching = false
15+
16+
# Don't care if the mailer can't send.
17+
config.action_mailer.raise_delivery_errors = false
18+
19+
# Print deprecation notices to the Rails logger.
20+
config.active_support.deprecation = :log
21+
22+
# Raise an error on page load if there are pending migrations.
23+
config.active_record.migration_error = :page_load
24+
25+
# Debug mode disables concatenation and preprocessing of assets.
26+
# This option may cause significant delays in view rendering with a large
27+
# number of complex assets.
28+
config.assets.debug = true
29+
30+
# Adds additional error checking when serving assets at runtime.
31+
# Checks for improperly declared sprockets dependencies.
32+
# Raises helpful error messages.
33+
config.assets.raise_runtime_errors = true
34+
35+
# Raises error for missing translations
36+
# config.action_view.raise_on_missing_translations = true
37+
end

0 commit comments

Comments
 (0)