rhino_project_core 0.20.0.beta.18 → 0.20.0.beta.20

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: f8779f64179f5c2a26ea37d704c7ac7355f713fc2f386aa6ab08e3e7a0ff174f
4
- data.tar.gz: 2e6139b4b62758822ab9db651b9468af7726e0a56d0a34c1d5712b418e21db70
3
+ metadata.gz: 8c7faff54e2b88c9fdefdaf320268dcb4352199c340bc545af9e6a84c9c64ab5
4
+ data.tar.gz: 7e5a250ddfa6c8ebf24aa09543faee25cc82e4ee133377e09eacf15a8068c0f6
5
5
  SHA512:
6
- metadata.gz: 877bcedc2608beaa6d9d667991858d1b3c272ff876380e1ec1c34e07504cfbc79b153f686aafecc47b8f233d7939c8310012ec99c9f160ff30bc36543d079efb
7
- data.tar.gz: 3a63eab50a46bbfc236d1cc8d4e0f123bf908ae2a94fbaaf2e251c00817daff159c4acc0a4400730e7cb2df0c39b347595cbac6f810e7aa81c74bfa228d74a56
6
+ metadata.gz: 135bdf34a42e370e41fb30fe4c6d394ae711d6857ea4d9769b9a684da9239d18bac816c3d39c24fc4ae31c0e847b26dc78bae77214f3a88cd48f4b8b67fdbd4e
7
+ data.tar.gz: a09d7eb2e64b377d3c59a0723f3e1f54aff8c6de6aff49ce69e347b379293b360b9412bf1794ff299177439e2eec8015715455dcfe343b8e895d252317659fbb
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-present Nubinary, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Rakefile CHANGED
@@ -25,10 +25,10 @@ require 'bundler/gem_tasks'
25
25
 
26
26
  require 'rake/testtask'
27
27
 
28
- Rake::TestTask.new(:test) do |t|
29
- t.libs << 'test'
30
- t.pattern = 'test/**/*_test.rb'
31
- t.verbose = false
28
+ Rake::TestTask.new do |t|
29
+ t.libs << "test"
30
+ t.test_files = FileList["test/**/*_test.rb"].exclude("test/system/**/*", "test/dummy/**/*")
31
+ t.verbose = true
32
32
  end
33
33
 
34
34
  task default: :test
@@ -3,7 +3,7 @@
3
3
  # https://stackoverflow.com/questions/4470108/when-monkey-patching-an-instance-method-can-you-call-the-overridden-method-from/4471202
4
4
  # Mixin Prepending
5
5
  module DeviseTokenAuth::OmniauthCallbacksController::Extensions
6
- include RhinoOrganizations::Concerns::CreateOrganization
6
+ include RhinoOrganizations::Concerns::CreateOrganization if Rhino.resources.include?("Organization")
7
7
 
8
8
  def redirect_callbacks
9
9
  # derive target redirect route from 'resource_class' param, which was set
@@ -3,7 +3,7 @@
3
3
  # https://stackoverflow.com/questions/4470108/when-monkey-patching-an-instance-method-can-you-call-the-overridden-method-from/4471202
4
4
  # Mixin Prepending
5
5
  module DeviseTokenAuth::RegistrationsController::Extensions
6
- include RhinoOrganizations::Concerns::CreateOrganization
6
+ include RhinoOrganizations::Concerns::CreateOrganization if Rhino.resources.include?("Organization")
7
7
 
8
8
  def create
9
9
  return render_error(401, "signup is not allowed") unless Rhino.allow_signup
data/lib/rhino/engine.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
-
2
+ require "rhino/version"
3
3
  module Rhino
4
4
  class Engine < ::Rails::Engine
5
5
  config.before_configuration do
@@ -61,7 +61,7 @@ module Rhino
61
61
 
62
62
  config.after_initialize do
63
63
  Rhino.registered_modules[:rhino] = {
64
- version: Rhino::VERSION,
64
+ version: Rhino::VERSION::STRING,
65
65
  authOwner: Rhino.auth_owner.model_name.singular,
66
66
  baseOwner: Rhino.base_owner.model_name.singular,
67
67
  oauth: Rhino::OmniauthHelper.strategies_metadata,
data/lib/rhino/version.rb CHANGED
@@ -10,7 +10,7 @@ module Rhino
10
10
  MAJOR = 0
11
11
  MINOR = 20
12
12
  TINY = 0
13
- PRE = "beta.18"
13
+ PRE = "beta.20"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhino_project_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.beta.18
4
+ version: 0.20.0.beta.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
@@ -30,6 +30,26 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 7.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: activeadmin
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 2.14.0
40
+ - - "<="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.0.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 2.14.0
50
+ - - "<="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.0.0
33
53
  description: ''
34
54
  email:
35
55
  - jprosevear@nubinary.com
@@ -37,6 +57,7 @@ executables: []
37
57
  extensions: []
38
58
  extra_rdoc_files: []
39
59
  files:
60
+ - LICENSE
40
61
  - README.md
41
62
  - Rakefile
42
63
  - app/assets/stripe_flow.png
@@ -102,7 +123,6 @@ files:
102
123
  - lib/generators/rhino/policy/templates/policy.rb.tt
103
124
  - lib/generators/test_unit/rhino_policy_generator.rb
104
125
  - lib/generators/test_unit/templates/policy_test.rb.tt
105
- - lib/rhino.rb
106
126
  - lib/rhino/engine.rb
107
127
  - lib/rhino/omniauth/strategies/azure_o_auth2.rb
108
128
  - lib/rhino/resource.rb
@@ -146,6 +166,7 @@ files:
146
166
  - lib/rhino/test_case/override.rb
147
167
  - lib/rhino/test_case/policy.rb
148
168
  - lib/rhino/version.rb
169
+ - lib/rhino_project_core.rb
149
170
  - lib/tasks/rhino.rake
150
171
  - lib/tasks/rhino_dev.rake
151
172
  - lib/validators/country_validator.rb
@@ -154,7 +175,7 @@ files:
154
175
  - lib/validators/mac_address_validator.rb
155
176
  homepage: ''
156
177
  licenses:
157
- - ''
178
+ - MIT
158
179
  metadata: {}
159
180
  post_install_message:
160
181
  rdoc_options: []
File without changes