Skip to content

Commit 1e84db3

Browse files
committed
re-installed rails v 4.0.4
1 parent c5be996 commit 1e84db3

27 files changed

+105
-267
lines changed

.DS_Store

-6 KB
Binary file not shown.

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.1.1
1+
ruby-1.9.3-p484@global

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
22

33

44
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5-
gem 'rails', '4.1.0'
5+
gem 'rails', '4.0.4'
66
# Use sqlite3 as the database for Active Record
77
gem 'sqlite3'
88
# Use SCSS for stylesheets

Gemfile.lock

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailer (4.1.0)
5-
actionpack (= 4.1.0)
6-
actionview (= 4.1.0)
4+
actionmailer (4.0.4)
5+
actionpack (= 4.0.4)
76
mail (~> 2.5.4)
8-
actionpack (4.1.0)
9-
actionview (= 4.1.0)
10-
activesupport (= 4.1.0)
7+
actionpack (4.0.4)
8+
activesupport (= 4.0.4)
9+
builder (~> 3.1.0)
10+
erubis (~> 2.7.0)
1111
rack (~> 1.5.2)
1212
rack-test (~> 0.6.2)
13-
actionview (4.1.0)
14-
activesupport (= 4.1.0)
15-
builder (~> 3.1)
16-
erubis (~> 2.7.0)
17-
activemodel (4.1.0)
18-
activesupport (= 4.1.0)
19-
builder (~> 3.1)
20-
activerecord (4.1.0)
21-
activemodel (= 4.1.0)
22-
activesupport (= 4.1.0)
23-
arel (~> 5.0.0)
24-
activesupport (4.1.0)
13+
activemodel (4.0.4)
14+
activesupport (= 4.0.4)
15+
builder (~> 3.1.0)
16+
activerecord (4.0.4)
17+
activemodel (= 4.0.4)
18+
activerecord-deprecated_finders (~> 1.0.2)
19+
activesupport (= 4.0.4)
20+
arel (~> 4.0.0)
21+
activerecord-deprecated_finders (1.0.3)
22+
activesupport (4.0.4)
2523
i18n (~> 0.6, >= 0.6.9)
26-
json (~> 1.7, >= 1.7.7)
27-
minitest (~> 5.1)
24+
minitest (~> 4.2)
25+
multi_json (~> 1.3)
2826
thread_safe (~> 0.1)
29-
tzinfo (~> 1.1)
30-
arel (5.0.1.20140414130214)
27+
tzinfo (~> 0.3.37)
28+
arel (4.0.2)
3129
bcrypt (3.1.7)
32-
builder (3.2.2)
30+
builder (3.1.4)
3331
bundler-unload (1.0.2)
3432
cancan (1.6.10)
3533
capistrano (3.2.1)
@@ -89,8 +87,8 @@ GEM
8987
mime-types (~> 1.16)
9088
treetop (~> 1.4.8)
9189
mime-types (1.25.1)
92-
minitest (5.3.3)
93-
multi_json (1.9.3)
90+
minitest (4.7.5)
91+
multi_json (1.10.0)
9492
mysql2 (0.3.15)
9593
net-scp (1.2.1)
9694
net-ssh (>= 2.6.5)
@@ -106,19 +104,17 @@ GEM
106104
rack (1.5.2)
107105
rack-test (0.6.2)
108106
rack (>= 1.0)
109-
rails (4.1.0)
110-
actionmailer (= 4.1.0)
111-
actionpack (= 4.1.0)
112-
actionview (= 4.1.0)
113-
activemodel (= 4.1.0)
114-
activerecord (= 4.1.0)
115-
activesupport (= 4.1.0)
107+
rails (4.0.4)
108+
actionmailer (= 4.0.4)
109+
actionpack (= 4.0.4)
110+
activerecord (= 4.0.4)
111+
activesupport (= 4.0.4)
116112
bundler (>= 1.3.0, < 2.0)
117-
railties (= 4.1.0)
118-
sprockets-rails (~> 2.0)
119-
railties (4.1.0)
120-
actionpack (= 4.1.0)
121-
activesupport (= 4.1.0)
113+
railties (= 4.0.4)
114+
sprockets-rails (~> 2.0.0)
115+
railties (4.0.4)
116+
actionpack (= 4.0.4)
117+
activesupport (= 4.0.4)
122118
rake (>= 0.8.7)
123119
thor (>= 0.18.1, < 2.0)
124120
rake (10.3.1)
@@ -143,7 +139,7 @@ GEM
143139
multi_json (~> 1.0)
144140
rack (~> 1.0)
145141
tilt (~> 1.1, != 1.3.0)
146-
sprockets-rails (2.1.3)
142+
sprockets-rails (2.0.1)
147143
actionpack (>= 3.0)
148144
activesupport (>= 3.0)
149145
sprockets (~> 2.8)
@@ -166,8 +162,7 @@ GEM
166162
polyglot (>= 0.3.1)
167163
turbolinks (2.2.2)
168164
coffee-rails
169-
tzinfo (1.1.0)
170-
thread_safe (~> 0.1)
165+
tzinfo (0.3.39)
171166
uber (0.0.4)
172167
uglifier (2.5.0)
173168
execjs (>= 0.3.0)
@@ -196,7 +191,7 @@ DEPENDENCIES
196191
paperclip (~> 3.0)
197192
profanity_filter
198193
rack
199-
rails (= 4.1.0)
194+
rails (= 4.0.4)
200195
rubygems-bundler
201196
sass-rails (~> 4.0.3)
202197
sdoc (~> 0.4.0)

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
require File.expand_path('../config/application', __FILE__)
55

6-
Rails.application.load_tasks
6+
Mdn2::Application.load_tasks

