diff --git a/Gemfile b/Gemfile index 75a98e3..ab9c5c0 100644 --- a/Gemfile +++ b/Gemfile @@ -25,6 +25,7 @@ gem 'pg' gem 'devise' gem 'activeadmin', github: 'activeadmin' gem 'rollbar', '~> 2.5.0' +gem 'gcm' # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' diff --git a/Gemfile.lock b/Gemfile.lock index 5f8e9ac..75858cc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -94,11 +94,17 @@ GEM formtastic (3.1.3) actionpack (>= 3.2.13) formtastic_i18n (0.4.1) + gcm (0.1.0) + httparty + json globalid (0.3.6) activesupport (>= 4.1.0) has_scope (0.6.0) actionpack (>= 3.2, < 5) activesupport (>= 3.2, < 5) + httparty (0.13.5) + json (~> 1.8) + multi_xml (>= 0.5.2) i18n (0.7.0) inherited_resources (1.6.0) actionpack (>= 3.2, < 5) @@ -127,6 +133,7 @@ GEM mini_portile (0.6.2) minitest (5.8.1) multi_json (1.11.2) + multi_xml (0.5.5) nokogiri (1.6.6.2) mini_portile (~> 0.6.0) orm_adapter (0.5.0) @@ -246,6 +253,7 @@ DEPENDENCIES coffee-rails (~> 4.1.0) devise factory_girl_rails + gcm jbuilder (~> 2.0) jquery-rails pg diff --git a/config/application.rb b/config/application.rb index a060909..684c134 100644 --- a/config/application.rb +++ b/config/application.rb @@ -35,4 +35,5 @@ module OnemdmServer config.generators.helper = false end end -STATUS_CLASSES ={active: :ok,missing: :warning,dead: :error} +STATUS_CLASSES = {active: :ok,missing: :warning,dead: :error} +GCM_KEY = "AIzaSyCZ3lVhV2CbIcZ22f1YI_MvPx3C7sMm_2g"