Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
rename again
Browse files Browse the repository at this point in the history
  • Loading branch information
6 committed Jul 7, 2017
1 parent af5bde6 commit dbe7de9
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "https://rubygems.org"

# Specify your gem's dependencies in rubocop-migrations.gemspec
# Specify your gem's dependencies in rubocop-migration.gemspec
gemspec
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rubocop-migrations
# rubocop-migration

RuboCop extension to catch common pitfalls in ActiveRecord migrations.

Expand All @@ -8,7 +8,7 @@ Add this line to your application's Gemfile and then execute `bundle`:

```ruby
group :development do
gem 'rubocop-migrations'
gem 'rubocop-migration'
end
```

Expand All @@ -17,7 +17,7 @@ end
Configure RuboCop to load the extension in `.rubocop.yml`.

```yaml
require: rubocop-migrations
require: rubocop-migration
```
## Development
Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "rubocop-migrations"
require "rubocop-migration"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
11 changes: 11 additions & 0 deletions lib/rubocop-migration.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require "active_support"
require "active_support/core_ext"
require "rubocop"

require "rubocop/migration/version"
require "rubocop/cop/migration/add_index_non_concurrently"

module RuboCop
module Migration
end
end
11 changes: 0 additions & 11 deletions lib/rubocop-migrations.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module RuboCop
module Cop
module Migrations
module Migration
class AddIndexNonConcurrently < Cop
MSG = 'Use `algorithm: :concurrently` to avoid locking database.'.freeze

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module RuboCop
module Migrations
module Migration
VERSION = "0.1.0"
end
end
8 changes: 4 additions & 4 deletions rubocop-migrations.gemspec → rubocop-migration.gemspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# coding: utf-8
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "rubocop/migrations/version"
require "rubocop/migration/version"

Gem::Specification.new do |spec|
spec.name = "rubocop-migrations"
spec.version = RuboCop::Migrations::VERSION
spec.name = "rubocop-migration"
spec.version = RuboCop::Migration::VERSION
spec.authors = ["Peter Graham"]
spec.email = ["[email protected]"]

spec.summary = %q{RuboCop extension for ActiveRecord migrations.}
spec.description = %q{RuboCop extension to catch common pitfalls in ActiveRecord migrations.}
spec.homepage = "https://github.com/wealthsimple/rubocop-migrations"
spec.homepage = "https://github.com/wealthsimple/rubocop-migration"

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe RuboCop::Cop::Migrations::AddIndexNonConcurrently do
describe RuboCop::Cop::Migration::AddIndexNonConcurrently do
subject(:cop) { described_class.new }

before do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe RuboCop::Migrations do
describe RuboCop::Migration do
it "has a version number" do
expect(described_class::VERSION).not_to be nil
end
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "bundler/setup"
require "rubocop-migrations"
require "rubocop-migration"
require "rspec/collection_matchers"
require "rspec/its"
require 'rubocop'
Expand Down

0 comments on commit dbe7de9

Please sign in to comment.