minerva 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -0
  3. data/app/models/minerva/state.rb +1 -2
  4. data/db/migrate/20181218183815_create_minerva_states.rb +4 -6
  5. data/lib/minerva/version.rb +1 -1
  6. metadata +5 -153
  7. data/Rakefile +0 -32
  8. data/app/assets/config/minerva_manifest.js +0 -2
  9. data/app/assets/javascripts/minerva/application.js +0 -15
  10. data/app/assets/javascripts/minerva/assignments.js +0 -2
  11. data/app/assets/javascripts/minerva/interfaces.js +0 -2
  12. data/app/assets/javascripts/minerva/states.js +0 -2
  13. data/app/assets/javascripts/minerva/statuses.js +0 -2
  14. data/app/assets/javascripts/minerva/workflows.js +0 -2
  15. data/app/assets/stylesheets/minerva/application.css +0 -15
  16. data/app/assets/stylesheets/minerva/assignments.css +0 -4
  17. data/app/assets/stylesheets/minerva/interfaces.css +0 -4
  18. data/app/assets/stylesheets/minerva/states.css +0 -4
  19. data/app/assets/stylesheets/minerva/statuses.css +0 -4
  20. data/app/assets/stylesheets/minerva/workflows.css +0 -4
  21. data/app/assets/stylesheets/scaffold.css +0 -80
  22. data/app/controllers/concerns/minerva/base/assignments.rb +0 -62
  23. data/app/controllers/concerns/minerva/base/interfaces.rb +0 -62
  24. data/app/controllers/concerns/minerva/base/states.rb +0 -62
  25. data/app/controllers/concerns/minerva/base/statuses.rb +0 -62
  26. data/app/controllers/concerns/minerva/base/workflows.rb +0 -62
  27. data/app/controllers/minerva/assignments_controller.rb +0 -5
  28. data/app/controllers/minerva/interfaces_controller.rb +0 -5
  29. data/app/controllers/minerva/states_controller.rb +0 -5
  30. data/app/controllers/minerva/statuses_controller.rb +0 -5
  31. data/app/controllers/minerva/workflows_controller.rb +0 -5
  32. data/app/helpers/minerva/application_helper.rb +0 -4
  33. data/app/helpers/minerva/assignments_helper.rb +0 -4
  34. data/app/helpers/minerva/interfaces_helper.rb +0 -4
  35. data/app/helpers/minerva/states_helper.rb +0 -4
  36. data/app/helpers/minerva/statuses_helper.rb +0 -4
  37. data/app/helpers/minerva/workflows_helper.rb +0 -4
  38. data/app/jobs/minerva/application_job.rb +0 -4
  39. data/app/mailers/minerva/application_mailer.rb +0 -6
  40. data/app/models/minerva/assignment.rb +0 -5
  41. data/app/models/minerva/status.rb +0 -4
  42. data/app/views/layouts/minerva/application.html.erb +0 -16
  43. data/app/views/minerva/assignments/_form.html.erb +0 -32
  44. data/app/views/minerva/assignments/edit.html.erb +0 -6
  45. data/app/views/minerva/assignments/index.html.erb +0 -31
  46. data/app/views/minerva/assignments/new.html.erb +0 -5
  47. data/app/views/minerva/assignments/show.html.erb +0 -19
  48. data/app/views/minerva/interfaces/_form.html.erb +0 -27
  49. data/app/views/minerva/interfaces/edit.html.erb +0 -6
  50. data/app/views/minerva/interfaces/index.html.erb +0 -29
  51. data/app/views/minerva/interfaces/new.html.erb +0 -5
  52. data/app/views/minerva/interfaces/show.html.erb +0 -14
  53. data/app/views/minerva/states/_form.html.erb +0 -47
  54. data/app/views/minerva/states/edit.html.erb +0 -6
  55. data/app/views/minerva/states/index.html.erb +0 -35
  56. data/app/views/minerva/states/new.html.erb +0 -5
  57. data/app/views/minerva/states/show.html.erb +0 -33
  58. data/app/views/minerva/statuses/_form.html.erb +0 -22
  59. data/app/views/minerva/statuses/edit.html.erb +0 -6
  60. data/app/views/minerva/statuses/index.html.erb +0 -27
  61. data/app/views/minerva/statuses/new.html.erb +0 -5
  62. data/app/views/minerva/statuses/show.html.erb +0 -9
  63. data/app/views/minerva/workflows/_form.html.erb +0 -42
  64. data/app/views/minerva/workflows/edit.html.erb +0 -6
  65. data/app/views/minerva/workflows/index.html.erb +0 -35
  66. data/app/views/minerva/workflows/new.html.erb +0 -5
  67. data/app/views/minerva/workflows/show.html.erb +0 -29
  68. data/config/initializers/minerva.rb +0 -0
  69. data/config/routes.rb +0 -7
  70. data/db/migrate/20181218183524_create_minerva_statuses.rb +0 -9
  71. data/db/migrate/20181218183728_create_minerva_assignments.rb +0 -13
  72. data/lib/tasks/minerva_tasks.rake +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c562c5aabc0bc0a41bc636d8ca328d4404b59563120f3d1ee27454dfc799a69
