Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Automatically Removed Whitespace #1

Merged
merged 1 commit into from

1 participant

@GunioRobot

Hi there!

This is WhitespaceBot. I'm an open-source robot that removes trailing white space in your code.

Why whitespace? Whitespace is an eyesore for developers who use text editors with dark themes. It's not a huge deal, but it's a bit annoying if you use Vim in a terminal. Really, I'm just a proof of concept - GitHub's V3 API allows robots to automatically improve open source projects, and that's really cool. Hopefully, somebody, maybe you!, will fork me and make me even more useful.

I've only cleaned your most popular project, and I've added you to a list of users not to contact again, so you won't get any more pull requests from me unless you ask. If I'm misbehaving, please email my owner and tell him to turn me off! If this is pull request is of no use to you, please just ignore it.

Thanks!
WhitespaceBot.

Gun.io Whitespace Robot Remove whitespace [WhitespaceBot] 8c1e68f
@mirasrael mirasrael merged commit 9a5f9fb into niquola:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 1, 2012
  1. Remove whitespace [WhitespaceBot]

    Gun.io Whitespace Robot authored
This page is out of date. Refresh to see the latest.
View
10 README.rdoc
@@ -1,6 +1,6 @@
== PgGnostic
-Rails and postgres deeper integration
+Rails and postgres deeper integration
== Install
@@ -8,7 +8,7 @@ in config/environment.rb:
config.gem 'pg_gnostic'
-and then
+and then
sudo rake gems:install
@@ -28,10 +28,10 @@ and then
0.1.0 - converted to Rails 3 format. No backward compatibility with Rails 2.x
0.1.1 - fix problem with removing entire directory with views on rails destroy pg_view
-== TODO
+== TODO
-* backup rake
-* loganalize rake
+* backup rake
+* loganalize rake
* functions generator
== LICENSE:
View
4 Rakefile
@@ -29,13 +29,13 @@ PKG_FILES = FileList[ '[a-zA-Z]*', 'rails/generators/**/*', 'lib/**/*', 'rails/*
require File.join(File.dirname(__FILE__), 'lib/pg_gnostic')
spec = Gem::Specification.new do |s|
s.name = "pg_gnostic"
- s.version = PgGnostic::VERSION
+ s.version = PgGnostic::VERSION
s.author = "niquola"
s.email = "niquola@gmail.com"
s.homepage = "http://github.com/niquola/pg_gnostic"
s.platform = Gem::Platform::RUBY
s.summary = "Rails plugin for postgres"
- s.files = PKG_FILES.to_a
+ s.files = PKG_FILES.to_a
s.require_path = "lib"
s.has_rdoc = false
s.extra_rdoc_files = ["README.rdoc"]
View
2  rails/generators/pg_view/templates/model.rb
@@ -1,7 +1,7 @@
<% unless nest_in_module.empty? %>
module <%= nest_in_module %>
<% end %>
- class <%= class_name %> < ActiveRecord::Base
+ class <%= class_name %> < ActiveRecord::Base
<% unless prefix_view_name.empty? %>
set_table_name "<%= prefix_view_name %>_#{table_name}"
<% end %>
View
4 tasks/pg_gnostic_tasks.rake
@@ -41,7 +41,7 @@ namespace :pg do
file = ENV["PGBACKUP"]
config = ActiveRecord::Base.configurations[RAILS_ENV || 'development']
- backupdir = get_backup_dir
+ backupdir = get_backup_dir
if file && File.exists?(file)
file = file
elsif file && File.exists?(File.join(backupdir,file))
@@ -61,7 +61,7 @@ namespace :pg do
'port'=>config["port"],
'username'=>config["username"]
}.map{|k,v| "--#{k}=#{v}" if v}.join(' ')
- unarchiver = PgGnostic.config.backup.unarchive_command
+ unarchiver = PgGnostic.config.backup.unarchive_command
command = "export PGPASSWORD=#{config["password"]} && #{unarchiver} #{file} | psql #{params} -w #{config["database"]}"
puts "Execute: #{command}"
system command
View
6 test/rails_root/app/model/views/role.rb
@@ -1,10 +1,10 @@
module Views
- class Role < ActiveRecord::Base
-
+ class Role < ActiveRecord::Base
+
set_table_name "view__#{table_name}"
-
+
end
end
View
6 test/rails_root/app/model/views/user.rb
@@ -1,10 +1,10 @@
module Views
- class User < ActiveRecord::Base
-
+ class User < ActiveRecord::Base
+
set_table_name "view__#{table_name}"
-
+
end
end
Something went wrong with that request. Please try again.