g5_authenticatable 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fafd0add7d0b2d50524234cedb46b4db03da7526
4
- data.tar.gz: 501fce66ab149473948e5a87a1c29a013880299e
2
+ SHA256:
3
+ metadata.gz: 88fd8bc7d1075d2b74f63cf58fe57f0280b2e96b04f8627c63af207e1cdb9a8c
4
+ data.tar.gz: a9b0ce4501c3dcbe101aa5430dc8209afe1ed60fc919a2f893cabe39deff9286
5
5
  SHA512:
6
- metadata.gz: 9fd11e97ca4e4551abc0036e994b76e43c533fa65564277e5977f37bbc078aa7a132e23e5f580ae0a73456f827202401761dfdba80371a218d9cb497aafe94b8
7
- data.tar.gz: 7e42afc27a541a8bf1ad88154fa3bf84b1a14caee4c1e1512f688eedf6db868428daa88b71e6f605782ca9f7a8550aca67d614d366cca713f872eeeaf9d2bc57
6
+ metadata.gz: c8af1bdf2cf861593ef2176c2b11d8bba5fe14b297dd1b01af91ba8645f4fb65b2a80f8796428a438a710db3dbe792c54871ec04ec784ecc9d181184aaefc949
7
+ data.tar.gz: 8e8ba6bceb7b22c1d20c8e91295ba4c3b8a599cd6b14f520f5cca7ff0a18c52bcbecad8a989a010f39883a4c68c397c7b93a08a4559d9ba50210b5f41c4def51
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.4
1
+ 2.5.1
data/.travis.yml CHANGED
@@ -1,19 +1,21 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.7
4
- - 2.3.4
5
- - 2.4.1
3
+ - 2.2.10
4
+ - 2.3.7
5
+ - 2.4.4
6
+ - 2.5.1
6
7
  gemfile:
7
8
  - gemfiles/rails_4.1.gemfile
8
9
  - gemfiles/rails_4.2.gemfile
9
10
  - gemfiles/rails_5.0.gemfile
10
11
  - gemfiles/rails_5.1.gemfile
12
+ - gemfiles/rails_5.2.gemfile
11
13
  matrix:
12
14
  exclude:
13
- - rvm: 2.4.1
15
+ - rvm: 2.4.4
16
+ gemfile: gemfiles/rails_4.1.gemfile
17
+ - rvm: 2.5.1
14
18
  gemfile: gemfiles/rails_4.1.gemfile
15
- allow_failures:
16
- - rvm: 2.4.1
17
19
  dist: trusty
18
20
  sudo: false
19
21
  cache:
data/Appraisals CHANGED
@@ -1,17 +1,26 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  appraise 'rails-4.1' do
4
+ gem 'pg', '< 1'
4
5
  gem 'rails', '~> 4.1.16'
5
6
  end
6
7
 
7
8
  appraise 'rails-4.2' do
9
+ gem 'pg', '< 1'
8
10
  gem 'rails', '~> 4.2.8'
9
11
  end
10
12
 
11
13
  appraise 'rails-5.0' do
14
+ gem 'pg', '< 1'
12
15
  gem 'rails', '~> 5.0.3'
13
16
  end
14
17
 
15
18
  appraise 'rails-5.1' do
19
+ gem 'pg', '< 1'
16
20
  gem 'rails', '~> 5.1.1'
17
21
  end
