bulk_ops 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/assets/images/bulk_ops/github_logo.png +0 -0
- data/app/assets/javascripts/bulk_ops.js +14 -0
- data/app/assets/javascripts/bulk_ops/selections.js +24 -0
- data/app/assets/javascripts/selections.js +38 -0
- data/app/assets/javascripts/work_search.js +64 -0
- data/app/assets/stylesheets/bulk_ops.scss +99 -0
- data/app/controllers/bulk_ops/application_controller.rb +13 -0
- data/app/controllers/bulk_ops/github_authorization_controller.rb +33 -0
- data/app/controllers/bulk_ops/operations_controller.rb +481 -0
- data/app/jobs/bulk_ops/application_job.rb +4 -0
- data/app/mailers/bulk_ops/application_mailer.rb +6 -0
- data/app/models/bulk_ops/application_record.rb +5 -0
- data/app/views/bulk_ops/_bulk_ops_sidebar_widget.html.erb +15 -0
- data/app/views/bulk_ops/_github_auth_widget.html.erb +13 -0
- data/app/views/bulk_ops/operations/_bulk_ops_header.html.erb +4 -0
- data/app/views/bulk_ops/operations/_choose_fields.html.erb +22 -0
- data/app/views/bulk_ops/operations/_choose_notifications.html.erb +22 -0
- data/app/views/bulk_ops/operations/_git_message.html.erb +7 -0
- data/app/views/bulk_ops/operations/_ingest_options.html.erb +42 -0
- data/app/views/bulk_ops/operations/_operation_options.html.erb +38 -0
- data/app/views/bulk_ops/operations/_show_authorize.html.erb +13 -0
- data/app/views/bulk_ops/operations/_show_complete.html.erb +31 -0
- data/app/views/bulk_ops/operations/_show_draft.html.erb +20 -0
- data/app/views/bulk_ops/operations/_show_new.html.erb +2 -0
- data/app/views/bulk_ops/operations/_show_pending.html.erb +58 -0
- data/app/views/bulk_ops/operations/_show_running.html.erb +56 -0
- data/app/views/bulk_ops/operations/_show_verifying.html.erb +8 -0
- data/app/views/bulk_ops/operations/_show_waiting.html.erb +9 -0
- data/app/views/bulk_ops/operations/_update_draft_work_list.html.erb +45 -0
- data/app/views/bulk_ops/operations/_update_draft_work_search.html.erb +59 -0
- data/app/views/bulk_ops/operations/_update_options.html.erb +9 -0
- data/app/views/bulk_ops/operations/index.html.erb +51 -0
- data/app/views/bulk_ops/operations/new.html.erb +36 -0
- data/app/views/bulk_ops/operations/show.html.erb +7 -0
- data/config/routes.rb +25 -0
- data/db/migrate/20180926190757_create_github_credentials.rb +13 -0
- data/db/migrate/20181017180436_create_bulk_ops_tables.rb +40 -0
- data/lib/bulk_ops.rb +15 -0
- data/lib/bulk_ops/create_spreadsheet_job.rb +43 -0
- data/lib/bulk_ops/create_work_job.rb +14 -0
- data/lib/bulk_ops/delete_file_set_job.rb +15 -0
- data/lib/bulk_ops/engine.rb +6 -0
- data/lib/bulk_ops/error.rb +141 -0
- data/lib/bulk_ops/github_access.rb +284 -0
- data/lib/bulk_ops/github_credential.rb +3 -0
- data/lib/bulk_ops/operation.rb +358 -0
- data/lib/bulk_ops/relationship.rb +79 -0
- data/lib/bulk_ops/search_builder_behavior.rb +80 -0
- data/lib/bulk_ops/templates/configuration.yml +5 -0
- data/lib/bulk_ops/templates/readme.md +1 -0
- data/lib/bulk_ops/update_work_job.rb +14 -0
- data/lib/bulk_ops/verification.rb +210 -0
- data/lib/bulk_ops/verification_job.rb +23 -0
- data/lib/bulk_ops/version.rb +3 -0
- data/lib/bulk_ops/work_job.rb +104 -0
- data/lib/bulk_ops/work_proxy.rb +466 -0
- data/lib/generators/bulk_ops/install/install_generator.rb +27 -0
- data/lib/generators/bulk_ops/install/templates/config/github.yml.example +28 -0
- metadata +145 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
class BulkOps::InstallGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path('../templates', __FILE__)
|
4
|
+
|
5
|
+
def inject_routes
|
6
|
+
insert_into_file "config/routes.rb", :after => ".draw do" do
|
7
|
+
%{\n mount BulkOps::Engine => '/'\n}
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def inject_compile_assets
|
12
|
+
insert_into_file "config/initializers/assets.rb", :before => /^end/ do
|
13
|
+
%{\nRails.application.config.assets.precompile += %w( bulk_ops.js )\nRails.application.config.assets.precompile += %w( bulk_ops.css )\n}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def inject_sidebar_widget
|
18
|
+
append_to_file "app/views/hyrax/dashboard/sidebar/_ingests.html.erb" do
|
19
|
+
%{\n <%= render 'bulk_ops/bulk_ops_sidebar_widget', menu: menu %> \n}
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def copy_github_config
|
24
|
+
copy_file "config/github.yml.example", "config/github.yml"
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
development:
|
2
|
+
repo:
|
3
|
+
client_id:
|
4
|
+
client_secret:
|
5
|
+
webhook_secret:
|
6
|
+
default_user:
|
7
|
+
default_password:
|
8
|
+
test:
|
9
|
+
repo:
|
10
|
+
client_id:
|
11
|
+
client_secret:
|
12
|
+
webhook_secret:
|
13
|
+
default_user:
|
14
|
+
default_password:
|
15
|
+
staging:
|
16
|
+
repo:
|
17
|
+
client_id:
|
18
|
+
client_secret:
|
19
|
+
webhook_secret:
|
20
|
+
default_user:
|
21
|
+
default_password:
|
22
|
+
production:
|
23
|
+
repo:
|
24
|
+
client_id:
|
25
|
+
client_secret:
|
26
|
+
webhook_secret:
|
27
|
+
default_user:
|
28
|
+
default_password:
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bulk_ops
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ned Henry, UCSC Library Digital Initiatives
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.15'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: A gem to add bulk ingest and bulk update functionality to Hyrax (Samvera)
|
56
|
+
applications.
|
57
|
+
email:
|
58
|
+
- ethenry@ucsc.edu
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- app/assets/images/bulk_ops/github_logo.png
|
64
|
+
- app/assets/javascripts/bulk_ops.js
|
65
|
+
- app/assets/javascripts/bulk_ops/selections.js
|
66
|
+
- app/assets/javascripts/selections.js
|
67
|
+
- app/assets/javascripts/work_search.js
|
68
|
+
- app/assets/stylesheets/bulk_ops.scss
|
69
|
+
- app/controllers/bulk_ops/application_controller.rb
|
70
|
+
- app/controllers/bulk_ops/github_authorization_controller.rb
|
71
|
+
- app/controllers/bulk_ops/operations_controller.rb
|
72
|
+
- app/jobs/bulk_ops/application_job.rb
|
73
|
+
- app/mailers/bulk_ops/application_mailer.rb
|
74
|
+
- app/models/bulk_ops/application_record.rb
|
75
|
+
- app/views/bulk_ops/_bulk_ops_sidebar_widget.html.erb
|
76
|
+
- app/views/bulk_ops/_github_auth_widget.html.erb
|
77
|
+
- app/views/bulk_ops/operations/_bulk_ops_header.html.erb
|
78
|
+
- app/views/bulk_ops/operations/_choose_fields.html.erb
|
79
|
+
- app/views/bulk_ops/operations/_choose_notifications.html.erb
|
80
|
+
- app/views/bulk_ops/operations/_git_message.html.erb
|
81
|
+
- app/views/bulk_ops/operations/_ingest_options.html.erb
|
82
|
+
- app/views/bulk_ops/operations/_operation_options.html.erb
|
83
|
+
- app/views/bulk_ops/operations/_show_authorize.html.erb
|
84
|
+
- app/views/bulk_ops/operations/_show_complete.html.erb
|
85
|
+
- app/views/bulk_ops/operations/_show_draft.html.erb
|
86
|
+
- app/views/bulk_ops/operations/_show_new.html.erb
|
87
|
+
- app/views/bulk_ops/operations/_show_pending.html.erb
|
88
|
+
- app/views/bulk_ops/operations/_show_running.html.erb
|
89
|
+
- app/views/bulk_ops/operations/_show_verifying.html.erb
|
90
|
+
- app/views/bulk_ops/operations/_show_waiting.html.erb
|
91
|
+
- app/views/bulk_ops/operations/_update_draft_work_list.html.erb
|
92
|
+
- app/views/bulk_ops/operations/_update_draft_work_search.html.erb
|
93
|
+
- app/views/bulk_ops/operations/_update_options.html.erb
|
94
|
+
- app/views/bulk_ops/operations/index.html.erb
|
95
|
+
- app/views/bulk_ops/operations/new.html.erb
|
96
|
+
- app/views/bulk_ops/operations/show.html.erb
|
97
|
+
- config/routes.rb
|
98
|
+
- db/migrate/20180926190757_create_github_credentials.rb
|
99
|
+
- db/migrate/20181017180436_create_bulk_ops_tables.rb
|
100
|
+
- lib/bulk_ops.rb
|
101
|
+
- lib/bulk_ops/create_spreadsheet_job.rb
|
102
|
+
- lib/bulk_ops/create_work_job.rb
|
103
|
+
- lib/bulk_ops/delete_file_set_job.rb
|
104
|
+
- lib/bulk_ops/engine.rb
|
105
|
+
- lib/bulk_ops/error.rb
|
106
|
+
- lib/bulk_ops/github_access.rb
|
107
|
+
- lib/bulk_ops/github_credential.rb
|
108
|
+
- lib/bulk_ops/operation.rb
|
109
|
+
- lib/bulk_ops/relationship.rb
|
110
|
+
- lib/bulk_ops/search_builder_behavior.rb
|
111
|
+
- lib/bulk_ops/templates/configuration.yml
|
112
|
+
- lib/bulk_ops/templates/readme.md
|
113
|
+
- lib/bulk_ops/update_work_job.rb
|
114
|
+
- lib/bulk_ops/verification.rb
|
115
|
+
- lib/bulk_ops/verification_job.rb
|
116
|
+
- lib/bulk_ops/version.rb
|
117
|
+
- lib/bulk_ops/work_job.rb
|
118
|
+
- lib/bulk_ops/work_proxy.rb
|
119
|
+
- lib/generators/bulk_ops/install/install_generator.rb
|
120
|
+
- lib/generators/bulk_ops/install/templates/config/github.yml.example
|
121
|
+
homepage: http://UCSCLibrary.github.org
|
122
|
+
licenses:
|
123
|
+
- MIT
|
124
|
+
metadata: {}
|
125
|
+
post_install_message:
|
126
|
+
rdoc_options: []
|
127
|
+
require_paths:
|
128
|
+
- lib
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
requirements: []
|
140
|
+
rubygems_version: 3.0.3
|
141
|
+
signing_key:
|
142
|
+
specification_version: 4
|
143
|
+
summary: A gem to add bulk ingest and bulk update functionality to Hyrax (Samvera)
|
144
|
+
applications.
|
145
|
+
test_files: []
|