-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brandon Joyce
committed
Mar 19, 2016
1 parent
47ae3c7
commit a7534fa
Showing
9 changed files
with
83 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require: rubocop-rspec | ||
|
||
Style/MethodDefParentheses: | ||
EnforcedStyle: require_no_parentheses | ||
|
||
Metrics/LineLength: | ||
Max: 100 | ||
|
||
Documentation: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
task default: :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module SqlFootprint | ||
VERSION = "0.1.0" | ||
VERSION = '0.1.0'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
class Widget < ActiveRecord::Base | ||
has_many :cogs | ||
end | ||
|
||
class Cog < ActiveRecord::Base | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
ActiveRecord::Schema.define do | ||
self.verbose = false | ||
|
||
create_table :widgets, :force => true do |t| | ||
create_table :widgets, force: true do |t| | ||
t.string :name | ||
t.integer :quantity | ||
|
||
t.timestamps | ||
end | ||
|
||
create_table :cogs, force: true do |t| | ||
t.string :name | ||
t.integer :quantity | ||
t.references :widget | ||
|
||
t.timestamps | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,28 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'sql_footprint/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "sql_footprint" | ||
spec.name = 'sql_footprint' | ||
spec.version = SqlFootprint::VERSION | ||
spec.authors = ["Brandon Joyce"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = ['Brandon Joyce'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = %q{Keeps your DB guy happy.} | ||
spec.description = %q{Check your footprint file into source control} | ||
spec.homepage = "https://github.com/covermymeds/sql_footprint" | ||
spec.summary = 'Keeps your DB guy happy.' | ||
spec.description = 'Check your footprint file into source control' | ||
spec.homepage = 'https://github.com/covermymeds/sql_footprint' | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = "exe" | ||
spec.files = `git ls-files -z`.split("\x0").reject do |f| | ||
f.match(%r{^(test|spec|features)/}) | ||
end | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_development_dependency "bundler", "~> 1.10" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec" | ||
spec.add_development_dependency "activerecord", "~> 4.0.0" | ||
spec.add_development_dependency "pry" | ||
spec.add_development_dependency "sqlite3" | ||
spec.add_development_dependency 'bundler', '~> 1.10' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec' | ||
spec.add_development_dependency 'activerecord', '~> 4.0.0' | ||
spec.add_development_dependency 'pry' | ||
spec.add_development_dependency 'sqlite3' | ||
spec.add_development_dependency 'rubocop', '~> 0.37.0' | ||
spec.add_development_dependency 'rubocop-rspec' | ||
end |