Skip to content

Commit

Permalink
Renaming Plum to Figgy within the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed Jun 22, 2018
1 parent 0c36bee commit 20163f8
Show file tree
Hide file tree
Showing 20 changed files with 109 additions and 109 deletions.
12 changes: 6 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,26 @@ RSpec/EmptyLineAfterFinalLet:
- 'spec/models/iiif_resource_spec.rb'
- 'spec/models/solr_document_spec.rb'
- 'spec/repositories/friendly_id_repository_spec.rb'
- 'spec/services/plum_event_processor_spec.rb'
- 'spec/services/figgy_event_processor_spec.rb'
- 'spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb'
- 'spec/workers/plum_event_handler_spec.rb'
- 'spec/workers/figgy_event_handler_spec.rb'

# Offense count: 4
RSpec/EmptyLineAfterSubject:
Exclude:
- 'spec/decorators/both_fields_spec.rb'
- 'spec/models/external_manifest_spec.rb'
- 'spec/queries/external_collections_query_spec.rb'
- 'spec/services/plum_event_processor_spec.rb'
- 'spec/services/figgy_event_processor_spec.rb'

# Offense count: 15
# Configuration parameters: Max.
RSpec/ExampleLength:
Exclude:
- 'spec/controllers/catalog_controller_spec.rb'
- 'spec/models/iiif_resource_spec.rb'
- 'spec/services/plum_event_processor_spec.rb'
- 'spec/workers/plum_event_handler_spec.rb'
- 'spec/services/figgy_event_processor_spec.rb'
- 'spec/workers/figgy_event_handler_spec.rb'

# Offense count: 5
# Configuration parameters: EnforcedStyle.
Expand Down Expand Up @@ -122,7 +122,7 @@ RSpec/ScatteredLet:
# Offense count: 2
RSpec/SubjectStub:
Exclude:
- 'spec/workers/plum_event_handler_spec.rb'
- 'spec/workers/figgy_event_handler_spec.rb'

# Offense count: 8
# Configuration parameters: IgnoreSymbolicNames.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventProcessor
class FiggyEventProcessor
attr_reader :event
def initialize(event)
@event = event
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventProcessor
class FiggyEventProcessor
class CreateProcessor < Processor
def process
exhibits.map do |exhibit|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventProcessor
class FiggyEventProcessor
class DeleteProcessor < Processor
def process
IIIFResource.where(url: manifest_url).each do |resource|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventProcessor
class FiggyEventProcessor
class Processor
attr_reader :event
def initialize(event)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventProcessor
class FiggyEventProcessor
class UnknownEvent < Processor
attr_reader :event
def initialize(event)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventProcessor
class FiggyEventProcessor
class UpdateProcessor < Processor
def process
delete_old_resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="dd-handle dd3-handle"><%= t :drag %></div>
<a href="#edit-in-place" class="field-label edit-in-place"><%= index_field_label(nil, key) %></a>
<%- if @exhibit.custom_fields.vocab.map(&:field).include?(key) %>
<span class="import-tooltip glyphicon glyphicon-import" title="Imported from Plum" data-toggle="tooltip"></span>
<span class="import-tooltip glyphicon glyphicon-import" title="Imported from Figgy" data-toggle="tooltip"></span>
<% end %>
<%= field.hidden_field :label, value: index_field_label(nil, key), class: 'form-control input-sm', data: {:"edit-field-target" => 'true'} %>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PlumEventHandler
class FiggyEventHandler
include Sneakers::Worker
from_queue :"pomegranate_#{Rails.env}",
WORKER_OPTIONS.merge(
Expand All @@ -8,7 +8,7 @@ class PlumEventHandler
def work(msg)
ActiveRecord::Base.connection.verify!
msg = JSON.parse(msg)
PlumEventProcessor.new(msg).process
FiggyEventProcessor.new(msg).process
ack!
end
end
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ en:
new_exhibit_form:
fields:
slug:
label: Plum Collection
label: Figgy Collection
pages:
order_pages:
pages_header: Custom Pages
Expand Down
22 changes: 11 additions & 11 deletions spec/cassettes/all_collections.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 20163f8

Please sign in to comment.