This commit is contained in:
raluca 2015-10-22 13:44:08 +00:00
commit f373766544
101 changed files with 899 additions and 701 deletions

View file

@ -25,8 +25,15 @@ Style/EmptyLinesAroundAccessModifier:
Enabled: true Enabled: true
# Do not insert empty line after class definition and before closing class # Do not insert empty line after class definition and before closing class
Style/EmptyLinesAroundBody:
Enabled: true Style/EmptyLinesAroundBlockBody:
EnforcedStyle: no_empty_lines
Style/EmptyLinesAroundClassBody:
EnforcedStyle: no_empty_lines
Style/EmptyLinesAroundModuleBody:
EnforcedStyle: no_empty_lines
# Use hash literal {} instead of Hash.new # Use hash literal {} instead of Hash.new
Style/EmptyLiteral: Style/EmptyLiteral:
@ -93,12 +100,12 @@ Style/AndOr:
Enabled: true Enabled: true
# avoid deep blocks nesting # avoid deep blocks nesting
Style/BlockNesting: Metrics/BlockNesting:
Max: 4 Max: 4
# use do instead of {...} in multiline blocks # use do instead of {...} in multiline blocks
Style/Blocks: Style/BlockDelimiters:
Enabled: true EnforcedStyle: line_count_based
# avoid redundunt curly braces when it is obvious that hash is used # avoid redundunt curly braces when it is obvious that hash is used
Style/BracesAroundHashParameters: Style/BracesAroundHashParameters:

View file

@ -1,218 +1,359 @@
# This configuration was generated by `rubocop --auto-gen-config` # This configuration was generated by
# on 2014-07-21 12:48:09 +0200 using RuboCop version 0.24.1. # `rubocop --auto-gen-config`
# on 2015-10-22 14:30:43 +0200 using RuboCop version 0.34.2.
# The point is for the user to remove these configuration records # The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base. # one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again. # versions of RuboCop, may require this file to be generated again.
# Offense count: 3 # Offense count: 2
Lint/DuplicatedKey:
Exclude:
- 'db/migrate/20140801164901_move_conference_media_to_commercial.rb'
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
# Offense count: 83
Metrics/AbcSize:
Max: 73
# Offense count: 6
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 200
# Offense count: 9
Metrics/CyclomaticComplexity:
Max: 12
# Offense count: 863
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 207
# Offense count: 87
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 56
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 243
# Offense count: 5
Metrics/PerceivedComplexity:
Max: 15
# Offense count: 18
Style/AccessorMethodName:
Exclude:
- 'app/controllers/admin/events_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/models/campaign.rb'
- 'app/models/conference.rb'
- 'app/models/target.rb'
- 'app/models/user.rb'
# Offense count: 4
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassCheck: Style/ClassCheck:
Enabled: false Exclude:
- 'app/helpers/application_helper.rb'
# Offense count: 8 - 'app/models/email_settings.rb'
# Configuration parameters: CountComments. - 'app/models/revision_observer.rb'
Style/ClassLength:
Max: 524
# Offense count: 1 # Offense count: 1
Style/ClassVars: Style/ClassVars:
Enabled: false Exclude:
- 'spec/support/kneet_connections.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: PreferredMethods.
Style/CollectionMethods:
Enabled: false
# Offense count: 1 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/ColonMethodCall: Style/ColonMethodCall:
Enabled: false Exclude:
- 'app/models/contact.rb'
# Offense count: 4 # Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Keywords. # Configuration parameters: Keywords.
Style/CommentAnnotation: Style/CommentAnnotation:
Enabled: false Exclude:
- 'app/models/event_user.rb'
# Offense count: 4 # Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/CommentIndentation: Style/CommentIndentation:
Enabled: false Exclude:
- 'app/controllers/admin/comments_controller.rb'
- 'app/models/conference.rb'
- 'app/models/track.rb'
# Offense count: 10 # Offense count: 341
Style/CyclomaticComplexity: # Configuration parameters: Exclude.
Max: 16
# Offense count: 5
# Cop supports --auto-correct.
Style/DeprecatedHashMethods:
Enabled: false
# Offense count: 228
Style/Documentation: Style/Documentation:
Enabled: false Enabled: false
# Offense count: 150 # Offense count: 97
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/DotPosition: Style/DotPosition:
Enabled: false Enabled: false
# Offense count: 9 # Offense count: 5
Style/DoubleNegation: Style/DoubleNegation:
Enabled: false Exclude:
- 'app/models/conference.rb'
# Offense count: 1 # Offense count: 1
# Configuration parameters: Exclude. # Configuration parameters: Exclude.
Style/FileName: Style/FileName:
Enabled: false Exclude:
- 'Guardfile'
# Offense count: 8 # Offense count: 15
# Configuration parameters: MinBodyLength. # Configuration parameters: MinBodyLength.
Style/GuardClause: Style/GuardClause:
Enabled: false Exclude:
- 'app/controllers/admin/base_controller.rb'
- 'app/controllers/admin/questions_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/controllers/conference_registrations_controller.rb'
- 'app/controllers/tickets_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/models/ability.rb'
- 'app/models/conference.rb'
- 'app/models/event.rb'
- 'app/models/registration.rb'
- 'app/models/ticket.rb'
- 'app/models/user.rb'
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
# Offense count: 27 # Offense count: 27
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength. # Configuration parameters: MaxLineLength.
Style/IfUnlessModifier: Style/IfUnlessModifier:
Enabled: false Exclude:
- 'app/controllers/admin/events_controller.rb'
- 'app/controllers/admin/schedules_controller.rb'
- 'app/controllers/conference_registrations_controller.rb'
- 'app/controllers/proposal_controller.rb'
- 'app/controllers/users/omniauth_callbacks_controller.rb'
- 'app/helpers/application_helper.rb'
- 'app/models/conference.rb'
- 'app/models/datatable.rb'
- 'app/models/event.rb'
- 'app/models/ticket_purchase.rb'
- 'app/models/user.rb'
- 'spec/controllers/admin/conferences_controller_spec.rb'
- 'spec/features/omniauth_spec.rb'
- 'spec/support/flash.rb'
- 'spec/support/save_feature_failures.rb'
# Offense count: 2 # Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/IndentArray: Style/IndentArray:
Enabled: false Exclude:
- 'app/controllers/admin/registrations_controller.rb'
- 'app/models/conference.rb'
# Offense count: 8 # Offense count: 4
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/IndentHash: Style/IndentHash:
Enabled: false Enabled: false
# Offense count: 2
# Cop supports --auto-correct.
Style/IndentationConsistency:
Enabled: false
# Offense count: 5 # Offense count: 5
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/IndentationWidth: # Configuration parameters: EnforcedStyle, SupportedStyles.
Enabled: false Style/IndentationConsistency:
Exclude:
- 'app/controllers/conference_controller.rb'
- 'app/controllers/users_controller.rb'
- 'app/models/event.rb'
- 'spec/controllers/subscriptions_controller_spec.rb'
- 'spec/models/cfp_spec.rb'
# Offense count: 7 # Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: Width.
Style/IndentationWidth:
Exclude:
- 'app/helpers/application_helper.rb'
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
- 'db/migrate/20141031225545_add_require_handicapped_access_to_questions.rb'
- 'db/migrate/20141031225606_add_attending_with_partner_to_questions.rb'
- 'db/migrate/20141031225620_add_staying_at_suggested_hotel_to_questions.rb'
- 'db/migrate/20141031225635_add_attending_social_events_to_questions.rb'
- 'db/migrate/20141118162030_change_lodging_association_to_conference.rb'
- 'spec/features/event_types_spec.rb'
- 'spec/models/cfp_spec.rb'
# Offense count: 6
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/LeadingCommentSpace: Style/LeadingCommentSpace:
Enabled: false Exclude:
- 'Guardfile'
- 'app/controllers/admin/commercials_controller.rb'
- 'app/controllers/commercials_controller.rb'
- 'app/models/comment.rb'
# Offense count: 5 # Offense count: 8
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/LineEndConcatenation: Style/LineEndConcatenation:
Enabled: false Exclude:
- 'spec/features/cfp_spec.rb'
- 'spec/features/conference_spec.rb'
- 'spec/features/registration_periods_spec.rb'
# Offense count: 515 # Offense count: 7
# Configuration parameters: AllowURI.
Style/LineLength:
Max: 217
# Offense count: 5
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MethodDefParentheses: Style/MethodDefParentheses:
Enabled: false Enabled: false
# Offense count: 68 # Offense count: 16
# Configuration parameters: CountComments.
Style/MethodLength:
Max: 134
# Offense count: 14
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/NegatedIf: Style/NegatedIf:
Enabled: false Exclude:
- 'app/controllers/admin/events_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/controllers/conference_registrations_controller.rb'
- 'app/controllers/proposal_controller.rb'
- 'app/models/conference.rb'
- 'app/models/datatable.rb'
- 'app/models/event.rb'
- 'app/models/venue.rb'
- 'db/migrate/20140820093735_migrating_supporter_registrations_to_ticket_users.rb'
# Offense count: 18 # Offense count: 18
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next: Style/Next:
Enabled: false Exclude:
- 'app/controllers/admin/events_controller.rb'
- 'app/models/conference.rb'
- 'db/migrate/20140610173021_change_person_id_to_user_id_in_registrations.rb'
- 'db/migrate/20140611123926_change_person_id_to_user_id_in_votes.rb'
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
- 'db/migrate/20140731165107_move_conference_contact_details_to_contact.rb'
- 'db/migrate/20140801164901_move_conference_media_to_commercial.rb'
- 'db/migrate/20140801170430_move_event_media_to_commercial.rb'
- 'db/migrate/20140812065531_move_conference_registration_data_to_registration_periods.rb'
- 'db/migrate/20140820093735_migrating_supporter_registrations_to_ticket_users.rb'
- 'db/migrate/20140821103643_split_ticket_price_in_price_and_currency.rb'
- 'db/migrate/20140825093132_move_splashpage_attributes_from_conference_to_splashpage.rb'
- 'db/migrate/20141104131625_generate_username.rb'
- 'db/migrate/20141118162030_change_lodging_association_to_conference.rb'
- 'db/migrate/20141128073306_migrate_data_remove_column_include_cfp_in_splash_add_column_include_cfp.rb'
# Offense count: 1 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/NumericLiterals: Style/NumericLiterals:
MinDigits: 15 MinDigits: 15
# Offense count: 1 # Offense count: 3
Style/OptionalArguments:
Exclude:
- 'app/models/event.rb'
# Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: AllowSafeAssignment. # Configuration parameters: AllowSafeAssignment.
Style/ParenthesesAroundCondition: Style/ParenthesesAroundCondition:
Enabled: false Exclude:
- 'app/controllers/admin/base_controller.rb'
- 'app/controllers/application_controller.rb'
- 'app/helpers/application_helper.rb'
# Offense count: 11 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters. # Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters: Style/PercentLiteralDelimiters:
Enabled: false Exclude:
- 'app/serializers/event_serializer.rb'
# Offense count: 2 # Offense count: 2
# Configuration parameters: NamePrefixBlacklist. # Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName: Style/PredicateName:
Enabled: false Exclude:
- 'app/models/comment.rb'
- 'app/models/contact.rb'
# Offense count: 3 # Offense count: 6
# Configuration parameters: SupportedStyles. # Configuration parameters: SupportedStyles.
Style/RaiseArgs: Style/RaiseArgs:
EnforcedStyle: compact EnforcedStyle: compact
# Offense count: 3 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/RedundantBegin: Style/RedundantBegin:
Enabled: false Exclude:
- 'app/models/revision_observer.rb'
# Offense count: 3 # Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues. # Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn: Style/RedundantReturn:
Enabled: false Exclude:
- 'app/helpers/application_helper.rb'
# Offense count: 8 # Offense count: 33
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/RedundantSelf: Style/RedundantSelf:
Enabled: false Exclude:
- 'app/models/call_for_paper.rb'
- 'app/models/comment.rb'
- 'app/models/conference.rb'
- 'app/models/event.rb'
- 'app/models/question.rb'
- 'app/models/ticket.rb'
- 'app/models/user.rb'
- 'app/models/venue.rb'
# Offense count: 10 # Offense count: 2
# Configuration parameters: MaxSlashes. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
Style/RegexpLiteral: Style/RegexpLiteral:
Enabled: false Exclude:
- 'Guardfile'
# Offense count: 1
Style/SelfAssignment:
Enabled: false
# Offense count: 3 # Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/SelfAssignment:
Exclude:
- 'app/models/event.rb'
- 'db/migrate/20141104131625_generate_username.rb'
- 'spec/support/save_feature_failures.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SignalException: Style/SignalException:
Enabled: false Exclude:
- 'app/controllers/admin/base_controller.rb'
# Offense count: 1 - 'app/controllers/application_controller.rb'
# Configuration parameters: Methods. - 'app/models/user.rb'
Style/SingleLineBlockParams: - 'db/migrate/20140730104658_migrate_roles_for_cancancan.rb'
Enabled: false - 'db/migrate/20140820123503_assign_users_to_events.rb'
- 'db/migrate/20140820124117_undo_wrong_migration20140801080705_add_users_to_events.rb'
- 'db/migrate/20150929142405_change_postalcode_format_in_venues.rb'
# Offense count: 1 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty. # Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods: Style/SingleLineMethods:
Enabled: false Exclude:
- 'Guardfile'
# Offense count: 285 # Offense count: 20
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/SingleSpaceBeforeFirstArg: Style/SingleSpaceBeforeFirstArg:
Enabled: false Exclude:
- 'app/controllers/conference_registrations_controller.rb'
# Offense count: 4 - 'db/migrate/20121223110942_devise_create_users.rb'
# Cop supports --auto-correct. - 'db/migrate/20130107114930_create_versions.rb'
Style/SpaceAfterComma: - 'db/migrate/20140719160903_create_delayed_jobs.rb'
Enabled: false - 'spec/features/venues_spec.rb'
# Offense count: 4 # Offense count: 4
# Cop supports --auto-correct. # Cop supports --auto-correct.
@ -220,12 +361,17 @@ Style/SpaceAfterComma:
Style/SpaceAroundEqualsInParameterDefault: Style/SpaceAroundEqualsInParameterDefault:
Enabled: false Enabled: false
# Offense count: 5 # Offense count: 11
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: MultiSpaceAllowedForOperators.
Style/SpaceAroundOperators: Style/SpaceAroundOperators:
Enabled: false Exclude:
- 'app/controllers/application_controller.rb'
- 'app/models/call_for_paper.rb'
- 'app/models/datatable.rb'
- 'db/migrate/20141128073306_migrate_data_remove_column_include_cfp_in_splash_add_column_include_cfp.rb'
# Offense count: 2 # Offense count: 220
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SpaceBeforeBlockBraces: Style/SpaceBeforeBlockBraces:
@ -234,38 +380,56 @@ Style/SpaceBeforeBlockBraces:
# Offense count: 1 # Offense count: 1
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/SpaceBeforeSemicolon: Style/SpaceBeforeSemicolon:
Enabled: false Exclude:
- 'Guardfile'
# Offense count: 6 # Offense count: 28
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
Style/SpaceInsideBlockBraces: Style/SpaceInsideBlockBraces:
Enabled: false Enabled: false
# Offense count: 4 # Offense count: 15
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/SpaceInsideBrackets: Style/SpaceInsideBrackets:
Enabled: false Exclude:
- 'app/models/conference.rb'
- 'app/models/user.rb'
- 'spec/controllers/admin/conferences_controller_spec.rb'
- 'spec/views/admin/events/index.html.haml_spec.rb'
# Offense count: 6 # Offense count: 8
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
Style/SpaceInsideHashLiteralBraces: Style/SpaceInsideHashLiteralBraces:
Enabled: false Enabled: false
# Offense count: 1 # Offense count: 28
# Cop supports --auto-correct.
Style/Tab: Style/Tab:
Enabled: false Exclude:
- 'db/migrate/20141031225545_add_require_handicapped_access_to_questions.rb'
- 'db/migrate/20141031225606_add_attending_with_partner_to_questions.rb'
- 'db/migrate/20141031225620_add_staying_at_suggested_hotel_to_questions.rb'
- 'db/migrate/20141031225635_add_attending_social_events_to_questions.rb'
- 'db/migrate/20141118162030_change_lodging_association_to_conference.rb'
- 'spec/features/campaign_spec.rb'
- 'spec/features/event_types_spec.rb'
- 'spec/models/cfp_spec.rb'
# Offense count: 24 # Offense count: 26
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma: Style/TrailingComma:
Enabled: false Exclude:
- 'Guardfile'
- 'app/models/target.rb'
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
- 'spec/controllers/admin/conferences_controller_spec.rb'
- 'spec/models/conference_spec.rb'
# Offense count: 8 # Offense count: 3
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: WordRegex.
Style/WordArray: Style/WordArray:
MinSize: 5 MinSize: 2
Style/AccessorMethodName:
Enabled: false

