diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 71e94bd6b..1197b826c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ Thanks for contributing to Growstuff! When you create a pull request, please include the following: * Mention the issue it solves (eg. #123) -* Your code should follow our [Coding style guide](http://wiki.growstuff.org/index.php/Coding_style_guide) +* Your code should follow our [Coding style guide](https://github.com/Growstuff/growstuff/wiki/Development-process-overview#coding-practices) * Make sure you have automated tests for your work, where possible. * Add your name (and that of your pair partner, if any) to [CONTRIBUTORS.md](CONTRIBUTORS.md). diff --git a/Gemfile b/Gemfile index a91ccba45..6033dbb24 100644 --- a/Gemfile +++ b/Gemfile @@ -71,6 +71,11 @@ gem 'omniauth-facebook' # client for Elasticsearch. Elasticsearch is a flexible # and powerful, distributed, real-time search and analytics engine. # An example of the use in the project is fuzzy crop search. + +# Project does not use semver, so we want to be in sync with the version of +# elasticsearch we use +# See https://github.com/elastic/elasticsearch-ruby#compatibility +gem "elasticsearch-api", "~> 2.0.0" gem "elasticsearch-model" gem "elasticsearch-rails" diff --git a/Gemfile.lock b/Gemfile.lock index 425491475..ae037027d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -52,7 +52,7 @@ GEM public_suffix (~> 2.0, >= 2.0.2) arel (6.0.3) ast (2.3.0) - autoprefixer-rails (6.4.0.2) + autoprefixer-rails (6.5.3.1) execjs bcrypt (3.1.11) better_errors (2.1.1) @@ -95,8 +95,8 @@ GEM cliver (0.3.2) cocaine (0.5.8) climate_control (>= 0.0.3, < 1.0) - codeclimate-test-reporter (0.6.0) - simplecov (>= 0.7.1, < 1.0.0) + codeclimate-test-reporter (1.0.3) + simplecov codemirror-rails (5.16.0) railties (>= 3.0, < 6.0) coderay (1.1.1) @@ -106,7 +106,7 @@ GEM coffee-script (2.4.1) coffee-script-source execjs - coffee-script-source (1.10.0) + coffee-script-source (1.11.1) comfortable_mexican_sofa (1.12.9) active_link_to (>= 1.0.0) bootstrap-sass (>= 3.2.0) @@ -216,7 +216,7 @@ GEM haml (>= 4.0.6, < 5.0) html2haml (>= 1.0.1) railties (>= 4.0.1) - hashie (3.4.4) + hashie (3.4.6) heroku-api (0.4.2) excon (~> 0.45) multi_json (~> 1.8) @@ -278,9 +278,9 @@ GEM mime-types-data (3.2016.0521) mimemagic (0.3.2) mini_portile2 (2.1.0) - minitest (5.9.1) + minitest (5.10.1) multi_json (1.11.3) - multi_xml (0.5.5) + multi_xml (0.6.0) multipart-post (2.0.0) nenv (0.3.0) newrelic_rpm (3.17.1.326) @@ -299,7 +299,7 @@ GEM omniauth (1.3.1) hashie (>= 1.2, < 4) rack (>= 1.0, < 3) - omniauth-facebook (3.0.0) + omniauth-facebook (4.0.0) omniauth-oauth2 (~> 1.2) omniauth-flickr (0.0.19) multi_json (~> 1.11.0) @@ -376,7 +376,7 @@ GEM thor (>= 0.18.1, < 2.0) rainbow (2.1.0) raindrops (0.17.0) - rake (11.3.0) + rake (12.0.0) rb-fsevent (0.9.8) rb-inotify (0.9.7) ffi (>= 0.5.0) @@ -461,7 +461,7 @@ GEM tins (~> 1.0) terminal-table (1.7.3) unicode-display_width (~> 1.1.1) - thor (0.19.3) + thor (0.19.4) thread (0.2.2) thread_safe (0.3.5) tilt (2.0.5) @@ -486,7 +486,7 @@ GEM websocket-driver (0.6.4) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.2) - will_paginate (3.1.0) + will_paginate (3.1.5) xpath (2.0.0) nokogiri (~> 1.3) @@ -518,6 +518,7 @@ DEPENDENCIES dalli database_cleaner (~> 1.5.0) devise (>= 4.0.0) + elasticsearch-api (~> 2.0.0) elasticsearch-model elasticsearch-rails factory_girl_rails diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7b314e901..ee8556548 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,8 +14,8 @@ # users commonly want. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -require "codeclimate-test-reporter" -CodeClimate::TestReporter.start +require 'simplecov' +SimpleCov.start RSpec.configure do |config| # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest