rhino_project_organizations 0.20.0.beta.43 → 0.20.0.beta.44

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: 8866bd3a9ca10ac1c6e7df1ae08b7b7251fe7e05af31964d5f8406692eaaba3a
4
- data.tar.gz: a755c02603bd839f3b3610bc6e2b22d9e3b583d5e14e2bf3ce8ee854befcb7f3
3
+ metadata.gz: b926eb6e81a651dc487422f1ef33eda7ed3527cb699ded0c86c30ba695f682ad
4
+ data.tar.gz: 442e32a8e6a342703c9e27443e8ef85f107bd6b0b7874f21c54447d50caad2e9
5
5
  SHA512:
6
- metadata.gz: a2d16ce606c4eef6a2f08c60dbb5158dc984757131f98f3458bcb86b8ea20214255be8a8b8586a59176c78fd4bf736f8918604a684994a9b9a5828add02ef7da
7
- data.tar.gz: cce1c600f253aa1e2089164cfcb7f6d1814435008f105265082553f4f2c174b0025939652015debcf7c8ffc0037f12cd9b4ca7303368e7fa0afa1457db22675a
6
+ metadata.gz: 69c45b8ca5497ce3d9c6804e0404a4afe038b7f7fd590affd058b444abffb999ab3c3ff013e96830f58e8c0a707f4e6bdc4090561cd990b84cad59a311a836b0
7
+ data.tar.gz: 4716aea22a1c106108fa8b775a12665dc8f0d469f9dabe0e191bfacbb949750dd101b7bd4a9c51bbe2da3c9531414a36aac120ee50eb0fc643d4c37f509f0baa
@@ -42,6 +42,12 @@ module RhinoOrganizations
42
42
  inject_into_file 'config/initializers/rhino.rb', optimize_indentation(data, 2), after: /^\s*config\.resources.+\n/
43
43
  end
44
44
 
45
+ def install_seeds
46
+ say 'Copying seed files'
47
+ copy_file "#{__dir__}/templates/seeds/organizations.rb", 'db/seeds/development/organizations.rb'
48
+ copy_file "#{__dir__}/templates/seeds/organizations.rb", 'db/seeds/test/organizations.rb'
49
+ end
50
+
45
51
  def install_active_admin # rubocop:disable Metrics/MethodLength
46
52
  say 'Copying rhino_organization ActiveAdmin files and configurations'
47
53
  copy_file "#{__dir__}/templates/admin/users_roles.rb", 'app/admin/users_roles.rb'
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "users"
4
+
5
+ Organization.find_or_create_by(name: "Rhino")
6
+ Role.find_or_create_by(name: "admin")
7
+ UsersRole.find_or_create_by(user: User.first, role: Role.find_by(name: "admin"), organization: Organization.first)
@@ -10,7 +10,7 @@ module RhinoOrganizations
10
10
  MAJOR = 0
11
11
  MINOR = 20
12
12
  TINY = 0
13
- PRE = "beta.43"
13
+ PRE = "beta.44"
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_organizations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.beta.43
4
+ version: 0.20.0.beta.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 0.20.0.beta.43
39
+ version: 0.20.0.beta.44
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 0.20.0.beta.43
46
+ version: 0.20.0.beta.44
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise_invitable
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +91,7 @@ files:
91
91
  - lib/generators/rhino_organizations/install/templates/models/role.rb
92
92
  - lib/generators/rhino_organizations/install/templates/models/users_role.rb
93
93
  - lib/generators/rhino_organizations/install/templates/models/users_role_invite.rb
94
+ - lib/generators/rhino_organizations/install/templates/seeds/organizations.rb
94
95
  - lib/rhino_organizations/engine.rb
95
96
  - lib/rhino_organizations/test_case.rb
96
97
  - lib/rhino_organizations/test_case/organization_controller.rb