11
Gemfile
View file

@ -1,7 +1,11 @@
source 'https://rubygems.org' source 'https://rubygems.org'
# as web framework # as web framework
gem 'rails', '~> 4.1' gem 'rails', '~> 4.2', '>= 4.2.4'
# A set of Rails responders to dry up your application
# required for respond_with and the class-level respond_to methods in rails 4.2
gem 'responders', '~> 2.0'
# as the database for Active Record # as the database for Active Record
gem 'mysql2' gem 'mysql2'
@ -124,6 +128,9 @@ gem 'acts_as_list'
# for switch checkboxes # for switch checkboxes
gem 'bootstrap-switch-rails', '~> 3.0.0' gem 'bootstrap-switch-rails', '~> 3.0.0'
# responsible for comparing HTML doms and asserting that DOM elements are present in Rails applications
gem 'rails-dom-testing'
# Use guard and spring for testing in development # Use guard and spring for testing in development
group :development do group :development do
# rspec Guard rules # rspec Guard rules
@ -139,6 +146,8 @@ group :development do
gem 'letter_opener' gem 'letter_opener'
# mina is a blazing fast deployment system # mina is a blazing fast deployment system
gem 'mina' gem 'mina'
# debugging tool for your Ruby on Rails applications
gem 'web-console', '~> 2.0'
end end
# Use rspec and capybara as testing framework # Use rspec and capybara as testing framework

View file

