Skip to content

Commit c0ac757

Browse files
committed
First commit. This code was originally developed as a branch of tpthemes,
a repository that is not publicly available.
0 parents  commit c0ac757

File tree

215 files changed

+19719
-0
lines changed

Some content is hidden

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

215 files changed

+19719
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.bundle
2+
db/*.sqlite3
3+
log/*.log
4+
tmp/
5+
.sass-cache/
6+
public/assets/
7+
coverage
8+
coverage.data

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--no-colour

.rvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rvm use 1.9.2-p180

Capfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
2+
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
3+
4+
load 'config/deploy' # remove this line to skip loading any of the default tasks

Gemfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
source :rubygems
2+
3+
gem 'rails', :git => 'git://github.com/rails/rails.git', :branch => '3-1-stable'
4+
gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git'
5+
gem 'will_paginate', '2.3.15'
6+
gem 'formtastic', '1.2.4'
7+
gem 'uuidtools', '2.1.2'
8+
gem 'tzinfo', '~> 0.3.28'
9+
gem 'pg', '0.11.0' # Won't use on SWCP
10+
gem 'authlogic', '3.0.3'
11+
gem 'aspgems-foreign_key_migrations', '~> 2.0.0.beta1'
12+
13+
gem 'thin'
14+
15+
gem 'seed-fu', '2.0.1.rails31'
16+
17+
# Asset template engines
18+
group :assets do
19+
# gem 'sass-rails', "~> 3.1.0.rc"
20+
gem 'coffee-script'
21+
gem 'uglifier'
22+
end
23+
24+
# I'm including this due to advice from <http://devcenter.heroku.com/articles/rails31_heroku_cedar>, but I'm skeptical that we need this
25+
gem 'jquery-rails'
26+
27+
28+
group :test, :development do
29+
gem 'rspec-rails', '>= 2.6.1'
30+
gem 'autotest', '>= 4.4.6'
31+
gem 'be_valid_asset', '1.1.1'
32+
gem 'test-unit', '2.3.0'
33+
gem 'rcov', '0.9.9'
34+
gem 'ruby-debug19', '>= 0.11.6'
35+
gem 'webrat', '>= 0.7.3'
36+
gem 'turn', :require => false
37+
end
38+
39+
group :test do
40+
gem 'cover_me', '1.1.1'
41+
gem 'fakeweb', '1.3.0'
42+
end

Gemfile.lock

+208
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
GIT
2+
remote: git://github.com/rails/rails.git
3+
revision: b88e3687d2c89e3a0b540870aa7e0205c960c16f
4+
branch: 3-1-stable
5+
specs:
6+
actionmailer (3.1.0.rc4)
7+
actionpack (= 3.1.0.rc4)
8+
mail (~> 2.3.0)
9+
actionpack (3.1.0.rc4)
10+
activemodel (= 3.1.0.rc4)
11+
activesupport (= 3.1.0.rc4)
12+
builder (~> 3.0.0)
13+
erubis (~> 2.7.0)
14+
i18n (~> 0.6)
15+
rack (~> 1.3.1)
16+
rack-cache (~> 1.0.2)
17+
rack-mount (~> 0.8.1)
18+
rack-test (~> 0.6.0)
19+
sprockets (~> 2.0.0.beta.10)
20+
tzinfo (~> 0.3.29)
21+
activemodel (3.1.0.rc4)
22+
activesupport (= 3.1.0.rc4)
23+
bcrypt-ruby (~> 2.1.4)
24+
builder (~> 3.0.0)
25+
i18n (~> 0.6)
26+
activerecord (3.1.0.rc4)
27+
activemodel (= 3.1.0.rc4)
28+
activesupport (= 3.1.0.rc4)
29+
arel (~> 2.1.3)
30+
tzinfo (~> 0.3.29)
31+
activeresource (3.1.0.rc4)
32+
activemodel (= 3.1.0.rc4)
33+
activesupport (= 3.1.0.rc4)
34+
activesupport (3.1.0.rc4)
35+
multi_json (~> 1.0)
36+
rails (3.1.0.rc4)
37+
actionmailer (= 3.1.0.rc4)
38+
actionpack (= 3.1.0.rc4)
39+
activerecord (= 3.1.0.rc4)
40+
activeresource (= 3.1.0.rc4)
41+
activesupport (= 3.1.0.rc4)
42+
bundler (~> 1.0)
43+
railties (= 3.1.0.rc4)
44+
railties (3.1.0.rc4)
45+
actionpack (= 3.1.0.rc4)
46+
activesupport (= 3.1.0.rc4)
47+
rack-ssl (~> 1.3.2)
48+
rake (>= 0.8.7)
49+
rdoc (~> 3.4)
50+
thor (~> 0.14.6)
51+
52+
GIT
53+
remote: git://github.com/sstephenson/sprockets.git
54+
revision: a7e30aa8c3b764742f04830734142c9ebfb5ef8c
55+
specs:
56+
sprockets (2.0.0.beta.11)
57+
hike (~> 1.1)
58+
rack (~> 1.0)
59+
tilt (~> 1.1, != 1.3.0)
60+
61+
GEM
62+
remote: http://rubygems.org/
63+
specs:
64+
ZenTest (4.5.0)
65+
ansi (1.3.0)
66+
archive-tar-minitar (0.5.2)
67+
arel (2.1.3)
68+
aspgems-foreign_key_migrations (2.0.0.beta1)
69+
aspgems-redhillonrails_core (~> 2.0.0.beta2)
70+
aspgems-redhillonrails_core (2.0.0.beta2)
71+
activerecord (>= 2)
72+
activesupport (>= 2)
73+
authlogic (3.0.3)
74+
activerecord (>= 3.0.7)
75+
activerecord (>= 3.0.7)
76+
autotest (4.4.6)
77+
ZenTest (>= 4.4.1)
78+
bcrypt-ruby (2.1.4)
79+
be_valid_asset (1.1.1)
80+
rspec
81+
builder (3.0.0)
82+
coffee-script (2.2.0)
83+
coffee-script-source
84+
execjs
85+
coffee-script-source (1.1.1)
86+
columnize (0.3.4)
87+
configatron (2.8.2)
88+
yamler (>= 0.1.0)
89+
cover_me (1.1.1)
90+
configatron
91+
hashie
92+
daemons (1.1.4)
93+
diff-lcs (1.1.2)
94+
erubis (2.7.0)
95+
eventmachine (0.12.10)
96+
execjs (1.2.0)
97+
multi_json (~> 1.0)
98+
fakeweb (1.3.0)
99+
formtastic (1.2.4)
100+
actionpack (>= 2.3.7)
101+
activesupport (>= 2.3.7)
102+
i18n (~> 0.4)
103+
hashie (1.0.0)
104+
hike (1.1.0)
105+
i18n (0.6.0)
106+
jquery-rails (1.0.12)
107+
railties (~> 3.0)
108+
thor (~> 0.14)
109+
linecache19 (0.5.12)
110+
ruby_core_source (>= 0.1.4)
111+
mail (2.3.0)
112+
i18n (>= 0.4.0)
113+
mime-types (~> 1.16)
114+
treetop (~> 1.4.8)
115+
mime-types (1.16)
116+
multi_json (1.0.3)
117+
nokogiri (1.5.0)
118+
pg (0.11.0)
119+
polyglot (0.3.1)
120+
rack (1.3.1)
121+
rack-cache (1.0.2)
122+
rack (>= 0.4)
123+
rack-mount (0.8.1)
124+
rack (>= 1.0.0)
125+
rack-ssl (1.3.2)
126+
rack
127+
rack-test (0.6.0)
128+
rack (>= 1.0)
129+
rake (0.9.2)
130+
rcov (0.9.9)
131+
rdoc (3.8)
132+
rspec (2.6.0)
133+
rspec-core (~> 2.6.0)
134+
rspec-expectations (~> 2.6.0)
135+
rspec-mocks (~> 2.6.0)
136+
rspec-core (2.6.4)
137+
rspec-expectations (2.6.0)
138+
diff-lcs (~> 1.1.2)
139+
rspec-mocks (2.6.0)
140+
rspec-rails (2.6.1)
141+
actionpack (~> 3.0)
142+
activesupport (~> 3.0)
143+
railties (~> 3.0)
144+
rspec (~> 2.6.0)
145+
ruby-debug-base19 (0.11.25)
146+
columnize (>= 0.3.1)
147+
linecache19 (>= 0.5.11)
148+
ruby_core_source (>= 0.1.4)
149+
ruby-debug19 (0.11.6)
150+
columnize (>= 0.3.1)
151+
linecache19 (>= 0.5.11)
152+
ruby-debug-base19 (>= 0.11.19)
153+
ruby_core_source (0.1.5)
154+
archive-tar-minitar (>= 0.5.2)
155+
seed-fu (2.0.1.rails31)
156+
activerecord (~> 3.1.0.beta)
157+
activesupport (~> 3.1.0.beta)
158+
test-unit (2.3.0)
159+
thin (1.2.11)
160+
daemons (>= 1.0.9)
161+
eventmachine (>= 0.12.6)
162+
rack (>= 1.0.0)
163+
thor (0.14.6)
164+
tilt (1.3.2)
165+
treetop (1.4.9)
166+
polyglot (>= 0.3.1)
167+
turn (0.8.2)
168+
ansi (>= 1.2.2)
169+
tzinfo (0.3.29)
170+
uglifier (1.0.0)
171+
execjs (>= 0.3.0)
172+
multi_json (>= 1.0.2)
173+
uuidtools (2.1.2)
174+
webrat (0.7.3)
175+
nokogiri (>= 1.2.0)
176+
rack (>= 1.0)
177+
rack-test (>= 0.5.3)
178+
will_paginate (2.3.15)
179+
yamler (0.1.0)
180+
181+
PLATFORMS
182+
ruby
183+
184+
DEPENDENCIES
185+
aspgems-foreign_key_migrations (~> 2.0.0.beta1)
186+
authlogic (= 3.0.3)
187+
autotest (>= 4.4.6)
188+
be_valid_asset (= 1.1.1)
189+
coffee-script
190+
cover_me (= 1.1.1)
191+
fakeweb (= 1.3.0)
192+
formtastic (= 1.2.4)
193+
jquery-rails
194+
pg (= 0.11.0)
195+
rails!
196+
rcov (= 0.9.9)
197+
rspec-rails (>= 2.6.1)
198+
ruby-debug19 (>= 0.11.6)
199+
seed-fu (= 2.0.1.rails31)
200+
sprockets!
201+
test-unit (= 2.3.0)
202+
thin
203+
turn
204+
tzinfo (~> 0.3.28)
205+
uglifier
206+
uuidtools (= 2.1.2)
207+
webrat (>= 0.7.3)
208+
will_paginate (= 2.3.15)

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+
TpTheme::Application.load_tasks

app/assets/javascripts/application.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This is a manifest file that'll be compiled into including all the files listed below.
2+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3+
// be included in the compiled file accessible from http://example.com/assets/application.js
4+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5+
// the compiled file.
6+
//
7+
//= require jquery
8+
//= require jquery_ujs
9+
//= require_tree .

app/assets/javascripts/tweets.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Place all the behaviors and hooks related to the matching controller here.
2+
// All this logic will automatically be available in application.js.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
3+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4+
* the top of the compiled file, but it's generally better to create a new file per style scope.
5+
*= require_self
6+
*= require_tree .
7+
*/

