Skip to content

Commit b7fd13f

Browse files
committed
up
up
1 parent 70537e2 commit b7fd13f

File tree

1,304 files changed

+214886
-1
lines changed

Some content is hidden

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

1,304 files changed

+214886
-1
lines changed

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--profile

.travis.application.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
defaults: &defaults
2+
3+
# sites hosts
4+
# session expire seconds
5+
# admin role account
6+
URL_HOST: peatio.dev
7+
URL_SCHEMA: http
8+
DEFAULT_MARKET: btccny
9+
SESSION_EXPIRE: 120
10+
API_WHITELIST: []
11+
12+
13+
REDIS_URL: redis://127.0.0.1:6379
14+
15+
# below settings only in production env
16+
# system notify mail settings
17+
# recaptcha settings
18+
# --------------------------------------------------------------
19+
# in exchange some operation need validate operator is not bot.
20+
# peatio use RECAPTCHA validate this
21+
# so you need apply a new key or use we support development key
22+
# uncomment below line only development or test
23+
SMTP_DOMAIN: YOUR_SMTP_DOMAIN
24+
SMTP_ADDRESS: YOUR_SMTP_ADDRESS
25+
SMTP_USERNAME: YOUR_SMTP_USERNAME
26+
SMTP_PASSWORD: YOUR_SMTP_PASSWORD
27+
28+
SYSTEM_MAIL_FROM: [email protected]
29+
SYSTEM_MAIL_TO: [email protected]
30+
31+
# recaptcha settings
32+
# --------------------------------------------------------------
33+
# in exchange some operation need validate operator is not bot.
34+
# peatio use RECAPTCHA validate this
35+
# so you need apply a new key or use we support development key
36+
# uncomment below line only development or test
37+
#
38+
RECAPTCHA_PUBLIC_KEY: 6LfxHegSAAAAAOD6mQ1PFvXgBApsHl_oO_y9EtI9
39+
RECAPTCHA_PRIVATE_KEY: 6LfxHegSAAAAAH4M8CuhJJoH8VGYswg2HI_xY5N1
40+
41+
# RECAPTCHA_PUBLIC_KEY: YOUR_RECAPTCHA_PUBLIC_KEY
42+
# RECAPTCHA_PRIVATE_KEY: YOUR_RECAPTCHA_PRIVATE_KEY
43+
44+
# pusher settings
45+
# --------------------------------------------------------------
46+
# peatio dependence Pusher (http://pusher.com) service
47+
# you can change your key for production environment.
48+
# we support development key and secret
49+
# uncomment below line only development or test
50+
#
51+
PUSHER_APP: TRAVIS_PUSHER_APP
52+
PUSHER_KEY: TRAVIS_PUSHER_KEY
53+
PUSHER_SECRET: TRAVIS_PUSHER_SECRET
54+
55+
# PUSHER_APP: YOUR_PUSHER_APP
56+
# PUSHER_KEY: YOUR_PUSHER_KEY
57+
# PUSHER_SECRET: YOUR_PUSHER_SECRET
58+
59+
development:
60+
<<: *defaults
61+
62+
test:
63+
<<: *defaults
64+
65+
production:
66+
<<: *defaults

.travis.currencies.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
- id: 1
2+
key: renminbi
3+
code: cny
4+
coin: false
5+
assets:
6+
balance: 92343242.56
7+
accounts:
8+
-
9+
bank: '招商银行'
10+
address: '6225 0885 6022 3501'
11+
password: '111111'
12+
tel: '95555'
13+
- id: 2
14+
key: satoshi
15+
code: btc
16+
coin: true
17+
rpc: http://username:[email protected]:18332
18+
assets:
19+
balance: 333333
20+
accounts:
21+
-
22+
address: 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp

.travis.database.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
test:
2+
adapter: mysql2
3+
database: peatio_test
4+
username: root
5+
encoding: utf8
6+
cucumber:
7+
adapter: mysql2
8+
database: peatio_test
9+
username: root
10+
encoding: utf8

.travis.markets.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- id: btccny
2+
code: 3
3+
base_unit: btc
4+
quote_unit: cny
5+
bid: {fee: 0, currency: cny, fixed: 2}
6+
ask: {fee: 0, currency: btc, fixed: 4}

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: ruby
2+
rvm:
3+
- 2.2.1
4+
before_script:
5+
- "mysql -e 'create database peatio_test;'"
6+
- "cp ./.travis.database.yml ./config/database.yml"
7+
- "cp ./.travis.application.yml ./config/application.yml"
8+
- "cp ./.travis.currencies.yml ./config/currencies.yml"
9+
- "cp ./.travis.markets.yml ./config/markets.yml"
10+
- "cp ./config/amqp.yml.example ./config/amqp.yml"
11+
- "mkdir -p ./tmp/cache"
12+
script:
13+
- bundle exec rake db:schema:load
14+
- bundle exec rake db:test:prepare
15+
- bundle exec rake spec
16+
after_failure:
17+
- "mysql -e 'show databases;'"
18+
- "cat ./config/database.yml"
19+
- "echo $RAILS_ENV"
20+
- "bundle exec rake --version"
21+
notifications:
22+
slack: peatio:F2FWrCANEK3QcjHC16OO541l