@ -1,434 +1,492 @@
GIT GIT
remote: git://github.com/stefanpenner/country_select.git remote: git://github.com/stefanpenner/country_select.git
revision: 585e9538a01ae9878e92f12a98261a09842ed015 revision: 2023cc8f0c07a6c98a3f1b03cccb065ca26b050d
specs: specs:
country_select (2.1.0) country_select (2.4.0)
countries (~> 0.9, >= 0.9.3) countries (~> 1.1.0)
sort_alphabetical (~> 1.0)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actionmailer (4.1.8) actionmailer (4.2.4)
actionpack (= 4.1.8) actionpack (= 4.2.4)
actionview (= 4.1.8) actionview (= 4.2.4)
activejob (= 4.2.4)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
actionpack (4.1.8) rails-dom-testing (~> 1.0, >= 1.0.5)
actionview (= 4.1.8) actionpack (4.2.4)
activesupport (= 4.1.8) actionview (= 4.2.4)
rack (~> 1.5.2) activesupport (= 4.2.4)
rack (~> 1.6)
rack-test (~> 0.6.2) rack-test (~> 0.6.2)
actionview (4.1.8) rails-dom-testing (~> 1.0, >= 1.0.5)
activesupport (= 4.1.8) rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1) builder (~> 3.1)
erubis (~> 2.7.0) erubis (~> 2.7.0)
active_model_serializers (0.8.1) rails-dom-testing (~> 1.0, >= 1.0.5)
activemodel (>= 3.0) rails-html-sanitizer (~> 1.0, >= 1.0.2)
activemodel (4.1.8) active_model_serializers (0.9.3)
activesupport (= 4.1.8) activemodel (>= 3.2)
activejob (4.2.4)
activesupport (= 4.2.4)
globalid (>= 0.3.0)
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1) builder (~> 3.1)
activerecord (4.1.8) activerecord (4.2.4)
activemodel (= 4.1.8) activemodel (= 4.2.4)
activesupport (= 4.1.8) activesupport (= 4.2.4)
arel (~> 5.0.0) arel (~> 6.0)
activesupport (4.1.8) activesupport (4.2.4)
i18n (~> 0.6, >= 0.6.9) i18n (~> 0.7)
json (~> 1.7, >= 1.7.7) json (~> 1.7, >= 1.7.7)
minitest (~> 5.1) minitest (~> 5.1)
thread_safe (~> 0.1) thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1) tzinfo (~> 1.1)
activeuuid (0.5.0) activeuuid (0.6.1)
activerecord (>= 3.1) activerecord (>= 3.1)
uuidtools uuidtools
acts_as_commentable_with_threading (1.2.0) acts_as_commentable_with_threading (2.0.0)
activerecord (>= 4.0)
activesupport (>= 4.0)
awesome_nested_set (>= 3.0)
acts_as_list (0.7.2)
activerecord (>= 3.0) activerecord (>= 3.0)
activesupport (>= 3.0) addressable (2.3.8)
awesome_nested_set (>= 2.0) ahoy_matey (1.2.1)
acts_as_list (0.4.0)
activerecord (>= 3.0)
addressable (2.3.6)
ahoy_matey (1.0.0)
addressable addressable
browser (>= 0.4.0) browser (>= 0.4.0)
errbase
geocoder geocoder
referer-parser rails
referer-parser (>= 0.3.0)
request_store request_store
user_agent_parser user_agent_parser
uuidtools uuidtools
arel (5.0.1.20140414130214) arel (6.0.3)
ast (2.0.0) ast (2.1.0)
autoprefixer-rails (5.1.9) astrolabe (1.3.1)
parser (~> 2.2)
autoprefixer-rails (6.0.3)
execjs execjs
json json
awesome_nested_set (3.0.0.rc.5) awesome_nested_set (3.0.2)
activerecord (>= 4.0.0, < 5) activerecord (>= 4.0.0, < 5)
axlsx (2.0.1) axlsx (2.0.1)
htmlentities (~> 4.3.1) htmlentities (~> 4.3.1)
nokogiri (>= 1.4.1) nokogiri (>= 1.4.1)
rubyzip (~> 1.0.0) rubyzip (~> 1.0.0)
axlsx_rails (0.2.0) axlsx_rails (0.4.0)
axlsx (>= 2.0.1) axlsx (>= 2.0.1)
rails (>= 3.1) rails (>= 3.1)
bcrypt (3.1.7) bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.4.1) bootstrap-sass (3.3.4.1)
autoprefixer-rails (>= 5.0.0.1) autoprefixer-rails (>= 5.0.0.1)
sass (>= 3.2.19) sass (>= 3.2.19)
bootstrap-switch-rails (3.0.2) bootstrap-switch-rails (3.0.2)
bootstrap3-datetimepicker-rails (3.0.3) bootstrap3-datetimepicker-rails (3.0.3)
momentjs-rails (>= 2.8.1) momentjs-rails (>= 2.8.1)
browser (0.6.0) browser (1.0.1)
builder (3.2.2) builder (3.2.2)
byebug (3.1.2) byebug (6.0.2)
columnize (~> 0.8) cancancan (1.13.1)
debugger-linecache (~> 1.2) capybara (2.5.0)
cancancan (1.8.4)
capybara (2.2.1)
mime-types (>= 1.16) mime-types (>= 1.16)
nokogiri (>= 1.3.3) nokogiri (>= 1.3.3)
rack (>= 1.0.0) rack (>= 1.0.0)
rack-test (>= 0.5.4) rack-test (>= 0.5.4)
xpath (~> 2.0) xpath (~> 2.0)
celluloid (0.15.2) chart-js-rails (0.0.9)
timers (~> 1.1.0)
celluloid-io (0.15.0)
celluloid (>= 0.15.0)
nio4r (>= 0.5.0)
chart-js-rails (0.0.6)
railties (> 3.1) railties (> 3.1)
chronic (0.10.2) chronic (0.10.2)
climate_control (0.0.3) climate_control (0.0.3)
activesupport (>= 3.0) activesupport (>= 3.0)
cliver (0.3.2) cliver (0.3.2)
cocaine (0.5.4) cocaine (0.5.7)
climate_control (>= 0.0.3, < 1.0) climate_control (>= 0.0.3, < 1.0)
cocoon (1.2.6) cocoon (1.2.6)
coderay (1.1.0) coderay (1.1.0)
coffee-rails (4.0.1) coffee-rails (4.1.0)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0) railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0) coffee-script (2.4.1)
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.7.0) coffee-script-source (1.9.1.1)
columnize (0.8.9) countries (1.1.0)
countries (0.9.3)
currencies (~> 0.4.2) currencies (~> 0.4.2)
coveralls (0.7.0) i18n_data (~> 0.7.0)
multi_json (~> 1.3) coveralls (0.8.3)
rest-client json (~> 1.8)
simplecov (>= 0.7) rest-client (>= 1.6.8, < 2)
term-ansicolor simplecov (~> 0.10.0)
thor term-ansicolor (~> 1.3)
thor (~> 0.19.1)
currencies (0.4.2) currencies (0.4.2)
d3_rails (3.4.6) d3_rails (3.5.6)
railties (>= 3.1.0) railties (>= 3.1.0)
daemons (1.1.9) daemons (1.2.3)
database_cleaner (1.3.0) database_cleaner (1.5.1)
debugger-linecache (1.2.0) debug_inspector (0.0.2)
delayed_job (4.0.2) delayed_job (4.1.1)
activesupport (>= 3.0, < 4.2) activesupport (>= 3.0, < 5.0)
delayed_job_active_record (4.0.1) delayed_job_active_record (4.1.0)
activerecord (>= 3.0, < 4.2) activerecord (>= 3.0, < 5)
delayed_job (>= 3.0, < 4.1) delayed_job (>= 3.0, < 5)
devise (3.2.4) devise (3.5.2)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5) railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1) thread_safe (~> 0.1)
warden (~> 1.2.3) warden (~> 1.2.3)
devise_ichain_authenticatable (0.3.1) devise_ichain_authenticatable (0.3.1)
devise (>= 2.2) devise (>= 2.2)
diff-lcs (1.2.5) diff-lcs (1.2.5)
docile (1.1.3) docile (1.1.5)
domain_name (0.5.25)
unf (>= 0.0.5, < 1.0.0)
errbase (0.0.3)
erubis (2.7.0) erubis (2.7.0)
execjs (2.5.2) execjs (2.6.0)
factory_girl (4.4.0) factory_girl (4.5.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
factory_girl_rails (4.4.1) factory_girl_rails (4.5.0)
factory_girl (~> 4.4.0) factory_girl (~> 4.5.0)
railties (>= 3.0.0) railties (>= 3.0.0)
faraday (0.9.0) faraday (0.9.2)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
ffi (1.9.3) ffi (1.9.10)
font-awesome-rails (4.1.0.0) font-awesome-rails (4.4.0.0)
railties (>= 3.2, < 5.0) railties (>= 3.2, < 5.0)
formatador (0.2.4) formatador (0.2.5)
formtastic (2.3.0.rc3) formtastic (2.3.1)
actionpack (>= 3.0) actionpack (>= 3.0)
formtastic-bootstrap (3.0.0) formtastic-bootstrap (3.0.0)
formtastic (>= 2.2) formtastic (>= 2.2)
geocoder (1.2.2) geocoder (1.2.11)
globalid (0.3.6)
activesupport (>= 4.1.0)
gravtastic (3.2.6) gravtastic (3.2.6)
guard (2.6.0) guard (2.13.0)
formatador (>= 0.2.4) formatador (>= 0.2.4)
listen (~> 2.7) listen (>= 2.7, <= 4.0)
lumberjack (~> 1.0) lumberjack (~> 1.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12) pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1) thor (>= 0.18.1)
guard-rspec (4.2.8) guard-rspec (4.2.10)
guard (~> 2.1) guard (~> 2.1)
rspec (>= 2.14, < 4.0) rspec (>= 2.14, < 4.0)
haml (4.0.5) haml (4.0.7)
tilt tilt
haml-rails (0.5.3) haml-rails (0.9.0)
actionpack (>= 4.0.1) actionpack (>= 4.0.1)
activesupport (>= 4.0.1) activesupport (>= 4.0.1)
haml (>= 3.1, < 5.0) haml (>= 4.0.6, < 5.0)
html2haml (>= 1.0.1)
railties (>= 4.0.1) railties (>= 4.0.1)
hashie (2.1.1) hashie (3.4.2)
hike (1.2.3)
hoptoad_notifier (2.4.11) hoptoad_notifier (2.4.11)
activesupport activesupport
builder builder
htmlentities (4.3.1) html2haml (2.0.0)
i18n (0.6.11) erubis (~> 2.7.0)
inversion (0.12.3) haml (~> 4.0.0)
loggability (~> 0.4) nokogiri (~> 1.6.0)
ruby_parser (~> 3.5)
htmlentities (4.3.4)
http-cookie (1.0.2)
domain_name (~> 0.5)
i18n (0.7.0)
i18n_data (0.7.0)
inversion (0.18.0)
loggability (~> 0.11)
jquery-datatables-rails (2.2.3) jquery-datatables-rails (2.2.3)
jquery-rails jquery-rails
sass-rails sass-rails
jquery-rails (3.1.2) jquery-rails (4.0.5)
railties (>= 3.0, < 5.0) rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
json (1.8.1) json (1.8.3)
jwt (1.0.0) jwt (1.5.1)
launchy (2.4.2) launchy (2.4.3)
addressable (~> 2.3) addressable (~> 2.3)
leaflet-rails (0.7.4) leaflet-rails (0.7.4)
letter_opener (1.2.0) letter_opener (1.4.1)
launchy (~> 2.2) launchy (~> 2.2)
listen (2.7.2) listen (3.0.3)
celluloid (>= 0.15.2)
celluloid-io (>= 0.15.0)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)
loggability (0.11.0) loggability (0.11.0)
lumberjack (1.0.5) loofah (2.0.3)
nokogiri (>= 1.5.9)
lumberjack (1.0.9)
mail (2.6.3) mail (2.6.3)
mime-types (>= 1.16, < 3) mime-types (>= 1.16, < 3)
method_source (0.8.2) method_source (0.8.2)
mime-types (2.4.3) mime-types (2.6.2)
mina (0.3.0) mimemagic (0.3.0)
open4 mina (0.3.7)
open4 (~> 1.3.4)
rake rake
mini_portile (0.6.0) mini_portile (0.6.2)
minitest (5.4.3) minitest (5.8.1)
momentjs-rails (2.8.1) momentjs-rails (2.10.6)
railties (>= 3.1) railties (>= 3.1)
monetize (0.3.0) monetize (1.1.0)
money (~> 6.1.0.beta1) money (~> 6.5.0)
money (6.1.1) money (6.5.1)
i18n (~> 0.6.4) i18n (>= 0.6.4, <= 0.7.0)
money-rails (0.12.0) money-rails (1.4.1)
activesupport (>= 3.0) activesupport (>= 3.0)
monetize (~> 0.3.0) monetize (~> 1.1.0)
money (~> 6.1.1) money (~> 6.5.0)
railties (>= 3.0) railties (>= 3.0)
multi_json (1.10.1) multi_json (1.11.2)
multi_xml (0.5.5) multi_xml (0.5.5)
multipart-post (2.0.0) multipart-post (2.0.0)
mysql2 (0.3.16) mysql2 (0.4.1)
nenv (0.2.0)
netrc (0.10.3) netrc (0.10.3)
nio4r (1.1.0) nokogiri (1.6.6.2)
nokogiri (1.6.2.1) mini_portile (~> 0.6.0)
mini_portile (= 0.6.0) notiffany (0.0.8)
oauth2 (0.9.4) nenv (~> 0.1)
shellany (~> 0.0)
oauth2 (1.0.0)
faraday (>= 0.8, < 0.10) faraday (>= 0.8, < 0.10)
jwt (~> 1.0) jwt (~> 1.0)
multi_json (~> 1.3) multi_json (~> 1.3)
multi_xml (~> 0.5) multi_xml (~> 0.5)
rack (~> 1.2) rack (~> 1.2)
omniauth (1.2.1) omniauth (1.2.2)
hashie (>= 1.2, < 3) hashie (>= 1.2, < 4)
rack (~> 1.0) rack (~> 1.0)
omniauth-facebook (1.6.0) omniauth-facebook (2.0.1)
omniauth-oauth2 (~> 1.1) omniauth-oauth2 (~> 1.2)
omniauth-github (1.1.2) omniauth-github (1.1.2)
omniauth (~> 1.0) omniauth (~> 1.0)
omniauth-oauth2 (~> 1.1) omniauth-oauth2 (~> 1.1)
omniauth-google-oauth2 (0.2.4) omniauth-google-oauth2 (0.2.8)
omniauth (~> 1.0) addressable (~> 2.3)
omniauth-oauth2 (~> 1.1) jwt (~> 1.0)
omniauth-oauth2 (1.1.2)
faraday (>= 0.8, < 0.10)
multi_json (~> 1.3) multi_json (~> 1.3)
oauth2 (~> 0.9.3) omniauth (>= 1.1.1)
omniauth-oauth2 (>= 1.1.1)
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2) omniauth (~> 1.2)
omniauth-openid (1.0.1) omniauth-openid (1.0.1)
omniauth (~> 1.0) omniauth (~> 1.0)
rack-openid (~> 1.3.1) rack-openid (~> 1.3.1)
open4 (1.3.3) open4 (1.3.4)
orm_adapter (0.5.0) orm_adapter (0.5.0)
paper_trail (3.0.1) paper_trail (4.0.0)
activerecord (>= 3.0, < 5.0) activerecord (>= 3.0, < 6.0)
activesupport (>= 3.0, < 5.0) activesupport (>= 3.0, < 6.0)
paperclip (4.1.1) request_store (~> 1.1)
activemodel (>= 3.0.0) paperclip (4.3.1)
activesupport (>= 3.0.0) activemodel (>= 3.2.0)
cocaine (~> 0.5.3) activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types mime-types
parser (2.2.0.pre.3) mimemagic (= 0.3.0)
parser (2.2.3.0)
ast (>= 1.1, < 3.0) ast (>= 1.1, < 3.0)
slop (~> 3.4, >= 3.4.5) pdf-core (0.6.0)
pdf-core (0.2.5) phantomjs (1.9.8.0)
phantomjs (1.9.7.1)
piwik_analytics (1.0.2) piwik_analytics (1.0.2)
actionpack actionpack
activesupport activesupport
rails (>= 3.0.0) rails (>= 3.0.0)
poltergeist (1.5.1) poltergeist (1.7.0)
capybara (~> 2.1) capybara (~> 2.1)
cliver (~> 0.3.1) cliver (~> 0.3.1)
multi_json (~> 1.0) multi_json (~> 1.0)
websocket-driver (>= 0.2.0) websocket-driver (>= 0.2.0)
powerpack (0.0.9) powerpack (0.1.1)
prawn (1.0.0) prawn (2.0.2)
pdf-core (~> 0.2.2) pdf-core (~> 0.6.0)
ttfunk (~> 1.1.1) ttfunk (~> 1.4.0)
prawn_rails (0.0.11) prawn_rails (0.0.11)
prawn (>= 0.11.1) prawn (>= 0.11.1)
railties (>= 3.0.0) railties (>= 3.0.0)
protected_attributes (1.0.7) protected_attributes (1.1.3)
activemodel (>= 4.0.1, < 5.0) activemodel (>= 4.0.1, < 5.0)
pry (0.9.12.6) pry (0.10.3)
coderay (~> 1.0) coderay (~> 1.1.0)
method_source (~> 0.8) method_source (~> 0.8.1)
slop (~> 3.4) slop (~> 3.4)
quiet_assets (1.0.2) quiet_assets (1.1.0)
railties (>= 3.1, < 5.0) railties (>= 3.1, < 5.0)
rack (1.5.2) rack (1.6.4)
rack-openid (1.3.1) rack-openid (1.3.1)
rack (>= 1.1.0) rack (>= 1.1.0)
ruby-openid (>= 2.1.8) ruby-openid (>= 2.1.8)
rack-test (0.6.2) rack-test (0.6.3)
rack (>= 1.0) rack (>= 1.0)
rails (4.1.8) rails (4.2.4)
actionmailer (= 4.1.8) actionmailer (= 4.2.4)
actionpack (= 4.1.8) actionpack (= 4.2.4)
actionview (= 4.1.8) actionview (= 4.2.4)
activemodel (= 4.1.8) activejob (= 4.2.4)
activerecord (= 4.1.8) activemodel (= 4.2.4)
activesupport (= 4.1.8) activerecord (= 4.2.4)
activesupport (= 4.2.4)
bundler (>= 1.3.0, < 2.0) bundler (>= 1.3.0, < 2.0)
railties (= 4.1.8) railties (= 4.2.4)
sprockets-rails (~> 2.0) sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
rails-observers (0.1.2) rails-observers (0.1.2)
activemodel (~> 4.0) activemodel (~> 4.0)
railties (4.1.8) railties (4.2.4)
actionpack (= 4.1.8) actionpack (= 4.2.4)
activesupport (= 4.1.8) activesupport (= 4.2.4)
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
rainbow (2.0.0) rainbow (2.0.0)
rake (10.3.2) rake (10.4.2)
rb-fsevent (0.9.4) rb-fsevent (0.9.6)
rb-inotify (0.9.4) rb-inotify (0.9.5)
ffi (>= 0.5.0) ffi (>= 0.5.0)
rdoc (4.1.1) rdoc (4.2.0)
json (~> 1.4)
rdoc-generator-fivefish (0.1.0) rdoc-generator-fivefish (0.1.0)
inversion (~> 0.12) inversion (~> 0.12)
loggability (~> 0.6) loggability (~> 0.6)
rdoc (~> 4.0) rdoc (~> 4.0)
yajl-ruby (~> 1.1) yajl-ruby (~> 1.1)
redcarpet (3.2.3) redcarpet (3.3.3)
referer-parser (0.2.1) referer-parser (0.3.0)
request_store (1.0.6) request_store (1.2.0)
rest-client (1.7.3) responders (2.1.0)
railties (>= 4.2.0, < 5)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0) mime-types (>= 1.16, < 3.0)
netrc (~> 0.7) netrc (~> 0.7)
rolify (3.4.0) rolify (4.1.1)
rspec (3.0.0) rspec (3.3.0)
rspec-core (~> 3.0.0) rspec-core (~> 3.3.0)
rspec-expectations (~> 3.0.0) rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.0.0) rspec-mocks (~> 3.3.0)
rspec-activemodel-mocks (1.0.1) rspec-activemodel-mocks (1.0.2)
activemodel (>= 3.0) activemodel (>= 3.0)
activesupport (>= 3.0) activesupport (>= 3.0)
rspec-mocks (>= 2.99, < 4.0) rspec-mocks (>= 2.99, < 4.0)
rspec-core (3.0.2) rspec-core (3.3.2)
rspec-support (~> 3.0.0) rspec-support (~> 3.3.0)
rspec-expectations (3.0.2) rspec-expectations (3.3.1)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.0.0) rspec-support (~> 3.3.0)
rspec-mocks (3.0.2) rspec-mocks (3.3.2)
rspec-support (~> 3.0.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-rails (3.0.0) rspec-support (~> 3.3.0)
actionpack (>= 3.0) rspec-rails (3.3.3)
activesupport (>= 3.0) actionpack (>= 3.0, < 4.3)
railties (>= 3.0) activesupport (>= 3.0, < 4.3)
rspec-core (~> 3.0.0) railties (>= 3.0, < 4.3)
rspec-expectations (~> 3.0.0) rspec-core (~> 3.3.0)
rspec-mocks (~> 3.0.0) rspec-expectations (~> 3.3.0)
rspec-support (~> 3.0.0) rspec-mocks (~> 3.3.0)
rspec-support (3.0.2) rspec-support (~> 3.3.0)
rubocop (0.24.1) rspec-support (3.3.0)
json (>= 1.7.7, < 2) rubocop (0.34.2)
parser (>= 2.2.0.pre.3, < 3.0) astrolabe (~> 1.3)
powerpack (~> 0.0.6) parser (>= 2.2.2.5, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0) rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.4) ruby-progressbar (~> 1.4)
ruby-openid (2.5.0) ruby-openid (2.7.0)
ruby-progressbar (1.5.1) ruby-progressbar (1.7.5)
ruby_parser (3.7.1)
sexp_processor (~> 4.1)
rubyzip (1.0.0) rubyzip (1.0.0)
sass (3.2.19) sass (3.4.19)
sass-rails (4.0.4) sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0) railties (>= 4.0.0, < 5.0)
sass (~> 3.2.2) sass (~> 3.1)
sprockets (~> 2.8, < 2.12) sprockets (>= 2.8, < 4.0)
sprockets-rails (~> 2.0) sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sexp_processor (4.6.0)
shellany (0.0.1)
shoulda (3.5.0) shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1) shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0) shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.2.1) shoulda-context (1.2.1)
shoulda-matchers (2.6.1) shoulda-matchers (2.8.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
simplecov (0.8.2) simplecov (0.10.0)
docile (~> 1.1.0) docile (~> 1.1.0)
multi_json json (~> 1.8)
simplecov-html (~> 0.8.0) simplecov-html (~> 0.10.0)
simplecov-html (0.8.0) simplecov-html (0.10.0)
slop (3.6.0) slop (3.6.0)
spring (1.1.2) sort_alphabetical (1.0.2)
spring-commands-rspec (1.0.2) unicode_utils (>= 1.2.2)
spring (1.4.0)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1) spring (>= 0.9.1)
sprockets (2.11.3) sprockets (3.4.0)
hike (~> 1.2) rack (> 1, < 3)
multi_json (~> 1.0) sprockets-rails (2.3.3)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.2.0)
actionpack (>= 3.0) actionpack (>= 3.0)
activesupport (>= 3.0) activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0) sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.9) sqlite3 (1.3.11)
term-ansicolor (1.3.0) term-ansicolor (1.3.2)
tins (~> 1.0) tins (~> 1.0)
thor (0.19.1) thor (0.19.1)
thread_safe (0.3.4) thread_safe (0.3.5)
tilt (1.4.1) tilt (2.0.1)
timecop (0.7.1) timecop (0.8.0)
timers (1.1.0) tins (1.6.0)
tins (1.1.0) transitions (0.2.1)
transitions (0.1.12) ttfunk (1.4.0)
ttfunk (1.1.1) turbolinks (2.5.3)
turbolinks (2.2.2)
coffee-rails coffee-rails
tzinfo (1.2.2) tzinfo (1.2.2)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (2.5.0) uglifier (2.7.2)
execjs (>= 0.3.0) execjs (>= 0.3.0)
json (>= 1.8.0) json (>= 1.8.0)
user_agent_parser (2.1.5) unf (0.1.4)
uuidtools (2.1.4) unf_ext
unf_ext (0.0.7.1)
unicode_utils (1.4.0)
user_agent_parser (2.3.0)
uuidtools (2.1.5)
warden (1.2.3) warden (1.2.3)
rack (>= 1.0) rack (>= 1.0)
websocket-driver (0.3.3) web-console (2.2.1)
whenever (0.9.2) activemodel (>= 4.0)
activesupport (>= 2.3.4) binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
websocket-driver (0.6.2)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
whenever (0.9.4)
chronic (>= 0.6.3) chronic (>= 0.6.3)
xpath (2.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
yajl-ruby (1.2.0) yajl-ruby (1.2.1)
PLATFORMS PLATFORMS
ruby ruby
@ -487,10 +545,12 @@ DEPENDENCIES
prawn_rails prawn_rails
protected_attributes protected_attributes
quiet_assets quiet_assets
rails (~> 4.1) rails (~> 4.2, >= 4.2.4)
rails-dom-testing
rails-observers rails-observers
rdoc-generator-fivefish rdoc-generator-fivefish
redcarpet redcarpet
responders (~> 2.0)
rolify rolify
rspec-activemodel-mocks rspec-activemodel-mocks
rspec-rails rspec-rails
@ -503,4 +563,8 @@ DEPENDENCIES
transitions transitions
turbolinks turbolinks
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
web-console (~> 2.0)
whenever whenever
BUNDLED WITH
1.10.6

View file

@ -22,7 +22,7 @@ module Admin
# Grouping all comments by conference, and by event. It returns {:conference => {:event => [{comment_2}, {comment_1 }]}} # Grouping all comments by conference, and by event. It returns {:conference => {:event => [{comment_2}, {comment_1 }]}}
def grouped_comments(remarks) def grouped_comments(remarks)
remarks.group_by{ |comment| comment.commentable.conference }.map {|conference, comments| [conference, comments.group_by{|comment| comment.commentable}]}.to_h remarks.group_by{ |comment| comment.commentable.conference }.map {|conference, comments| [conference, comments.group_by(&:commentable)]}.to_h
end end
end end
end end

View file

@ -73,12 +73,9 @@ module Admin
# Delete question and its answers # Delete question and its answers
begin begin
Question.transaction do Question.transaction do
@question.destroy @question.destroy
@question.answers.each do |a| @question.answers.each(&:destroy)
a.destroy flash[:notice] = "Deleted question: #{@question.title} and its answers: #{@question.answers.map(&:title).join ','}"
end
flash[:notice] = "Deleted question: #{@question.title} and its answers: #{@question.answers.map {|a| a.title}.join ','}"
end end
rescue ActiveRecord::RecordInvalid rescue ActiveRecord::RecordInvalid
flash[:error] = 'Could not delete question.' flash[:error] = 'Could not delete question.'

View file

@ -184,7 +184,7 @@ module ApplicationHelper
end end
def event_types(conference) def event_types(conference)
all = conference.event_types.map { |et | et.title.pluralize } all = conference.event_types.map { |et| et.title.pluralize }
first = all[0...-1] first = all[0...-1]
last = all[-1] last = all[-1]
ets = '' ets = ''
@ -198,7 +198,7 @@ module ApplicationHelper
end end
def tracks(conference) def tracks(conference)
all = conference.tracks.map {|t| t.name} all = conference.tracks.map(&:name)
first = all[0...-1] first = all[0...-1]
last = all[-1] last = all[-1]
ts = '' ts = ''

View file

@ -50,12 +50,8 @@ class Ability
can :show, Commercial, commercialable_type: 'Event', commercialable_id: Event.where(state: 'confirmed').pluck(:id) can :show, Commercial, commercialable_type: 'Event', commercialable_id: Event.where(state: 'confirmed').pluck(:id)
can :show, User can :show, User
unless CONFIG['authentication']['ichain']['enabled'] unless CONFIG['authentication']['ichain']['enabled']
can [:show, :create], Registration do |registration| can [:show, :create], Registration, &:new_record?
registration.new_record? can [:show, :create], Event, &:new_record?
end
can [:show, :create], Event do |event|
event.new_record?
end
end end
end end

View file

@ -49,6 +49,7 @@ class CallForPaper < ActiveRecord::Base
&& !self.conference.email_settings.call_for_papers_dates_updates_subject.blank?\ && !self.conference.email_settings.call_for_papers_dates_updates_subject.blank?\
&& !self.conference.email_settings.call_for_papers_dates_updates_template.blank? && !self.conference.email_settings.call_for_papers_dates_updates_template.blank?
end end
## ##
# Checks whether cfp dates is updated # Checks whether cfp dates is updated
# #

View file

@ -1,6 +1,6 @@
## ##
# This class represents a conference # This class represents a conference
# rubocop:disable Style/ClassLength # rubocop:disable Metrics/ClassLength
class Conference < ActiveRecord::Base class Conference < ActiveRecord::Base
require 'uri' require 'uri'
serialize :events_per_week, Hash serialize :events_per_week, Hash

View file

@ -74,7 +74,7 @@ class Datatable
def sort_order def sort_order
colnum = 0 colnum = 0
sort_by = [] sort_by = []
while true loop do
break if !sorted?(colnum) break if !sorted?(colnum)
sort_by << "#{sort_column(colnum)} #{sort_direction(colnum)}" sort_by << "#{sort_column(colnum)} #{sort_direction(colnum)}"
colnum += 1 colnum += 1

View file

@ -134,7 +134,7 @@ class User < ActiveRecord::Base
result = {} result = {}
Role::ACTIONABLES.each do |role| Role::ACTIONABLES.each do |role|
resources = self.roles.where(name: role.parameterize.underscore).map{ |myrole| Conference.find(myrole.resource_id).short_title }.join ', ' resources = self.roles.where(name: role.parameterize.underscore).map{ |myrole| Conference.find(myrole.resource_id).short_title }.join ', '
result[role.parameterize.underscore] = "(#{ resources })" unless resources.blank? result[role.parameterize.underscore] = "(#{resources})" unless resources.blank?
end end
result result
end end

3
bin/bundle Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env ruby
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
load Gem.bin_path('bundler', 'bundle')

View file

@ -1,6 +1,4 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
APP_PATH = File.expand_path('../../config/application', __FILE__) APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__) require_relative '../config/boot'
require 'rails/commands' require 'rails/commands'

