diff --git a/.gitignore b/.gitignore index 42845241564..0608b0ea6c5 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ vendor/bundle # IDEs .idea .idea/** + +config/terms.md +coverage* diff --git a/Gemfile b/Gemfile index 62c0f7f802f..8de1eb0ece5 100644 --- a/Gemfile +++ b/Gemfile @@ -104,3 +104,5 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'coveralls', require: false diff --git a/Gemfile.lock b/Gemfile.lock index c34bcfc8240..9b8cdf27657 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -62,8 +62,17 @@ GEM execjs coffee-script-source (1.12.2) concurrent-ruby (1.0.5) + coveralls (0.7.1) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor crass (1.0.4) diff-lcs (1.3) + docile (1.3.1) + domain_name (0.5.20180417) + unf (>= 0.0.5, < 1.0.0) dotenv (2.5.0) dotenv-rails (2.5.0) dotenv (= 2.5.0) @@ -83,6 +92,8 @@ GEM globalid (0.4.1) activesupport (>= 4.2.0) hashie (3.5.7) + http-cookie (1.0.3) + domain_name (~> 0.5) http_accept_language (2.1.1) i18n (1.0.1) concurrent-ruby (~> 1.0) @@ -94,6 +105,7 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + json (2.1.0) jwt (1.5.6) libv8 (3.16.14.19) listen (3.0.8) @@ -105,6 +117,9 @@ GEM mail (2.7.0) mini_mime (>= 0.1.1) method_source (0.9.0) + mime-types (3.2.2) + mime-types-data (~> 3.2015) + mime-types-data (3.2018.0812) mini_mime (1.0.0) mini_portile2 (2.3.0) minitest (5.11.3) @@ -112,6 +127,7 @@ GEM multi_xml (0.6.0) multipart-post (2.0.0) net-ldap (0.16.1) + netrc (0.11.0) nio4r (2.3.1) nokogiri (1.8.3) mini_portile2 (~> 2.3.0) @@ -192,6 +208,10 @@ GEM redcarpet (3.4.0) redis (3.3.5) ref (2.0.0) + rest-client (2.0.2) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) rspec-core (3.7.1) rspec-support (~> 3.7.0) rspec-expectations (3.7.0) @@ -232,6 +252,11 @@ GEM tilt (>= 1.1, < 3) shoulda-matchers (3.1.2) activesupport (>= 4.0.0) + simplecov (0.16.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) spring (2.0.2) activesupport (>= 4.2) spring-watcher-listen (2.0.1) @@ -247,12 +272,15 @@ GEM sqlite3 (1.3.13) tabler-rubygem (0.1.2) autoprefixer-rails (>= 6.0.3) + term-ansicolor (1.6.0) + tins (~> 1.0) therubyracer (0.12.3) libv8 (~> 3.16.14.15) ref thor (0.20.0) thread_safe (0.3.6) tilt (2.0.8) + tins (1.16.3) turbolinks (5.1.1) turbolinks-source (~> 5.1) turbolinks-source (5.1.0) @@ -260,6 +288,9 @@ GEM thread_safe (~> 0.1) uglifier (4.1.12) execjs (>= 0.3.0, < 3) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) unicode-display_width (1.4.0) web-console (3.6.2) actionview (>= 5.0) @@ -281,6 +312,7 @@ DEPENDENCIES bootstrap (~> 4.1.1) byebug coffee-rails (~> 4.2) + coveralls dotenv-rails factory_bot_rails faker @@ -314,4 +346,4 @@ DEPENDENCIES web-console (>= 3.3.0) BUNDLED WITH - 1.16.2 + 1.16.3 diff --git a/README.md b/README.md index b777cf6d69c..64c69db44ec 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Greenlight ![Travis CI](https://travis-ci.org/bigbluebutton/greenlight.svg?branch=master) +![Coverage Status](https://coveralls.io/repos/github/jfederico/greenlight/badge.svg?branch=coveralls) ![Docker Pulls](https://img.shields.io/docker/pulls/bigbluebutton/greenlight.svg) > Greenlight is currently on version 2.0. If you are still running Greenlight 1.0 we suggest [upgrading to 2.0](http://docs.bigbluebutton.org/install/greenlight-v2.html#upgrading-from-greenlight-10). diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dfd77d417da..2f2e3d00409 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,6 +16,9 @@ # You should have received a copy of the GNU Lesser General Public License along # with BigBlueButton; if not, see . +require 'coveralls' +Coveralls.wear! + require 'faker' require 'factory_bot_rails'