rails_mongo_backbone_bootstrap_tmpl 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +29 -0
- data/LICENSE.txt +22 -0
- data/README.md +52 -0
- data/Rakefile +13 -0
- data/bin/rmbb_generator +65 -0
- data/lib/rails_mongo_backbone_bootstrap_tmpl/version.rb +3 -0
- data/lib/rails_mongo_backbone_bootstrap_tmpl.rb +5 -0
- data/rails_mongo_backbone_bootstrap_tmpl.gemspec +25 -0
- data/spec/base_spec.rb +6 -0
- data/spec/spec_helper.rb +10 -0
- data/template/Gemfile +107 -0
- data/template/Gemfile.lock +421 -0
- data/template/README.rdoc +261 -0
- data/template/Rakefile +7 -0
- data/template/app/assets/images/rails.png +0 -0
- data/template/app/assets/javascripts/app/app.js.coffee +41 -0
- data/template/app/assets/javascripts/app/views/common/popup_window.js.coffee +45 -0
- data/template/app/assets/javascripts/app/views/common/popup_window_template.jst.skim +11 -0
- data/template/app/assets/javascripts/application.js +19 -0
- data/template/app/assets/javascripts/home.js.coffee +7 -0
- data/template/app/assets/javascripts/vendor/backbone-min.js +4 -0
- data/template/app/assets/javascripts/vendor/backbone-min.map +1 -0
- data/template/app/assets/javascripts/vendor/bootstrap.min.js +6 -0
- data/template/app/assets/javascripts/vendor/jquery-1.7.2.min.js +4 -0
- data/template/app/assets/javascripts/vendor/select2.min.js +22 -0
- data/template/app/assets/javascripts/vendor/select2_locale_zh-CN.js +14 -0
- data/template/app/assets/javascripts/vendor/underscore-min.js +1 -0
- data/template/app/assets/stylesheets/application.css +14 -0
- data/template/app/assets/stylesheets/bootstrap.css +6805 -0
- data/template/app/assets/stylesheets/bootstrap_and_overrides.sass +7 -0
- data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.svg +228 -0
- data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/template/app/assets/stylesheets/home.css.sass +4 -0
- data/template/app/controllers/application_controller.rb +3 -0
- data/template/app/controllers/home_controller.rb +5 -0
- data/template/app/helpers/application_helper.rb +3 -0
- data/template/app/helpers/home_helper.rb +3 -0
- data/template/app/mailers/.gitkeep +0 -0
- data/template/app/models/.gitkeep +0 -0
- data/template/app/views/home/index.html.slim +2 -0
- data/template/app/views/layouts/application.html.slim +36 -0
- data/template/config/application.rb +81 -0
- data/template/config/boot.rb +6 -0
- data/template/config/environment.rb +5 -0
- data/template/config/environments/development.rb +31 -0
- data/template/config/environments/production.rb +65 -0
- data/template/config/environments/test.rb +35 -0
- data/template/config/initializers/backtrace_silencers.rb +8 -0
- data/template/config/initializers/inflections.rb +16 -0
- data/template/config/initializers/mime_types.rb +6 -0
- data/template/config/initializers/secret_token.rb +8 -0
- data/template/config/initializers/session_store.rb +9 -0
- data/template/config/initializers/wrap_parameters.rb +11 -0
- data/template/config/locales/en.yml +5 -0
- data/template/config/mongoid.yml +88 -0
- data/template/config/routes.rb +59 -0
- data/template/config.ru +4 -0
- data/template/db/seeds.rb +7 -0
- data/template/lib/assets/.gitkeep +0 -0
- data/template/lib/tasks/.gitkeep +0 -0
- data/template/log/.gitkeep +0 -0
- data/template/public/404.html +26 -0
- data/template/public/422.html +26 -0
- data/template/public/500.html +25 -0
- data/template/public/favicon.ico +0 -0
- data/template/public/robots.txt +5 -0
- data/template/script/rails +6 -0
- data/template/spec/controllers/home_controller_spec.rb +12 -0
- data/template/spec/helpers/home_helper_spec.rb +15 -0
- data/template/spec/spec_helper.rb +38 -0
- data/template/spec/views/home/index.html.slim_spec.rb +5 -0
- data/template/test/fixtures/.gitkeep +0 -0
- data/template/test/functional/.gitkeep +0 -0
- data/template/test/integration/.gitkeep +0 -0
- data/template/test/performance/browsing_test.rb +12 -0
- data/template/test/test_helper.rb +7 -0
- data/template/test/unit/.gitkeep +0 -0
- data/template/vendor/assets/javascripts/.gitkeep +0 -0
- data/template/vendor/assets/stylesheets/.gitkeep +0 -0
- data/template/vendor/plugins/.gitkeep +0 -0
- metadata +187 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 38793d63a5c7aa54cc8a6f3bd3cfd18591bb8922
|
|
4
|
+
data.tar.gz: 16fd515cdeaca8b1cd35ef5e77c5f4ee642ad712
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 1b785d3d2a168d532169844ac1fed99ebde92249c1d6641d2ad51d431160c6f955175369a91bbfd7e9b26cf2d125f17db619ad60f89f8ee75fc93443e22e4ba3
|
|
7
|
+
data.tar.gz: e2cd272e2007313235fbbe333408be8efeb24570fa83b58086da455def85520137a5232a2a32db049236162949ed58cae4479d1fc6e328b9bab08f110f2d4876
|
data/.gitignore
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# See http://help.github.com/ignore-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
|
+
coverage
|
|
8
|
+
doc
|
|
9
|
+
pkg
|
|
10
|
+
*.swp
|
|
11
|
+
*.patch
|
|
12
|
+
*.gem
|
|
13
|
+
*.sh
|
|
14
|
+
.DS_Store
|
|
15
|
+
.bundle/*
|
|
16
|
+
#Gemfile.lock
|
|
17
|
+
tmp/*
|
|
18
|
+
log/*
|
|
19
|
+
.rvmrc
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
rails_mongo_backbone_bootstrap_tmpl (0.0.2)
|
|
5
|
+
thor
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
diff-lcs (1.1.3)
|
|
11
|
+
rake (10.1.0)
|
|
12
|
+
rspec (2.11.0)
|
|
13
|
+
rspec-core (~> 2.11.0)
|
|
14
|
+
rspec-expectations (~> 2.11.0)
|
|
15
|
+
rspec-mocks (~> 2.11.0)
|
|
16
|
+
rspec-core (2.11.1)
|
|
17
|
+
rspec-expectations (2.11.3)
|
|
18
|
+
diff-lcs (~> 1.1.3)
|
|
19
|
+
rspec-mocks (2.11.3)
|
|
20
|
+
thor (0.18.1)
|
|
21
|
+
|
|
22
|
+
PLATFORMS
|
|
23
|
+
ruby
|
|
24
|
+
|
|
25
|
+
DEPENDENCIES
|
|
26
|
+
bundler (~> 1.3)
|
|
27
|
+
rails_mongo_backbone_bootstrap_tmpl!
|
|
28
|
+
rake
|
|
29
|
+
rspec (~> 2.6)
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Raymond Jiang
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
##Auto generate rails project based on [mongo](http://www.mongodb.org/), [backboneJs](http://backbonejs.org/), [bootstrap css](http://getbootstrap.com/).
|
|
2
|
+
|
|
3
|
+
Let you become a professional Rails programmer only one minute !
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to your application's Gemfile:
|
|
8
|
+
|
|
9
|
+
gem 'rails_mongo_backbone_bootstrap_tmpl'
|
|
10
|
+
|
|
11
|
+
And then execute:
|
|
12
|
+
|
|
13
|
+
$ bundle
|
|
14
|
+
|
|
15
|
+
Or install it yourself as:
|
|
16
|
+
|
|
17
|
+
$ gem install rails_mongo_backbone_bootstrap_tmpl
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Usage:
|
|
22
|
+
rmbb_generator new
|
|
23
|
+
|
|
24
|
+
Options:
|
|
25
|
+
-p, [--app-path=APP_PATH] # where you want your rails application placed to
|
|
26
|
+
-d, [--db-name=DB_NAME] # set database name
|
|
27
|
+
-r, [--rvmrc=RVMRC] # create .rvmrc file with rvmrc string value
|
|
28
|
+
|
|
29
|
+
Auto create new rails app based on mongo , devise, backboneJs, bootstrap
|
|
30
|
+
|
|
31
|
+
Sample:
|
|
32
|
+
1. To create new rails app and place it to current user home path.
|
|
33
|
+
rmbb_generator new YOUR_APP_NAME -p "~/"
|
|
34
|
+
|
|
35
|
+
2. To create new rails app and using a special db name.
|
|
36
|
+
rmbb_generator new YOUR_APP_NAME -p "~/" -d "YOUR_DB_NAME"
|
|
37
|
+
|
|
38
|
+
3. To create new rails app and using a special rmv gemset.
|
|
39
|
+
rmbb_generator new YOUR_APP_NAME -p "~/" -d "YOUR_DB_NAME" -r "rvm use YOUR_RUBY_VERSION_xxx@GEM_SET_NAME"
|
|
40
|
+
|
|
41
|
+
Last:
|
|
42
|
+
1. cd to new app path. (Before do this, i suggest you to create a independent gemset for this new app, then add a .rvmrc file to this app path.)
|
|
43
|
+
2. run 'bundle install' and install all gems.
|
|
44
|
+
3. run 'rails s' to start your professional rails journey.
|
|
45
|
+
|
|
46
|
+
## Contributing
|
|
47
|
+
|
|
48
|
+
1. Fork it
|
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
50
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
51
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
52
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/bin/rmbb_generator
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require "thor"
|
|
3
|
+
require 'find'
|
|
4
|
+
require 'erb'
|
|
5
|
+
|
|
6
|
+
module RailsMongoBackboneBootstrapTmpl
|
|
7
|
+
class Rmbb_Generator < Thor
|
|
8
|
+
include Thor::Actions
|
|
9
|
+
|
|
10
|
+
desc "new", "Auto create new rails app based on mongo , devise, backboneJs, bootstrap"
|
|
11
|
+
method_option :app_path, :type => :string, :aliases => "-p", :desc => "where you want your rails application placed to"
|
|
12
|
+
method_option :db_name, :type => :string, :aliases => "-d", :desc => "set database name"
|
|
13
|
+
method_option :rvmrc, :type => :string, :aliases => "-r", :desc => "create .rvmrc file with rvmrc string value"
|
|
14
|
+
|
|
15
|
+
def new(app_name)
|
|
16
|
+
app_name = app_name.gsub(/[\s]+/,'_').capitalize
|
|
17
|
+
say "Your app name will be : #{app_name} \n"
|
|
18
|
+
|
|
19
|
+
app_path = options[:app_path] || "./"
|
|
20
|
+
app_whole_path = "#{File.expand_path(app_path,__FILE__)}/#{app_name}"
|
|
21
|
+
template_path = File.expand_path('../../template',__FILE__)
|
|
22
|
+
|
|
23
|
+
db_name = options[:db_name] || app_name.downcase
|
|
24
|
+
if Dir.exists? app_whole_path
|
|
25
|
+
result = ask "#{app_whole_path} existed ! Are you overwritten it ? [yes/no]"
|
|
26
|
+
if !result.eql? 'no'
|
|
27
|
+
self.copy_file(app_whole_path,template_path)
|
|
28
|
+
self.replace_file(app_whole_path, app_name, db_name)
|
|
29
|
+
self.create_rvmrc_file(app_whole_path,options[:rvmrc]) if options[:rvmrc]
|
|
30
|
+
say "create new app successfully!\n"
|
|
31
|
+
else
|
|
32
|
+
say "command terminated by user.\n"
|
|
33
|
+
end
|
|
34
|
+
else
|
|
35
|
+
self.copy_file(app_whole_path,template_path)
|
|
36
|
+
self.replace_file(app_whole_path, app_name, db_name)
|
|
37
|
+
self.create_rvmrc_file(app_whole_path,options[:rvmrc]) if options[:rvmrc]
|
|
38
|
+
say "create new app successfully!\n"
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
protected
|
|
44
|
+
|
|
45
|
+
def copy_file(app_whole_path,template_path)
|
|
46
|
+
FileUtils.mkdir_p "#{app_whole_path}"
|
|
47
|
+
FileUtils.cp_r "#{template_path}/.", "#{app_whole_path}"
|
|
48
|
+
|
|
49
|
+
end
|
|
50
|
+
def replace_file(target_path,app_name,db_name)
|
|
51
|
+
Find.find(target_path) do |f|
|
|
52
|
+
if File.file?(f) and f.to_s.match(/(.rb$)|(.ru$)|(.slim$)|(Rakefile$)|(.yml$)/)
|
|
53
|
+
content = ERB.new(File.new(f).read).result(binding)
|
|
54
|
+
File.open(f, 'w') { |p| p.write(content) }
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
def create_rvmrc_file(target_path,rvmrc_string)
|
|
59
|
+
File.open("#{target_path}/.rvmrc","w+"){|f| f.write(rvmrc_string)}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
RailsMongoBackboneBootstrapTmpl::Rmbb_Generator.start
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'rails_mongo_backbone_bootstrap_tmpl/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "rails_mongo_backbone_bootstrap_tmpl"
|
|
8
|
+
spec.version = RailsMongoBackboneBootstrapTmpl::VERSION
|
|
9
|
+
spec.authors = ["Robot Jiang"]
|
|
10
|
+
spec.email = ["robot.z.jiang@gmail.com"]
|
|
11
|
+
spec.description = %q{Auto generate rails project based on mongo, backboneJS, bootstrap css.}
|
|
12
|
+
spec.summary = %q{Auto generate rails project based on mongo, backboneJS, bootstrap css.}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = ['rmbb_generator']#spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
23
|
+
spec.add_development_dependency "rspec", "~> 2.6"
|
|
24
|
+
spec.add_dependency "thor"
|
|
25
|
+
end
|
data/spec/base_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
data/template/Gemfile
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
#source 'https://rubygems.org'
|
|
2
|
+
source 'http://ruby.taobao.org'
|
|
3
|
+
|
|
4
|
+
gem 'rails', '3.2.14'
|
|
5
|
+
|
|
6
|
+
# Bundle edge Rails instead:
|
|
7
|
+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
|
8
|
+
|
|
9
|
+
# template engine
|
|
10
|
+
# using Slim template for Backbone
|
|
11
|
+
gem 'temple','0.4.0'
|
|
12
|
+
gem 'tilt', '~> 1.3'
|
|
13
|
+
gem 'skim', '0.8.4'
|
|
14
|
+
gem 'slim', '1.2.1'
|
|
15
|
+
gem 'slim-rails'
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# Gems used only for assets and not required
|
|
19
|
+
# in production environments by default.
|
|
20
|
+
group :assets do
|
|
21
|
+
gem 'sass-rails', '~> 3.2.3'
|
|
22
|
+
gem 'coffee-rails', '~> 3.2.1'
|
|
23
|
+
gem 'compass-rails', '1.0.3'
|
|
24
|
+
|
|
25
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
|
26
|
+
gem 'libv8', '~> 3.11.8'
|
|
27
|
+
gem 'therubyracer', :platforms => :ruby
|
|
28
|
+
gem 'turbo-sprockets-rails3', '0.3.6'
|
|
29
|
+
gem 'uglifier', '1.2.7'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# uploading component
|
|
33
|
+
#gem 'carrierwave', '0.7.1'
|
|
34
|
+
#gem 'mini_magick', '3.3', :require => false
|
|
35
|
+
#gem 'rmagick'
|
|
36
|
+
#gem 'carrierwave-mongoid','0.1.0', :require => 'carrierwave/mongoid'
|
|
37
|
+
|
|
38
|
+
gem 'mongoid', '3.1.3'
|
|
39
|
+
gem 'mongoid_auto_increment_id', '0.5.1'
|
|
40
|
+
gem 'mongoid_rails_migrations', '1.0.0'
|
|
41
|
+
#gem 'mysql2'
|
|
42
|
+
|
|
43
|
+
# user management
|
|
44
|
+
gem 'devise'
|
|
45
|
+
#gem 'omniauth'
|
|
46
|
+
#gem 'omniauth-weibo-oauth2'
|
|
47
|
+
#gem 'weibo_2'
|
|
48
|
+
|
|
49
|
+
# permission
|
|
50
|
+
gem 'cancan', '~> 1.6.8'
|
|
51
|
+
|
|
52
|
+
gem 'inherited_resources'
|
|
53
|
+
|
|
54
|
+
# pagination
|
|
55
|
+
gem 'will_paginate', '3.0.3'
|
|
56
|
+
|
|
57
|
+
group :development do
|
|
58
|
+
gem 'quiet_assets', '~> 1.0.1'
|
|
59
|
+
gem 'awesome_print'
|
|
60
|
+
gem 'rb-fsevent', '~> 0.9.3'
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
group :development, :test do
|
|
64
|
+
gem 'jazz_hands'
|
|
65
|
+
gem 'capistrano', '2.12.0', :require => false
|
|
66
|
+
gem 'rvm-capistrano', '1.2.6', :require => false
|
|
67
|
+
gem 'thin'
|
|
68
|
+
gem 'hirb'
|
|
69
|
+
gem 'simplecov', :require => false
|
|
70
|
+
gem 'mongoid_colored_logger', :git => 'https://github.com/huacnlee/mongoid_colored_logger.git'
|
|
71
|
+
gem 'newrelic_rpm'
|
|
72
|
+
|
|
73
|
+
gem "rspec"
|
|
74
|
+
gem "rspec-mocks"
|
|
75
|
+
gem 'rspec-rails', '2.11.0'
|
|
76
|
+
gem "rspec-cells"
|
|
77
|
+
gem 'factory_girl_rails'
|
|
78
|
+
gem 'spork'
|
|
79
|
+
gem 'autotest-standalone'
|
|
80
|
+
gem 'autotest-fsevent'
|
|
81
|
+
gem 'autotest-growl'
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
group :test do
|
|
85
|
+
gem "faker", "~> 1.1.2"
|
|
86
|
+
gem "capybara", "~> 2.1.0"
|
|
87
|
+
gem "database_cleaner", "~> 1.0.1"
|
|
88
|
+
gem "launchy", "~> 2.3.0"
|
|
89
|
+
gem "shoulda-matchers", "~> 2.2.0"
|
|
90
|
+
gem "selenium-webdriver", "~> 2.35.1"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
#gem "twitter-bootstrap-rails", :git => 'https://github.com/seyhunak/twitter-bootstrap-rails.git'
|
|
94
|
+
gem 'unicorn'
|
|
95
|
+
#gem 'unicorn-worker-killer'
|
|
96
|
+
|
|
97
|
+
gem 'simple_form'
|
|
98
|
+
gem 'jquery-rails'
|
|
99
|
+
|
|
100
|
+
# for memcached
|
|
101
|
+
gem "dalli"
|
|
102
|
+
|
|
103
|
+
#gem "mobile-fu", "~> 1.2.1"
|
|
104
|
+
|
|
105
|
+
#gem 'whenever', :require => false
|
|
106
|
+
|
|
107
|
+
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
GIT
|
|
2
|
+
remote: https://github.com/huacnlee/mongoid_colored_logger.git
|
|
3
|
+
revision: b6bf70abc264d9c093a78816334a969cab585946
|
|
4
|
+
specs:
|
|
5
|
+
mongoid_colored_logger (0.1.1)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
actionmailer (3.2.14)
|
|
11
|
+
actionpack (= 3.2.14)
|
|
12
|
+
mail (~> 2.5.4)
|
|
13
|
+
actionpack (3.2.14)
|
|
14
|
+
activemodel (= 3.2.14)
|
|
15
|
+
activesupport (= 3.2.14)
|
|
16
|
+
builder (~> 3.0.0)
|
|
17
|
+
erubis (~> 2.7.0)
|
|
18
|
+
journey (~> 1.0.4)
|
|
19
|
+
rack (~> 1.4.5)
|
|
20
|
+
rack-cache (~> 1.2)
|
|
21
|
+
rack-test (~> 0.6.1)
|
|
22
|
+
sprockets (~> 2.2.1)
|
|
23
|
+
activemodel (3.2.14)
|
|
24
|
+
activesupport (= 3.2.14)
|
|
25
|
+
builder (~> 3.0.0)
|
|
26
|
+
activerecord (3.2.14)
|
|
27
|
+
activemodel (= 3.2.14)
|
|
28
|
+
activesupport (= 3.2.14)
|
|
29
|
+
arel (~> 3.0.2)
|
|
30
|
+
tzinfo (~> 0.3.29)
|
|
31
|
+
activeresource (3.2.14)
|
|
32
|
+
activemodel (= 3.2.14)
|
|
33
|
+
activesupport (= 3.2.14)
|
|
34
|
+
activesupport (3.2.14)
|
|
35
|
+
i18n (~> 0.6, >= 0.6.4)
|
|
36
|
+
multi_json (~> 1.0)
|
|
37
|
+
arel (3.0.2)
|
|
38
|
+
autotest-fsevent (0.2.8)
|
|
39
|
+
sys-uname
|
|
40
|
+
autotest-growl (0.2.16)
|
|
41
|
+
autotest-standalone (4.5.11)
|
|
42
|
+
awesome_print (1.1.0)
|
|
43
|
+
bcrypt-ruby (3.1.2)
|
|
44
|
+
binding_of_caller (0.7.2)
|
|
45
|
+
debug_inspector (>= 0.0.1)
|
|
46
|
+
builder (3.0.4)
|
|
47
|
+
cancan (1.6.10)
|
|
48
|
+
capistrano (2.12.0)
|
|
49
|
+
highline
|
|
50
|
+
net-scp (>= 1.0.0)
|
|
51
|
+
net-sftp (>= 2.0.0)
|
|
52
|
+
net-ssh (>= 2.0.14)
|
|
53
|
+
net-ssh-gateway (>= 1.1.0)
|
|
54
|
+
capybara (2.1.0)
|
|
55
|
+
mime-types (>= 1.16)
|
|
56
|
+
nokogiri (>= 1.3.3)
|
|
57
|
+
rack (>= 1.0.0)
|
|
58
|
+
rack-test (>= 0.5.4)
|
|
59
|
+
xpath (~> 2.0)
|
|
60
|
+
carrierwave (0.7.1)
|
|
61
|
+
activemodel (>= 3.2.0)
|
|
62
|
+
activesupport (>= 3.2.0)
|
|
63
|
+
carrierwave-mongoid (0.1.0)
|
|
64
|
+
carrierwave
|
|
65
|
+
mongoid
|
|
66
|
+
cells (3.8.8)
|
|
67
|
+
actionpack (>= 3.0)
|
|
68
|
+
railties (>= 3.0)
|
|
69
|
+
chronic (0.10.1)
|
|
70
|
+
chunky_png (1.2.8)
|
|
71
|
+
coderay (1.0.9)
|
|
72
|
+
coffee-rails (3.2.2)
|
|
73
|
+
coffee-script (>= 2.2.0)
|
|
74
|
+
railties (~> 3.2.0)
|
|
75
|
+
coffee-script (2.2.0)
|
|
76
|
+
coffee-script-source
|
|
77
|
+
execjs
|
|
78
|
+
coffee-script-source (1.6.3)
|
|
79
|
+
columnize (0.3.6)
|
|
80
|
+
compass (0.12.2)
|
|
81
|
+
chunky_png (~> 1.2)
|
|
82
|
+
fssm (>= 0.2.7)
|
|
83
|
+
sass (~> 3.1)
|
|
84
|
+
compass-rails (1.0.3)
|
|
85
|
+
compass (>= 0.12.2, < 0.14)
|
|
86
|
+
coolline (0.4.2)
|
|
87
|
+
daemons (1.1.9)
|
|
88
|
+
dalli (2.6.4)
|
|
89
|
+
database_cleaner (1.1.1)
|
|
90
|
+
debug_inspector (0.0.2)
|
|
91
|
+
debugger (1.6.1)
|
|
92
|
+
columnize (>= 0.3.1)
|
|
93
|
+
debugger-linecache (~> 1.2.0)
|
|
94
|
+
debugger-ruby_core_source (~> 1.2.3)
|
|
95
|
+
debugger-linecache (1.2.0)
|
|
96
|
+
debugger-ruby_core_source (1.2.3)
|
|
97
|
+
devise (3.0.3)
|
|
98
|
+
bcrypt-ruby (~> 3.0)
|
|
99
|
+
orm_adapter (~> 0.1)
|
|
100
|
+
railties (>= 3.2.6, < 5)
|
|
101
|
+
warden (~> 1.2.3)
|
|
102
|
+
diff-lcs (1.1.3)
|
|
103
|
+
diffy (3.0.1)
|
|
104
|
+
erubis (2.7.0)
|
|
105
|
+
eventmachine (1.0.3)
|
|
106
|
+
execjs (2.0.1)
|
|
107
|
+
factory_girl (4.2.0)
|
|
108
|
+
activesupport (>= 3.0.0)
|
|
109
|
+
factory_girl_rails (4.2.1)
|
|
110
|
+
factory_girl (~> 4.2.0)
|
|
111
|
+
railties (>= 3.0.0)
|
|
112
|
+
faraday (0.8.8)
|
|
113
|
+
multipart-post (~> 1.2.0)
|
|
114
|
+
ffi (1.9.0)
|
|
115
|
+
fssm (0.2.10)
|
|
116
|
+
grit (2.5.0)
|
|
117
|
+
diff-lcs (~> 1.1)
|
|
118
|
+
mime-types (~> 1.15)
|
|
119
|
+
posix-spawn (~> 0.3.6)
|
|
120
|
+
has_scope (0.6.0.rc)
|
|
121
|
+
actionpack (>= 3.2, < 5)
|
|
122
|
+
activesupport (>= 3.2, < 5)
|
|
123
|
+
hashie (1.2.0)
|
|
124
|
+
highline (1.6.19)
|
|
125
|
+
hike (1.2.3)
|
|
126
|
+
hirb (0.7.1)
|
|
127
|
+
httpauth (0.2.0)
|
|
128
|
+
i18n (0.6.5)
|
|
129
|
+
inherited_resources (1.4.1)
|
|
130
|
+
has_scope (~> 0.6.0.rc)
|
|
131
|
+
responders (~> 1.0.0.rc)
|
|
132
|
+
jazz_hands (0.5.1)
|
|
133
|
+
awesome_print (~> 1.1.0)
|
|
134
|
+
coderay (~> 1.0.9)
|
|
135
|
+
coolline (>= 0.4.2)
|
|
136
|
+
hirb (~> 0.7.1)
|
|
137
|
+
pry (~> 0.9.12)
|
|
138
|
+
pry-debugger (~> 0.2.2)
|
|
139
|
+
pry-doc (~> 0.4.6)
|
|
140
|
+
pry-git (~> 0.2.3)
|
|
141
|
+
pry-rails (~> 0.3.1)
|
|
142
|
+
pry-remote (>= 0.1.7)
|
|
143
|
+
pry-stack_explorer (~> 0.4.9)
|
|
144
|
+
railties (>= 3.0, < 5.0)
|
|
145
|
+
journey (1.0.4)
|
|
146
|
+
jquery-rails (3.0.4)
|
|
147
|
+
railties (>= 3.0, < 5.0)
|
|
148
|
+
thor (>= 0.14, < 2.0)
|
|
149
|
+
json (1.7.7)
|
|
150
|
+
jwt (0.1.8)
|
|
151
|
+
multi_json (>= 1.5)
|
|
152
|
+
kgio (2.8.0)
|
|
153
|
+
libv8 (3.11.8.17)
|
|
154
|
+
mail (2.5.4)
|
|
155
|
+
mime-types (~> 1.16)
|
|
156
|
+
treetop (~> 1.4.8)
|
|
157
|
+
method_source (0.8.2)
|
|
158
|
+
mime-types (1.25)
|
|
159
|
+
mini_magick (3.3)
|
|
160
|
+
subexec (~> 0.1.0)
|
|
161
|
+
mini_portile (0.5.1)
|
|
162
|
+
mobile-fu (1.2.1)
|
|
163
|
+
rack-mobile-detect
|
|
164
|
+
rails
|
|
165
|
+
mongoid (3.1.3)
|
|
166
|
+
activemodel (~> 3.2)
|
|
167
|
+
moped (~> 1.4.2)
|
|
168
|
+
origin (~> 1.0)
|
|
169
|
+
tzinfo (~> 0.3.22)
|
|
170
|
+
mongoid_auto_increment_id (0.5.1)
|
|
171
|
+
mongoid (~> 3.1.0)
|
|
172
|
+
mongoid_rails_migrations (1.0.0)
|
|
173
|
+
activesupport (>= 3.2.0)
|
|
174
|
+
bundler (>= 1.0.0)
|
|
175
|
+
rails (>= 3.2.0)
|
|
176
|
+
railties (>= 3.2.0)
|
|
177
|
+
moped (1.4.5)
|
|
178
|
+
multi_json (1.7.9)
|
|
179
|
+
multipart-post (1.2.0)
|
|
180
|
+
mysql2 (0.3.13)
|
|
181
|
+
net-scp (1.1.2)
|
|
182
|
+
net-ssh (>= 2.6.5)
|
|
183
|
+
net-sftp (2.1.2)
|
|
184
|
+
net-ssh (>= 2.6.5)
|
|
185
|
+
net-ssh (2.6.8)
|
|
186
|
+
net-ssh-gateway (1.2.0)
|
|
187
|
+
net-ssh (>= 2.6.5)
|
|
188
|
+
newrelic_rpm (3.6.6.147)
|
|
189
|
+
nokogiri (1.6.0)
|
|
190
|
+
mini_portile (~> 0.5.0)
|
|
191
|
+
oauth2 (0.8.1)
|
|
192
|
+
faraday (~> 0.8)
|
|
193
|
+
httpauth (~> 0.1)
|
|
194
|
+
jwt (~> 0.1.4)
|
|
195
|
+
multi_json (~> 1.0)
|
|
196
|
+
rack (~> 1.2)
|
|
197
|
+
omniauth (1.1.4)
|
|
198
|
+
hashie (>= 1.2, < 3)
|
|
199
|
+
rack
|
|
200
|
+
omniauth-oauth2 (1.1.1)
|
|
201
|
+
oauth2 (~> 0.8.0)
|
|
202
|
+
omniauth (~> 1.0)
|
|
203
|
+
omniauth-weibo-oauth2 (0.3.0)
|
|
204
|
+
omniauth (~> 1.0)
|
|
205
|
+
omniauth-oauth2 (~> 1.0)
|
|
206
|
+
origin (1.1.0)
|
|
207
|
+
orm_adapter (0.4.0)
|
|
208
|
+
polyglot (0.3.3)
|
|
209
|
+
posix-spawn (0.3.6)
|
|
210
|
+
pry (0.9.12.2)
|
|
211
|
+
coderay (~> 1.0.5)
|
|
212
|
+
method_source (~> 0.8)
|
|
213
|
+
slop (~> 3.4)
|
|
214
|
+
pry-debugger (0.2.2)
|
|
215
|
+
debugger (~> 1.3)
|
|
216
|
+
pry (~> 0.9.10)
|
|
217
|
+
pry-doc (0.4.6)
|
|
218
|
+
pry (>= 0.9)
|
|
219
|
+
yard (>= 0.8)
|
|
220
|
+
pry-git (0.2.3)
|
|
221
|
+
diffy
|
|
222
|
+
grit
|
|
223
|
+
pry (>= 0.9.8)
|
|
224
|
+
pry-rails (0.3.2)
|
|
225
|
+
pry (>= 0.9.10)
|
|
226
|
+
pry-remote (0.1.7)
|
|
227
|
+
pry (~> 0.9)
|
|
228
|
+
slop (~> 3.0)
|
|
229
|
+
pry-stack_explorer (0.4.9.1)
|
|
230
|
+
binding_of_caller (>= 0.7)
|
|
231
|
+
pry (>= 0.9.11)
|
|
232
|
+
quiet_assets (1.0.2)
|
|
233
|
+
railties (>= 3.1, < 5.0)
|
|
234
|
+
rack (1.4.5)
|
|
235
|
+
rack-cache (1.2)
|
|
236
|
+
rack (>= 0.4)
|
|
237
|
+
rack-mobile-detect (0.4.0)
|
|
238
|
+
rack
|
|
239
|
+
rack-ssl (1.3.3)
|
|
240
|
+
rack
|
|
241
|
+
rack-test (0.6.2)
|
|
242
|
+
rack (>= 1.0)
|
|
243
|
+
rails (3.2.14)
|
|
244
|
+
actionmailer (= 3.2.14)
|
|
245
|
+
actionpack (= 3.2.14)
|
|
246
|
+
activerecord (= 3.2.14)
|
|
247
|
+
activeresource (= 3.2.14)
|
|
248
|
+
activesupport (= 3.2.14)
|
|
249
|
+
bundler (~> 1.0)
|
|
250
|
+
railties (= 3.2.14)
|
|
251
|
+
railties (3.2.14)
|
|
252
|
+
actionpack (= 3.2.14)
|
|
253
|
+
activesupport (= 3.2.14)
|
|
254
|
+
rack-ssl (~> 1.3.2)
|
|
255
|
+
rake (>= 0.8.7)
|
|
256
|
+
rdoc (~> 3.4)
|
|
257
|
+
thor (>= 0.14.6, < 2.0)
|
|
258
|
+
raindrops (0.11.0)
|
|
259
|
+
rake (10.1.0)
|
|
260
|
+
rdoc (3.12.2)
|
|
261
|
+
json (~> 1.4)
|
|
262
|
+
ref (1.0.5)
|
|
263
|
+
responders (1.0.0.rc)
|
|
264
|
+
railties (>= 3.2, < 5)
|
|
265
|
+
rest-client (1.6.7)
|
|
266
|
+
mime-types (>= 1.16)
|
|
267
|
+
rmagick (2.13.2)
|
|
268
|
+
rspec (2.11.0)
|
|
269
|
+
rspec-core (~> 2.11.0)
|
|
270
|
+
rspec-expectations (~> 2.11.0)
|
|
271
|
+
rspec-mocks (~> 2.11.0)
|
|
272
|
+
rspec-cells (0.1.7)
|
|
273
|
+
cells (~> 3.4)
|
|
274
|
+
railties (>= 3.0, < 4.1)
|
|
275
|
+
rspec-rails (~> 2.2)
|
|
276
|
+
rspec-core (2.11.1)
|
|
277
|
+
rspec-expectations (2.11.3)
|
|
278
|
+
diff-lcs (~> 1.1.3)
|
|
279
|
+
rspec-mocks (2.11.3)
|
|
280
|
+
rspec-rails (2.11.0)
|
|
281
|
+
actionpack (>= 3.0)
|
|
282
|
+
activesupport (>= 3.0)
|
|
283
|
+
railties (>= 3.0)
|
|
284
|
+
rspec (~> 2.11.0)
|
|
285
|
+
rvm-capistrano (1.2.6)
|
|
286
|
+
capistrano (>= 2.0.0)
|
|
287
|
+
sass (3.2.10)
|
|
288
|
+
sass-rails (3.2.6)
|
|
289
|
+
railties (~> 3.2.0)
|
|
290
|
+
sass (>= 3.1.10)
|
|
291
|
+
tilt (~> 1.3)
|
|
292
|
+
simple_form (2.1.0)
|
|
293
|
+
actionpack (~> 3.0)
|
|
294
|
+
activemodel (~> 3.0)
|
|
295
|
+
simplecov (0.7.1)
|
|
296
|
+
multi_json (~> 1.0)
|
|
297
|
+
simplecov-html (~> 0.7.1)
|
|
298
|
+
simplecov-html (0.7.1)
|
|
299
|
+
skim (0.8.4)
|
|
300
|
+
coffee-script
|
|
301
|
+
coffee-script-source (>= 1.2.0)
|
|
302
|
+
multi_json
|
|
303
|
+
slim (~> 1.2.0)
|
|
304
|
+
sprockets
|
|
305
|
+
temple (~> 0.4.0)
|
|
306
|
+
slim (1.2.1)
|
|
307
|
+
temple (~> 0.4.0)
|
|
308
|
+
tilt (~> 1.3.3)
|
|
309
|
+
slim-rails (1.0.3)
|
|
310
|
+
actionpack (~> 3.0)
|
|
311
|
+
activesupport (~> 3.0)
|
|
312
|
+
railties (~> 3.0)
|
|
313
|
+
slim (~> 1.0)
|
|
314
|
+
slop (3.4.6)
|
|
315
|
+
spork (0.9.2)
|
|
316
|
+
sprockets (2.2.2)
|
|
317
|
+
hike (~> 1.2)
|
|
318
|
+
multi_json (~> 1.0)
|
|
319
|
+
rack (~> 1.0)
|
|
320
|
+
tilt (~> 1.1, != 1.3.0)
|
|
321
|
+
subexec (0.1.0)
|
|
322
|
+
sys-uname (0.9.2)
|
|
323
|
+
ffi (>= 1.0.0)
|
|
324
|
+
temple (0.4.0)
|
|
325
|
+
therubyracer (0.11.4)
|
|
326
|
+
libv8 (~> 3.11.8.12)
|
|
327
|
+
ref
|
|
328
|
+
thin (1.5.1)
|
|
329
|
+
daemons (>= 1.0.9)
|
|
330
|
+
eventmachine (>= 0.12.6)
|
|
331
|
+
rack (>= 1.0.0)
|
|
332
|
+
thor (0.18.1)
|
|
333
|
+
tilt (1.3.7)
|
|
334
|
+
treetop (1.4.15)
|
|
335
|
+
polyglot
|
|
336
|
+
polyglot (>= 0.3.1)
|
|
337
|
+
turbo-sprockets-rails3 (0.3.6)
|
|
338
|
+
railties (> 3.2.8, < 4.0.0)
|
|
339
|
+
sprockets (>= 2.0.0)
|
|
340
|
+
tzinfo (0.3.37)
|
|
341
|
+
uglifier (1.2.7)
|
|
342
|
+
execjs (>= 0.3.0)
|
|
343
|
+
multi_json (~> 1.3)
|
|
344
|
+
unicorn (4.6.3)
|
|
345
|
+
kgio (~> 2.6)
|
|
346
|
+
rack
|
|
347
|
+
raindrops (~> 0.7)
|
|
348
|
+
warden (1.2.3)
|
|
349
|
+
rack (>= 1.0)
|
|
350
|
+
weibo_2 (0.1.1)
|
|
351
|
+
hashie (~> 1.2.0)
|
|
352
|
+
json (~> 1.7.3)
|
|
353
|
+
oauth2 (~> 0.8.0)
|
|
354
|
+
rest-client (~> 1.6.7)
|
|
355
|
+
whenever (0.8.4)
|
|
356
|
+
activesupport (>= 2.3.4)
|
|
357
|
+
chronic (>= 0.6.3)
|
|
358
|
+
will_paginate (3.0.3)
|
|
359
|
+
xpath (2.0.0)
|
|
360
|
+
nokogiri (~> 1.3)
|
|
361
|
+
yard (0.8.7)
|
|
362
|
+
|
|
363
|
+
PLATFORMS
|
|
364
|
+
ruby
|
|
365
|
+
|
|
366
|
+
DEPENDENCIES
|
|
367
|
+
autotest-fsevent
|
|
368
|
+
autotest-growl
|
|
369
|
+
autotest-standalone
|
|
370
|
+
awesome_print
|
|
371
|
+
cancan (~> 1.6.8)
|
|
372
|
+
capistrano (= 2.12.0)
|
|
373
|
+
capybara
|
|
374
|
+
carrierwave (= 0.7.1)
|
|
375
|
+
carrierwave-mongoid (= 0.1.0)
|
|
376
|
+
coffee-rails (~> 3.2.1)
|
|
377
|
+
compass-rails (= 1.0.3)
|
|
378
|
+
dalli
|
|
379
|
+
database_cleaner
|
|
380
|
+
devise
|
|
381
|
+
factory_girl_rails
|
|
382
|
+
hirb
|
|
383
|
+
inherited_resources
|
|
384
|
+
jazz_hands
|
|
385
|
+
jquery-rails
|
|
386
|
+
libv8 (~> 3.11.8)
|
|
387
|
+
mini_magick (= 3.3)
|
|
388
|
+
mobile-fu (~> 1.2.1)
|
|
389
|
+
mongoid (= 3.1.3)
|
|
390
|
+
mongoid_auto_increment_id (= 0.5.1)
|
|
391
|
+
mongoid_colored_logger!
|
|
392
|
+
mongoid_rails_migrations (= 1.0.0)
|
|
393
|
+
mysql2
|
|
394
|
+
newrelic_rpm
|
|
395
|
+
omniauth
|
|
396
|
+
omniauth-weibo-oauth2
|
|
397
|
+
quiet_assets (~> 1.0.1)
|
|
398
|
+
rails (= 3.2.14)
|
|
399
|
+
rmagick
|
|
400
|
+
rspec
|
|
401
|
+
rspec-cells
|
|
402
|
+
rspec-mocks
|
|
403
|
+
rspec-rails (= 2.11.0)
|
|
404
|
+
rvm-capistrano (= 1.2.6)
|
|
405
|
+
sass-rails (~> 3.2.3)
|
|
406
|
+
simple_form
|
|
407
|
+
simplecov
|
|
408
|
+
skim (= 0.8.4)
|
|
409
|
+
slim (= 1.2.1)
|
|
410
|
+
slim-rails
|
|
411
|
+
spork
|
|
412
|
+
temple (= 0.4.0)
|
|
413
|
+
therubyracer
|
|
414
|
+
thin
|
|
415
|
+
tilt (~> 1.3)
|
|
416
|
+
turbo-sprockets-rails3 (= 0.3.6)
|
|
417
|
+
uglifier (= 1.2.7)
|
|
418
|
+
unicorn
|
|
419
|
+
weibo_2
|
|
420
|
+
whenever
|
|
421
|
+
will_paginate (= 3.0.3)
|