Permalink
Browse files

removes trailing whitespaces and tabs

  • Loading branch information...
nicoschuele committed Jan 24, 2015
1 parent 3f461da commit c1e23b8faed35d1b4e2f3f2e7fbaa8754551374f
Showing with 1,166 additions and 1,308 deletions.
  1. +1 −1 .gitignore
  2. +4 −0 Gemfile
  3. +1 −1 LICENSE.txt
  4. +1 −0 README.md
  5. +1 −1 bin/rbricks
  6. +11 −18 lib/railsbricks.rb
  7. +62 −110 lib/railsbricks/app_generator.rb
  8. +1 −1 lib/railsbricks/assets/config/application.yml
  9. +1 −1 lib/railsbricks/assets/config/initializers/devise_username/devise.rb
  10. +4 −4 lib/railsbricks/assets/config/routes.rb
  11. +21 −21 lib/railsbricks/assets/config/unicorn.rb
  12. +2 −2 lib/railsbricks/assets/controllers/admin/base_controller.rb
  13. +14 −13 lib/railsbricks/assets/controllers/admin/devise_email/users_controller.rb
  14. +14 −13 lib/railsbricks/assets/controllers/admin/devise_username/users_controller.rb
  15. +13 −13 lib/railsbricks/assets/controllers/admin/posts_controller.rb
  16. +13 −13 lib/railsbricks/assets/controllers/devise_email/application_controller.rb
  17. +15 −15 lib/railsbricks/assets/controllers/devise_username/application_controller.rb
  18. +3 −3 lib/railsbricks/assets/controllers/pages_controller.rb
  19. +5 −5 lib/railsbricks/assets/database/postgresql.yml
  20. +1 −1 lib/railsbricks/assets/database/sqlite3.yml
  21. +2 −2 lib/railsbricks/assets/gemfile/Gemfile
  22. +1 −1 lib/railsbricks/assets/javascripts/analytics.js.coffee
  23. +10 −10 lib/railsbricks/assets/lib/markdown.rb
  24. +1 −1 lib/railsbricks/assets/mailers/contact_mailer.rb
  25. +2 −2 lib/railsbricks/assets/migrations/20141010133702_create_posts.rb
  26. +2 −2 lib/railsbricks/assets/migrations/devise_email/20141010133701_devise_create_users.rb
  27. +2 −2 lib/railsbricks/assets/migrations/devise_username/20141010133701_devise_create_users.rb
  28. +9 −9 lib/railsbricks/assets/models/devise_email/user.rb
  29. +10 −10 lib/railsbricks/assets/models/devise_username/user.rb
  30. +9 −9 lib/railsbricks/assets/models/post.rb
  31. +0 −2 lib/railsbricks/assets/seeds/devise_email/seeds_no_test_users.rb
  32. +0 −4 lib/railsbricks/assets/seeds/devise_email/seeds_test_users.rb
  33. +0 −2 lib/railsbricks/assets/seeds/devise_username/seeds_no_test_users.rb
  34. +0 −4 lib/railsbricks/assets/seeds/devise_username/seeds_test_users.rb
  35. +0 −2 lib/railsbricks/assets/stylesheets/application.scss
  36. +122 −122 lib/railsbricks/assets/stylesheets/railsbricks_custom.scss
  37. +4 −4 lib/railsbricks/assets/views/admin/base/devise_email/index.html.erb
  38. +4 −4 lib/railsbricks/assets/views/admin/base/devise_username/index.html.erb
  39. +34 −34 lib/railsbricks/assets/views/admin/posts/_form.html.erb
  40. +9 −9 lib/railsbricks/assets/views/admin/posts/drafts.html.erb
  41. +2 −2 lib/railsbricks/assets/views/admin/posts/edit.html.erb
  42. +9 −9 lib/railsbricks/assets/views/admin/posts/index.html.erb
  43. +1 −1 lib/railsbricks/assets/views/admin/posts/new.html.erb
  44. +22 −22 lib/railsbricks/assets/views/admin/users/devise_email/edit.html.erb
  45. +10 −10 lib/railsbricks/assets/views/admin/users/devise_email/index.html.erb
  46. +24 −24 lib/railsbricks/assets/views/admin/users/devise_username/edit.html.erb
  47. +10 −10 lib/railsbricks/assets/views/admin/users/devise_username/index.html.erb
  48. +18 −18 lib/railsbricks/assets/views/devise/devise_email/confirmations/new.html.erb
  49. +1 −1 lib/railsbricks/assets/views/devise/devise_email/mailer/confirmation_instructions.html.erb
  50. +1 −1 lib/railsbricks/assets/views/devise/devise_email/mailer/reset_password_instructions.html.erb
  51. +29 −29 lib/railsbricks/assets/views/devise/devise_email/passwords/edit.html.erb
  52. +17 −17 lib/railsbricks/assets/views/devise/devise_email/passwords/new.html.erb
  53. +41 −41 lib/railsbricks/assets/views/devise/devise_email/registrations/edit.html.erb
  54. +31 −31 lib/railsbricks/assets/views/devise/devise_email/registrations/new.html.erb
  55. +31 −31 lib/railsbricks/assets/views/devise/devise_email/sessions/new.html.erb
  56. +12 −12 lib/railsbricks/assets/views/devise/devise_email/shared/_links.erb
  57. +19 −19 lib/railsbricks/assets/views/devise/devise_username/confirmations/new.html.erb
  58. +1 −1 lib/railsbricks/assets/views/devise/devise_username/mailer/confirmation_instructions.html.erb
  59. +2 −2 lib/railsbricks/assets/views/devise/devise_username/mailer/reset_password_instructions.html.erb
  60. +29 −29 lib/railsbricks/assets/views/devise/devise_username/passwords/edit.html.erb
  61. +17 −17 lib/railsbricks/assets/views/devise/devise_username/passwords/new.html.erb
  62. +42 −42 lib/railsbricks/assets/views/devise/devise_username/registrations/edit.html.erb
  63. +39 −39 lib/railsbricks/assets/views/devise/devise_username/registrations/new.html.erb
  64. +32 −32 lib/railsbricks/assets/views/devise/devise_username/sessions/new.html.erb
  65. +12 −12 lib/railsbricks/assets/views/devise/devise_username/shared/_links.erb
  66. +1 −1 lib/railsbricks/assets/views/layouts/_navigation_links.html.erb
  67. +10 −10 lib/railsbricks/assets/views/pages/contact.html.erb
  68. +1 −1 lib/railsbricks/assets/views/pages/inside.html.erb
  69. +5 −5 lib/railsbricks/assets/views/pages/posts.html.erb
  70. +1 −1 lib/railsbricks/assets/views/pages/show_post.html.erb
  71. +19 −48 lib/railsbricks/auth_builder.rb
  72. +3 −3 lib/railsbricks/config_values.rb
  73. +3 −3 lib/railsbricks/errors.rb
  74. +4 −8 lib/railsbricks/file_helpers.rb
  75. +0 −1 lib/railsbricks/foundation/README.md
  76. +0 −1 lib/railsbricks/foundation/app/assets/javascripts/application.js
  77. +2 −2 lib/railsbricks/foundation/app/assets/javascripts/common.js
  78. +3 −2 lib/railsbricks/foundation/app/controllers/pages_controller.rb
  79. +1 −1 lib/railsbricks/foundation/app/helpers/application_helper.rb
  80. +2 −2 lib/railsbricks/foundation/app/helpers/email_helper.rb
  81. +5 −5 lib/railsbricks/foundation/app/views/layouts/_footer.html.erb
  82. +6 −6 lib/railsbricks/foundation/app/views/layouts/_messages.html.erb
  83. +1 −1 lib/railsbricks/foundation/app/views/layouts/_navigation_links.html.erb
  84. +8 −8 lib/railsbricks/foundation/app/views/layouts/application.html.erb
  85. +1 −1 lib/railsbricks/foundation/app/views/pages/home.html.erb
  86. +4 −4 lib/railsbricks/foundation/config/application.rb
  87. +2 −2 lib/railsbricks/foundation/config/environments/development.rb
  88. +1 −1 lib/railsbricks/foundation/config/environments/production.rb
  89. +47 −47 lib/railsbricks/foundation/config/environments/test.rb
  90. +1 −1 lib/railsbricks/foundation/config/initializers/date_format.rb
  91. +1 −1 lib/railsbricks/foundation/config/initializers/friendly_id.rb
  92. +2 −2 lib/railsbricks/foundation/config/routes.rb
  93. +17 −21 lib/railsbricks/gemfile_builder.rb
  94. +81 −87 lib/railsbricks/menu.rb
  95. +23 −53 lib/railsbricks/post_builder.rb
  96. +6 −7 lib/railsbricks/string_helpers.rb
  97. +17 −19 lib/railsbricks/style_builder.rb
  98. +5 −5 lib/railsbricks/ui_helpers.rb
  99. +18 −21 lib/railsbricks/validator.rb
  100. +3 −3 lib/railsbricks/version.rb
  101. +1 −1 railsbricks.gemspec
