diff --git a/.env b/.env new file mode 100644 index 0000000..e69de29 diff --git a/Gemfile b/Gemfile index 6e8adef..d292bac 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source "http://rubygems.org" gem "sinatra" gem "json" -gem "rack" +gem "rack", ">= 1.6.12" gem "rspec" gem "simplecov" gem "sinatra-cross_origin" diff --git a/Gemfile.lock b/Gemfile.lock index f9d90d3..eeba3c5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -34,7 +34,7 @@ GEM json (2.1.0) minitest (5.11.3) public_suffix (3.0.3) - rack (1.6.11) + rack (1.6.12) rack-protection (1.5.5) rack rack-test (1.1.0) @@ -83,7 +83,7 @@ DEPENDENCIES codeclimate-test-reporter (~> 1.0, >= 1.0.8) factory_bot json - rack + rack (>= 1.6.12) rack-test rspec simplecov diff --git a/README.md b/README.md index 5d639a4..6d3d187 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ But if you really want to install and work with the reconciler locally, you can ## test -`curl http://localhost:4567/heartbeat` +`curl http://localhost:9292/heartbeat` You should see something like: diff --git a/app.rb b/app.rb index 0d35915..39532b8 100644 --- a/app.rb +++ b/app.rb @@ -4,8 +4,7 @@ require 'open-uri' set :bind, '0.0.0.0' -set :protection, except: :frame_options - +set :protection, :except=>[:frame_options,:path_traversal] ROR_API = 'https://api.ror.org'.freeze ROR_RECON = 'https://reconcile.ror.org'.freeze MAX_RESULTS = 5 diff --git a/example/publisher_affiliation_names_with_local_ids.txt b/example/publisher_affiliation_names_with_local_ids.txt new file mode 100644 index 0000000..e4c258d --- /dev/null +++ b/example/publisher_affiliation_names_with_local_ids.txt @@ -0,0 +1,16 @@ +publisher_id name +1000001 University of Oxford +1000002 Oxford University +1000003 Welcome Trust +1000004 US Department of Transportation +1000005 National Aeronautics and Space Administration +1000006 National Institutes of Health +1000007 U.S. Department of Transportation +1000008 US Department of Transport +1000009 NASA +1000010 Wellcome Trust +1000011 Sloan Foundation +1000012 National Institute of Health +1000013 All Souls College, University of Oxford +1000014 Oxfnord University +1000015 The Foundation for Psychoceramics