22
+
23
+ appraise 'rails-5.2' do
24
+ gem 'pg', '~> 1.0'
25
+ gem 'rails', '~> 5.2.0'
26
+ end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.1.1 (2018-06-21)
2
+
3
+ * Support rails 5.2 green field apps, including fixes for setting the default
4
+ secret key and removing an unnecessary jquery dependency
5
+ ([#55][https://github.com/G5/g5_authenticatable/pull/55])
6
+
1
7
  ## v1.1.0 (2017-12-08)
2
8
 
3
9
  * Added support for [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails)
data/Gemfile CHANGED
@@ -10,9 +10,8 @@ gemspec
10
10
  # Gems used by the dummy application
11
11
  gem 'active_model_serializers', '<= 0.10.0' # For compatibility with ruby 2.0.0
12
12
  gem 'grape'
13
- gem 'jquery-rails'
14
13
  gem 'pg'
15
- gem 'rails', '~> 5.1.1'
14
+ gem 'rails', '~> 5.2.0'
16
15
 
17
16
  group :test, :development do
18
17
  gem 'appraisal'
data/README.md CHANGED
@@ -18,7 +18,7 @@ library in isolation.
18
18
 
19
19
  ## Current Version
20
20
 
21
- 1.1.0
21
+ 1.1.1
22
22
 
23
23
  ## Requirements
24
24
 
@@ -26,8 +26,10 @@ library in isolation.
26
26
 
27
27
  ## Installation
28
28
 
29
- 1. Set the environment variable `DEVISE_SECRET_KEY` to the value
30
- generated by:
29
+ 1. By default, devise will use rails' `SECRET_KEY_BASE` environment variable to
30
+ sign sessions. If for some reason, you wish to use a different secret key
31
+ for devise and rails, you can override the devise secret key by setting the
32
+ environment variable `DEVISE_SECRET_KEY` to the value generated by:
31
33
 
32
34
  ```console
33
35
  rake secret
@@ -6,7 +6,8 @@ Devise.setup do |config|
6
6
  # The secret key used by Devise. Devise uses this key to generate
7
7
  # random tokens. Changing this key will render invalid all existing
8
8
  # confirmation, reset password and unlock tokens in the database.
9
- config.secret_key = ENV['DEVISE_SECRET_KEY']
9
+ config.secret_key = ENV['DEVISE_SECRET_KEY'].presence ||
10
+ ENV['SECRET_KEY_BASE'].presence
10
11
 
11
12
  # ==> Mailer Configuration
12
13
  # Configure the e-mail address which will be shown in Devise::Mailer,
@@ -4,8 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "active_model_serializers", "<= 0.10.0"
6
6
  gem "grape"
7
- gem "jquery-rails"
8
- gem "pg"
7
+ gem "pg", "< 1"
9
8
  gem "rails", "~> 4.1.16"
10
9
 
11
10
  group :test, :development do
@@ -4,8 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "active_model_serializers", "<= 0.10.0"
6
6
  gem "grape"
7
- gem "jquery-rails"
8
- gem "pg"
7
+ gem "pg", "< 1"
9
8
  gem "rails", "~> 4.2.8"
10
9
 
11
10
  group :test, :development do
@@ -4,8 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "active_model_serializers", "<= 0.10.0"
6
6
  gem "grape"
7
- gem "jquery-rails"
8
- gem "pg"
7
+ gem "pg", "< 1"
9
8
  gem "rails", "~> 5.0.3"
10
9
 
11
10
  group :test, :development do
@@ -4,8 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "active_model_serializers", "<= 0.10.0"
6
6
  gem "grape"
7
- gem "jquery-rails"
8
- gem "pg"
7
+ gem "pg", "< 1"
9
8
  gem "rails", "~> 5.1.1"
10
9
 
11
10
  group :test, :development do
@@ -0,0 +1,27 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "active_model_serializers", "<= 0.10.0"
6
+ gem "grape"
7
+ gem "pg", "~> 1.0"
8
+ gem "rails", "~> 5.2.0"
9
+
10
+ group :test, :development do
11
+ gem "appraisal"
12
+ gem "dotenv-rails"
13
+ gem "pry-byebug"
14
+ gem "rspec-rails", "~> 3.6"
15
+ gem "web-console", "~> 2.0"
16
+ end
17
+
18
+ group :test do
19
+ gem "capybara"
20
+ gem "codeclimate-test-reporter"
21
+ gem "generator_spec"
22
+ gem "rspec-activemodel-mocks"
23
+ gem "shoulda-matchers", "~> 3.1"
24
+ gem "simplecov", require: false
25
+ end
26
+
27
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module G5Authenticatable
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
@@ -10,6 +10,4 @@
10
10
  // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
11
  // GO AFTER THE REQUIRES BELOW.
12
12
  //
13
- //= require jquery
14
- //= require jquery_ujs
15
13
  //= require_tree .
@@ -0,0 +1,45 @@
1
+ # This migration comes from g5_updatable (originally 20170428000000)
2
+ class AddHourSets < ActiveRecord::Migration[4.2]
3
+ def change
4
+ unless table_exists? :g5_updatable_hour_sets
5
+ create_table :g5_updatable_hour_sets do |t|
6
+ t.belongs_to :g5_updatable_location
7
+ t.integer "location_id"
8
+ t.string "name"
9
+ t.string "hour_type"
10
+ t.boolean "is_active"
11
+ t.string "additional_hours_info"
12
+ t.timestamps
13
+ end
14
+ add_index :g5_updatable_hour_sets, :g5_updatable_location_id, name: 'index_g5_updatable_hour_sets_location_id'
15
+ end
16
+
17
+ unless table_exists? :g5_updatable_week_days
18
+ create_table :g5_updatable_week_days do |t|
19
+ t.belongs_to :g5_updatable_location
20
+ t.integer "hour_set_id"
21
+ t.integer "day_of_week"
22
+ t.string "hour_description"
23
+ t.time "open"
24
+ t.time "close"
25
+ t.boolean "twenty_four_hours", default: false
26
+ t.timestamps
27
+ end
28
+ add_index :g5_updatable_week_days, :g5_updatable_location_id, name: 'index_g5_updatable_business_days_location_id'
29
+ end
30
+
31
+ unless table_exists? :g5_updatable_special_dates
32
+ create_table :g5_updatable_special_dates do |t|
33
+ t.belongs_to :g5_updatable_location
34
+ t.integer "hour_set_id"
35
+ t.date "date"
36
+ t.string "hour_description"
37
+ t.time "open"
38
+ t.time "close"
39
+ t.boolean "is_regular_hours", default: false
40
+ t.timestamps
41
+ end
42
+ add_index :g5_updatable_special_dates, :g5_updatable_location_id, name: 'index_g5_updatable_special_dates_location_id'
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,7 @@
1
+ # This migration comes from g5_updatable (originally 20170720000000)
2
+ class AddDisplayNameToLocations < ActiveRecord::Migration[4.2]
3
+ # indexes were not made to enforce uniqueness
4
+ def change
5
+ add_column :g5_updatable_locations, :display_name, :string
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ # This migration comes from g5_updatable (originally 20170804184206)
2
+ class AddDetailsToPointsOfInterest < ActiveRecord::Migration[4.2]
3
+ def change
4
+ add_column :g5_updatable_points_of_interest, :phone_number, :string unless column_exists? :g5_updatable_points_of_interest, :phone_number
5
+ add_column :g5_updatable_points_of_interest, :website, :string unless column_exists? :g5_updatable_points_of_interest, :website
6
+ add_column :g5_updatable_points_of_interest, :google_map_url, :string unless column_exists? :g5_updatable_points_of_interest, :google_map_url
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ # This migration comes from g5_updatable (originally 20180213184549)
2
+ class ChangeFieldsForWeekDaysAndSpecialDates < ActiveRecord::Migration[4.2]
3
+ def change
4
+ remove_column :g5_updatable_week_days, :hour_description, :string if column_exists? :g5_updatable_week_days, :hour_description
5
+ remove_column :g5_updatable_week_days, :twenty_four_hours, :boolean if column_exists? :g5_updatable_week_days, :twenty_four_hours
6
+ remove_column :g5_updatable_special_dates, :hour_description, :string if column_exists? :g5_updatable_special_dates, :hour_description
7
+ add_column :g5_updatable_week_days, :status, :string, default: 'none' unless column_exists? :g5_updatable_week_days, :status
8
+ add_column :g5_updatable_special_dates, :status, :string, default: 'none' unless column_exists? :g5_updatable_special_dates, :status
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ # This migration comes from g5_updatable (originally 20180220203057)
2
+ class AddIndexesToWeekDays < ActiveRecord::Migration[4.2]
3
+ def change
4
+ add_index :g5_updatable_week_days, :day_of_week unless index_exists? :g5_updatable_week_days, :day_of_week
5
+ add_index :g5_updatable_week_days, :hour_set_id unless index_exists? :g5_updatable_week_days, :hour_set_id
6
+ add_index :g5_updatable_special_dates, :hour_set_id unless index_exists? :g5_updatable_special_dates, :hour_set_id
7
+ end
8
+ end
@@ -10,9 +10,10 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20170613201436) do
13
+ ActiveRecord::Schema.define(version: 2018_06_21_044009) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
+ enable_extension "hstore"
16
17
  enable_extension "plpgsql"
17
18
 
18
19
  create_table "g5_authenticatable_roles", id: :serial, force: :cascade do |t|
@@ -64,6 +65,18 @@ ActiveRecord::Schema.define(version: 20170613201436) do
64
65
  t.index ["urn"], name: "index_g5_updatable_clients_on_urn", unique: true
65
66
  end
66
67
 
68
+ create_table "g5_updatable_hour_sets", id: :serial, force: :cascade do |t|
69
+ t.integer "g5_updatable_location_id"
70
+ t.integer "location_id"
71
+ t.string "name"
72
+ t.string "hour_type"
73
+ t.boolean "is_active"
74
+ t.string "additional_hours_info"
75
+ t.datetime "created_at"
76
+ t.datetime "updated_at"
77
+ t.index ["g5_updatable_location_id"], name: "index_g5_updatable_hour_sets_location_id"
78
+ end
79
+
67
80
  create_table "g5_updatable_hub_amenities", id: :serial, force: :cascade do |t|
68
81
  t.integer "external_id"
69
82
  t.string "name"
@@ -94,6 +107,7 @@ ActiveRecord::Schema.define(version: 20170613201436) do
94
107
  t.float "longitude"
95
108
  t.string "flat_amenity_names"
96
109
  t.string "client_urn"
110
+ t.string "display_name"
97
111
  t.index ["client_urn"], name: "index_g5_updatable_locations_on_client_urn"
98
112
  t.index ["latitude"], name: "index_g5_updatable_locations_on_latitude"
99
113
  t.index ["longitude"], name: "index_g5_updatable_locations_on_longitude"
@@ -115,9 +129,40 @@ ActiveRecord::Schema.define(version: 20170613201436) do
115
129
  t.float "longitude"
116
130
  t.datetime "created_at"
117
131
  t.datetime "updated_at"
132
+ t.string "phone_number"
133
+ t.string "website"
134
+ t.string "google_map_url"
118
135
  t.index ["g5_updatable_location_id"], name: "index_g5_updatable_poi_location_id"
119
136
  end
120
137
 
138
+ create_table "g5_updatable_special_dates", id: :serial, force: :cascade do |t|
139
+ t.integer "g5_updatable_location_id"
140
+ t.integer "hour_set_id"
141
+ t.date "date"
142
+ t.time "open"
143
+ t.time "close"
144
+ t.boolean "is_regular_hours", default: false
145
+ t.datetime "created_at"
146
+ t.datetime "updated_at"
147
+ t.string "status", default: "none"
148
+ t.index ["g5_updatable_location_id"], name: "index_g5_updatable_special_dates_location_id"
149
+ t.index ["hour_set_id"], name: "index_g5_updatable_special_dates_on_hour_set_id"
150
+ end
151
+
152
+ create_table "g5_updatable_week_days", id: :serial, force: :cascade do |t|
153
+ t.integer "g5_updatable_location_id"
154
+ t.integer "hour_set_id"
155
+ t.integer "day_of_week"
156
+ t.time "open"
157
+ t.time "close"
158
+ t.datetime "created_at"
159
+ t.datetime "updated_at"
160
+ t.string "status", default: "none"
161
+ t.index ["day_of_week"], name: "index_g5_updatable_week_days_on_day_of_week"
162
+ t.index ["g5_updatable_location_id"], name: "index_g5_updatable_business_days_location_id"
163
+ t.index ["hour_set_id"], name: "index_g5_updatable_week_days_on_hour_set_id"
164
+ end
165
+
121
166
  create_table "posts", id: :serial, force: :cascade do |t|
122
167
  t.integer "author_id"
123
168
  t.string "content"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - maeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-08 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise_g5_authenticatable
@@ -127,9 +127,6 @@ files:
127
127
  - LICENSE
128
128
  - README.md
129
129
  - Rakefile
130
- - app/assets/images/g5_authenticatable/.gitkeep
131
- - app/assets/javascripts/g5_authenticatable/application.js
132
- - app/assets/stylesheets/g5_authenticatable/application.css
133
130
  - app/controllers/concerns/g5_authenticatable/authorization.rb
134
131
  - app/controllers/g5_authenticatable/application_controller.rb
135
132
  - app/controllers/g5_authenticatable/error_controller.rb
@@ -155,6 +152,7 @@ files:
155
152
  - gemfiles/rails_4.2.gemfile
156
153
  - gemfiles/rails_5.0.gemfile
157
154
  - gemfiles/rails_5.1.gemfile
155
+ - gemfiles/rails_5.2.gemfile
158
156
  - lib/g5_authenticatable.rb
159
157
  - lib/g5_authenticatable/engine.rb
160
158
  - lib/g5_authenticatable/rspec.rb
@@ -245,6 +243,11 @@ files:
245
243
  - spec/dummy/db/migrate/20170613201434_add_client_urn_to_locations.g5_updatable.rb
246
244
  - spec/dummy/db/migrate/20170613201435_add_points_of_interest.g5_updatable.rb
247
245
  - spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
246
+ - spec/dummy/db/migrate/20180621044005_add_hour_sets.g5_updatable.rb
247
+ - spec/dummy/db/migrate/20180621044006_add_display_name_to_locations.g5_updatable.rb
248
+ - spec/dummy/db/migrate/20180621044007_add_details_to_points_of_interest.g5_updatable.rb
249
+ - spec/dummy/db/migrate/20180621044008_change_fields_for_week_days_and_special_dates.g5_updatable.rb
250
+ - spec/dummy/db/migrate/20180621044009_add_indexes_to_week_days.g5_updatable.rb
248
251
  - spec/dummy/db/schema.rb
249
252
  - spec/dummy/lib/assets/.gitkeep
250
253
  - spec/dummy/log/.gitkeep
@@ -305,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
308
  version: '0'
306
309
  requirements: []
307
310
  rubyforge_project:
308
- rubygems_version: 2.5.2
311
+ rubygems_version: 2.7.6
309
312
  signing_key:
310
313
  specification_version: 4
311
314
  summary: An authentication engine for G5 applications.
@@ -376,6 +379,11 @@ test_files:
376
379
  - spec/dummy/db/migrate/20170613201434_add_client_urn_to_locations.g5_updatable.rb
377
380
  - spec/dummy/db/migrate/20170613201435_add_points_of_interest.g5_updatable.rb
378
381
  - spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
382
+ - spec/dummy/db/migrate/20180621044005_add_hour_sets.g5_updatable.rb
383
+ - spec/dummy/db/migrate/20180621044006_add_display_name_to_locations.g5_updatable.rb
384
+ - spec/dummy/db/migrate/20180621044007_add_details_to_points_of_interest.g5_updatable.rb
385
+ - spec/dummy/db/migrate/20180621044008_change_fields_for_week_days_and_special_dates.g5_updatable.rb
386
+ - spec/dummy/db/migrate/20180621044009_add_indexes_to_week_days.g5_updatable.rb
379
387
  - spec/dummy/db/schema.rb
380
388
  - spec/dummy/lib/assets/.gitkeep
381
389
  - spec/dummy/log/.gitkeep
File without changes
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */