Skip to content

Commit 1f9a4c0

Browse files
committed
Initial upload
0 parents  commit 1f9a4c0

File tree

104 files changed

+2261
-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.

104 files changed

+2261
-0
lines changed

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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
17+
18+
# RubyMine
19+
.idea/

Capfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Load DSL and Setup Up Stages
2+
require 'capistrano/setup'
3+
4+
# Includes default deployment tasks
5+
require 'capistrano/deploy'
6+
7+
# Includes tasks from other gems included in your Gemfile
8+
#
9+
# For documentation on these, see for example:
10+
#
11+
# https://github.com/capistrano/rvm
12+
# https://github.com/capistrano/rbenv
13+
# https://github.com/capistrano/chruby
14+
# https://github.com/capistrano/bundler
15+
# https://github.com/capistrano/rails/tree/master/assets
16+
# https://github.com/capistrano/rails/tree/master/migrations
17+
#
18+
# require 'capistrano/rvm'
19+
# require 'capistrano/rbenv'
20+
# require 'capistrano/chruby'
21+
# require 'capistrano/bundler'
22+
# require 'capistrano/rails/assets'
23+
# require 'capistrano/rails/migrations'
24+
25+
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
26+
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }

Gemfile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
source 'https://rubygems.org'
2+
3+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4+
gem 'rails', '4.0.1'
5+
6+
# PostrgeSQL DBMS
7+
gem 'pg'
8+
9+
# JS, CSS and HTML gems
10+
gem 'haml', '~> 4.0.4'
11+
gem 'sass-rails', '~> 4.0.1'
12+
gem 'bootstrap-sass', '~> 3.0.3.0'
13+
gem 'jquery-rails', '~> 3.0.4'
14+
gem 'jbuilder', '~> 1.0.2'
15+
gem 'uglifier', '~> 2.1.1'
16+
17+
# BTC Market APIs
18+
gem 'btce'
19+
gem 'mtgox'
20+
21+
gem 'activeadmin', github: 'gregbell/active_admin'
22+
23+
# Use ActiveModel has_secure_password
24+
gem 'bcrypt-ruby', '~> 3.1.2'
25+
26+
# Use Capistrano for deployment
27+
gem 'capistrano', group: :development
28+
29+
group :development, :test do
30+
gem 'better_errors'
31+
gem 'binding_of_caller'
32+
end
33+
34+
gem 'debugger', group: [:development, :test]
35+
36+
group :doc do
37+
# bundle exec rake doc:rails generates the API under doc/api.
38+
gem 'sdoc', require: false
39+
end

Gemfile.lock

