Skip to content

Commit 3dbf064

Browse files
committed
Merge branch 'develop' into feature/daily-cred
2 parents f4c04fe + 468dbd6 commit 3dbf064

File tree

14 files changed

+87
-6
lines changed

14 files changed

+87
-6
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SECRET_TOKEN: b3d179dc0a13c5a9dce314423d5711421c380447968ea8393d67d8f629cd11ff047430c22bde586ae1f3917f6e9e1d9702b4507efda0062792492e18507bedc7

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.rbenv-version
2-
config/database.yml
32
bin/
43
rails_best_practices_output.html
54
# See http://help.github.com/ignore-files/ for more about ignoring files.

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: ruby
2+
rvm:
3+
- 2.0.0
4+
before_script:
5+
- psql -c 'create database rails_base_test;' -U postgres
6+
script:
7+
- RAILS_ENV=test bundle exec rake db:migrate --trace
8+
- bundle exec rake db:test:prepare
9+
- bundle exec rspec spec/

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ gem "simple_form"
1313
gem 'unicorn'
1414
gem 'foreman'
1515
gem 'newrelic_rpm'
16+
gem 'app'
1617

1718
group :test do
1819
gem 'rspec-rails'
@@ -30,15 +31,18 @@ group :development do
3031
gem 'meta_request'
3132
gem 'better_errors'
3233
gem 'binding_of_caller'
34+
gem 'rollbar'
35+
gem 'flog'
3336
gem 'kumade'
3437
gem 'zeus'
3538
gem 'wirble'
36-
# gem 'debugger'
39+
gem 'pry'
3740
end
3841

3942
group :development, :test do
4043
gem "awesome_print", :require => "ap"
4144
gem 'tapp'
45+
gem 'dotenv-rails'
4246
end
4347

4448
group :assets do

Gemfile.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ GEM
4141
i18n (= 0.6.1)
4242
multi_json (~> 1.0)
4343
addressable (2.3.3)
44+
app (1.0.3)
4445
arbre (1.0.1)
4546
activesupport (>= 3.0.0)
4647
arel (3.0.2)
@@ -89,6 +90,9 @@ GEM
8990
railties (~> 3.1)
9091
warden (~> 1.2.1)
9192
diff-lcs (1.2.1)
93+
dotenv (0.8.0)
94+
dotenv-rails (0.8.0)
95+
dotenv (= 0.8.0)
9296
erubis (2.7.0)
9397
eventmachine (1.0.3)
9498
excon (0.16.10)
@@ -101,6 +105,9 @@ GEM
101105
railties (>= 3.0.0)
102106
fastercsv (1.5.5)
103107
ffi (1.6.0)
108+
flog (4.0.0)
109+
ruby_parser (~> 3.1, > 3.1.0)
110+
sexp_processor (~> 4.0)
104111
foreman (0.62.0)
105112
thor (>= 0.13.6)
106113
formtastic (2.2.1)
@@ -174,6 +181,10 @@ GEM
174181
polyamorous (0.5.0)
175182
activerecord (~> 3.0)
176183
polyglot (0.3.3)
184+
pry (0.9.12.2)
185+
coderay (~> 1.0.5)
186+
method_source (~> 0.8)
187+
slop (~> 3.4)
177188
rack (1.4.5)
178189
rack-cache (1.2)
179190
rack (>= 0.4)
@@ -221,6 +232,8 @@ GEM
221232
railties (~> 3.1)
222233
rest-client (1.6.7)
223234
mime-types (>= 1.16)
235+
rollbar (0.9.10)
236+
multi_json (~> 1.5)
224237
rspec (2.13.0)
225238
rspec-core (~> 2.13.0)
226239
rspec-expectations (~> 2.13.0)
@@ -265,6 +278,7 @@ GEM
265278
skinny (0.2.3)
266279
eventmachine (~> 1.0.0)
267280
thin (~> 1.5.0)
281+
slop (3.4.5)
268282
sprockets (2.2.2)
269283
hike (~> 1.2)
270284
multi_json (~> 1.0)
@@ -315,12 +329,15 @@ PLATFORMS
315329

316330
DEPENDENCIES
317331
activeadmin
332+
app
318333
awesome_print
319334
better_errors
320335
binding_of_caller
321336
bullet
322337
coffee-rails
338+
dotenv-rails
323339
factory_girl_rails
340+
flog
324341
foreman
325342
fuubar
326343
haml
@@ -331,9 +348,11 @@ DEPENDENCIES
331348
meta_request
332349
newrelic_rpm
333350
pg
351+
pry
334352
rails (= 3.2.13)
335353
rails_best_practices
336354
reek
355+
rollbar
337356
rspec-rails
338357
sass-rails
339358
simple_form

README.markdown

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
[![Code Climate](https://codeclimate.com/repos/51df69fb13d6374f780068ad/badges/c76b71b4327cf8984a9f/gpa.png)](https://codeclimate.com/repos/51df69fb13d6374f780068ad/feed)
2+
[![Build Status](https://travis-ci.org/tansengming/rails-base.png?branch=develop)](https://travis-ci.org/tansengming/rails-base)
3+
14
Every Rails developer has their favorite set of tools and gems. These just happen to be mine.
25

36
Setup includes:
47

58
- Active Admin, together with a super admin role to administer admin users. Endpoints are at `/admin` and `/super_admins`.
69
- Deliver all your pivotal stories with `rake pivotal:deliver_all_finished`.
710
- `rake code:reviews` runs Reek, rails_best_practices. Do this often.
8-
- RSpec, Factory Girl, Steak, Devise test helpers and Twitter Bootstrap setup and running.
11+
- RSpec, Factory Girl, Steak, Devise test helpers and Twitter Bootstrap setup and running.

changelog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
current
22
- adds support for daily cred
33
- specs for super admin login
4+
- travis test
45

56
2013-03-28
67
=======
78

8-
- fix deprecations
9+
- fix deprecations

config/app.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class App < Configurable # :nodoc:
2+
# Settings in config/app/* take precedence over those specified here.
3+
config.name = Rails.application.class.parent.name
4+
5+
# config.key = "value"
6+
end

config/app/development.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
App.configure do
2+
# Settings specified here will take precedence over those in config/app.rb
3+
4+
# config.key = "value"
5+
end

config/app/production.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
App.configure do
2+
# Settings specified here will take precedence over those in config/app.rb
3+
4+
# config.key = "value"
5+
end

0 commit comments

Comments
 (0)