Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clean up stash-wrapper gem #1664

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public/uploads/
uploads/
reports/
test-reports/
stash/script/counter-uploader/reports/*.json
stash/script/counter-uploader/tmp/*.json
script/stash/counter-uploader/reports/*.json
script/stash/counter-uploader/tmp/*.json

# notifier state which is shared/linked and not comitted
config/notifier_state.json
Expand Down
7 changes: 0 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ gem 'react-rails', '~> 2.6.2'
gem 'sprockets', '~> 3.0' # going to 4 breaks lots of things unless doing manual upgrade of files
gem 'webpacker', '6.0.0.rc.6'

# ############################################################
# Local engines

path 'stash' do
gem 'stash-wrapper'
end

# ############################################################
# Deployment

Expand Down
8 changes: 0 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ GIT
jquery-ui-rails (7.0.0)
railties (>= 3.2.16)

PATH
remote: stash
specs:
stash-wrapper (0.1.16)
typesafe_enum (~> 0.1.9)
xml-mapping_extensions (~> 0.4.9)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -886,7 +879,6 @@ DEPENDENCIES
spring
spring-commands-rspec
sprockets (~> 3.0)
stash-wrapper!
stripe (~> 5.50.0)
sync (~> 0.5.0)
tins (~> 1.31.0)
Expand Down
2 changes: 1 addition & 1 deletion documentation/counter_stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ lots of workarounds in place.

## The Counter Uploader tool

We reworked the [counter-uploader](../stash/script/counter-uploader/readme.md) so that it can independently
We reworked the [counter-uploader](../script/stash/counter-uploader/readme.md) so that it can independently
upload counter files outside of the Python tool. (At least for the time being) the idea
is that we'll process the counter files, populate numbers into our daatabase manually and
then once a month we can upload any missing reports to DataCite. The tool should be
Expand Down
2 changes: 0 additions & 2 deletions lib/stash/repo/stash_wrapper_builder.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'stash/wrapper'

module Stash
module Repo
class StashWrapperBuilder < ValidatingXMLBuilder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'xml/mapping_extensions'
require 'stash/wrapper/embargo_type'

module Stash
module Wrapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'xml/mapping_extensions'
require 'stash/wrapper/identifier_type'

module Stash
module Wrapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'xml/mapping'
require 'stash/wrapper/stash_file'

module Stash
module Wrapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'xml/mapping'
require 'stash/wrapper/size_unit'

module Stash
module Wrapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
require 'xml/mapping'
require 'stash/wrapper/version'
require 'stash/wrapper/license'
require 'stash/wrapper/embargo'
require 'stash/wrapper/inventory'

module Stash
module Wrapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
require 'xml/mapping'

require 'stash/wrapper/descriptive_node'
require 'stash/wrapper/identifier'
require 'stash/wrapper/stash_administrative'

module Stash
module Wrapper
# Mapping for the root `<st:stash_wrapper>` element
Expand Down
6 changes: 3 additions & 3 deletions lib/tasks/counter.rake
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ namespace :counter do
# RAILS_ENV=production REPORT_DIR="/my/report/dir" FORCE_SUBMISSION="2021-11" bundle exec rails counter:datacite_pusher
$stdout.sync = true

require_relative '../../stash/script/counter-uploader/submitted_reports'
require_relative '../../stash/script/counter-uploader/uploader'
require_relative '../../stash/script/counter-uploader/utility_methods'
require_relative '../../script/stash/counter-uploader/submitted_reports'
require_relative '../../script/stash/counter-uploader/uploader'
require_relative '../../script/stash/counter-uploader/utility_methods'

if ENV['REPORT_DIR'].blank?
puts 'You must set an environment variable for REPORT_DIR to upload to DataCite.'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions spec/lib/stash_datacite/indexing_resource_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../../../stash/spec_helpers/factory_helper'

module Datacite
module Mapping

Expand Down
1 change: 0 additions & 1 deletion spec/models/stash_engine/curation_activity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# index_stash_engine_curation_activities_on_resource_id_and_id (resource_id,id)
#
require 'ostruct'
require_relative '../../../stash/spec_helpers/factory_helper'
require 'byebug'

module StashEngine
Expand Down
6 changes: 3 additions & 3 deletions spec/script/counter_uploader_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require_relative '../../stash/script/counter-uploader/submitted_reports'
require_relative '../../stash/script/counter-uploader/uploader'
require_relative '../../stash/script/counter-uploader/utility_methods'
require_relative '../../script/stash/counter-uploader/submitted_reports'
require_relative '../../script/stash/counter-uploader/uploader'
require_relative '../../script/stash/counter-uploader/utility_methods'
require 'webmock/rspec'
require 'byebug'
require 'digest'
Expand Down
1 change: 0 additions & 1 deletion spec/support/resource_builder.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'datacite/mapping'
require 'stash/wrapper'
require 'time'

# rubocop:disable Naming/AccessorMethodName
Expand Down
1 change: 0 additions & 1 deletion spec/tasks/dash_updater_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'ostruct'
require_relative '../../lib/tasks/dash_updater'
require_relative '../../stash/spec_helpers/factory_helper'
require 'byebug'

describe 'datacite_target:update_dash', type: :task do
Expand Down
170 changes: 0 additions & 170 deletions stash/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion stash/.rubocop.yml

This file was deleted.

22 changes: 0 additions & 22 deletions stash/LICENSE.md

This file was deleted.

44 changes: 0 additions & 44 deletions stash/README.md

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed stash/documentation/images/dash_home.png
Binary file not shown.
Binary file removed stash/documentation/images/dev_login1.png
Binary file not shown.
Binary file removed stash/documentation/images/dev_login2.png
Binary file not shown.
Binary file removed stash/documentation/images/explore1.png
Binary file not shown.
Binary file removed stash/documentation/images/explore2.png
Binary file not shown.
Binary file removed stash/documentation/images/explore3.png
Binary file not shown.
Binary file removed stash/documentation/images/solr1.png
Binary file not shown.
Binary file removed stash/documentation/images/solr2.png
Binary file not shown.
Binary file removed stash/documentation/images/solr3.png
Binary file not shown.
Binary file removed stash/documentation/images/solr4.png
Binary file not shown.
Binary file removed stash/documentation/images/solr5.png
Binary file not shown.
Binary file removed stash/documentation/images/solr6.png
Binary file not shown.
Binary file removed stash/documentation/images/structure.png
Binary file not shown.
Loading
Loading