+220
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
GIT
2+
remote: git://github.com/gregbell/active_admin.git
3+
revision: 56a255cde9f65596e1f777f5e48bd5aa8142ea73
4+
specs:
5+
activeadmin (1.0.0.pre)
6+
arbre (~> 1.0)
7+
bourbon
8+
coffee-rails
9+
devise (~> 3.0)
10+
formtastic (~> 2.3.0.rc2)
11+
inherited_resources (~> 1.3)
12+
jquery-rails
13+
jquery-ui-rails
14+
kaminari (~> 0.14)
15+
rails (>= 3.2, < 4.1)
16+
ransack (~> 1.0)
17+
sass-rails
18+
19+
GEM
20+
remote: https://rubygems.org/
21+
specs:
22+
actionmailer (4.0.1)
23+
actionpack (= 4.0.1)
24+
mail (~> 2.5.4)
25+
actionpack (4.0.1)
26+
activesupport (= 4.0.1)
27+
builder (~> 3.1.0)
28+
erubis (~> 2.7.0)
29+
rack (~> 1.5.2)
30+
rack-test (~> 0.6.2)
31+
activemodel (4.0.1)
32+
activesupport (= 4.0.1)
33+
builder (~> 3.1.0)
34+
activerecord (4.0.1)
35+
activemodel (= 4.0.1)
36+
activerecord-deprecated_finders (~> 1.0.2)
37+
activesupport (= 4.0.1)
38+
arel (~> 4.0.0)
39+
activerecord-deprecated_finders (1.0.3)
40+
activesupport (4.0.1)
41+
i18n (~> 0.6, >= 0.6.4)
42+
minitest (~> 4.2)
43+
multi_json (~> 1.3)
44+
thread_safe (~> 0.1)
45+
tzinfo (~> 0.3.37)
46+
arbre (1.0.1)
47+
activesupport (>= 3.0.0)
48+
arel (4.0.1)
49+
atomic (1.1.14)
50+
bcrypt-ruby (3.1.2)
51+
better_errors (1.0.1)
52+
coderay (>= 1.0.0)
53+
erubis (>= 2.6.6)
54+
binding_of_caller (0.7.2)
55+
debug_inspector (>= 0.0.1)
56+
bootstrap-sass (3.0.3.0)
57+
sass (~> 3.2)
58+
bourbon (3.1.8)
59+
sass (>= 3.2.0)
60+
thor
61+
btce (0.2.3)
62+
monkey-patch
63+
builder (3.1.4)
64+
capistrano (3.0.1)
65+
i18n
66+
rake (>= 10.0.0)
67+
sshkit (>= 0.0.23)
68+
coderay (1.1.0)
69+
coffee-rails (4.0.1)
70+
coffee-script (>= 2.2.0)
71+
railties (>= 4.0.0, < 5.0)
72+
coffee-script (2.2.0)
73+
coffee-script-source
74+
execjs
75+
coffee-script-source (1.6.3)
76+
columnize (0.3.6)
77+
debug_inspector (0.0.2)
78+
debugger (1.6.3)
79+
columnize (>= 0.3.1)
80+
debugger-linecache (~> 1.2.0)
81+
debugger-ruby_core_source (~> 1.2.4)
82+
debugger-linecache (1.2.0)
83+
debugger-ruby_core_source (1.2.4)
84+
devise (3.2.2)
85+
bcrypt-ruby (~> 3.0)
86+
orm_adapter (~> 0.1)
87+
railties (>= 3.2.6, < 5)
88+
thread_safe (~> 0.1)
89+
warden (~> 1.2.3)
90+
erubis (2.7.0)
91+
execjs (2.0.2)
92+
faraday (0.8.8)
93+
multipart-post (~> 1.2.0)
94+
formtastic (2.3.0.rc2)
95+
actionpack (>= 3.0)
96+
haml (4.0.4)
97+
tilt
98+
has_scope (0.6.0.rc)
99+
actionpack (>= 3.2, < 5)
100+
activesupport (>= 3.2, < 5)
101+
hike (1.2.3)
102+
i18n (0.6.9)
103+
inherited_resources (1.4.1)
104+
has_scope (~> 0.6.0.rc)
105+
responders (~> 1.0.0.rc)
106+
jbuilder (1.0.2)
107+
activesupport (>= 3.0.0)
108+
jquery-rails (3.0.4)
109+
railties (>= 3.0, < 5.0)
110+
thor (>= 0.14, < 2.0)
111+
jquery-ui-rails (4.1.0)
112+
railties (>= 3.1.0)
113+
json (1.8.1)
114+
kaminari (0.15.0)
115+
actionpack (>= 3.0.0)
116+
activesupport (>= 3.0.0)
117+
mail (2.5.4)
118+
mime-types (~> 1.16)
119+
treetop (~> 1.4.8)
120+
mime-types (1.25.1)
121+
minitest (4.7.5)
122+
monkey-patch (0.0.9)
123+
activesupport
124+
mtgox (1.1.0)
125+
faraday (~> 0.8, < 0.10)
126+
json (~> 1.7, >= 1.7.7)
127+
multi_json (1.8.2)
128+
multipart-post (1.2.0)
129+
net-scp (1.1.2)
130+
net-ssh (>= 2.6.5)
131+
net-ssh (2.7.0)
132+
orm_adapter (0.5.0)
133+
pg (0.17.0)
134+
polyamorous (0.6.4)
135+
activerecord (>= 3.0)
136+
polyglot (0.3.3)
137+
rack (1.5.2)
138+
rack-test (0.6.2)
139+
rack (>= 1.0)
140+
rails (4.0.1)
141+
actionmailer (= 4.0.1)
142+
actionpack (= 4.0.1)
143+
activerecord (= 4.0.1)
144+
activesupport (= 4.0.1)
145+
bundler (>= 1.3.0, < 2.0)
146+
railties (= 4.0.1)
147+
sprockets-rails (~> 2.0.0)
148+
railties (4.0.1)
149+
actionpack (= 4.0.1)
150+
activesupport (= 4.0.1)
151+
rake (>= 0.8.7)
152+
thor (>= 0.18.1, < 2.0)
153+
rake (10.1.0)
154+
ransack (1.1.0)
155+
actionpack (>= 3.0)
156+
activerecord (>= 3.0)
157+
polyamorous (~> 0.6.0)
158+
rdoc (3.12.2)
159+
json (~> 1.4)
160+
responders (1.0.0)
161+
railties (>= 3.2, < 5)
162+
sass (3.2.12)
163+
sass-rails (4.0.1)
164+
railties (>= 4.0.0, < 5.0)
165+
sass (>= 3.1.10)
166+
sprockets-rails (~> 2.0.0)
167+
sdoc (0.3.20)
168+
json (>= 1.1.3)
169+
rdoc (~> 3.10)
170+
sprockets (2.10.1)
171+
hike (~> 1.2)
172+
multi_json (~> 1.0)
173+
rack (~> 1.0)
174+
tilt (~> 1.1, != 1.3.0)
175+
sprockets-rails (2.0.1)
176+
actionpack (>= 3.0)
177+
activesupport (>= 3.0)
178+
sprockets (~> 2.8)
179+
sshkit (1.2.0)
180+
net-scp (>= 1.1.2)
181+
net-ssh
182+
term-ansicolor
183+
term-ansicolor (1.2.2)
184+
tins (~> 0.8)
185+
thor (0.18.1)
186+
thread_safe (0.1.3)
187+
atomic
188+
tilt (1.4.1)
189+
tins (0.13.1)
190+
treetop (1.4.15)
191+
polyglot
192+
polyglot (>= 0.3.1)
193+
tzinfo (0.3.38)
194+
uglifier (2.1.1)
195+
execjs (>= 0.3.0)
196+
multi_json (~> 1.0, >= 1.0.2)
197+
warden (1.2.3)
198+
rack (>= 1.0)
199+
200+
PLATFORMS
201+
ruby
202+
203+
DEPENDENCIES
204+
activeadmin!
205+
bcrypt-ruby (~> 3.1.2)
206+
better_errors
207+
binding_of_caller
208+
bootstrap-sass (~> 3.0.3.0)
209+
btce
210+
capistrano
211+
debugger
212+
haml (~> 4.0.4)
213+
jbuilder (~> 1.0.2)
214+
jquery-rails (~> 3.0.4)
215+
mtgox
216+
pg
217+
rails (= 4.0.1)
218+
sass-rails (~> 4.0.1)
219+
sdoc
220+
uglifier (~> 2.1.1)

README.rdoc

+28
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>.

Rakefile

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

app/admin/admin_user.rb

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ActiveAdmin.register AdminUser do
2+
permit_params :email, :password, :password_confirmation
3+
4+
index do
5+
column :email
6+
column :current_sign_in_at
7+
column :last_sign_in_at
8+
column :sign_in_count
9+
default_actions
10+
end
11+
12+
filter :email
13+
14+
form do |f|
15+
f.inputs "Admin Details" do
16+
f.input :email
17+
f.input :password
18+
f.input :password_confirmation
19+
end
20+
f.actions
21+
end
22+
23+
end

0 commit comments

Comments
 (0)