4
bin/rake Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env ruby
require_relative '../config/boot'
require 'rake'
Rake.application.run

29
bin/setup Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env ruby
require 'pathname'
# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
Dir.chdir APP_ROOT do
# This script is a starting point to setup your application.
# Add necessary setup steps to this file:
puts '== Installing dependencies =='
system 'gem install bundler --conservative'
system 'bundle check || bundle install'
# puts "\n== Copying sample files =="
# unless File.exist?("config/database.yml")
# system "cp config/database.yml.sample config/database.yml"
# end
puts "\n== Preparing database =="
system 'bin/rake db:setup'
puts "\n== Removing old logs and tempfiles =="
system 'rm -f log/*'
system 'rm -rf tmp/cache'
puts "\n== Restarting application server =="
system 'touch tmp/restart.txt'
end

View file

@ -37,6 +37,9 @@ module Osem
# Configure the default encoding used in templates for Ruby 1.9. # Configure the default encoding used in templates for Ruby 1.9.
config.encoding = 'utf-8' config.encoding = 'utf-8'
# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true
# Configure sensitive parameters which will be filtered from the log file. # Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password] config.filter_parameters += [:password]

View file

@ -1,4 +1,3 @@
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) require 'bundler/setup' # Set up gems listed in the Gemfile.

View file

