forked from thiagopradi/octopus
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
79 changed files
with
1,869 additions
and
1,761 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,46 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
ActionFilter: | ||
EnforcedStyle: filter | ||
|
||
CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
|
||
CollectionMethods: | ||
PreferredMethods: | ||
find: detect | ||
|
||
EmptyLineBetweenDefs: | ||
AllowAdjacentOneLineDefs: true | ||
|
||
Encoding: | ||
Enabled: false | ||
|
||
EndAlignment: | ||
AlignWith: variable | ||
|
||
HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
Style/IndentHash: | ||
EnforcedStyle: consistent | ||
|
||
Loop: | ||
Enabled: false | ||
|
||
PredicateName: | ||
Enabled: false | ||
|
||
RegexpLiteral: | ||
Enabled: false | ||
|
||
Semicolon: | ||
AllowAsExpressionSeparator: true | ||
|
||
Style/TrailingComma: | ||
EnforcedStyleForMultiline: comma | ||
|
||
Style/TrivialAccessors: | ||
AllowDSLWriters: true | ||
AllowPredicates: true | ||
ExactNameMatch: true |
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,52 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2014-07-23 21:41:36 -0700 using RuboCop version 0.24.1. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 27 | ||
Lint/AmbiguousRegexpLiteral: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
Lint/HandleExceptions: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Style/ClassLength: | ||
Max: 324 | ||
|
||
# Offense count: 3 | ||
Style/CyclomaticComplexity: | ||
Max: 14 | ||
|
||
# Offense count: 81 | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: Exclude. | ||
Style/FileName: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: MinBodyLength. | ||
Style/GuardClause: | ||
Enabled: false | ||
|
||
# Offense count: 273 | ||
# Configuration parameters: AllowURI. | ||
Style/LineLength: | ||
Max: 180 | ||
|
||
# Offense count: 10 | ||
# Configuration parameters: CountComments. | ||
Style/MethodLength: | ||
Max: 52 | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
Style/Next: | ||
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
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,25 +1,25 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
require "octopus/version" | ||
$LOAD_PATH.push File.expand_path('../lib', __FILE__) | ||
require 'octopus/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "ar-octopus" | ||
s.name = 'ar-octopus' | ||
s.version = Octopus::VERSION | ||
s.authors = ["Thiago Pradi", "Mike Perham", "Gabriel Sobrinho"] | ||
s.email = ["[email protected]", "[email protected]", "[email protected]"] | ||
s.homepage = "https://github.com/tchandy/octopus" | ||
s.summary = %q{Easy Database Sharding for ActiveRecord} | ||
s.description = %q{This gem allows you to use sharded databases with ActiveRecord. This also provides a interface for replication and for running migrations with multiples shards.} | ||
s.authors = ['Thiago Pradi', 'Mike Perham', 'Gabriel Sobrinho'] | ||
s.email = ['[email protected]', '[email protected]', '[email protected]'] | ||
s.homepage = 'https://github.com/tchandy/octopus' | ||
s.summary = 'Easy Database Sharding for ActiveRecord' | ||
s.description = 'This gem allows you to use sharded databases with ActiveRecord. This also provides a interface for replication and for running migrations with multiples shards.' | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
s.require_paths = ["lib"] | ||
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } | ||
s.require_paths = ['lib'] | ||
|
||
s.post_install_message = "Important: If you are upgrading from < Octopus 0.5.0 you need to run:\n" \ | ||
"$ rake octopus:copy_schema_versions\n\n" \ | ||
"Octopus now stores schema version information in each shard and migrations will not " \ | ||
"work properly unless this task is invoked." | ||
'Octopus now stores schema version information in each shard and migrations will not ' \ | ||
'work properly unless this task is invoked.' | ||
|
||
s.add_dependency 'activerecord', '>= 3.2.0' | ||
s.add_dependency 'activesupport', '>= 3.2.0' | ||
|
@@ -29,6 +29,7 @@ Gem::Specification.new do |s| | |
s.add_development_dependency 'pg', '>= 0.11.0' | ||
s.add_development_dependency 'rake', '>= 0.8.7' | ||
s.add_development_dependency 'rspec', '>= 3' | ||
s.add_development_dependency 'rubocop' | ||
s.add_development_dependency 'sqlite3', '>= 1.3.4' | ||
|
||
if RUBY_VERSION < '2.0.0' | ||
|
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 +1 @@ | ||
require File.join(File.dirname(__FILE__), 'rails', 'init') | ||
require File.join(File.dirname(__FILE__), 'rails', 'init') |
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 +1 @@ | ||
require "octopus" | ||
require 'octopus' |
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
Oops, something went wrong.