Skip to content

Commit 4b76e17

Browse files
committed
Upgrade to use Ruby 2.0 & Rails 4.0
Have converted just enough of the sources that the console loads. I've renamed the original config files to xxx.rails2 for future reference.
1 parent 3a5d428 commit 4b76e17

Some content is hidden

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

57 files changed

+2797
-590
lines changed

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.0

Gemfile

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
source 'https://rubygems.org'
2-
3-
gem 'rails', '~>2.3.18'
4-
gem 'rake'
5-
6-
gem 'json', '>= 1.7.7'
7-
gem 'nokogiri', '1.5.5' # only pegged because nokogiri 1.5.9 installation fucking up on OSX
8-
gem 'curb'
9-
gem 'calais', '>= 0.0.11'
10-
gem 'rest-client', '>= 1.0.3', :require => 'rest_client'
11-
gem 'bcrypt-ruby', '>= 2.1.2', :require => 'bcrypt'
12-
gem 'rubyzip', '>= 0.9.1', :require => 'zip/zip'
13-
gem 'right_aws', '>= 2.0.1' # Our patched version.
14-
gem 'aws-sdk', '>= 1.7.1'
15-
gem 'pg', '>= 0.11.0'
16-
gem 'jammit'
2+
gem 'iconv'
3+
gem 'rails', '~>4.0'
4+
gem 'curb', '~>0.8.4'
5+
gem 'calais', '~> 0.0.13'
6+
gem 'rest-client', '~> 1.6.7'
7+
gem 'bcrypt-ruby', '~> 3.1.1'
8+
gem 'rubyzip', '~> 0.9.9'
9+
gem 'aws-sdk', '~> 1.11.1'
10+
gem 'pg', '~> 0.15.1'
1711
gem 'closure-compiler'
18-
gem 'docsplit', '>= 0.6.4'
19-
gem 'sunspot_rails', '>= 1.3.3'
20-
# running a pre-release to fix rake sunspot:solr:stop task bug
21-
# https://github.com/sunspot/sunspot/pull/221
22-
gem 'sunspot_solr', '>= 2.0.0.pre.120925'
23-
gem 'rdiscount', '>= 1.6.5'
24-
gem 'fastercsv', '>= 1.5.3'
25-
26-
gem 'omniauth', '>= 1.0'
27-
gem 'omniauth-twitter', '>= 0.0.13'
28-
gem 'omniauth-facebook', '>= 1.4.0'
29-
gem 'omniauth-google-oauth2', '>= 0.1.13'
30-
gem 'sanitize'
12+
gem 'docsplit', '>= 0.6.4'
13+
gem 'sunspot_rails', '~> 2.0'
14+
gem 'cloud-crowd', '~> 0.3.3'
15+
gem 'sqlite3', '~> 1.3.7'
16+
17+
gem 'omniauth', '~> 1.1.4'
18+
gem 'omniauth-twitter', '~> 1.0'
19+
gem 'omniauth-facebook', '~> 1.4.1'
20+
gem 'omniauth-google-oauth2', '~> 0.2.0'
21+
gem 'sanitize', '~> 2.0.6'
22+
gem 'sunspot_solr', '~> 2.0.0'
23+
gem 'rdiscount', '~> 2.1.6'
24+
25+
gem 'right_http_connection'
26+
gem 'rake'
27+
gem 'jammit', '0.6.6', :git=>'https://github.com/documentcloud/jammit.git'
28+
gem 'nokogiri', '1.5.6' # only pegged because nokogiri 1.5.9 installation fucking up on OSX
29+
gem 'right_aws', '2.0.1', :git=>'https://github.com/documentcloud/right_aws.git' # Our patched version.
3130

32-
gem 'cloud-crowd'
33-
gem 'sqlite3'
31+
group :test do
32+
gem 'minitest-spec-rails'
33+
end

Gemfile.lock