@ -35,8 +35,9 @@ Osem::Application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true # config.force_ssl = true
# See everything in the log (default is :info) # See everything in the log. Set to `:info` to match the current default, or set to `:debug` to opt-into
# config.log_level = :debug # the future default.
config.log_level = :info
# Prepend all log lines with the following tags # Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ] # config.log_tags = [ :subdomain, :uuid ]

View file

@ -35,6 +35,9 @@ Osem::Application.configure do
# Print deprecation notices to the stderr # Print deprecation notices to the stderr
config.active_support.deprecation = :stderr config.active_support.deprecation = :stderr
# Randomize/sort the order test cases are executed.
config.active_support.test_order = :sorted # or `:random`
# Set the detault url for action mailer # Set the detault url for action mailer
config.action_mailer.default_url_options = { host: 'localhost:3000' } config.action_mailer.default_url_options = { host: 'localhost:3000' }

View file

@ -0,0 +1,11 @@
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )

View file

@ -0,0 +1,3 @@
# Be sure to restart your server when you modify this file.
Rails.application.config.action_dispatch.cookies_serializer = :marshal

View file

@ -0,0 +1,4 @@
# Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password]

View file

@ -1,14 +1,14 @@
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
#
# This file contains settings for ActionController::ParamsWrapper which # This file contains settings for ActionController::ParamsWrapper which
# is enabled by default. # is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json] wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
end end
# Disable root element in JSON by default. # To enable root element in JSON for ActiveRecord objects.
ActiveSupport.on_load(:active_record) do # ActiveSupport.on_load(:active_record) do
self.include_root_in_json = false # self.include_root_in_json = true
end # end

