osso 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed87e1642f9d6b504f2b6642d50f694f5fb63d82c49deb9088aa0d6964f876f5
4
- data.tar.gz: 20e3006e7367070fd0bc67d72ee7c55fe9c1948a31a58baad439561d41b698f3
3
+ metadata.gz: 3557c5b1128c7a026fa1ddb14cb570b6d247231f3dc7ef22c4ef60af427ec3a2
4
+ data.tar.gz: fa59daf216455edc141fc1c1dd20b965cb90122dfa7e0e30ad3d3fc46a348951
5
5
  SHA512:
6
- metadata.gz: b3301fe48bf416b152b174bdbfb6180084849f3f9fc2bd50d6382a31dece3dd7c556a47e54bd73b677ac69225ea645c98a9bfca9484425944c09f2b6f5ea8cbd
7
- data.tar.gz: 7d40c2972213a5981abcf4d5213ff4f2518a4f5ea320bdad2b866e48ae64dfcc422d7c42679dc35429d4091c196f05e1ed84a45f8d14541e8032aeaa4caf336c
6
+ metadata.gz: 4089820668fa27aa45e7dbb92bf58713202657ec71e6bb2ca24d79b19176e9e444f9c114119489c08417909b7b6403c7e3a1342bf4caa3174d0d5dca77d822f3
7
+ data.tar.gz: 41f3deba4a448aa35c03cf5630b1eeb9784fa200b5bdd020a2c5e29d4b8f8df95da1af0d6dea942d71cdfff2c691948412053a834fd249f8e4b66116e4d025f5
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ group :test do
10
10
  gem 'faker'
11
11
  gem 'pg'
12
12
  gem 'rack-test'
13
- gem 'rspec', '~> 3.2'
13
+ gem 'rspec', '~> 3.10'
14
14
  gem 'rubocop'
15
15
  gem 'simplecov', '= 0.17', require: false
16
16
  gem 'webmock', '~> 3.10'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osso (0.0.6.alpha)
4
+ osso (0.0.7)
5
5
  activesupport (>= 6.0.3.2)
6
6
  bcrypt (~> 3.1.13)
7
7
  graphql
@@ -14,7 +14,7 @@ PATH
14
14
  rack-oauth2
15
15
  rake
16
16
  rodauth (~> 2.6.0)
17
- sequel (~> 5.37.0)
17
+ sequel (>= 5.37, < 5.40)
18
18
  sequel-activerecord_connection (>= 0.3, < 2.0)
19
19
  sinatra
20
20
  sinatra-activerecord
@@ -57,7 +57,7 @@ GEM
57
57
  docile (1.3.2)
58
58
  factory_bot (6.1.0)
59
59
  activesupport (>= 5.0.0)
60
- faker (2.15.0)
60
+ faker (2.15.1)
61
61
  i18n (>= 1.6, < 2)
62
62
  graphql (1.11.6)
63
63
  hashdiff (1.0.1)
@@ -99,7 +99,7 @@ GEM
99
99
  method_source (~> 1.0)
100
100
  public_suffix (4.0.6)
101
101
  rack (2.2.3)
102
- rack-contrib (2.2.0)
102
+ rack-contrib (2.3.0)
103
103
  rack (~> 2.0)
104
104
  rack-oauth2 (1.16.0)
105
105
  activesupport
@@ -113,42 +113,42 @@ GEM
113
113
  rack (>= 1.0, < 3)
114
114
  rainbow (3.0.0)
115
115
  rake (13.0.1)
116
- regexp_parser (1.8.2)
116
+ regexp_parser (2.0.0)
117
117
  rexml (3.2.4)
118
118
  roda (3.38.0)
119
119
  rack
120
120
  rodauth (2.6.0)
121
121
  roda (>= 2.6.0)
122
122
  sequel (>= 4)
123
- rspec (3.9.0)
124
- rspec-core (~> 3.9.0)
125
- rspec-expectations (~> 3.9.0)
126
- rspec-mocks (~> 3.9.0)
127
- rspec-core (3.9.3)
128
- rspec-support (~> 3.9.3)
129
- rspec-expectations (3.9.3)
123
+ rspec (3.10.0)
124
+ rspec-core (~> 3.10.0)
125
+ rspec-expectations (~> 3.10.0)
126
+ rspec-mocks (~> 3.10.0)
127
+ rspec-core (3.10.0)
128
+ rspec-support (~> 3.10.0)
129
+ rspec-expectations (3.10.0)
130
130
  diff-lcs (>= 1.2.0, < 2.0)
131
- rspec-support (~> 3.9.0)
132
- rspec-mocks (3.9.1)
131
+ rspec-support (~> 3.10.0)
132
+ rspec-mocks (3.10.0)
133
133
  diff-lcs (>= 1.2.0, < 2.0)
134
- rspec-support (~> 3.9.0)
135
- rspec-support (3.9.4)
136
- rubocop (1.4.1)
134
+ rspec-support (~> 3.10.0)
135
+ rspec-support (3.10.0)
136
+ rubocop (1.5.2)
137
137
  parallel (~> 1.10)
138
138
  parser (>= 2.7.1.5)
139
139
  rainbow (>= 2.2.2, < 4.0)
140
- regexp_parser (>= 1.8)
140
+ regexp_parser (>= 1.8, < 3.0)
141
141
  rexml
142
- rubocop-ast (>= 1.1.1)
142
+ rubocop-ast (>= 1.2.0, < 2.0)
143
143
  ruby-progressbar (~> 1.7)
144
144
  unicode-display_width (>= 1.4.0, < 2.0)
145
- rubocop-ast (1.2.0)
145
+ rubocop-ast (1.3.0)
146
146
  parser (>= 2.7.1.5)
