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.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +29 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +52 -0
  7. data/Rakefile +13 -0
  8. data/bin/rmbb_generator +65 -0
  9. data/lib/rails_mongo_backbone_bootstrap_tmpl/version.rb +3 -0
  10. data/lib/rails_mongo_backbone_bootstrap_tmpl.rb +5 -0
  11. data/rails_mongo_backbone_bootstrap_tmpl.gemspec +25 -0
  12. data/spec/base_spec.rb +6 -0
  13. data/spec/spec_helper.rb +10 -0
  14. data/template/Gemfile +107 -0
  15. data/template/Gemfile.lock +421 -0
  16. data/template/README.rdoc +261 -0
  17. data/template/Rakefile +7 -0
  18. data/template/app/assets/images/rails.png +0 -0
  19. data/template/app/assets/javascripts/app/app.js.coffee +41 -0
  20. data/template/app/assets/javascripts/app/views/common/popup_window.js.coffee +45 -0
  21. data/template/app/assets/javascripts/app/views/common/popup_window_template.jst.skim +11 -0
  22. data/template/app/assets/javascripts/application.js +19 -0
  23. data/template/app/assets/javascripts/home.js.coffee +7 -0
  24. data/template/app/assets/javascripts/vendor/backbone-min.js +4 -0
  25. data/template/app/assets/javascripts/vendor/backbone-min.map +1 -0
  26. data/template/app/assets/javascripts/vendor/bootstrap.min.js +6 -0
  27. data/template/app/assets/javascripts/vendor/jquery-1.7.2.min.js +4 -0
  28. data/template/app/assets/javascripts/vendor/select2.min.js +22 -0
  29. data/template/app/assets/javascripts/vendor/select2_locale_zh-CN.js +14 -0
  30. data/template/app/assets/javascripts/vendor/underscore-min.js +1 -0
  31. data/template/app/assets/stylesheets/application.css +14 -0
  32. data/template/app/assets/stylesheets/bootstrap.css +6805 -0
  33. data/template/app/assets/stylesheets/bootstrap_and_overrides.sass +7 -0
  34. data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.eot +0 -0
  35. data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.svg +228 -0
  36. data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.ttf +0 -0
  37. data/template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.woff +0 -0
  38. data/template/app/assets/stylesheets/home.css.sass +4 -0
  39. data/template/app/controllers/application_controller.rb +3 -0
  40. data/template/app/controllers/home_controller.rb +5 -0
  41. data/template/app/helpers/application_helper.rb +3 -0
  42. data/template/app/helpers/home_helper.rb +3 -0
  43. data/template/app/mailers/.gitkeep +0 -0
  44. data/template/app/models/.gitkeep +0 -0
  45. data/template/app/views/home/index.html.slim +2 -0
  46. data/template/app/views/layouts/application.html.slim +36 -0
  47. data/template/config/application.rb +81 -0
  48. data/template/config/boot.rb +6 -0
  49. data/template/config/environment.rb +5 -0
  50. data/template/config/environments/development.rb +31 -0
  51. data/template/config/environments/production.rb +65 -0
  52. data/template/config/environments/test.rb +35 -0
  53. data/template/config/initializers/backtrace_silencers.rb +8 -0
  54. data/template/config/initializers/inflections.rb +16 -0
  55. data/template/config/initializers/mime_types.rb +6 -0
  56. data/template/config/initializers/secret_token.rb +8 -0
  57. data/template/config/initializers/session_store.rb +9 -0
  58. data/template/config/initializers/wrap_parameters.rb +11 -0
  59. data/template/config/locales/en.yml +5 -0
  60. data/template/config/mongoid.yml +88 -0
  61. data/template/config/routes.rb +59 -0
  62. data/template/config.ru +4 -0
  63. data/template/db/seeds.rb +7 -0
  64. data/template/lib/assets/.gitkeep +0 -0
  65. data/template/lib/tasks/.gitkeep +0 -0
  66. data/template/log/.gitkeep +0 -0
  67. data/template/public/404.html +26 -0
  68. data/template/public/422.html +26 -0
  69. data/template/public/500.html +25 -0
  70. data/template/public/favicon.ico +0 -0
  71. data/template/public/robots.txt +5 -0
  72. data/template/script/rails +6 -0
  73. data/template/spec/controllers/home_controller_spec.rb +12 -0
  74. data/template/spec/helpers/home_helper_spec.rb +15 -0
  75. data/template/spec/spec_helper.rb +38 -0
  76. data/template/spec/views/home/index.html.slim_spec.rb +5 -0
  77. data/template/test/fixtures/.gitkeep +0 -0
  78. data/template/test/functional/.gitkeep +0 -0
  79. data/template/test/integration/.gitkeep +0 -0
  80. data/template/test/performance/browsing_test.rb +12 -0
  81. data/template/test/test_helper.rb +7 -0
  82. data/template/test/unit/.gitkeep +0 -0
  83. data/template/vendor/assets/javascripts/.gitkeep +0 -0
  84. data/template/vendor/assets/stylesheets/.gitkeep +0 -0
  85. data/template/vendor/plugins/.gitkeep +0 -0
  86. metadata +187 -0
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe HomeController do
4
+
5
+ describe "GET 'index'" do
6
+ it "returns http success" do
7
+ get 'index'
8
+ response.should be_success
9
+ end
10
+ end
11
+
12
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the HomeHelper. For example:
5
+ #
6
+ # describe HomeHelper do
7
+ # describe "string concat" do
8
+ # it "concats two strings with spaces" do
9
+ # helper.concat_strings("this","that").should == "this that"
10
+ # end
11
+ # end
12
+ # end
13
+ describe HomeHelper do
14
+ pending "add some examples to (or delete) #{__FILE__}"
15
+ end
@@ -0,0 +1,38 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+ require 'database_cleaner'
4
+
5
+ Spork.prefork do
6
+ ENV["RAILS_ENV"] ||= 'test'
7
+ require File.expand_path("../../config/environment", __FILE__)
8
+ require 'rspec/rails'
9
+
10
+ RSpec.configure do |config|
11
+ config.use_transactional_fixtures = false
12
+ config.infer_base_class_for_anonymous_controllers = false
13
+ config.order = "random"
14
+
15
+ config.before :each do
16
+ if Capybara.current_driver == :selenium
17
+ DatabaseCleaner.strategy = :truncation
18
+ else
19
+ DatabaseCleaner.strategy = :transaction
20
+ end
21
+ DatabaseCleaner.start
22
+ end
23
+
24
+ config.after(:each) do
25
+ DatabaseCleaner.clean
26
+ end
27
+
28
+ # Include Factory Girl syntax to simplify calls to factories
29
+ config.include FactoryGirl::Syntax::Methods
30
+ end
31
+ end
32
+
33
+ Spork.each_run do
34
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
35
+ FactoryGirl.reload
36
+ include LoginMacros
37
+ end
38
+
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe "home/index.html.slim" do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
File without changes
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ class BrowsingTest < ActionDispatch::PerformanceTest
5
+ # Refer to the documentation for all available options
6
+ # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
+ # :output => 'tmp/performance', :formats => [:flat] }
8
+
9
+ def test_homepage
10
+ get '/'
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Add more helper methods to be used by all tests here...
7
+ end
File without changes
File without changes
File without changes
File without changes
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_mongo_backbone_bootstrap_tmpl
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Robot Jiang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '2.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Auto generate rails project based on mongo, backboneJS, bootstrap css.
70
+ email:
71
+ - robot.z.jiang@gmail.com
72
+ executables:
73
+ - rmbb_generator
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - .gitignore
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - bin/rmbb_generator
84
+ - lib/rails_mongo_backbone_bootstrap_tmpl.rb
85
+ - lib/rails_mongo_backbone_bootstrap_tmpl/version.rb
86
+ - rails_mongo_backbone_bootstrap_tmpl.gemspec
87
+ - spec/base_spec.rb
88
+ - spec/spec_helper.rb
89
+ - template/Gemfile
90
+ - template/Gemfile.lock
91
+ - template/README.rdoc
92
+ - template/Rakefile
93
+ - template/app/assets/images/rails.png
94
+ - template/app/assets/javascripts/app/app.js.coffee
95
+ - template/app/assets/javascripts/app/views/common/popup_window.js.coffee
96
+ - template/app/assets/javascripts/app/views/common/popup_window_template.jst.skim
97
+ - template/app/assets/javascripts/application.js
98
+ - template/app/assets/javascripts/home.js.coffee
99
+ - template/app/assets/javascripts/vendor/backbone-min.js
100
+ - template/app/assets/javascripts/vendor/backbone-min.map
101
+ - template/app/assets/javascripts/vendor/bootstrap.min.js
102
+ - template/app/assets/javascripts/vendor/jquery-1.7.2.min.js
103
+ - template/app/assets/javascripts/vendor/select2.min.js
104
+ - template/app/assets/javascripts/vendor/select2_locale_zh-CN.js
105
+ - template/app/assets/javascripts/vendor/underscore-min.js
106
+ - template/app/assets/stylesheets/application.css
107
+ - template/app/assets/stylesheets/bootstrap.css
108
+ - template/app/assets/stylesheets/bootstrap_and_overrides.sass
109
+ - template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.eot
110
+ - template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.svg
111
+ - template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.ttf
112
+ - template/app/assets/stylesheets/fonts/glyphicons-halflings-regular.woff
113
+ - template/app/assets/stylesheets/home.css.sass
114
+ - template/app/controllers/application_controller.rb
115
+ - template/app/controllers/home_controller.rb
116
+ - template/app/helpers/application_helper.rb
117
+ - template/app/helpers/home_helper.rb
118
+ - template/app/mailers/.gitkeep
119
+ - template/app/models/.gitkeep
120
+ - template/app/views/home/index.html.slim
121
+ - template/app/views/layouts/application.html.slim
122
+ - template/config.ru
123
+ - template/config/application.rb
124
+ - template/config/boot.rb
125
+ - template/config/environment.rb
126
+ - template/config/environments/development.rb
127
+ - template/config/environments/production.rb
128
+ - template/config/environments/test.rb
129
+ - template/config/initializers/backtrace_silencers.rb
130
+ - template/config/initializers/inflections.rb
131
+ - template/config/initializers/mime_types.rb
132
+ - template/config/initializers/secret_token.rb
133
+ - template/config/initializers/session_store.rb
134
+ - template/config/initializers/wrap_parameters.rb
135
+ - template/config/locales/en.yml
136
+ - template/config/mongoid.yml
137
+ - template/config/routes.rb
138
+ - template/db/seeds.rb
139
+ - template/lib/assets/.gitkeep
140
+ - template/lib/tasks/.gitkeep
141
+ - template/log/.gitkeep
142
+ - template/public/404.html
143
+ - template/public/422.html
144
+ - template/public/500.html
145
+ - template/public/favicon.ico
146
+ - template/public/robots.txt
147
+ - template/script/rails
148
+ - template/spec/controllers/home_controller_spec.rb
149
+ - template/spec/helpers/home_helper_spec.rb
150
+ - template/spec/spec_helper.rb
151
+ - template/spec/views/home/index.html.slim_spec.rb
152
+ - template/test/fixtures/.gitkeep
153
+ - template/test/functional/.gitkeep
154
+ - template/test/integration/.gitkeep
155
+ - template/test/performance/browsing_test.rb
156
+ - template/test/test_helper.rb
157
+ - template/test/unit/.gitkeep
158
+ - template/vendor/assets/javascripts/.gitkeep
159
+ - template/vendor/assets/stylesheets/.gitkeep
160
+ - template/vendor/plugins/.gitkeep
161
+ homepage: ''
162
+ licenses:
163
+ - MIT
164
+ metadata: {}
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project:
181
+ rubygems_version: 2.0.0
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: Auto generate rails project based on mongo, backboneJS, bootstrap css.
185
+ test_files:
186
+ - spec/base_spec.rb
187
+ - spec/spec_helper.rb