Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: vince-stark/gtf
base: e418f359b1
...
head fork: vince-stark/gtf
compare: f67b5c8249
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 14 files changed
  • 0 commit comments
  • 1 contributor
Commits on Sep 23, 2012
Vasily Ponomarev Code cleanup (w/rails_best_practices) 78de397
Commits on Oct 05, 2012
Vasily Ponomarev Blog link fix and .htaccess tuning f67b5c8
View
1  Gemfile
@@ -30,6 +30,7 @@ group :development do
gem 'annotate', '~> 2.4.1.beta'
gem 'faker'
gem 'cane'
+ gem 'rails_best_practices'
end
group :test do
View
14 Gemfile.lock
@@ -31,6 +31,7 @@ GEM
addressable (2.2.7)
annotate (2.4.1.beta1)
arel (3.0.2)
+ awesome_print (1.1.0)
bootstrap-sass (2.0.2)
bootstrap-will_paginate (0.0.7)
will_paginate
@@ -53,6 +54,8 @@ GEM
childprocess (0.3.2)
ffi (~> 1.0.6)
chunky_png (1.2.6)
+ code_analyzer (0.2.0)
+ sexp_processor
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -60,6 +63,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.3.3)
+ colored (1.2)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
@@ -116,6 +120,7 @@ GEM
parallel (0.5.18)
pg (0.13.2)
polyglot (0.3.3)
+ progressbar (0.11.0)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
@@ -131,6 +136,14 @@ GEM
activesupport (= 3.2.1)
bundler (~> 1.0)
railties (= 3.2.1)
+ rails_best_practices (1.11.1)
+ activesupport
+ awesome_print
+ code_analyzer
+ colored
+ erubis
+ i18n
+ progressbar
railties (3.2.1)
actionpack (= 3.2.1)
activesupport (= 3.2.1)
@@ -211,6 +224,7 @@ DEPENDENCIES
jquery-rails
pg
rails (= 3.2.1)
+ rails_best_practices
rspec-rails
ruby_parser
sass-rails (~> 3.2.3)
View
2  app/helpers/application_helper.rb
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
View
2  app/helpers/entities_helper.rb
@@ -1,2 +0,0 @@
-module EntitiesHelper
-end
View
2  app/helpers/feedbacks_helper.rb
@@ -1,2 +0,0 @@
-module FeedbacksHelper
-end
View
2  app/helpers/search_helper.rb
@@ -1,2 +0,0 @@
-module SearchHelper
-end
View
2  app/helpers/static_pages_helper.rb
@@ -1,2 +0,0 @@
-module StaticPagesHelper
-end
View
3  app/views/feedback_mailer/new_message.html.haml
@@ -1,7 +1,7 @@
!!!
%html
%head
- %meta{:'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8' }
+ %meta{:'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8' }
%body
%p
%b
@@ -19,4 +19,3 @@
%b
Message:
= simple_format(@feedback.message)
-
View
2  app/views/shared/_table_entry.html.haml
@@ -9,4 +9,4 @@
- else
= link_to number_to_human(mv.value, units: :rating),
m.url + CGI.escape(entity.name),
- target: '_blank'
+ target: '_blank'
View
2  app/views/static_pages/about.html.haml
@@ -21,7 +21,7 @@
%p
The results can be used as a basis for a marketing/PR campaign, to predict what is going
to be interesting, and just to
- = link_to 'have fun', 'http://www.vasil-y.com/1/category/google-fun/1.html', target: '_blank'
+ = link_to 'have fun', 'http://www.vasil-y.com/tag/google-fun/', target: '_blank'
%br
%br
%h2 Resources
View
2  config/deploy.rb
@@ -35,7 +35,7 @@
namespace :deploy do
task :start do ; end
task :stop do ; end
-
+
# Touch tmp/restart.txt to tell Phusion Passenger about new version
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{File.join(current_path, 'tmp', 'restart.txt')}"
View
35 lib/tasks/hamlify.rake
@@ -1,34 +1,33 @@
-#Include the HTML class
+# Include the HTML class
require 'haml/html'
namespace :hamlify do
desc "Convert ERB to Haml"
task :convert => :environment do
-
- #Cycles through the views folder and searches for erb files
+
+ # Cycles through the views folder and searches for erb files
Dir["#{Rails.root}/app/views/**/*.erb"].each do |file_name|
-
+
puts "Hamlifying: #{file_name}"
-
- #Creates a new file path for the haml to be exported to
+
+ # Creates a new file path for the haml to be exported to
haml_file_name = file_name.gsub(/erb$/, "haml")
-
- #If haml is missing create it and get rid of the erb
+
+ # If haml is missing create it and get rid of the erb
if !File.exist?(haml_file_name)
-
- #Reads erb from file
+
+ # Reads erb from file
erb_string = File.open(file_name).read
-
- #Converts erb to haml
+
+ # Converts erb to haml
haml_string = Haml::HTML.new(erb_string, :erb => true).render
-
- #Writes the haml
- f = File.new(haml_file_name, "w")
+
+ # Writes the haml
+ f = File.new(haml_file_name, "w")
f.write(haml_string)
-
- #Gets rid of the erb
+
+ # Gets rid of the erb
File.delete(file_name)
end
end
-
end
end
View
6 lib/tasks/sample_data.rake
@@ -3,10 +3,10 @@ namespace :db do
task populate: :environment do
# Fill words
- words = [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application",
+ words = [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application",
"approach", "architecture", "archive", "artificial intelligence", "array", "attitude",
- "complexity", "concept", "conglomeration", "contingency", "core", "customer",
- "leverage", "matrices", "matrix", "methodology", "middleware", "migration",
+ "complexity", "concept", "conglomeration", "contingency", "core", "customer",
+ "leverage", "matrices", "matrix", "methodology", "middleware", "migration",
"support", "synergy", "system engine", "task-force", "throughput", "time-frame" ]
words.map do |word|
View
1  public/.htaccess
@@ -1,5 +1,4 @@
Options -MultiViews
PassengerResolveSymlinksInDocumentRoot on
RailsEnv production
-RackBaseURI /
SetEnv GEM_HOME /home4/globapd6/ruby/gems

No commit comments for this range

Something went wrong with that request. Please try again.