Skip to content

Commit

Permalink
Merge curation_concerns-models into curation_concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Apr 5, 2016
1 parent 8163803 commit abc7659
Show file tree
Hide file tree
Showing 110 changed files with 131 additions and 509 deletions.
32 changes: 16 additions & 16 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AllCops:
- 'script/**/*'
- 'vendor/**/*'
- '.internal_test_app/**/*'
- 'curation_concerns-models/app/models/concerns/curation_concerns/file_set/export.rb'
- 'app/models/concerns/curation_concerns/file_set/export.rb'

Rails:
Enabled: true
Expand All @@ -18,15 +18,15 @@ Performance/RedundantBlockCall:
# We can remove this exclusion when this commit is released:
# https://github.com/bbatsov/rubocop/commit/7df382531db4f66cd9872a4f478bd486d6ce6712
Exclude:
- 'curation_concerns-models/lib/curation_concerns/null_logger.rb'
- 'lib/curation_concerns/null_logger.rb'

Performance/RedundantMerge:
Enabled: false

Lint/AssignmentInCondition:
Exclude:
- 'curation_concerns-models/app/services/curation_concerns/persist_derivatives.rb'
- 'curation_concerns-models/app/actors/curation_concerns/file_set_actor.rb'
- 'app/services/curation_concerns/persist_derivatives.rb'
- 'app/actors/curation_concerns/file_set_actor.rb'

Metrics/LineLength:
Enabled: false
Expand All @@ -36,29 +36,29 @@ Metrics/AbcSize:

Metrics/CyclomaticComplexity:
Exclude:
- 'curation_concerns-models/app/services/curation_concerns/file_set_audit_service.rb'
- 'app/services/curation_concerns/file_set_audit_service.rb'
- 'app/controllers/concerns/curation_concerns/file_sets_controller_behavior.rb'
- 'app/helpers/curation_concerns/curation_concerns_helper_behavior.rb'
- 'app/helpers/curation_concerns/attribute_helper.rb'
- 'curation_concerns-models/app/actors/curation_concerns/file_set_actor.rb'
- 'curation_concerns-models/app/actors/curation_concerns/work_actor_behavior.rb'
- 'app/actors/curation_concerns/file_set_actor.rb'
- 'app/actors/curation_concerns/work_actor_behavior.rb'

Metrics/PerceivedComplexity:
Exclude:
- 'curation_concerns-models/app/services/curation_concerns/file_set_audit_service.rb'
- 'app/services/curation_concerns/file_set_audit_service.rb'
- 'app/controllers/concerns/curation_concerns/file_sets_controller_behavior.rb'
- 'app/helpers/curation_concerns/curation_concerns_helper_behavior.rb'
- 'app/helpers/curation_concerns/attribute_helper.rb'
- 'curation_concerns-models/app/actors/curation_concerns/file_set_actor.rb'
- 'app/actors/curation_concerns/file_set_actor.rb'

Metrics/MethodLength:
Enabled: false

Metrics/ClassLength:
Exclude:
- curation_concerns-models/lib/curation_concerns/configuration.rb
- lib/curation_concerns/configuration.rb
- 'lib/generators/curation_concerns/templates/catalog_controller.rb'
- 'curation_concerns-models/app/actors/curation_concerns/file_set_actor.rb'
- 'app/actors/curation_concerns/file_set_actor.rb'

Metrics/ModuleLength:
Exclude:
Expand All @@ -67,7 +67,7 @@ Metrics/ModuleLength:
- 'app/controllers/concerns/curation_concerns/catalog_controller.rb'
- 'app/controllers/concerns/curation_concerns/file_sets_controller_behavior.rb'
- 'app/helpers/curation_concerns/curation_concerns_helper_behavior.rb'
- 'curation_concerns-models/app/models/concerns/curation_concerns/solr_document_behavior.rb'
- 'app/models/concerns/curation_concerns/solr_document_behavior.rb'

Style/ZeroLengthPredicate:
Enabled: false
Expand Down Expand Up @@ -141,17 +141,17 @@ Style/SingleLineBlockParams:

Style/ClassVars:
Exclude:
- 'curation_concerns-models/lib/curation_concerns/models.rb'
- 'curation_concerns-models/lib/curation_concerns/models/engine.rb'
- 'curation_concerns-models/app/models/concerns/curation_concerns/file_set/versions.rb'
- 'lib/curation_concerns/models.rb'
- 'lib/curation_concerns/models/engine.rb'
- 'app/models/concerns/curation_concerns/file_set/versions.rb'

Style/SignalException:
Enabled: false

Rails/Output:
Exclude:
- 'lib/generators/**/*'
- 'curation_concerns-models/lib/generators/**/*'
- 'lib/generators/**/*'

Rails/Date:
Enabled: false
Expand Down
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in curation_concerns.gemspec
gemspec

gem 'curation_concerns-models', path: './curation_concerns-models'

group :development, :test do
gem 'rubocop', '~> 0.37.0', require: false
gem 'rubocop-rspec', '~> 1.3.1', require: false
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ Then run the install generator. You will be prompted if you want to overwrite t
$ rails generate curation_concerns:install
$ rake db:migrate

### FITS 0.6.2

To install FITS:
* Go to http://projects.iq.harvard.edu/fits/downloads, download __fits-0.6.2.zip__, and unpack it somewhere on your machine. You can also install FITS on OSX with homebrew: `brew install fits` (you may also have to create a symlink from fits.sh -> fits in the next step).
* Mark fits.sh as executable (chmod a+x fits.sh)
* Run "fits.sh -h" from the command line and see a help message to ensure FITS is properly installed
* Give your app access to FITS by:
* Adding the full fits.sh path to your PATH (e.g., in your .bash_profile), OR
* Changing config/initializers/sufia.rb to point to your FITS location: config.fits_path = "/<your full path>/fits.sh"

### Redis 2.6

The redlock gem requires Redis >= 2.6.

## Usage

### Generator
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ require 'active_fedora/rake_support'

Dir.glob('tasks/*.rake').each { |r| import r }

Bundler::GemHelper.install_tasks

namespace :curation_concerns do
desc 'Run style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 14 additions & 1 deletion config/locales/curation_concerns.en.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
en:
curation_concerns:
product_name: "Repository"
institution_name: &INSTITUTION_NAME "Institution Name"
catalog:
index:
type_tabs:
Expand All @@ -12,7 +14,6 @@ en:
institution:
name: "Your Institution"
homepage_url: "#"
product_name: "Repository"
search:
form:
q:
Expand Down Expand Up @@ -101,17 +102,29 @@ en:
property: keywords
title:
property: name

visibility:
open:
text: "Open Access"
class: "label-success"
label_html: <span class="label label-success">Open Access</span> Visible to the world.
authenticated:
text: *INSTITUTION_NAME
class: "label-info"
label_html: "<span class=\"label label-info\">%{institution}</span> Visible to all %{institution} users."
embargo:
text: "Embargo"
class: "label-warning"
label_html: <span class="label label-warning">Embargo</span>
lease:
text: "Lease"
class: "label-warning"
label_html: <span class="label label-warning">Lease</span>
private:
label_html: <span class="label label-danger">Private</span> Only visible to you and your delegates.
restricted:
text: "Private"
class: "label-danger"
blacklight:
search:
fields:
Expand Down
17 changes: 0 additions & 17 deletions curation_concerns-models/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions curation_concerns-models/Gemfile

This file was deleted.

177 changes: 0 additions & 177 deletions curation_concerns-models/LICENSE.md

This file was deleted.

Loading

0 comments on commit abc7659

Please sign in to comment.