minerva 0.1.29 → 0.1.35

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: 2a48f9c865e164a434769dd3bdcaacb16d2c9648e5a93ce46cab32d1c3ce81c7
4
- data.tar.gz: 6072bbf2448ed8a863fcc28f4d7f9d08bbb9546739277143bc19989e99995355
3
+ metadata.gz: dbb9f4f8c1012bc3d96b144f0b347befdd7e4c1d1aa17f462e77ebcc22ef946b
4
+ data.tar.gz: 8627ea19a16e83b13ecdff48d6a2af9ac3c36cd2e78b0d15af4d67fbe7d685e6
5
5
  SHA512:
6
- metadata.gz: d874dee5d9014ff13ba0fb651fb629c56917808afdef529b9aaf26117c867ec495789e0d8ea5730c501210ce29d8820f1a5473d7b138c88e8ae1ced8887d6c3c
7
- data.tar.gz: cf032b33fd094734e43c213f74c8a9c15c2b75b299461c233764cc0871336e63f5f96e09107fa8699c0680d2336d285b83b7f46836e15f3b91ff2e1a9627c76b
6
+ metadata.gz: bfad56a6224c0133fd03b025793476e4fb98e7010d2d87240eac0f363e57a9c4fc17b892d3641f841c7a32b2fa597ad43ff51bc634012a9c3a75974fcf668e0b
7
+ data.tar.gz: 21939f663778b468d34921bc90127d7c0215b43858dcc74b6c8886369dbae0327836117a08063af21168dcf31746d711fe5db2591eb27c7ec4aa129fc23c526c
data/Rakefile ADDED
@@ -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
@@ -3,13 +3,14 @@ module Minerva
3
3
 
4
4
  belongs_to :interface, optional: true
5
5
  belongs_to :user, optional: true
6
- belongs_to :role
7
6
  belongs_to :work
8
7
 
9
8
  belongs_to :creator, class_name: "Minerva::User"
10
9
 
11
10
  before_destroy { |record| raise ActiveRecord::ReadOnlyRecord }
12
11
 
12
+ attr_accessor :message
13
+
13
14
  def readonly?
14
15
  # allow the creation, you can also use a more complex condition to allow updates under certain conditions
15
16
  new_record? ? false : true
File without changes
@@ -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.29'
2
+ VERSION = '0.1.35'
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.29
4
+ version: 0.1.35
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-10-14 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