.tx/config

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[main]
2+
host = https://www.transifex.com
3+
4+
[peatio.serverenyml]
5+
file_filter = config/locales/server.<lang>.yml
6+
source_file = config/locales/server.en.yml
7+
source_lang = en
8+
trans.zh_CN = config/locales/server.zh-CN.yml
9+
trans.zh_TW = config/locales/server.zh-TW.yml
10+
type = YML
11+
12+
[peatio.clientenyml]
13+
file_filter = config/locales/client.<lang>.yml
14+
source_file = config/locales/client.en.yml
15+
source_lang = en
16+
trans.zh_CN = config/locales/client.zh-CN.yml
17+
trans.zh_TW = config/locales/client.zh-TW.yml
18+
type = YML
19+

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* Add visible attribute to market and default visible is true
2+
* I18n translations for Email template
3+
* Put Our Mission and Features into README.md
4+
* Add CHANGELOG.md

Gemfile

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'rails', '~> 4.2.0'
4+
gem 'rails-i18n', '>= 4.0.9'
5+
6+
gem 'mysql2', '~> 0.3.21'
7+
gem 'daemons-rails'
8+
gem 'redis-rails', '>= 5.0.2'
9+
gem 'responders', '~> 2.0'
10+
11+
gem 'rotp'
12+
gem 'json'
13+
gem 'jbuilder'
14+
gem 'bcrypt-ruby', '~> 3.1.2'
15+
16+
gem 'doorkeeper', '~> 1.4.2'
17+
gem 'omniauth', '~> 1.2.1'
18+
gem 'omniauth-identity', '~> 1.1.1'
19+
gem 'omniauth-weibo-oauth2', '~> 0.4.0'
20+
21+
gem 'figaro', '>= 0.7.0'
22+
gem 'hashie'
23+
24+
gem 'aasm', '~> 3.4.0'
25+
gem 'amqp', '~> 1.3.0'
26+
gem 'bunny', '~> 1.2.1'
27+
gem 'cancancan'
28+
gem 'enumerize'
29+
gem 'datagrid', '>= 1.5.7'
30+
gem 'acts-as-taggable-on', '>= 3.0.1'
31+
gem 'kaminari', '>= 0.15.1'
32+
gem 'paranoid2'
33+
gem 'active_hash', '~> 1.5.0'
34+
gem 'http_accept_language'
35+
gem "globalize", "~> 4.0.0"
36+
gem 'paper_trail', '~> 3.0.1'
37+
gem 'rails-observers'
38+
gem 'country_select', '~> 2.1.0'
39+
40+
gem 'gon', '~> 5.2.0'
41+
gem 'pusher'
42+
gem 'eventmachine', '~> 1.0.4'
43+
gem 'em-websocket', '~> 0.5.1'
44+
45+
gem 'simple_form', '~> 3.1.1'
46+
gem 'slim-rails', '>= 3.1.3'
47+
gem 'sass-rails', '>= 5.0.6'
48+
gem 'coffee-rails', '>= 4.2.2'
49+
gem 'uglifier', '>= 2.7.2'
50+
gem "jquery-rails", ">= 3.1.4"
51+
gem "angularjs-rails"
52+
gem 'bootstrap-sass', '~> 3.2.0.2'
53+
gem 'bootstrap-wysihtml5-rails', '>= 0.3.1.24'
54+
gem 'font-awesome-sass', '~> 4.5.0.0'
55+
gem 'bourbon'
56+
gem 'momentjs-rails', '>= 2.17.1'
57+
gem 'eco'
58+
gem 'browser', '~> 0.8.0'
59+
gem 'rbtree'
60+
gem 'liability-proof', '0.0.9'
61+
gem 'whenever', '~> 0.9.2'
62+
gem 'grape', '~> 0.7.0'
63+
gem 'grape-entity', '~> 0.4.2'
64+
gem 'grape-swagger', '~> 0.7.2'
65+
gem 'rack-attack', '~> 4.3.1'
66+
gem 'easy_table', '>= 0.0.6'
67+
gem 'phonelib', '~> 0.3.5'
68+
gem 'twilio-ruby', '~> 3.11'
69+
gem 'unread', github: 'gravio-net/unread'
70+
gem 'carrierwave', '~> 0.10.0'
71+
gem 'simple_captcha', github: 'gravio-net/simple-captcha', branch: '0.2.2.1'
72+
gem 'rest-client', '~> 1.6.8'
73+
74+
group :development, :test do
75+
gem 'factory_girl_rails', '>= 4.9.0'
76+
gem 'faker', '~> 1.4.3'
77+
gem 'mina'
78+
gem 'mina-slack', github: 'gravio-net/mina-slack'
79+
gem 'meta_request', '>= 0.4.3'
80+
gem 'better_errors'
81+
gem 'binding_of_caller'
82+
gem 'pry-rails'
83+
gem 'quiet_assets', '>= 1.1.0'
84+
gem 'mails_viewer', '>= 0.1.2'
85+
gem 'timecop'
86+
gem 'dotenv-rails'
87+
gem 'rspec-rails', '>= 3.7.1'
88+
gem 'byebug'
89+
end
90+
91+
group :test do
92+
gem 'database_cleaner'
93+
gem 'mocha', :require => false
94+
gem 'shoulda-matchers'
95+
gem 'capybara', '>= 2.15.4'
96+
gem 'launchy'
97+
gem 'selenium-webdriver', '>= 2.39.0'
98+
gem 'poltergeist', '>= 1.16.0'
99+
100+
# rspec-rails rely on test-unit if rails version less then 4.1.0
101+
# but test-unit has been removed from ruby core since 2.2.0
102+
gem 'test-unit'
103+
end

0 commit comments

Comments
 (0)