minerva 0.1.27 → 0.1.33

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: b450a2f6bd25d53d5d2764076fd06f26d6807af4d87bd7c336a7188f3599716a
4
- data.tar.gz: ca40b8f125a1cff5d6e0f71406b8921f2dec676e69777daa57acccd2c524a09f
3
+ metadata.gz: 1ddbe2c814881305faa4e8adf490bf83df0e006df71cf745732a298d82392180
4
+ data.tar.gz: c5b4e0e3cba79a120d5e63c9ee8b3ad480023eb7b7a586ddbd19d8240abdded7
5
5
  SHA512:
6
- metadata.gz: eef3bdeeb9c00a740b488dacec7ea6d2112ff9bb58cdc46ee45c382c132fa0fcc01d1769332228b4589728947797d18c88b3e16b1d0947e01130a99664dcba81
7
- data.tar.gz: 653745bc4dbaed81c7d45119543bbe0cab6481d57dc93e457ed6e6a34805e1ad23e7487ce92fd59a5477e143a0e8c0f3c1803edf570bc7b05b8df4232f45ab50
6
+ metadata.gz: 8a1ebd02e55f9be0fcba3b48378441e524d476e1f69a0ef199ad9f5cd43249d57ea54b300a8bcd5fd306a9a8b3aec725a91b25d293cba717d6b627645268e338
7
+ data.tar.gz: ce9346d6469d3c64357e7f6a3db75f3596c7966cc1185e841f404c66d42e29a9c94ffea388e75190c5254562a8f02806c650f14523958a0db51a469ed268e3f1
@@ -0,0 +1,32 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Minerva'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ # APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+ load 'rails/tasks/statistics.rake'
21
+
22
+ require 'bundler/gem_tasks'
23
+
24
+ require 'rake/testtask'
25
+
26
+ Rake::TestTask.new(:test) do |t|
27
+ t.libs << 'test'
28
+ t.pattern = 'test/**/*_test.rb'
29
+ t.verbose = false
30
+ end
31
+
32
+ task default: :test
@@ -1,10 +1,9 @@
1
1
  module Minerva
2
2
  class State < ApplicationRecord
3
3
 
4
- belongs_to :interface
5
- belongs_to :role
4
+ belongs_to :interface, optional: true
5
+ belongs_to :user, optional: true
6
6
  belongs_to :work
7
- belongs_to :user
8
7
 
9
8
  belongs_to :creator, class_name: "Minerva::User"
10
9
 
File without changes
@@ -14,8 +14,8 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
14
14
  add_index :minerva_states, :user_id
15
15
  add_index :minerva_states, :role_id
16
16
  add_index :minerva_states, :work_id
17
+ add_index :minerva_states, :interface_id
17
18
 
18
19
  add_foreign_key :minerva_states, :minerva_interfaces, column: :interface_id
19
- add_index :minerva_interfaces, :interface_id
20
20
  end
21
21
  end
@@ -0,0 +1,7 @@
1
+ class RemoveRole < ActiveRecord::Migration[6.0]
2
+ def change
3
+ remove_index :minerva_states, :role_id
4
+ remove_column :minerva_states, :role_id
5
+ drop_table :minerva_roles
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ class AddMessageToStates < ActiveRecord::Migration[6.1]
2
+ def change
3
+ add_column :minerva_states, :message, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Minerva
2
- VERSION = '0.1.27'
2
+ VERSION = '0.1.33'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minerva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-20 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -35,14 +35,15 @@ extra_rdoc_files: []
35
35
  files:
36
36
  - MIT-LICENSE
37
37
  - README.md
38
+ - Rakefile
38
39
  - app/models/minerva/application_record.rb
39
40
  - app/models/minerva/interface.rb
40
41
  - app/models/minerva/project.rb
41
- - app/models/minerva/role.rb
42
42
  - app/models/minerva/state.rb
43
43
  - app/models/minerva/user.rb
44
44
  - app/models/minerva/work.rb
45
45
  - app/models/minerva/workflow.rb
46
+ - config/initializers/minerva.rb
46
47
  - db/migrate/20181218183254_create_minerva_workflows.rb
47
48
  - db/migrate/20181218183615_create_minerva_interfaces.rb
48
49
  - db/migrate/20181218183815_create_minerva_states.rb
@@ -56,6 +57,8 @@ files:
56
57
  - db/migrate/20190107164946_add_auid_to_work.rb
57
58
  - db/migrate/20190107171954_add_index_to_auid.rb
58
59
  - db/migrate/20190107173209_change_auid_to_not_null.rb
60
+ - db/migrate/20191106053529_remove_role.rb
61
+ - db/migrate/20210119184915_add_message_to_states.rb
59
62
  - lib/minerva.rb
60
63
  - lib/minerva/engine.rb
61
64
  - lib/minerva/version.rb
@@ -79,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
82
  version: '0'
80
83
  requirements: []
81
84
  rubyforge_project:
82
- rubygems_version: 2.7.6
85
+ rubygems_version: 2.7.6.2
83
86
  signing_key:
84
87
  specification_version: 4
85
88
  summary: Minerva is a Rails engine for basic assignment workflow.
@@ -1,4 +0,0 @@
1
- module Minerva
2
- class Role < ApplicationRecord
3
- end
4
- end