Skip to content

Commit

Permalink
Merge branch 'release/0.5.0.0-RC'
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed May 3, 2015
2 parents ca46b45 + 260a10b commit f8b3836
Show file tree
Hide file tree
Showing 1,336 changed files with 31,671 additions and 34,509 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
@@ -0,0 +1,17 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2

[{Gemfile,Rakefile,Guardfile,Procfile}]
trim_trailing_whitespace = true

[*.{js,hbs,rb,rake,ru,erb,haml,scss,sh,md}]
trim_trailing_whitespace = true

[*.yml]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .foreman
@@ -1,2 +1,2 @@
port: 3000
formation: web=1,sidekiq=0
formation: xmpp=0,web=1,sidekiq=0
14 changes: 13 additions & 1 deletion .gitignore
@@ -1,3 +1,7 @@
# xmpp certificates, keys and user data
config/vines/*.crt
config/vines/*.key

#trademark sillyness
app/views/home/_show.*
app/views/terms/terms.*
Expand All @@ -10,6 +14,7 @@ config/heroku.yml
config/initializers/secret_token.rb
config/redis.conf
config/deploy_config.yml
config/schedule.rb
.bundle
vendor/bundle/
vendor/cache/
Expand All @@ -29,6 +34,11 @@ spec/fixtures/*.y*ml
spec/fixtures/*.fixture.*
coverage/
xml_locales/
public/404.html
public/422.html
public/500.html

# Sprites
app/assets/images/branding-*.png
app/assets/images/icons-*.png
app/assets/images/social_media_logos-*.png
Expand Down Expand Up @@ -58,7 +68,6 @@ tmp/
*.swp
*~
*#
bin/*
nbproject
patches-*
capybara-*.html
Expand All @@ -69,3 +78,6 @@ dump.rdb

#IDE
diaspora.iml

# Dolphin's directory's preferences files
*.directory
9 changes: 9 additions & 0 deletions .hound.yml
@@ -0,0 +1,9 @@
java_script:
enabled: true
config_file: config/.jshint.json
ignore_file: config/.jshint_ignore
ruby:
enabled: true
config_file: .rubocop.yml
scss:
enabled: false
1 change: 1 addition & 0 deletions .jshintignore
1 change: 1 addition & 0 deletions .jshintrc
15 changes: 0 additions & 15 deletions .pairs

This file was deleted.

1 change: 0 additions & 1 deletion .powenv

This file was deleted.

4 changes: 0 additions & 4 deletions .powrc

This file was deleted.

1 change: 0 additions & 1 deletion .rspec
Expand Up @@ -3,4 +3,3 @@
--color
--tag ~performance
--order random
--drb
130 changes: 130 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,130 @@
AllCops:
RunRailsCops: true

# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120

# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
Max: 20

# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC
Metrics/ClassLength:
Max: 1500

# No space makes the method definition shorter and differentiates
# from a regular assignment.
Style/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space

# Single quotes being faster is hardly measurable and only affects parse time.
# Enforcing double quotes reduces the times where you need to change them
# when introducing an interpolation. Use single quotes only if their semantics
# are needed.
Style/StringLiterals:
EnforcedStyle: double_quotes

# We do not need to support Ruby 1.9, so this is good to use.
Style/SymbolArray:
Enabled: true

# Most readable form.
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table

# Mixing the styles looks just silly.
# REVIEW: Enable once https://github.com/bbatsov/rubocop/commit/760ce1ed2cf10beda5e163f934c03a6fb6daa38e
# is released.
#Style/HashSyntax:
# EnforcedStyle: ruby19_no_mixed_keys

# has_key? and has_value? are far more readable than key? and value?
Style/DeprecatedHashMethods:
Enabled: false

# String#% is by far the least verbose and only object oriented variant.
Style/FormatString:
EnforcedStyle: percent

Style/CollectionMethods:
Enabled: true
PreferredMethods:
# inject seems more common in the community.
reduce: "inject"


# Either allow this style or don't. Marking it as safe with parenthesis
# is silly. Let's try to live without them for now.
Style/ParenthesesAroundCondition:
AllowSafeAssignment: false
Lint/AssignmentInCondition:
AllowSafeAssignment: false

# A specialized exception class will take one or more arguments and construct the message from it.
# So both variants make sense.
Style/RaiseArgs:
Enabled: false

# Fail is an alias of raise. Avoid aliases, it's more cognitive load for no gain.
# The argument that fail should be used to abort the program is wrong too,
# there's Kernel#abort for that.
Style/SignalException:
EnforcedStyle: only_raise

# Suppressing exceptions can be perfectly fine, and be it to avoid to
# explicitly type nil into the rescue since that's what you want to return,
# or suppressing LoadError for optional dependencies
Lint/HandleExceptions:
Enabled: false

Style/SpaceInsideBlockBraces:
# The space here provides no real gain in readability while consuming
# horizontal space that could be used for a better parameter name.
# Also {| differentiates better from a hash than { | does.
SpaceBeforeBlockParameters: false

# No trailing space differentiates better from the block:
# foo} means hash, foo } means block.
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

# { ... } for multi-line blocks is okay, follow Weirichs rule instead:
# https://web.archive.org/web/20140221124509/http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc
Style/Blocks:
Enabled: false

# do / end blocks should be used for side effects,
# methods that run a block for side effects and have
# a useful return value are rare, assign the return
# value to a local variable for those cases.
Style/MethodCalledOnDoEndBlock:
Enabled: true

# Enforcing the names of variables? To single letter ones? Just no.
Style/SingleLineBlockParams:
Enabled: false

# Shadowing outer local variables with block parameters is often useful
# to not reinvent a new name for the same thing, it highlights the relation
# between the outer variable and the parameter. The cases where it's actually
# confusing are rare, and usually bad for other reasons already, for example
# because the method is too long.
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Check with yard instead.
Style/Documentation:
Enabled: false

# This is just silly. Calling the argument `other` in all cases makes no sense.
Style/OpMethod:
Enabled: false

# There are valid cases, for example debugging Cucumber steps,
# also they'll fail CI anyway
Lint/Debugger:
Enabled: false

2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
2.0
2.1
27 changes: 16 additions & 11 deletions .travis.yml
@@ -1,25 +1,30 @@
branches:
only:
- 'master'
- 'develop'

language: ruby

rvm:
- 2.0.0
- 1.9.3
- 2.1
- 2.0

env:
- DB=postgres BUILD_TYPE=other
- DB=mysql BUILD_TYPE=other
- DB=postgres BUILD_TYPE=cucumber
- DB=mysql BUILD_TYPE=cucumber

sudo: false
cache:
bundler: true
directories:
- app/assets/images

bundler_args: "--without development production heroku"
script: "./script/ci/build.sh"
branches:
only:
- 'master'
- 'develop'

before_install: gem install bundler
bundler_args: "--without development production heroku --jobs 3 --retry 3"

addons:
firefox: "26.0"
script: "./script/ci/build.sh"

notifications:
irc:
Expand Down

0 comments on commit f8b3836

Please sign in to comment.