app/assets/stylesheets/scaffold.css

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
body { background-color: #fff; color: #333; }
2+
3+
body, p, ol, ul, td {
4+
font-family: verdana, arial, helvetica, sans-serif;
5+
font-size: 13px;
6+
line-height: 18px;
7+
}
8+
9+
pre {
10+
background-color: #eee;
11+
padding: 10px;
12+
font-size: 11px;
13+
}
14+
15+
a { color: #000; }
16+
a:visited { color: #666; }
17+
a:hover { color: #fff; background-color:#000; }
18+
19+
div.field, div.actions {
20+
margin-bottom: 10px;
21+
}
22+
23+
#notice {
24+
color: green;
25+
}
26+
27+
.field_with_errors {
28+
padding: 2px;
29+
background-color: red;
30+
display: table;
31+
}
32+
33+
#error_explanation {
34+
width: 450px;
35+
border: 2px solid red;
36+
padding: 7px;
37+
padding-bottom: 0;
38+
margin-bottom: 20px;
39+
background-color: #f0f0f0;
40+
}
41+
42+
#error_explanation h2 {
43+
text-align: left;
44+
font-weight: bold;
45+
padding: 5px 5px 5px 15px;
46+
font-size: 12px;
47+
margin: -7px;
48+
margin-bottom: 0px;
49+
background-color: #c00;
50+
color: #fff;
51+
}
52+
53+
#error_explanation ul li {
54+
font-size: 12px;
55+
list-style: square;
56+
}

app/assets/stylesheets/tweets.css

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
Place all the styles related to the matching controller here.
3+
They will automatically be included in application.css.
4+
*/

app/controllers/admin/base.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Admin::Base < ApplicationController
2+
before_filter :require_admin
3+
end

0 commit comments

Comments
 (0)