+144-73
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,209 @@
1+
GIT
2+
remote: https://github.com/documentcloud/jammit.git
3+
revision: 332eebc9bd4507b1ed94816acaa0740fbe2a9b36
4+
specs:
5+
jammit (0.6.6)
6+
cssmin (>= 1.0.3)
7+
jsmin (>= 1.0.1)
8+
9+
GIT
10+
remote: https://github.com/documentcloud/right_aws.git
11+
revision: 57beab61fac4a621614b67f2014ec879bac25890
12+
specs:
13+
right_aws (2.0.1)
14+
115
GEM
216
remote: https://rubygems.org/
317
specs:
4-
actionmailer (2.3.18)
5-
actionpack (= 2.3.18)
6-
actionpack (2.3.18)
7-
activesupport (= 2.3.18)
8-
rack (~> 1.1.0)
9-
activerecord (2.3.18)
10-
activesupport (= 2.3.18)
11-
activeresource (2.3.18)
12-
activesupport (= 2.3.18)
13-
activesupport (2.3.18)
14-
aws-sdk (1.11.0)
18+
actionmailer (4.0.0)
19+
actionpack (= 4.0.0)
20+
mail (~> 2.5.3)
21+
actionpack (4.0.0)
22+
activesupport (= 4.0.0)
23+
builder (~> 3.1.0)
24+
erubis (~> 2.7.0)
25+
rack (~> 1.5.2)
26+
rack-test (~> 0.6.2)
27+
activemodel (4.0.0)
28+
activesupport (= 4.0.0)
29+
builder (~> 3.1.0)
30+
activerecord (4.0.0)
31+
activemodel (= 4.0.0)
32+
activerecord-deprecated_finders (~> 1.0.2)
33+
activesupport (= 4.0.0)
34+
arel (~> 4.0.0)
35+
activerecord-deprecated_finders (1.0.3)
36+
activesupport (4.0.0)
37+
i18n (~> 0.6, >= 0.6.4)
38+
minitest (~> 4.2)
39+
multi_json (~> 1.3)
40+
thread_safe (~> 0.1)
41+
tzinfo (~> 0.3.37)
42+
arel (4.0.0)
43+
atomic (1.1.10)
44+
aws-sdk (1.11.3)
1545
json (~> 1.4)
16-
nokogiri (>= 1.4.4)
46+
nokogiri (< 1.6.0)
1747
uuidtools (~> 2.1)
18-
bcrypt-ruby (3.0.1)
19-
builder (3.2.1)
48+
bcrypt-ruby (3.1.1)
49+
builder (3.1.4)
2050
calais (0.0.13)
2151
json (>= 1.1.3)
2252
nokogiri (>= 1.3.3)
2353
closure-compiler (1.1.10)
24-
cloud-crowd (0.6.2)
25-
activerecord (~> 2.3)
54+
cloud-crowd (0.3.3)
55+
activerecord (>= 2.3.3)
2656
json (>= 1.1.7)
27-
rest-client (>= 1.4)
28-
sinatra (~> 0.9)
57+
rest-client (>= 1.0.3)
58+
right_aws (>= 1.10.0)
59+
sinatra (>= 0.9.4)
2960
thin (>= 1.2.4)
3061
cssmin (1.0.3)
3162
curb (0.8.4)
3263
daemons (1.1.9)
3364
docsplit (0.7.2)
65+
erubis (2.7.0)
3466
eventmachine (1.0.3)
3567
faraday (0.8.7)
3668
multipart-post (~> 1.1)
37-
fastercsv (1.5.5)
3869
hashie (2.0.5)
70+
hike (1.2.3)
3971
httpauth (0.2.0)
40-
jammit (0.6.6)
41-
cssmin (>= 1.0.3)
42-
jsmin (>= 1.0.1)
72+
i18n (0.6.4)
73+
iconv (1.0.3)
4374
jsmin (1.0.1)
4475
json (1.8.0)
76+
jwt (0.1.8)
77+
multi_json (>= 1.5)
78+
mail (2.5.4)
79+
mime-types (~> 1.16)
80+
treetop (~> 1.4.8)
4581
mime-types (1.23)
46-
multi_json (1.7.4)
82+
minitest (4.7.5)
83+
minitest-rails (0.9.2)
84+
minitest (~> 4.7)
85+
rails (>= 3.0)
86+
multi_json (1.7.7)
4787
multipart-post (1.2.0)
48-
nokogiri (1.5.5)
88+
nokogiri (1.5.6)
4989
oauth (0.4.7)
50-
oauth2 (0.6.1)
51-
faraday (~> 0.7)
90+
oauth2 (0.8.1)
91+
faraday (~> 0.8)
5292
httpauth (~> 0.1)
53-
multi_json (~> 1.3)
93+
jwt (~> 0.1.4)
94+
multi_json (~> 1.0)
95+
rack (~> 1.2)
5496
omniauth (1.1.4)
5597
hashie (>= 1.2, < 3)
5698
rack
57-
omniauth-facebook (1.4.0)
58-
omniauth-oauth2 (~> 1.0.2)
59-
omniauth-google-oauth2 (0.1.17)
99+
omniauth-facebook (1.4.1)
100+
omniauth-oauth2 (~> 1.1.0)
101+
omniauth-google-oauth2 (0.2.0)
60102
omniauth (~> 1.0)
61103
omniauth-oauth2
62104
omniauth-oauth (1.0.1)
63105
oauth
64106
omniauth (~> 1.0)
65-
omniauth-oauth2 (1.0.2)
66-
oauth2 (~> 0.6.0)
107+
omniauth-oauth2 (1.1.1)
108+
oauth2 (~> 0.8.0)
67109
omniauth (~> 1.0)
68-
omniauth-twitter (0.0.16)
110+
omniauth-twitter (1.0.0)
69111
multi_json (~> 1.3)
70112
omniauth-oauth (~> 1.0)
71113
pg (0.15.1)
114+
polyglot (0.3.3)
72115
pr_geohash (1.0.0)
73-
rack (1.1.6)
74-
rails (2.3.18)
75-
actionmailer (= 2.3.18)
76-
actionpack (= 2.3.18)
77-
activerecord (= 2.3.18)
78-
activeresource (= 2.3.18)
79-
activesupport (= 2.3.18)
80-
rake (>= 0.8.3)
81-
rake (10.0.4)
116+
rack (1.5.2)
117+
rack-protection (1.5.0)
118+
rack
119+
rack-test (0.6.2)
120+
rack (>= 1.0)
121+
rails (4.0.0)
122+
actionmailer (= 4.0.0)
123+
actionpack (= 4.0.0)
124+
activerecord (= 4.0.0)
125+
activesupport (= 4.0.0)
126+
bundler (>= 1.3.0, < 2.0)
127+
railties (= 4.0.0)
128+
sprockets-rails (~> 2.0.0)
129+
railties (4.0.0)
130+
actionpack (= 4.0.0)
131+
activesupport (= 4.0.0)
132+
rake (>= 0.8.7)
133+
thor (>= 0.18.1, < 2.0)
134+
rake (10.1.0)
82135
rdiscount (2.1.6)
83136
rest-client (1.6.7)
84137
mime-types (>= 1.16)
85-
right_aws (3.0.5)
86-
right_http_connection (>= 1.2.5)
87-
right_http_connection (1.3.0)
138+
right_http_connection (1.4.0)
88139
rsolr (1.0.9)
89140
builder (>= 2.1.2)
90141
rubyzip (0.9.9)
91-
sanitize (2.0.3)
92-
nokogiri (>= 1.4.4, < 1.6)
93-
sinatra (0.9.6)
94-
rack (>= 0.9.1)
142+
sanitize (2.0.6)
143+
nokogiri (>= 1.4.4)
144+
sinatra (1.4.3)
145+
rack (~> 1.4)
146+
rack-protection (~> 1.4)
147+
tilt (~> 1.3, >= 1.3.4)
148+
sprockets (2.10.0)
149+
hike (~> 1.2)
150+
multi_json (~> 1.0)
151+
rack (~> 1.0)
152+
tilt (~> 1.1, != 1.3.0)
153+
sprockets-rails (2.0.0)
154+
actionpack (>= 3.0)
155+
activesupport (>= 3.0)
156+
sprockets (~> 2.8)
95157
sqlite3 (1.3.7)
96158
sunspot (2.0.0)
97159
pr_geohash (~> 1.0)
98160
rsolr (~> 1.0.7)
99161
sunspot_rails (2.0.0)
100162
nokogiri
101163
sunspot (= 2.0.0)
102-
sunspot_solr (2.0.0.pre.130115)
164+
sunspot_solr (2.0.0)
103165
thin (1.5.1)
104166
daemons (>= 1.0.9)
105167
eventmachine (>= 0.12.6)
106168
rack (>= 1.0.0)
169+
thor (0.18.1)
170+
thread_safe (0.1.0)
171+
atomic
172+
tilt (1.4.1)
173+
treetop (1.4.14)
174+
polyglot
175+
polyglot (>= 0.3.1)
176+
tzinfo (0.3.37)
107177
uuidtools (2.1.4)
108178