View file

@ -17,9 +17,7 @@ class MigrateRolesForCancancan < ActiveRecord::Migration
end end
# Delete old roles # Delete old roles
Role.first(old_roles).each do |role| Role.first(old_roles).each(&:destroy)
role.destroy
end
end end
def down def down

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe Admin::CommentsController, type: :controller do describe Admin::CommentsController, type: :controller do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let(:conference) { create(:conference) } let(:conference) { create(:conference) }
let!(:first_user) { create(:user) } let!(:first_user) { create(:user) }

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe Admin::ConferenceController do describe Admin::ConferenceController do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let(:conference) { create(:conference, end_date: Date.new(2014, 05, 26) + 15) } let(:conference) { create(:conference, end_date: Date.new(2014, 05, 26) + 15) }
let!(:first_user) { create(:user) } let!(:first_user) { create(:user) }
@ -12,11 +11,8 @@ describe Admin::ConferenceController do
let(:participant) { create(:user) } let(:participant) { create(:user) }
shared_examples 'access as organizer' do shared_examples 'access as organizer' do
describe 'PATCH #update' do describe 'PATCH #update' do
context 'valid attributes' do context 'valid attributes' do
it 'locates the requested conference' do it 'locates the requested conference' do
patch :update, id: conference.short_title, conference: attributes_for(:conference, title: 'Example Con') patch :update, id: conference.short_title, conference: attributes_for(:conference, title: 'Example Con')
expect(assigns(:conference)).to eq(conference) expect(assigns(:conference)).to eq(conference)
@ -181,9 +177,7 @@ describe Admin::ConferenceController do
context 'no conferences' do context 'no conferences' do
it 'redirect to new conference' do it 'redirect to new conference' do
Conference.all.each do |c| Conference.all.each(&:destroy)
c.destroy
end
sign_in create(:admin) sign_in create(:admin)
get :index get :index
expect(response).to redirect_to new_admin_conference_path expect(response).to redirect_to new_admin_conference_path
@ -289,7 +283,6 @@ describe Admin::ConferenceController do
describe 'DELETE #remove_user' do describe 'DELETE #remove_user' do
before(:each) do before(:each) do
end end
it 'sets selection variable' do it 'sets selection variable' do
@ -329,13 +322,11 @@ describe Admin::ConferenceController do
end end
describe 'organizer access' do describe 'organizer access' do
before do before do
sign_in(organizer) sign_in(organizer)
end end
it_behaves_like 'access as organizer' it_behaves_like 'access as organizer'
end end
shared_examples 'access as participant or guest' do |path, message| shared_examples 'access as participant or guest' do |path, message|
@ -399,12 +390,9 @@ describe Admin::ConferenceController do
end end
it_behaves_like 'access as participant or guest', :root_path, 'You are not authorized to access this area!' it_behaves_like 'access as participant or guest', :root_path, 'You are not authorized to access this area!'
end end
describe 'guest access' do describe 'guest access' do
it_behaves_like 'access as participant or guest', :new_user_session_path it_behaves_like 'access as participant or guest', :new_user_session_path
end end
end end

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe Admin::RegistrationPeriodsController do describe Admin::RegistrationPeriodsController do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let(:conference) { create(:conference) } let(:conference) { create(:conference) }
let!(:first_user) { create(:user) } let!(:first_user) { create(:user) }
@ -12,15 +11,12 @@ describe Admin::RegistrationPeriodsController do
let(:participant) { create(:user) } let(:participant) { create(:user) }
shared_examples 'access as administration or organizer' do shared_examples 'access as administration or organizer' do
before do before do
conference.registration_period = create(:registration_period) conference.registration_period = create(:registration_period)
end end
describe 'PATCH #update' do describe 'PATCH #update' do
context 'valid attributes' do context 'valid attributes' do
it 'locates the requested registration period object' do it 'locates the requested registration period object' do
patch :update, conference_id: conference.short_title, conference: attributes_for(:registration_period) patch :update, conference_id: conference.short_title, conference: attributes_for(:registration_period)
expect(assigns(:registration_period)).to eq(conference.registration_period) expect(assigns(:registration_period)).to eq(conference.registration_period)
@ -153,12 +149,10 @@ describe Admin::RegistrationPeriodsController do
end end
describe 'organizer access' do describe 'organizer access' do
before(:each) do before(:each) do
sign_in(organizer) sign_in(organizer)
end end
it_behaves_like 'access as administration or organizer' it_behaves_like 'access as administration or organizer'
end end
end end

View file

@ -30,5 +30,4 @@ describe ConferenceController do
expect(response.response_code).to eq(200) expect(response.response_code).to eq(200)
end end
end end
end end

View file

@ -5,5 +5,4 @@ FactoryGirl.define do
color '#ffffff' color '#ffffff'
conference conference
end end
end end

View file

@ -8,5 +8,4 @@ FactoryGirl.define do
maximum_abstract_length 500 maximum_abstract_length 500
conference conference
end end
end end

View file

@ -50,6 +50,5 @@ FactoryGirl.define do
event.comment_threads << build(:comment, commentable: event) event.comment_threads << build(:comment, commentable: event)
end end
end end
end end
end end

View file

@ -1,6 +1,5 @@
FactoryGirl.define do FactoryGirl.define do
factory :role do factory :role do
factory :organizer_role do factory :organizer_role do
name 'organizer' name 'organizer'
end end

View file

@ -5,5 +5,4 @@ FactoryGirl.define do
date { Date.today } date { Date.today }
conference conference
end end
end end

View file

@ -3,5 +3,4 @@ FactoryGirl.define do
user user
conference conference
end end
end end

View file

@ -5,5 +5,4 @@ FactoryGirl.define do
color '#ffffff' color '#ffffff'
conference conference
end end
end end

View file

@ -4,5 +4,4 @@ FactoryGirl.define do
description 'Lorem Ipsum dolsum' description 'Lorem Ipsum dolsum'
conference conference
end end
end end

View file

@ -8,5 +8,4 @@ FactoryGirl.define do
vposition.vdays << build(:vday, conference: vposition.conference) vposition.vdays << build(:vday, conference: vposition.conference)
end end
end end
end end

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
feature Campaign do feature Campaign do
let!(:conference) { create(:conference, short_title: 'osc14') } let!(:conference) { create(:conference, short_title: 'osc14') }
let!(:organizer_role) { create(:organizer_role, resource: conference) } let!(:organizer_role) { create(:organizer_role, resource: conference) }
let!(:organizer) { create(:user, role_ids: [organizer_role.id]) } let!(:organizer) { create(:user, role_ids: [organizer_role.id]) }

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
feature Conference do feature Conference do
let!(:conference) { create(:conference) } let!(:conference) { create(:conference) }
let!(:organizer_role) { create(:organizer_role, resource: conference) } let!(:organizer_role) { create(:organizer_role, resource: conference) }
let!(:organizer) { create(:user, role_ids: [organizer_role.id]) } let!(:organizer) { create(:user, role_ids: [organizer_role.id]) }