View
@@ -6,4 +6,4 @@
Gemfile.lock
gemfiles/*.lock
doc
log
log
View
@@ -1,3 +1,7 @@
# (Empty) Gemfile, helps development with bundler.
# Allows to call `bundle exec bin/rbricks` which loads the
# source you are currently working on.
# This eases development with bundler, e.g. call
# `bundle exec bin/rbricks`
# to execute current ('local,' vs. gem-installed) version of railsbricks.
View
@@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
View
@@ -77,6 +77,7 @@ If you have any question or feedback, [drop me a line](http://railsbricks.net/co
* the authors of the many gems used by RailsBricks
* the [Geneva.rb](http://www.meetup.com/genevarb/) Meetup Group for the beer!
* David Camarena for producing a [fork](https://github.com/athalas/railsbricks) with support for MySQL
* [Felix Wolfsteller](https://github.com/fwolfst) for doing a bit of clean-up
* everyone who emailed me, gave feedback, opened an issue on Github, submitted a pull request, tweeted, etc. I truly love the Rails community.
## License
View
@@ -2,4 +2,4 @@
require_relative "../lib/railsbricks"
Railsbricks::main ARGV
Railsbricks::main ARGV
View
@@ -7,7 +7,6 @@
class Railsbricks
def self.main(args)
# new app
if args[0] == '-n' || args[0] == '--new'
@@ -19,43 +18,39 @@ def self.main(args)
elsif args[0] == '-v' || args[0] == '--version'
display_version
elsif args[0] == '--config'
display_config
display_config
else
display_help
end
# TODO: version & about
end
def self.new_app
menu = Menu.new
@options = menu.new_app_menu
generator = AppGenerator.new(@options)
generator.generate_app
generator.generate_app
end
def self.recreate_db
options = ConfigHelpers.load_config
puts
StringHelpers.wputs "----> Recreating the database ...", :info
system "#{options["rake_command"]} db:drop"
system "#{options["rake_command"]} db:create:all"
system "#{options["rake_command"]} db:create:all"
system "#{options["rake_command"]} db:migrate"
system "#{options["rake_command"]} db:seed"
puts
StringHelpers.wputs "----> Database recreated.", :info
puts
end
def self.prime_directives
Errors.display_error "1. Serve the public trust"
Errors.display_error "2. Protect the innocent"
Errors.display_error "3. Uphold the law"
Errors.display_error "4. Classified"
end
def self.display_version
puts
StringHelpers.wputs "RailsBricks #{Version.current} (#{Version.current_date})", :info
@@ -64,7 +59,7 @@ def self.display_version
StringHelpers.wputs "by Nico Schuele (www.nicoschuele.com) <nico@railsbricks.net>", :help
puts
end
def self.display_config
puts
StringHelpers.wputs "----> Retrieving your app's RailsBricks config values ...", :info
@@ -79,12 +74,10 @@ def self.display_config
end
puts
StringHelpers.wputs "----> App config values retrieved.", :info
rescue
Errors.display_error "Config values couldn't be found. In most cases, this is because '#{ConfigHelpers::CONFIG_PATH}/config' is not within your app.", true
end
def self.display_help
puts
StringHelpers.wputs "RailsBricks usage:", :info
@@ -105,5 +98,5 @@ def self.display_help
StringHelpers.wputs "More help, tutorials and documentation at http://www.railsbricks.net/get-started", :info
puts
end
end
end
Oops, something went wrong.

0 comments on commit c1e23b8

Please sign in to comment.