Skip to content

Commit

Permalink
Drop the migrations dir--everything now rolled into the backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
marktriggs committed Jan 6, 2014
1 parent 091399b commit 09ef628
Show file tree
Hide file tree
Showing 56 changed files with 6 additions and 42 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ build/*.tmp
build/.gem
build/shared
backend/tests/ladle-server*
/migrations/examples/csv/accessions-sample.csv
webdriver-profile*
common/ARCHIVESSPACE_VERSION
migrations/spec/doc.xml
.yardoc
API.md
migrations/spec/ead.xml
config/gemnasium.yml
build/demo_db_backups
5 changes: 1 addition & 4 deletions .yardopts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@
'common/*.rb'
'common/db/*.rb'
'common/schemas/*.rb'
'migrations/lib/*.rb'
'migrations/models/*.rb'
'migrations/serializers/*.rb'
-
API.md
ARCHITECTURE.md
README_TOMCAT.md
UPGRADING.md
UPGRADING.md
2 changes: 1 addition & 1 deletion _yard/yard-aspace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class ASpaceYARD
def self.subreadmes
objects = []
Dir.glob('{frontend,backend,common,migrations}/**/*.md').each do |file|
Dir.glob('{frontend,backend,common}/**/*.md').each do |file|
objects << YARD::CodeObjects::ExtraFileObject.new(file.gsub(/\//, '_').upcase, IO.read(file))
end
objects
Expand Down
2 changes: 1 addition & 1 deletion backend/app/lib/export.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "../../../migrations/lib/exporter"
require_relative "../migrations/lib/exporter"

module ExportHelpers

Expand Down
2 changes: 0 additions & 2 deletions backend/app/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ def self.loaded_hook(&block)
config.dont_reload File.join("app", "lib", "rest.rb")
config.dont_reload File.join("**", "migrations", "*.rb")
config.dont_reload File.join("**", "spec", "*.rb")
config.also_reload File.join("../", "migrations", "lib", "exporter.rb")
config.also_reload File.join("../", "migrations", "serializers", "*.rb")

set :server, :puma
end
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion backend/spec/lib_ead_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
describe "EAD Import Mappings" do

def convert_test_file
converter = EADConverter.new(File.expand_path("../../migrations/examples/ead/at-tracer.xml", File.dirname(__FILE__)))
converter = EADConverter.new(File.expand_path("../app/migrations/examples/ead/at-tracer.xml", File.dirname(__FILE__)))
converter.run
parsed = JSON(IO.read(converter.get_output_path))

Expand Down
2 changes: 1 addition & 1 deletion backend/spec/lib_marcxml_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@


def convert_test_file
converter = MarcXMLConverter.new(File.expand_path("../../migrations/examples/marc/at-tracer-marc-1.xml", File.dirname(__FILE__)))
converter = MarcXMLConverter.new(File.expand_path("../app/migrations/examples/marc/at-tracer-marc-1.xml", File.dirname(__FILE__)))
converter.run
parsed = JSON(IO.read(converter.get_output_path))

Expand Down
25 changes: 0 additions & 25 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
<antcall target="bundler"><param name="gemfile" value="../frontend/Gemfile" /></antcall>
<antcall target="bundler"><param name="gemfile" value="../selenium/Gemfile" /></antcall>
<antcall target="bundler"><param name="gemfile" value="../_yard/Gemfile" /></antcall>
<antcall target="bundler"><param name="gemfile" value="../migrations/Gemfile" /></antcall>
<antcall target="bundler"><param name="gemfile" value="../public/Gemfile" /></antcall>
<antcall target="bundler"><param name="gemfile" value="../selenium-public/Gemfile" /></antcall>
<antcall target="bundler"><param name="gemfile" value="../indexer/Gemfile" /></antcall>
Expand Down Expand Up @@ -338,30 +337,6 @@
</target>


<!-- Migrations -->
<target name="migrations:import:help" description="Show help for import in the migrations module">
<java classpath="${jruby_file}" classname="org.jruby.Main" fork="true"
failonerror="true"
dir="../migrations">
<jvmarg line="${default_java_options} ${env.JAVA_OPTS}"/>
<env key="GEM_HOME" value="${gem_home}" />
<env key="GEM_PATH" value="" />
<arg line="--1.9 ./import.rb --help" />
</java>
</target>

<target name="migrations:import:list" description="List available importers in the migrations module">
<java classpath="${jruby_file}" classname="org.jruby.Main" fork="true"
failonerror="true"
dir="../migrations">
<jvmarg line="${default_java_options} ${env.JAVA_OPTS}"/>
<env key="GEM_HOME" value="${gem_home}" />
<env key="GEM_PATH" value="" />
<arg line="--1.9 ./import.rb --list-importers" />
</java>
</target>


<!-- Selenium -->
<target name="selenium:test" depends="set-classpath, frontend:clean" description="Run the Selenium tests">
<property name="spec" value=""/>
Expand Down
1 change: 0 additions & 1 deletion common/aspace_coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def self.start(test_name, env = nil)
add_filter "common/spec"
add_filter "backend/spec"
add_filter "backend/tests"
add_filter "migrations/spec"
add_filter "frontend/spec"
add_filter "selenium"
end
Expand Down
2 changes: 1 addition & 1 deletion frontend/config/warble.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
config.features = []

# Application directories to be included in the webapp.
config.dirs = %w(app config lib log vendor tmp ../migrations)
config.dirs = %w(app config lib log vendor tmp)

# Additional files/directories to include, above those in config.dirs
#
Expand Down
2 changes: 0 additions & 2 deletions public/config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
ASpaceGems.setup

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

$:.unshift File.join(File.dirname(__FILE__), "../../migrations/lib")

0 comments on commit 09ef628

Please sign in to comment.