4
- data.tar.gz: bb31d161180be4b3b64fcf31c007d8f6c8ab77722703d65f8a43fce3211d3f29
3
+ metadata.gz: b450a2f6bd25d53d5d2764076fd06f26d6807af4d87bd7c336a7188f3599716a
4
+ data.tar.gz: ca40b8f125a1cff5d6e0f71406b8921f2dec676e69777daa57acccd2c524a09f
5
5
  SHA512:
6
- metadata.gz: 5989a44e5b10962e9c731d3109c15558fab16ff75ad41018b28153a878e9b13fe7b5996dcdb2491e7b242c2f1b5c25b78d92278afb31f3b94f51a919419f9129
7
- data.tar.gz: 5a47b5a62ce8192dcc9a6a003a5795dfacdeec9a9278b2d04c42fa565ed66189ef283c3542f35cce55ea7a05a530abb3f83f7c068dbcec0503e1f275ce6cb8dc
6
+ metadata.gz: eef3bdeeb9c00a740b488dacec7ea6d2112ff9bb58cdc46ee45c382c132fa0fcc01d1769332228b4589728947797d18c88b3e16b1d0947e01130a99664dcba81
7
+ data.tar.gz: 653745bc4dbaed81c7d45119543bbe0cab6481d57dc93e457ed6e6a34805e1ad23e7487ce92fd59a5477e143a0e8c0f3c1803edf570bc7b05b8df4232f45ab50
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Minerva
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'minerva'
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install minerva
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,8 +1,7 @@
1
1
  module Minerva
2
2
  class State < ApplicationRecord
3
3
 
4
- belongs_to :assignment
5
- belongs_to :status
4
+ belongs_to :interface
6
5
  belongs_to :role
7
6
  belongs_to :work
8
7
  belongs_to :user
@@ -5,8 +5,8 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
5
5
  t.integer :user_id
6
6
  t.integer :role_id
7
7
  t.integer :work_id
8
- t.integer :assignment_id
9
- t.integer :status_id
8
+ t.integer :interface_id
9
+ t.string :status
10
10
 
11
11
  t.timestamps
12
12
  end
@@ -15,9 +15,7 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
15
15
  add_index :minerva_states, :role_id
16
16
  add_index :minerva_states, :work_id
17
17
 
18
- add_foreign_key :minerva_states, :minerva_assignments, column: :assignment_id
19
- add_index :minerva_states, :assignment_id
20
- add_foreign_key :minerva_states, :minerva_statuses, column: :status_id
21
- add_index :minerva_states, :status_id
18
+ add_foreign_key :minerva_states, :minerva_interfaces, column: :interface_id
19
+ add_index :minerva_interfaces, :interface_id
22
20
  end
23
21
  end
@@ -1,3 +1,3 @@
1
1
  module Minerva
