effective_committees 0.2.1 → 0.3.0

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: cd2e7e60e604c2c37d662cde5abd1d4823b4400762bed564e734b50c65f16a5f
4
- data.tar.gz: 713486d3de4e2aa4412762f243f0f9f352f5c74f7786cddc89e1781ef2b49de6
3
+ metadata.gz: 90e5560a918a9f4ff1aa79337ee3efc0863404b7059fd1ee17085a287c68558f
4
+ data.tar.gz: 97c1a24dd0b0ca83bdea23b39e17afac3ed9a290883c559b3f4c3a442b721053
5
5
  SHA512:
6
- metadata.gz: 4b3e9bd523495fb20bde48fac897b64bffd58f5197ef458008e95a7b6b752b74959dc2b67196c5471d9ceba45e0b5565fb334dd05fe3ddd33a6f60d03083c0bf
7
- data.tar.gz: e3c37293212b4fd74121f1ca3fe2aba2a1d776199484cafba8821a0fc40466622f7df8bf9c06375bb4c60a26171e51adbd15562845ec0d2eb9cf3bb312f07423
6
+ metadata.gz: 108016a92cb317eee5c2dec151fd39775b95f735d128774875af34622ec070e358aa66a956f665a4a75fe039a124923fee11fc7b3a0e8e503043d092985d4ac8
7
+ data.tar.gz: 5eaa0143a3994f694531e8d63338d2cbfe2a88befab855f31a2990688dfa0fe131cf294ca68eb7ee754435bff83fe5e7b893fcf822c14cc57cbe8a38f03d87d3
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2022 Code and Effect Inc.
1
+ Copyright 2023 Code and Effect Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Effective
4
4
  class Committee < ActiveRecord::Base
5
- self.table_name = EffectiveCommittees.committees_table_name.to_s
5
+ self.table_name = (EffectiveCommittees.committees_table_name || :committees).to_s
6
6
 
7
7
  acts_as_slugged
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Effective
4
4
  class CommitteeFile < ActiveRecord::Base
5
- self.table_name = EffectiveCommittees.committee_files_table_name.to_s
5
+ self.table_name = (EffectiveCommittees.committee_files_table_name || :committee_files).to_s
6
6
 
7
7
  log_changes(to: :committee) if respond_to?(:log_changes)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Effective
4
4
  class CommitteeFolder < ActiveRecord::Base
5
- self.table_name = EffectiveCommittees.committee_folders_table_name.to_s
5
+ self.table_name = (EffectiveCommittees.committee_folders_table_name || :committee_folders).to_s
6
6
 
7
7
  acts_as_slugged
8
8
  log_changes(to: :committee) if respond_to?(:log_changes)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Effective
4
4
  class CommitteeMember < ActiveRecord::Base
5
- self.table_name = EffectiveCommittees.committee_members_table_name.to_s
5
+ self.table_name = (EffectiveCommittees.committee_members_table_name || :committee_members).to_s
6
6
 
7
7
  attr_accessor :user_ids, :committee_ids
8
8
 
@@ -1,9 +1,4 @@
1
1
  EffectiveCommittees.setup do |config|
2
- config.committees_table_name = :committees
3
- config.committee_members_table_name = :committee_members
4
- config.committee_folders_table_name = :committee_folders
5
- config.committee_files_table_name = :committee_files
6
-
7
2
  # Layout Settings
8
3
  # Configure the Layout per controller, or all at once
9
4
  # config.layout = { application: 'application', admin: 'admin' }
@@ -1,7 +1,7 @@
1
- class CreateEffectiveCommittees < ActiveRecord::Migration[6.1]
1
+ class CreateEffectiveCommittees < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  # Committees
4
- create_table <%= @committees_table_name %> do |t|
4
+ create_table :committees do |t|
5
5
  t.string :title
6
6
  t.string :slug
7
7
 
@@ -13,11 +13,11 @@ class CreateEffectiveCommittees < ActiveRecord::Migration[6.1]
13
13
  t.datetime :created_at
14
14
  end
15
15
 
16
- add_index <%= @committees_table_name %>, :title
17
- add_index <%= @committees_table_name %>, :slug
16
+ add_index :committees, :title
17
+ add_index :committees, :slug
18
18
 
19
19
  # Representatives
20
- create_table <%= @committee_members_table_name %> do |t|
20
+ create_table :committee_members do |t|
21
21
  t.integer :committee_id
22
22
  t.string :committee_type
23
23
 
@@ -33,10 +33,10 @@ class CreateEffectiveCommittees < ActiveRecord::Migration[6.1]
33
33
  t.datetime :created_at
34
34
  end
35
35
 
36
- add_index <%= @committee_members_table_name %>, [:committee_id]
37
- add_index <%= @committee_members_table_name %>, [:user_id, :user_type]
36
+ add_index :committee_members, [:committee_id]
37
+ add_index :committee_members, [:user_id, :user_type]
38
38
 
39
- create_table <%= @committee_folders_table_name %> do |t|
39
+ create_table :committee_folders do |t|
40
40
  t.integer :committee_id
41
41
  t.string :committee_type
42
42
 
@@ -50,10 +50,10 @@ class CreateEffectiveCommittees < ActiveRecord::Migration[6.1]
50
50
  t.datetime :created_at
51
51
  end
52
52
 
53
- add_index <%= @committee_folders_table_name %>, [:committee_id, :committee_type]
54
- add_index <%= @committee_folders_table_name %>, [:position]
53
+ add_index :committee_folders, [:committee_id, :committee_type]
54
+ add_index :committee_folders, [:position]
55
55
 
56
- create_table <%= @committee_files_table_name %> do |t|
56
+ create_table :committee_files do |t|
57
57
  t.integer :committee_id
58
58
  t.string :committee_type
59
59
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveCommittees
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
@@ -20,10 +20,7 @@ module EffectiveMemberships
20
20
  end
21
21
 
22
22
  def create_migration_file
23
- @committees_table_name = ':' + EffectiveCommittees.committees_table_name.to_s
24
- @committee_members_table_name = ':' + EffectiveCommittees.committee_members_table_name.to_s
25
-
26
- migration_template ('../' * 3) + 'db/migrate/01_create_effective_committees.rb.erb', 'db/migrate/create_effective_committees.rb'
23
+ migration_template ('../' * 3) + 'db/migrate/101_create_effective_committees.rb', 'db/migrate/create_effective_committees.rb'
27
24
  end
28
25
 
29
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_committees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: haml-rails
112
+ name: haml
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -217,7 +217,7 @@ files:
217
217
  - config/effective_committees.rb
218
218
  - config/locales/effective_committees.en.yml
219
219
  - config/routes.rb
220
- - db/migrate/01_create_effective_committees.rb.erb
220
+ - db/migrate/101_create_effective_committees.rb
221
221
  - db/seeds.rb
222
222
  - lib/effective_committees.rb
223
223
  - lib/effective_committees/engine.rb
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.1.2
247
+ rubygems_version: 3.3.7
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Committees are groups of users that can all share files.