View file

@ -1,13 +1,11 @@
require 'spec_helper' require 'spec_helper'
feature Contact do feature Contact do
let!(:conference) { create(:conference) } let!(:conference) { create(:conference) }
let!(:organizer_role) { create(:organizer_role, resource: conference) } let!(:organizer_role) { create(:organizer_role, resource: conference) }
let!(:organizer) { create(:user, email: 'admin@example.com', role_ids: [organizer_role.id]) } let!(:organizer) { create(:user, email: 'admin@example.com', role_ids: [organizer_role.id]) }
shared_examples 'update a contact' do shared_examples 'update a contact' do
scenario 'sucessfully', feature: true, js: true do scenario 'sucessfully', feature: true, js: true do
contact = conference.contact contact = conference.contact
expected_count = Contact.count expected_count = Contact.count
@ -42,5 +40,4 @@ feature Contact do
describe 'organizer' do describe 'organizer' do
it_behaves_like 'update a contact', :organizer it_behaves_like 'update a contact', :organizer
end end
end end

View file

@ -7,7 +7,6 @@ feature DifficultyLevel do
shared_examples 'difficulty levels' do shared_examples 'difficulty levels' do
scenario 'adds difficulty level', feature: true, js: true do scenario 'adds difficulty level', feature: true, js: true do
sign_in organizer sign_in organizer
visit admin_conference_difficulty_levels_path( visit admin_conference_difficulty_levels_path(
conference_id: conference.short_title) conference_id: conference.short_title)
@ -31,7 +30,6 @@ feature DifficultyLevel do
end end
scenario 'updates difficulty level', feature: true, js: true do scenario 'updates difficulty level', feature: true, js: true do
conference.difficulty_levels << create(:difficulty_level) conference.difficulty_levels << create(:difficulty_level)
sign_in organizer sign_in organizer
visit admin_conference_difficulty_levels_path( visit admin_conference_difficulty_levels_path(
@ -51,7 +49,6 @@ feature DifficultyLevel do
expect(page.has_content?('Hard Events')).to be true expect(page.has_content?('Hard Events')).to be true
end end
end end
end end
describe 'organizer' do describe 'organizer' do

View file

@ -8,7 +8,6 @@ feature EmailSettings do
shared_examples 'email settings' do shared_examples 'email settings' do
scenario 'updates email settings', scenario 'updates email settings',
feature: true, js: true do feature: true, js: true do
expected_count = EmailSettings.count expected_count = EmailSettings.count
sign_in organizer sign_in organizer
@ -88,7 +87,6 @@ feature EmailSettings do
value).to eq('Updated conference venue template') value).to eq('Updated conference venue template')
expect(EmailSettings.count).to eq(expected_count) expect(EmailSettings.count).to eq(expected_count)
end end
end end

View file

@ -7,7 +7,6 @@ feature EventType do
shared_examples 'event types' do shared_examples 'event types' do
scenario 'adds and updates event type', feature: true, js: true do scenario 'adds and updates event type', feature: true, js: true do
sign_in organizer sign_in organizer
visit admin_conference_event_types_path( visit admin_conference_event_types_path(
conference_id: conference.short_title) conference_id: conference.short_title)

View file

@ -2,7 +2,6 @@ require 'spec_helper'
feature Openid do feature Openid do
shared_examples 'sign in with openid' do shared_examples 'sign in with openid' do
scenario 'has option to log in with Google account' do scenario 'has option to log in with Google account' do
visit '/accounts/sign_in' visit '/accounts/sign_in'
expect(page.has_content?('or sign in using')).to be true expect(page.has_content?('or sign in using')).to be true

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
feature RegistrationPeriod do feature RegistrationPeriod do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let!(:conference) { create(:conference) } let!(:conference) { create(:conference) }
let!(:organizer_role) { create(:organizer_role, resource: conference) } let!(:organizer_role) { create(:organizer_role, resource: conference) }

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
feature Splashpage do feature Splashpage do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let!(:conference) { create(:conference) } let!(:conference) { create(:conference) }
let!(:organizer_role) { create(:organizer_role, resource: conference) } let!(:organizer_role) { create(:organizer_role, resource: conference) }

View file

@ -15,7 +15,6 @@ feature Registration do
end end
context 'who is not registered' do context 'who is not registered' do
scenario 'purchases a ticket', feature: true, js: true do scenario 'purchases a ticket', feature: true, js: true do
visit root_path visit root_path
click_link 'Register' click_link 'Register'

View file

@ -7,7 +7,6 @@ feature Track do
shared_examples 'tracks' do shared_examples 'tracks' do
scenario 'adds a track', feature: true, js: true do scenario 'adds a track', feature: true, js: true do
sign_in organizer sign_in organizer
visit admin_conference_tracks_path(conference_id: conference.short_title) visit admin_conference_tracks_path(conference_id: conference.short_title)

View file

@ -1,9 +1,7 @@
require 'spec_helper' require 'spec_helper'
feature User do feature User do
shared_examples 'admin ability' do shared_examples 'admin ability' do
end end
describe 'admin' do describe 'admin' do

View file

@ -7,7 +7,6 @@ feature Conference do
shared_examples 'venue' do shared_examples 'venue' do
scenario 'adds and updates venue' do scenario 'adds and updates venue' do
sign_in organizer sign_in organizer
# create the venue # create the venue
@ -53,5 +52,4 @@ feature Conference do
describe 'organizer' do describe 'organizer' do
it_behaves_like 'venue' it_behaves_like 'venue'
end end
end end

View file

@ -1,8 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe Commercial do describe Commercial do
it { should validate_presence_of(:commercial_id) } it { should validate_presence_of(:commercial_id) }
it { should validate_presence_of(:commercial_type) } it { should validate_presence_of(:commercial_type) }
end end

View file