app/assets/stylesheets/application.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
66
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
77
*
8-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9-
* compiled file so the styles you add here take precedence over styles defined in any styles
10-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11-
* file per style scope.
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.
1210
*
13-
*= require_tree .
1411
*= require_self
12+
*= require_tree .
1513
*/

app/views/layouts/application.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html>
33
<head>
44
<title>Mdn2</title>
5-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6-
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
5+
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6+
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
77
<%= csrf_meta_tags %>
88
</head>
99
<body>

bin/rails

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/usr/bin/env ruby
2-
begin
3-
load File.expand_path("../spring", __FILE__)
4-
rescue LoadError
5-
end
62
APP_PATH = File.expand_path('../../config/application', __FILE__)
73
require_relative '../config/boot'
84
require 'rails/commands'

bin/rake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/usr/bin/env ruby
2-
begin
3-
load File.expand_path("../spring", __FILE__)
4-
rescue LoadError
5-
end
62
require_relative '../config/boot'
73
require 'rake'
84
Rake.application.run

bin/spring

Lines changed: 0 additions & 18 deletions
This file was deleted.

config/deploy.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@
7474
after :restart, :clear_cache do
7575
on roles(:web), in: :groups, limit: 3, wait: 10 do
7676
# Here we can do anything such as:
77-
within release_path do
78-
execute :rake, 'cache:clear'
79-
end
77+
#within release_path do
78+
#execute :rake, 'cache:clear'
79+
#end
8080
end
8181
end
8282

config/environment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
require File.expand_path('../application', __FILE__)
33

44
# Initialize the Rails application.
5-
Rails.application.initialize!
5+
Mdn2::Application.initialize!

config/environments/development.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Rails.application.configure do
1+
Mdn2::Application.configure do
22
# Settings specified here will take precedence over those in config/application.rb.
33

44
# In the development environment your application's code is reloaded on
@@ -19,19 +19,11 @@
1919
# Print deprecation notices to the Rails logger.
2020
config.active_support.deprecation = :log
2121

22-
# Raise an error on page load if there are pending migrations.
22+
# Raise an error on page load if there are pending migrations
2323
config.active_record.migration_error = :page_load
2424

2525
# Debug mode disables concatenation and preprocessing of assets.
2626
# This option may cause significant delays in view rendering with a large
2727
# number of complex assets.
2828
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
3729
end

config/environments/production.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Rails.application.configure do
1+
Mdn2::Application.configure do
22
# Settings specified here will take precedence over those in config/application.rb.
33

44
# Code is not reloaded between requests.
55
config.cache_classes = true
66

77
# Eager load code on boot. This eager loads most of Rails and
8-
# your application in memory, allowing both threaded web servers
8+
# your application in memory, allowing both thread web servers
99
# and those relying on copy on write to perform better.
1010
# Rake tasks automatically ignore this option for performance.
1111
config.eager_load = true
@@ -66,7 +66,7 @@
6666
# config.action_mailer.raise_delivery_errors = false
6767

6868
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69-
# the I18n.default_locale when a translation cannot be found).
69+
# the I18n.default_locale when a translation can not be found).
7070
config.i18n.fallbacks = true
7171

7272
# Send deprecation notices to registered listeners.
@@ -77,7 +77,4 @@
7777

7878
# Use default logging formatter so that PID and timestamp are not suppressed.
7979
config.log_formatter = ::Logger::Formatter.new
80-
81-
# Do not dump schema after migrations.
82-
config.active_record.dump_schema_after_migration = false
8380
end

config/environments/test.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Rails.application.configure do
1+
Mdn2::Application.configure do
22
# Settings specified here will take precedence over those in config/application.rb.
33

44
# The test environment is used exclusively to run your application's
@@ -14,7 +14,7 @@
1414

1515
# Configure static asset server for tests with Cache-Control for performance.
1616
config.serve_static_assets = true
17-
config.static_cache_control = 'public, max-age=3600'
17+
config.static_cache_control = "public, max-age=3600"
1818

1919
# Show full error reports and disable caching.
2020
config.consider_all_requests_local = true
@@ -33,7 +33,4 @@
3333

3434
# Print deprecation notices to the stderr.
3535
config.active_support.deprecation = :stderr
36-
37-
# Raises error for missing translations
38-
# config.action_view.raise_on_missing_translations = true
3936
end

config/initializers/cookies_serializer.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

config/initializers/mime_types.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
# Add new mime types for use in respond_to blocks:
44
# Mime::Type.register "text/richtext", :rtf
5+
# Mime::Type.register_alias "text/html", :iphone

config/initializers/secret_token.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Be sure to restart your server when you modify this file.
2+
3+
# Your secret key is used for verifying the integrity of signed cookies.
4+
# If you change this key, all old signed cookies will become invalid!
5+
6+
# Make sure the secret is at least 30 characters and all random,
7+
# no regular words or you'll be exposed to dictionary attacks.
8+
# You can use `rake secret` to generate a secure secret key.
9+
10+
# Make sure your secret_key_base is kept private
11+
# if you're sharing your code publicly.
12+
Mdn2::Application.config.secret_key_base = 'ab94f99cf0e80adce8a27928b567f2231cf8e6194442a2bc411ea52b9f0de8a2ef62b0049d5e5128bc1bc1240f998c58c876ec3dca8f01649d1b5732793c9e0a'

config/initializers/session_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Be sure to restart your server when you modify this file.
22

3-
Rails.application.config.session_store :cookie_store, key: '_mdn2_session'
3+
Mdn2::Application.config.session_store :cookie_store, key: '_mdn2_session'

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Rails.application.routes.draw do
1+
Mdn2::Application.routes.draw do
22
# The priority is based upon order of creation: first created -> highest priority.
33
# See how all your routes lay out with "rake routes".
44

config/secrets.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)