-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
Conflicts: lib/neo4j/shared/persistence.rb spec/shared_examples/destroyable_model.rb
- Loading branch information
Showing
140 changed files
with
2,263 additions
and
1,768 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,9 @@ | ||
--- | ||
rules: | ||
ignore: | ||
- assignment_in_conditional | ||
- extra_blank_line_detected | ||
- prefer_ruby_19_new_lambda_syntax | ||
- shadowing_outer_local_variable | ||
- space_inside_closing_curly_brace_missing | ||
- space_inside_opening_curly_brace_missing |
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,72 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
|
||
|
||
#--------------------------- | ||
# Style configuration | ||
#--------------------------- | ||
|
||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
Style/HashSyntax: | ||
Enabled: true | ||
EnforcedStyle: ruby19 | ||
|
||
# Cop supports --auto-correct. | ||
Style/SpaceInsideHashLiteralBraces: | ||
Enabled: true | ||
EnforcedStyle: no_space | ||
|
||
# I think this one is broken... | ||
Style/FileName: | ||
Enabled: false | ||
|
||
#--------------------------- | ||
# Don't intend to fix these: | ||
#--------------------------- | ||
|
||
# Cop supports --auto-correct. | ||
# Reason: Double spaces can be useful for grouping code | ||
Style/EmptyLines: | ||
Enabled: false | ||
|
||
# Cop supports --auto-correct. | ||
# Reason: I have very big opinions on this one. See: | ||
# https:/bbatsov/ruby-style-guide/issues/329 | ||
# https:/bbatsov/ruby-style-guide/pull/325 | ||
Style/NegatedIf: | ||
Enabled: false | ||
|
||
# Cop supports --auto-correct. | ||
# Reason: I'm fine either way on this, but could maybe be convinced that this should be enforced | ||
Style/Not: | ||
Enabled: false | ||
|
||
# Cop supports --auto-correct. | ||
# Reason: I'm fine with this | ||
Style/PerlBackrefs: | ||
Enabled: false | ||
|
||
# Configuration parameters: Methods. | ||
# Reason: We should be able to specify full variable names, even if it's only one line | ||
Style/SingleLineBlockParams: | ||
Enabled: false | ||
|
||
# Reason: Switched `extend self` to `module_function` in id_property.rb but that caused errors | ||
Style/ModuleFunction: | ||
Enabled: false | ||
|
||
# Configuration parameters: AllowSafeAssignment. | ||
# Reason: I'm a proud user of assignment in conditionals. | ||
Lint/AssignmentInCondition: | ||
Enabled: false | ||
|
||
# Reason: Fine with any sort of lambda syntax | ||
Style/Lambda: | ||
Enabled: false | ||
|
||
# Reason: I'm proud to be part of the double negative Ruby tradition | ||
Style/DoubleNegation: | ||
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2014-12-28 12:03:39 +0100 using RuboCop version 0.28.0. | ||
# 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: 2 | ||
Lint/HandleExceptions: | ||
Enabled: false | ||
|
||
# Offense count: 17 | ||
Metrics/AbcSize: | ||
Max: 35 | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 268 | ||
|
||
# Offense count: 5 | ||
Metrics/CyclomaticComplexity: | ||
Max: 8 | ||
|
||
# Offense count: 739 | ||
# Configuration parameters: AllowURI, URISchemes. | ||
Metrics/LineLength: | ||
Max: 216 | ||
|
||
# Offense count: 22 | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 45 | ||
|
||
# Offense count: 26 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
# Offense count: 3 | ||
Style/ClassVars: | ||
Enabled: false | ||
|
||
# Offense count: 155 | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Offense count: 13 | ||
# Configuration parameters: MinBodyLength. | ||
Style/GuardClause: | ||
Enabled: false | ||
|
||
# Offense count: 84 | ||
# Cop supports --auto-correct. | ||
Style/RedundantSelf: | ||
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,5 +1,9 @@ | ||
script: "export CODECLIMATE_REPO_TOKEN=04853df625409de0a0f4e9126aee11bbee3428c81c20c27df6e6ab5c60bff2c8 && export JRUBY_OPTS='-X+O -J-Djruby.launch.inproc=false' && bundle exec rake neo4j:install['community-2.2.0-M01'] neo4j:start default --trace" | ||
script: | ||
- "bundle exec rubocop" | ||
- "export CODECLIMATE_REPO_TOKEN=04853df625409de0a0f4e9126aee11bbee3428c81c20c27df6e6ab5c60bff2c8 && export JRUBY_OPTS='-X+O -J-Djruby.launch.inproc=false' && bundle exec rake neo4j:install['community-2.2.0-M01'] neo4j:start default --trace" | ||
language: ruby | ||
rvm: | ||
- 2.1.5 | ||
- jruby-19mode | ||
- 2.2.0 | ||
- 1.9.3 | ||
- jruby-1.7.16 | ||
# - jruby-19mode |
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,14 +1,35 @@ | ||
# A sample Guardfile | ||
# More info at https:/guard/guard#readme | ||
|
||
guard 'rspec', :version => 2, :cli => '--tag focus' do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | ||
## Uncomment and set this to only include directories you want to watch | ||
# directories %w(app lib config test spec feature) | ||
|
||
watch(%r{^spec/.+_spec\.rb$}) | ||
## Uncomment to clear the screen before every task | ||
# clearing :on | ||
|
||
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } | ||
watch(%r{^spec/fixtures/(.+)\.rb$}) { "spec" } | ||
## Guard internally checks for changes in the Guardfile and exits. | ||
## If you want Guard to automatically start up again, run guard in a | ||
## shell loop, e.g.: | ||
## | ||
## $ while bundle exec guard; do echo "Restarting Guard..."; done | ||
## | ||
## Note: if you are using the `directories` clause above and you are not | ||
## watching the project directory ('.'), the you will want to move the Guardfile | ||
## to a watched dir and symlink it back, e.g. | ||
# | ||
# $ mkdir config | ||
# $ mv Guardfile config/ | ||
# $ ln -s config/Guardfile . | ||
# | ||
# and, you'll have to watch "config/Guardfile" instead of "Guardfile" | ||
|
||
guard :rubocop, cli: '--auto-correct --display-cop-names' do | ||
watch(/.+\.rb$/) | ||
watch(/(?:.+\/)?\.rubocop.*\.yml$/) { |m| File.dirname(m[0]) } | ||
end | ||
|
||
guard :rspec, cmd: 'bundle exec rspec' do | ||
watch(/^spec\/.+_spec\.rb$/) | ||
watch(/^lib\/(.+)\.rb/) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
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
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 |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
require File.expand_path('../config/application', __FILE__) | ||
|
||
Blog::Application.load_tasks | ||
|
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 |
---|---|---|
|
@@ -8,5 +8,4 @@ class Comment | |
|
||
# or if PostComment is not needed | ||
# has_one :in, :post | ||
|
||
end |
Oops, something went wrong.