147
147
  ruby-progressbar (1.10.1)
148
148
  ruby-saml (1.11.0)
149
149
  nokogiri (>= 1.5.10)
150
150
  ruby2_keywords (0.0.2)
151
- sequel (5.37.0)
151
+ sequel (5.39.0)
152
152
  sequel-activerecord_connection (1.2.0)
153
153
  activerecord (>= 4.2, < 7)
154
154
  after_commit_everywhere (~> 0.1.5)
@@ -196,7 +196,7 @@ DEPENDENCIES
196
196
  pg
197
197
  pry
198
198
  rack-test
199
- rspec (~> 3.2)
199
+ rspec (~> 3.10)
200
200
  rubocop
201
201
  simplecov (= 0.17)
202
202
  webmock (~> 3.10)
data/Rakefile CHANGED
@@ -4,6 +4,8 @@
4
4
  # to tell ActiveRecord where to find the database
5
5
  # schema and migrations
6
6
 
7
+ ENV['SESSION_SECRET'] ||= 'rake-secret'
8
+
7
9
  require 'bundler/gem_tasks'
8
10
  require 'sinatra/activerecord/rake'
9
11
  require './lib/osso'
@@ -10,7 +10,7 @@
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: 2020_11_12_160120) do
13
+ ActiveRecord::Schema.define(version: 2020_11_25_143501) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "citext"
@@ -57,7 +57,7 @@ ActiveRecord::Schema.define(version: 2020_11_12_160120) do
57
57
  t.citext "email", null: false
58
58
  t.integer "status_id", default: 1, null: false
59
59
  t.string "role", default: "admin", null: false
60
- t.uuid "oauth_client_id"
60
+ t.string "oauth_client_id"
61
61
  t.index ["email"], name: "index_accounts_on_email", unique: true, where: "(status_id = ANY (ARRAY[1, 2]))"
62
62
  t.index ["oauth_client_id"], name: "index_accounts_on_oauth_client_id"
63
63
  end
@@ -0,0 +1,28 @@
1
+ class AddSalesforceToProviderServiceEnum < ActiveRecord::Migration[6.0]
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ execute <<-SQL
6
+ ALTER TYPE identity_provider_service ADD VALUE 'SALESFORCE';
7
+ SQL
8
+ end
9
+
10
+ def down
11
+ execute <<~SQL
12
+ CREATE TYPE identity_provider_service_new AS ENUM ('AZURE', 'OKTA', 'ONELOGIN', 'GOOGLE', 'PING');
13
+
14
+ -- Remove values that won't be compatible with new definition
15
+ DELETE FROM identity_providers WHERE service = 'SALESFORCE';
16
+
17
+ -- Convert to new type, casting via text representation
18
+ ALTER TABLE identity_providers
19
+ ALTER COLUMN service TYPE identity_provider_service_new
20
+ USING (service::text::identity_provider_service_new);
21
+
22
+ -- and swap the types
23
+ DROP TYPE identity_provider_service;
24
+
25
+ ALTER TYPE identity_provider_service_new RENAME TO identity_provider_service;
26
+ SQL
27
+ end
28
+ end
@@ -9,6 +9,7 @@ module Osso
9
9
  value('OKTA', 'Okta Identity Provider', value: 'OKTA')
10
10
  value('ONELOGIN', 'OneLogin Identity Provider', value: 'ONELOGIN')
11
11
  value('PING', 'PingID Identity Provider', value: 'PING')
12
+ value('SALESFORCE', 'Salesforce Identity Provider', value: 'SALESFORCE')
12
13
  end
13
14
  end
14
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Osso
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'rack-oauth2'
28
28
  spec.add_runtime_dependency 'rake'
29
29
  spec.add_runtime_dependency 'rodauth', '~> 2.6.0'
30
- spec.add_runtime_dependency 'sequel', '~> 5.37.0'
30
+ spec.add_runtime_dependency 'sequel', '>= 5.37', '< 5.40'
31
31
  spec.add_runtime_dependency 'sequel-activerecord_connection', '>= 0.3', '< 2.0'
32
32
  spec.add_runtime_dependency 'sinatra'
33
33
  spec.add_runtime_dependency 'sinatra-activerecord'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Bauch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-24 00:00:00.000000000 Z
11
+ date: 2020-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -182,16 +182,22 @@ dependencies:
182
182
  name: sequel
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '5.37'
188
+ - - "<"
186
189
  - !ruby/object:Gem::Version
187
- version: 5.37.0
190
+ version: '5.40'
188
191
  type: :runtime
189
192
  prerelease: false
190
193
  version_requirements: !ruby/object:Gem::Requirement
191
194
  requirements:
192
- - - "~>"
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '5.37'
198
+ - - "<"
193
199
  - !ruby/object:Gem::Version
194
- version: 5.37.0
200
+ version: '5.40'
195
201
  - !ruby/object:Gem::Dependency
196
202
  name: sequel-activerecord_connection
197
203
  requirement: !ruby/object:Gem::Requirement
@@ -358,6 +364,7 @@ files:
358
364
  - lib/osso/db/migrate/20201109160851_add_sso_issuer_to_identity_providers.rb
359
365
  - lib/osso/db/migrate/20201110190754_remove_oauth_client_id_from_enterprise_accounts.rb
360
366
  - lib/osso/db/migrate/20201112160120_add_ping_to_identity_provider_service_enum.rb
367
+ - lib/osso/db/migrate/20201125143501_add_salesforce_to_provider_service_enum.rb
361
368
  - lib/osso/error/account_configuration_error.rb
362
369
  - lib/osso/error/error.rb
363
370
  - lib/osso/error/missing_saml_attribute_error.rb