2
- VERSION = '0.1.25'
2
+ VERSION = '0.1.27'
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.25
4
+ version: 0.1.27
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-06-26 00:00:00.000000000 Z
11
+ date: 2019-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,90 +24,6 @@ dependencies:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.2'
27
- - !ruby/object:Gem::Dependency
28
- name: sqlite3
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: capybara
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: selenium-webdriver
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: chromedriver-helper
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: puma
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: tzinfo-data
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
27
  description: In concert with Samvera and Valkyrie componenets, Minerva aims to be
112
28
  a viable coordination tool, allowing administration users to describe manual and
113
29
  automated workflows for individuals to follow and apply.
@@ -118,81 +34,17 @@ extensions: []
118
34
  extra_rdoc_files: []
119
35
  files:
120
36
  - MIT-LICENSE
121
- - Rakefile
122
- - app/assets/config/minerva_manifest.js
123
- - app/assets/javascripts/minerva/application.js
124
- - app/assets/javascripts/minerva/assignments.js
125
- - app/assets/javascripts/minerva/interfaces.js
126
- - app/assets/javascripts/minerva/states.js
127
- - app/assets/javascripts/minerva/statuses.js
128
- - app/assets/javascripts/minerva/workflows.js
129
- - app/assets/stylesheets/minerva/application.css
130
- - app/assets/stylesheets/minerva/assignments.css
131
- - app/assets/stylesheets/minerva/interfaces.css
132
- - app/assets/stylesheets/minerva/states.css
133
- - app/assets/stylesheets/minerva/statuses.css
134
- - app/assets/stylesheets/minerva/workflows.css
135
- - app/assets/stylesheets/scaffold.css
136
- - app/controllers/concerns/minerva/base/assignments.rb
137
- - app/controllers/concerns/minerva/base/interfaces.rb
138
- - app/controllers/concerns/minerva/base/states.rb
139
- - app/controllers/concerns/minerva/base/statuses.rb
140
- - app/controllers/concerns/minerva/base/workflows.rb
141
- - app/controllers/minerva/assignments_controller.rb
142
- - app/controllers/minerva/interfaces_controller.rb
143
- - app/controllers/minerva/states_controller.rb
144
- - app/controllers/minerva/statuses_controller.rb
145
- - app/controllers/minerva/workflows_controller.rb
146
- - app/helpers/minerva/application_helper.rb
147
- - app/helpers/minerva/assignments_helper.rb
148
- - app/helpers/minerva/interfaces_helper.rb
149
- - app/helpers/minerva/states_helper.rb
150
- - app/helpers/minerva/statuses_helper.rb
151
- - app/helpers/minerva/workflows_helper.rb
152
- - app/jobs/minerva/application_job.rb
153
- - app/mailers/minerva/application_mailer.rb
37
+ - README.md
154
38
  - app/models/minerva/application_record.rb
155
- - app/models/minerva/assignment.rb
156
39
  - app/models/minerva/interface.rb
157
40
  - app/models/minerva/project.rb
158
41
  - app/models/minerva/role.rb
159
42
  - app/models/minerva/state.rb
160
- - app/models/minerva/status.rb
161
43
  - app/models/minerva/user.rb
162
44
  - app/models/minerva/work.rb
163
45
  - app/models/minerva/workflow.rb
164
- - app/views/layouts/minerva/application.html.erb
165
- - app/views/minerva/assignments/_form.html.erb
166
- - app/views/minerva/assignments/edit.html.erb
167
- - app/views/minerva/assignments/index.html.erb
168
- - app/views/minerva/assignments/new.html.erb
169
- - app/views/minerva/assignments/show.html.erb
170
- - app/views/minerva/interfaces/_form.html.erb
171
- - app/views/minerva/interfaces/edit.html.erb
172
- - app/views/minerva/interfaces/index.html.erb
173
- - app/views/minerva/interfaces/new.html.erb
174
- - app/views/minerva/interfaces/show.html.erb
175
- - app/views/minerva/states/_form.html.erb
176
- - app/views/minerva/states/edit.html.erb
177
- - app/views/minerva/states/index.html.erb
178
- - app/views/minerva/states/new.html.erb
179
- - app/views/minerva/states/show.html.erb
180
- - app/views/minerva/statuses/_form.html.erb
181
- - app/views/minerva/statuses/edit.html.erb
182
- - app/views/minerva/statuses/index.html.erb
183
- - app/views/minerva/statuses/new.html.erb
184
- - app/views/minerva/statuses/show.html.erb
185
- - app/views/minerva/workflows/_form.html.erb
186
- - app/views/minerva/workflows/edit.html.erb
187
- - app/views/minerva/workflows/index.html.erb
188
- - app/views/minerva/workflows/new.html.erb
189
- - app/views/minerva/workflows/show.html.erb
190
- - config/initializers/minerva.rb
191
- - config/routes.rb
192
46
  - db/migrate/20181218183254_create_minerva_workflows.rb