109179
PLATFORMS
110180
ruby
111181

112182
DEPENDENCIES
113-
aws-sdk (>= 1.7.1)
114-
bcrypt-ruby (>= 2.1.2)
115-
calais (>= 0.0.11)
183+
aws-sdk (~> 1.11.1)
184+
bcrypt-ruby (~> 3.1.1)
185+
calais (~> 0.0.13)
116186
closure-compiler
117-
cloud-crowd
118-
curb
187+
cloud-crowd (~> 0.3.3)
188+
curb (~> 0.8.4)
119189
docsplit (>= 0.6.4)
120-
fastercsv (>= 1.5.3)
121-
jammit
122-
json (>= 1.7.7)
123-
nokogiri (= 1.5.5)
124-
omniauth (>= 1.0)
125-
omniauth-facebook (>= 1.4.0)
126-
omniauth-google-oauth2 (>= 0.1.13)
127-
omniauth-twitter (>= 0.0.13)
128-
pg (>= 0.11.0)
129-
rails (~> 2.3.18)
190+
iconv
191+
jammit (= 0.6.6)!
192+
minitest-rails
193+
nokogiri (= 1.5.6)
194+
omniauth (~> 1.1.4)
195+
omniauth-facebook (~> 1.4.1)
196+
omniauth-google-oauth2 (~> 0.2.0)
197+
omniauth-twitter (~> 1.0)
198+
pg (~> 0.15.1)
199+
rails (~> 4.0)
130200
rake
131-
rdiscount (>= 1.6.5)
132-
rest-client (>= 1.0.3)
133-
right_aws (>= 2.0.1)
134-
rubyzip (>= 0.9.1)
135-
sanitize
136-
sqlite3
137-
sunspot_rails (>= 1.3.3)
138-
sunspot_solr (>= 2.0.0.pre.120925)
201+
rdiscount (~> 2.1.6)
202+
rest-client (~> 1.6.7)
203+
right_aws (= 2.0.1)!
204+
right_http_connection
205+
rubyzip (~> 0.9.9)
206+
sanitize (~> 2.0.6)
207+
sqlite3 (~> 1.3.7)
208+
sunspot_rails (~> 2.0)
209+
sunspot_solr (~> 2.0.0)

Rakefile

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Add your own tasks in files placed in lib/tasks ending in .rake,
22
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
33

4-
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
4+
require File.expand_path('../config/application', __FILE__)
55

6-
require 'rake'
7-
require 'rake/testtask'
8-
#require 'rdoc/task'
9-
10-
require 'tasks/rails'
6+
DC::Application.load_tasks

app/assets/images/.keep

Whitespace-only changes.

app/assets/javascripts/application.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
// compiled file.
9+
//
10+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require turbolinks
16+
//= 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+
*/

0 commit comments

Comments
 (0)