@ -3,11 +3,9 @@
require 'spec_helper' require 'spec_helper'
describe Conference do describe Conference do
let(:subject) { create(:conference, end_date: '2014-06-30') } let(:subject) { create(:conference, end_date: '2014-06-30') }
describe '#write_event_distribution_to_db' do describe '#write_event_distribution_to_db' do
it 'updates pending conferences' do it 'updates pending conferences' do
create(:conference, create(:conference,
start_date: Date.today - 2.weeks, start_date: Date.today - 2.weeks,
@ -298,7 +296,6 @@ describe Conference do
expect(subject.get_top_submitter.values).to eq([3, 1]) expect(subject.get_top_submitter.values).to eq([3, 1])
expect(subject.get_top_submitter.keys).to eq([e2.submitter, e1.submitter]) expect(subject.get_top_submitter.keys).to eq([e2.submitter, e1.submitter])
end end
end end
describe '#get_targets' do describe '#get_targets' do
@ -391,7 +388,6 @@ describe Conference do
describe '#new_program_minutes' do describe '#new_program_minutes' do
it 'calculates correct values with events' do it 'calculates correct values with events' do
create(:event, conference: subject, event_type: @long, created_at: Time.now - 3.days) create(:event, conference: subject, event_type: @long, created_at: Time.now - 3.days)
create(:event, conference: subject, event_type: @long) create(:event, conference: subject, event_type: @long)
create(:event, conference: subject, event_type: @short, created_at: Time.now - 3.days) create(:event, conference: subject, event_type: @short, created_at: Time.now - 3.days)
@ -418,7 +414,6 @@ describe Conference do
end end
describe '#difficulty_levels_distribution' do describe '#difficulty_levels_distribution' do
it 'calculates correct for different difficulty levels' do it 'calculates correct for different difficulty levels' do
create(:event, conference: subject, difficulty_level: @easy) create(:event, conference: subject, difficulty_level: @easy)
create(:event, conference: subject, difficulty_level: @easy) create(:event, conference: subject, difficulty_level: @easy)
@ -700,7 +695,6 @@ describe Conference do
end end
describe '#get_active_conferences' do describe '#get_active_conferences' do
it 'returns pending conferences' do it 'returns pending conferences' do
a = create(:conference, a = create(:conference,
short_title: 'a', start_date: Time.now + 14.days, short_title: 'a', start_date: Time.now + 14.days,
@ -779,7 +773,6 @@ describe Conference do
end end
describe '#event_distribution' do describe '#event_distribution' do
before(:each) do before(:each) do
@conference = create( @conference = create(
:conference, :conference,
@ -947,7 +940,6 @@ describe Conference do
end end
describe '#get_status' do describe '#get_status' do
before(:each) do before(:each) do
# Setup positive result hash # Setup positive result hash
@result = {} @result = {}
@ -961,7 +953,7 @@ describe Conference do
@result['splashpage'] = true @result['splashpage'] = true
# Setup negative result hash # Setup negative result hash
@result_false = Hash.new @result_false = {}
@result.each { |key, value| @result_false[key] = !value } @result.each { |key, value| @result_false[key] = !value }
@result['short_title'] = @result_false['short_title'] = subject.short_title @result['short_title'] = @result_false['short_title'] = subject.short_title
@ -1123,7 +1115,6 @@ describe Conference do
end end
describe '#registration_weeks' do describe '#registration_weeks' do
it 'calculates new year' do it 'calculates new year' do
subject.registration_period = create(:registration_period, subject.registration_period = create(:registration_period,
start_date: Date.new(2013, 12, 31), start_date: Date.new(2013, 12, 31),
@ -1154,7 +1145,6 @@ describe Conference do
end end
describe '#cfp_weeks' do describe '#cfp_weeks' do
it 'calculates new year' do it 'calculates new year' do
cfp = create(:call_for_paper) cfp = create(:call_for_paper)
cfp.start_date = Date.new(2013, 12, 30) cfp.start_date = Date.new(2013, 12, 30)
@ -1189,7 +1179,6 @@ describe Conference do
end end
describe '#get_submissions_per_week' do describe '#get_submissions_per_week' do
it 'does calculate correct if cfp start date is altered' do it 'does calculate correct if cfp start date is altered' do
cfp = create(:call_for_paper) cfp = create(:call_for_paper)
cfp.start_date = Date.new(2014, 05, 26) cfp.start_date = Date.new(2014, 05, 26)
@ -1278,7 +1267,6 @@ describe Conference do
end end
describe '#get_registrations_per_week' do describe '#get_registrations_per_week' do
it 'pads with zeros if there are no registrations' do it 'pads with zeros if there are no registrations' do
subject.registration_period = create(:registration_period, subject.registration_period = create(:registration_period,
start_date: Date.new(2014, 05, 26), start_date: Date.new(2014, 05, 26),
@ -1384,9 +1372,7 @@ describe Conference do
end end
describe '#pending?' do describe '#pending?' do
context 'is pending' do context 'is pending' do
it '#pending? is true' do it '#pending? is true' do
subject.start_date = Date.today + 10 subject.start_date = Date.today + 10
expect(subject.pending?).to be true expect(subject.pending?).to be true
@ -1394,7 +1380,6 @@ describe Conference do
end end
context 'is not pending' do context 'is not pending' do
it '#pending? is false' do it '#pending? is false' do
subject.start_date = Date.today - 10 subject.start_date = Date.today - 10
expect(subject.pending?).to be false expect(subject.pending?).to be false
@ -1403,16 +1388,13 @@ describe Conference do
end end
describe '#registration_open?' do describe '#registration_open?' do
context 'closed registration' do context 'closed registration' do
it '#registration_open? is false' do it '#registration_open? is false' do
expect(subject.registration_open?).to be false expect(subject.registration_open?).to be false
end end
end end
context 'open registration' do context 'open registration' do
before do before do
enrollment = create(:registration_period, enrollment = create(:registration_period,
start_date: Date.today - 1, start_date: Date.today - 1,
@ -1427,17 +1409,13 @@ describe Conference do
end end
describe '#cfp_open?' do describe '#cfp_open?' do
context 'closed cfp' do context 'closed cfp' do
it '#cfp_open? is false' do it '#cfp_open? is false' do
expect(subject.cfp_open?).to be false expect(subject.cfp_open?).to be false
end end
end end
context 'open cfp' do context 'open cfp' do
before do before do
subject.call_for_paper = create(:call_for_paper) subject.call_for_paper = create(:call_for_paper)
end end
@ -1449,7 +1427,6 @@ describe Conference do
end end
describe '#user_registered?' do describe '#user_registered?' do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let!(:conference) { create(:conference) } let!(:conference) { create(:conference) }
let!(:organizer_role) { create(:organizer_role, resource: conference) } let!(:organizer_role) { create(:organizer_role, resource: conference) }
@ -1483,7 +1460,6 @@ describe Conference do
end end
describe 'validations' do describe 'validations' do
it 'has a valid factory' do it 'has a valid factory' do
expect(build(:conference)).to be_valid expect(build(:conference)).to be_valid
end end
@ -1517,7 +1493,6 @@ describe Conference do
end end
describe 'before create callbacks' do describe 'before create callbacks' do
it 'has an email setting after creation' do it 'has an email setting after creation' do
expect(subject.email_settings).not_to be_nil expect(subject.email_settings).not_to be_nil
end end

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe Event do describe Event do
describe 'abstract_word_count' do describe 'abstract_word_count' do
it 'counts words in abstract' do it 'counts words in abstract' do
event = build(:event) event = build(:event)

View file

@ -2,7 +2,6 @@ require 'spec_helper'
describe SponsorshipLevel do describe SponsorshipLevel do
describe 'validations' do describe 'validations' do
it 'has a valid factory' do it 'has a valid factory' do
expect(build(:sponsorship_level)).to be_valid expect(build(:sponsorship_level)).to be_valid
end end

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe Target do describe Target do
describe 'validations' do describe 'validations' do
it 'has a valid factory' do it 'has a valid factory' do
expect(build(:target)).to be_valid expect(build(:target)).to be_valid

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe TicketPurchase do describe TicketPurchase do
describe 'validations' do describe 'validations' do
it 'has a valid factory' do it 'has a valid factory' do
expect(build(:ticket_purchase)).to be_valid expect(build(:ticket_purchase)).to be_valid
@ -34,7 +33,6 @@ describe TicketPurchase do
it 'is valid with a quantity greater than zero' do it 'is valid with a quantity greater than zero' do
should allow_value(1).for(:quantity) should allow_value(1).for(:quantity)
end end
end end
describe 'self#purchase' do describe 'self#purchase' do

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe User do describe User do
# It is necessary to use bang version of let to build roles before user # It is necessary to use bang version of let to build roles before user
let!(:user_admin) { create(:user) } let!(:user_admin) { create(:user) }
let!(:conference) { create(:conference) } let!(:conference) { create(:conference) }

View file

@ -92,7 +92,6 @@ RSpec.configure do |config|
# Types of tests (controller, feature, model) will # Types of tests (controller, feature, model) will
# be inferred from subfolder name # be inferred from subfolder name
config.infer_spec_type_from_file_location! config.infer_spec_type_from_file_location!
end end
OmniAuth.config.test_mode = true OmniAuth.config.test_mode = true

View file

@ -1,7 +1,5 @@
RSpec.configure do |config| RSpec.configure do |config|
config.before(:suite) do config.before(:suite) do
FactoryGirl.lint FactoryGirl.lint
end end
end end

View file

@ -5,7 +5,7 @@ module Flash
return 'none' return 'none'
end end
if results.count > 1 if results.count > 1
texts = results.map { |r| r.text } texts = results.map(&:text)
fail "One flash expected, but we had #{texts.inspect}" fail "One flash expected, but we had #{texts.inspect}"
end end
results.first.text results.first.text

View file

@ -3,7 +3,7 @@
RSpec.configure do |config| RSpec.configure do |config|
config.after(:each, type: :feature) do config.after(:each, type: :feature) do
ename = RSpec.current_example.full_description ename = RSpec.current_example.full_description
ename = ename.gsub ' ', '_' ename = ename.tr ' ', '_'
ename.downcase! ename.downcase!
ename = ename + '.html' ename = ename + '.html'
if RSpec.current_example.exception.present? if RSpec.current_example.exception.present?

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/call_for_papers/show' do describe 'admin/call_for_papers/show' do
it 'renders call for papers details' do it 'renders call for papers details' do
assign :conference, create(:conference) assign :conference, create(:conference)
assign :call_for_paper, create(:call_for_paper) assign :call_for_paper, create(:call_for_paper)
@ -11,5 +10,4 @@ describe 'admin/call_for_papers/show' do
expect(rendered).to include(1.day.ago.strftime('%A, %B %-d. %Y')) expect(rendered).to include(1.day.ago.strftime('%A, %B %-d. %Y'))
expect(rendered).to include(6.days.from_now.strftime('%A, %B %-d. %Y')) expect(rendered).to include(6.days.from_now.strftime('%A, %B %-d. %Y'))
end end
end end

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/conference/edit' do describe 'admin/conference/edit' do
it 'renders conference details which are editable' do it 'renders conference details which are editable' do
@conference = create(:conference, title: 'openSUSE') @conference = create(:conference, title: 'openSUSE')
assign :conference, @conference assign :conference, @conference

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/conference/show' do describe 'admin/conference/show' do
it 'renders conference dashboard' do it 'renders conference dashboard' do
conference = create(:conference, title: 'openSUSE') conference = create(:conference, title: 'openSUSE')
assign :conference, conference assign :conference, conference

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/difficulty_levels/index' do describe 'admin/difficulty_levels/index' do
it 'renders difficulty levels' do it 'renders difficulty levels' do
@difficulty_level = create(:difficulty_level) @difficulty_level = create(:difficulty_level)
assign :conference, @difficulty_level.conference assign :conference, @difficulty_level.conference

View file

@ -1,6 +1,5 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/emails/index' do describe 'admin/emails/index' do
it 'renders email templates' do it 'renders email templates' do
@conference = create(:conference) @conference = create(:conference)
assign :conference, @conference assign :conference, @conference

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/event_types/index' do describe 'admin/event_types/index' do
it 'renders event types' do it 'renders event types' do
@event_type = create(:event_type) @event_type = create(:event_type)
assign :conference, @event_type.conference assign :conference, @event_type.conference

View file

@ -1,6 +1,5 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/rooms/index' do describe 'admin/rooms/index' do
it 'renders rooms list' do it 'renders rooms list' do
@room = create(:room) @room = create(:room)
assign :conference, @room.conference assign :conference, @room.conference
@ -8,5 +7,4 @@ describe 'admin/rooms/index' do
expect(rendered).to include('Example Room') expect(rendered).to include('Example Room')
expect(rendered).to include('4') expect(rendered).to include('4')
end end
end end

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/tracks/index' do describe 'admin/tracks/index' do
it 'renders tracks' do it 'renders tracks' do
@track = create(:track) @track = create(:track)
assign :conference, @track.conference assign :conference, @track.conference

View file

@ -1,7 +1,6 @@
require 'spec_helper' require 'spec_helper'
describe 'admin/volunteers/index' do describe 'admin/volunteers/index' do
it 'renders volunteers days as vdays' do it 'renders volunteers days as vdays' do
@vday = create(:vday) @vday = create(:vday)
@vday.conference.update_attributes(use_volunteers: true, use_vdays: true) @vday.conference.update_attributes(use_volunteers: true, use_vdays: true)