193
- - db/migrate/20181218183524_create_minerva_statuses.rb
194
47
  - db/migrate/20181218183615_create_minerva_interfaces.rb
195
- - db/migrate/20181218183728_create_minerva_assignments.rb
196
48
  - db/migrate/20181218183815_create_minerva_states.rb
197
49
  - db/migrate/20190103213703_create_minerva_users.rb
198
50
  - db/migrate/20190103213722_create_minerva_projects.rb
@@ -207,7 +59,6 @@ files:
207
59
  - lib/minerva.rb
208
60
  - lib/minerva/engine.rb
209
61
  - lib/minerva/version.rb
210
- - lib/tasks/minerva_tasks.rake
211
62
  homepage: https://github.com/NEU-Libraries/minerva
212
63
  licenses:
213
64
  - MIT
@@ -227,7 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
78
  - !ruby/object:Gem::Version
228
79
  version: '0'
229
80
  requirements: []
230
- rubygems_version: 3.0.3
81
+ rubyforge_project:
82
+ rubygems_version: 2.7.6
231
83
  signing_key:
232
84
  specification_version: 4
233
85
  summary: Minerva is a Rails engine for basic assignment workflow.
data/Rakefile DELETED
@@ -1,32 +0,0 @@
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,2 +0,0 @@
1
- //= link_directory ../javascripts/minerva .js
2
- //= link_directory ../stylesheets/minerva .css
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require rails-ujs
14
- //= require activestorage
15
- //= require_tree .
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,80 +0,0 @@
1
- body {
2
- background-color: #fff;
3
- color: #333;
4
- margin: 33px;
5
- }
6
-
7
- body, p, ol, ul, td {
8
- font-family: verdana, arial, helvetica, sans-serif;
9
- font-size: 13px;
10
- line-height: 18px;
11
- }
12
-
13
- pre {
14
- background-color: #eee;
15
- padding: 10px;
16
- font-size: 11px;
17
- }
18
-
19
- a {
20
- color: #000;
21
- }
22
-
23
- a:visited {
24
- color: #666;
25
- }
26
-
27
- a:hover {
28
- color: #fff;
29
- background-color: #000;
30
- }
31
-
32
- th {
33
- padding-bottom: 5px;
34
- }
35
-
36
- td {
37
- padding: 0 5px 7px;
38
- }
39
-
40
- div.field,
41
- div.actions {
42
- margin-bottom: 10px;
43
- }
44
-
45
- #notice {
46
- color: green;
47
- }
48
-
49
- .field_with_errors {
50
- padding: 2px;
51
- background-color: red;
52
- display: table;
53
- }
54
-
55
- #error_explanation {
56
- width: 450px;
57
- border: 2px solid red;
58
- padding: 7px 7px 0;
59
- margin-bottom: 20px;
60
- background-color: #f0f0f0;
61
- }
62
-
63
- #error_explanation h2 {
64
- text-align: left;
65
- font-weight: bold;
66
- padding: 5px 5px 5px 15px;
67
- font-size: 12px;
68
- margin: -7px -7px 0;
69
- background-color: #c00;
70
- color: #fff;
71
- }
72
-
73
- #error_explanation ul li {
74
- font-size: 12px;
75
- list-style: square;
76
- }
77
-
78
- label {
79
- display: block;
80
- }