qa 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -21
  3. data/Rakefile +1 -1
  4. data/app/controllers/qa/terms_controller.rb +22 -53
  5. data/config/routes.rb +4 -7
  6. data/lib/qa/authorities.rb +3 -1
  7. data/lib/qa/authorities/base.rb +27 -8
  8. data/lib/qa/authorities/getty.rb +56 -0
  9. data/lib/qa/authorities/loc.rb +27 -131
  10. data/lib/qa/authorities/loc_subauthority.rb +90 -0
  11. data/lib/qa/authorities/local.rb +38 -21
  12. data/lib/qa/authorities/local_subauthority.rb +18 -0
  13. data/lib/qa/authorities/mesh.rb +16 -23
  14. data/lib/qa/authorities/mesh_tools/mesh_data_parser.rb +0 -25
  15. data/lib/qa/authorities/mesh_tools/mesh_importer.rb +0 -2
  16. data/lib/qa/authorities/oclcts.rb +17 -24
  17. data/lib/qa/authorities/tgnlang.rb +4 -18
  18. data/lib/qa/authorities/web_service_base.rb +3 -10
  19. data/lib/qa/version.rb +1 -1
  20. data/spec/controllers/terms_controller_spec.rb +93 -44
  21. data/spec/fixtures/aat-response.txt +108 -0
  22. data/spec/fixtures/getty-aat-find-response.json +2494 -0
  23. data/spec/fixtures/loc-response.txt +1521 -17
  24. data/spec/fixtures/loc-subject-find-response.txt +24 -0
  25. data/spec/internal/Gemfile +16 -13
  26. data/spec/internal/Gemfile.lock +121 -86
  27. data/spec/internal/app/assets/javascripts/application.js +1 -1
  28. data/spec/internal/app/assets/stylesheets/application.css +1 -1
  29. data/spec/internal/bin/rails +1 -5
  30. data/spec/internal/bin/rake +0 -4
  31. data/spec/internal/bin/setup +29 -0
  32. data/spec/internal/config.ru +1 -1
  33. data/spec/internal/config/application.rb +3 -0
  34. data/spec/internal/config/boot.rb +1 -2
  35. data/spec/internal/config/environments/development.rb +4 -0
  36. data/spec/internal/config/environments/production.rb +14 -18
  37. data/spec/internal/config/environments/test.rb +5 -2
  38. data/spec/internal/config/initializers/assets.rb +11 -0
  39. data/spec/internal/config/initializers/cookies_serializer.rb +1 -1
  40. data/spec/internal/config/secrets.yml +2 -2
  41. data/spec/internal/db/development.sqlite3 +0 -0
  42. data/spec/internal/db/migrate/{20140620210534_create_qa_subject_mesh_terms.qa.rb → 20150311214117_create_qa_subject_mesh_terms.qa.rb} +0 -0
  43. data/spec/internal/db/migrate/{20140620210535_create_qa_mesh_tree.qa.rb → 20150311214118_create_qa_mesh_tree.qa.rb} +0 -0
  44. data/spec/internal/db/migrate/{20140620210536_add_term_lower_to_qa_subject_mesh_terms.qa.rb → 20150311214119_add_term_lower_to_qa_subject_mesh_terms.qa.rb} +0 -0
  45. data/spec/internal/db/schema.rb +3 -3
  46. data/spec/internal/db/test.sqlite3 +0 -0
  47. data/spec/internal/lib/generators/test_app_generator.rb +0 -1
  48. data/spec/internal/log/development.log +498 -207
  49. data/spec/internal/test/test_helper.rb +0 -3
  50. data/spec/lib/authorities_getty_spec.rb +71 -0
  51. data/spec/lib/authorities_loc_spec.rb +98 -65
  52. data/spec/lib/authorities_loc_subauthorities.rb +81 -0
  53. data/spec/lib/authorities_local_spec.rb +53 -79
  54. data/spec/lib/authorities_local_subauthorities_spec.rb +43 -0
  55. data/spec/lib/authorities_mesh_spec.rb +16 -12
  56. data/spec/lib/authorities_oclcts_spec.rb +17 -17
  57. data/spec/lib/authorities_tgnlang_spec.rb +4 -7
  58. data/spec/lib/mesh_data_parser_spec.rb +13 -13
  59. data/spec/lib/tasks/mesh.rake_spec.rb +4 -4
  60. data/spec/models/subject_mesh_term_spec.rb +5 -5
  61. data/spec/routing/route_spec.rb +34 -0
  62. data/spec/spec_helper.rb +5 -22
  63. data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -1
  64. metadata +44 -12
  65. data/lib/qa/authorities/local/subauthority.rb +0 -65
  66. data/spec/internal/bin/spring +0 -18
@@ -0,0 +1,24 @@
1
+ [ { "@id": "_:b38authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#TopicElement" } ], "http://www.loc.gov/mads/rdf/v1#elementValue": [ { "@language": "en",
2
+ "@value": "Smith, Jonathan (Fictitious character)" } ] }, { "@id": "_:b29authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#TopicElement" } ], "http://www.loc.gov/mads/rdf/v1#elementValue": [ { "@language": "en",
3
+ "@value": "Jonathan Smith (Fictitious character)" } ] }, { "@id": "_:b28authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@id": "_:b29authoritiessubjectssh2002003586" } ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" } ] }, { "@id": "_:b14authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#Topic" }, { "@id": "http://www.loc.gov/mads/rdf/v1#Variant" } ], "http://www.loc.gov/mads/rdf/v1#variantLabel": [ { "@language": "en",
4
+ "@value": "Jon Smith (Fictitious character)" } ], "http://www.loc.gov/mads/rdf/v1#elementList": [ { "@id": "_:b19authoritiessubjectssh2002003586" } ] }, { "@id": "_:b37authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@id": "_:b38authoritiessubjectssh2002003586" } ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" } ] }, { "@id": "_:b23authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#Topic" }, { "@id": "http://www.loc.gov/mads/rdf/v1#Variant" } ], "http://www.loc.gov/mads/rdf/v1#variantLabel": [ { "@language": "en",
5
+ "@value": "Jonathan Smith (Fictitious character)" } ], "http://www.loc.gov/mads/rdf/v1#elementList": [ { "@id": "_:b28authoritiessubjectssh2002003586" } ] }, { "@id": "_:b45authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#Source" } ], "http://www.loc.gov/mads/rdf/v1#citation-source": [ { "@value": "Work cat.: 2002068362: Ludlum, Robert. Robert Ludlum's the Paris option, c2002." } ], "http://www.loc.gov/mads/rdf/v1#citation-status": [ { "@value": "found" } ] }, { "@id": "_:b20authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#TopicElement" } ], "http://www.loc.gov/mads/rdf/v1#elementValue": [ { "@language": "en",
6
+ "@value": "Jon Smith (Fictitious character)" } ] }, { "@id": "_:b19authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@id": "_:b20authoritiessubjectssh2002003586" } ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" } ] }, { "@id": "_:b32authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#Topic" }, { "@id": "http://www.loc.gov/mads/rdf/v1#Variant" } ], "http://www.loc.gov/mads/rdf/v1#variantLabel": [ { "@language": "en",
7
+ "@value": "Smith, Jonathan (Fictitious character)" } ], "http://www.loc.gov/mads/rdf/v1#elementList": [ { "@id": "_:b37authoritiessubjectssh2002003586" } ] }, { "@id": "_:b7authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@id": "_:b8authoritiessubjectssh2002003586" } ], "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" } ] }, { "@id": "_:b51authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://id.loc.gov/ontologies/RecordInfo#RecordInfo" } ], "http://id.loc.gov/ontologies/RecordInfo#recordChangeDate": [ { "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
8
+ "@value": "2002-05-21T00:00:00" } ], "http://id.loc.gov/ontologies/RecordInfo#recordStatus": [ { "@type": "http://www.w3.org/2001/XMLSchema#string",
9
+ "@value": "new" } ], "http://id.loc.gov/ontologies/RecordInfo#recordContentSource": [ { "@id": "http://id.loc.gov/vocabulary/organizations/dlc" } ], "http://id.loc.gov/ontologies/RecordInfo#languageOfCataloging": [ { "@id": "http://id.loc.gov/vocabulary/iso639-2/eng" } ] }, { "@id": "_:b59authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://id.loc.gov/ontologies/RecordInfo#RecordInfo" } ], "http://id.loc.gov/ontologies/RecordInfo#recordChangeDate": [ { "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
10
+ "@value": "2002-05-21T13:26:31" } ], "http://id.loc.gov/ontologies/RecordInfo#recordStatus": [ { "@type": "http://www.w3.org/2001/XMLSchema#string",
11
+ "@value": "revised" } ], "http://id.loc.gov/ontologies/RecordInfo#recordContentSource": [ { "@id": "http://id.loc.gov/vocabulary/organizations/dlc" } ], "http://id.loc.gov/ontologies/RecordInfo#languageOfCataloging": [ { "@id": "http://id.loc.gov/vocabulary/iso639-2/eng" } ] }, { "@id": "_:b75authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.w3.org/2008/05/skos-xl#Label" } ], "http://www.w3.org/2008/05/skos-xl#literalForm": [ { "@language": "en",
12
+ "@value": "Jonathan Smith (Fictitious character)" } ] }, { "@id": "_:b80authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.w3.org/2008/05/skos-xl#Label" } ], "http://www.w3.org/2008/05/skos-xl#literalForm": [ { "@language": "en",
13
+ "@value": "Smith, Jonathan (Fictitious character)" } ] }, { "@id": "_:b70authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.w3.org/2008/05/skos-xl#Label" } ], "http://www.w3.org/2008/05/skos-xl#literalForm": [ { "@language": "en",
14
+ "@value": "Jon Smith (Fictitious character)" } ] }, { "@id": "http://id.loc.gov/authorities/subjects/sh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#Topic" }, { "@id": "http://www.loc.gov/mads/rdf/v1#Authority" }, { "@id": "http://www.w3.org/2004/02/skos/core#Concept" } ], "http://www.loc.gov/mads/rdf/v1#authoritativeLabel": [ { "@language": "en",
15
+ "@value": "Smith, Jon (Fictitious character)" } ], "http://www.loc.gov/mads/rdf/v1#elementList": [ { "@id": "_:b7authoritiessubjectssh2002003586" } ], "http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection": [ { "@id": "http://id.loc.gov/authorities/subjects/collection_LCSHAuthorizedHeadings" }, { "@id": "http://id.loc.gov/authorities/subjects/collection_LCSH_General" } ], "http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme": [ { "@id": "http://id.loc.gov/authorities/subjects" } ], "http://www.loc.gov/mads/rdf/v1#hasVariant": [ { "@id": "_:b14authoritiessubjectssh2002003586" }, { "@id": "_:b23authoritiessubjectssh2002003586" }, { "@id": "_:b32authoritiessubjectssh2002003586" } ], "http://id.loc.gov/vocabulary/identifiers/lccn": [ { "@value": "sh2002003586" } ], "http://www.w3.org/2002/07/owl#sameAs": [ { "@id": "info:lc/authorities/sh2002003586" }, { "@id": "http://id.loc.gov/authorities/sh2002003586#concept" } ], "http://www.loc.gov/mads/rdf/v1#hasSource": [ { "@id": "_:b45authoritiessubjectssh2002003586" } ], "http://www.loc.gov/mads/rdf/v1#adminMetadata": [ { "@id": "_:b51authoritiessubjectssh2002003586" }, { "@id": "_:b59authoritiessubjectssh2002003586" } ], "http://www.w3.org/2004/02/skos/core#prefLabel": [ { "@language": "en",
16
+ "@value": "Smith, Jon (Fictitious character)" } ], "http://www.w3.org/2008/05/skos-xl#altLabel": [ { "@id": "_:b70authoritiessubjectssh2002003586" }, { "@id": "_:b75authoritiessubjectssh2002003586" }, { "@id": "_:b80authoritiessubjectssh2002003586" } ], "http://www.w3.org/2004/02/skos/core#inScheme": [ { "@id": "http://id.loc.gov/authorities/subjects" } ], "http://www.w3.org/2004/02/skos/core#altLabel": [ { "@language": "en",
17
+ "@value": "Jon Smith (Fictitious character)" }, { "@language": "en",
18
+ "@value": "Jonathan Smith (Fictitious character)" }, { "@language": "en",
19
+ "@value": "Smith, Jonathan (Fictitious character)" } ], "http://www.w3.org/2004/02/skos/core#changeNote": [ { "@id": "_:b92authoritiessubjectssh2002003586" }, { "@id": "_:b100authoritiessubjectssh2002003586" } ] }, { "@id": "_:b92authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://purl.org/vocab/changeset/schema#ChangeSet" } ], "http://purl.org/vocab/changeset/schema#subjectOfChange": [ { "@id": "http://id.loc.gov/authorities/subjects/sh2002003586" } ], "http://purl.org/vocab/changeset/schema#creatorName": [ { "@id": "http://id.loc.gov/vocabulary/organizations/dlc" } ], "http://purl.org/vocab/changeset/schema#createdDate": [ { "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
20
+ "@value": "2002-05-21T00:00:00" } ], "http://purl.org/vocab/changeset/schema#changeReason": [ { "@type": "http://www.w3.org/2001/XMLSchema#string",
21
+ "@value": "new" } ] }, { "@id": "_:b100authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://purl.org/vocab/changeset/schema#ChangeSet" } ], "http://purl.org/vocab/changeset/schema#subjectOfChange": [ { "@id": "http://id.loc.gov/authorities/subjects/sh2002003586" } ], "http://purl.org/vocab/changeset/schema#creatorName": [ { "@id": "http://id.loc.gov/vocabulary/organizations/dlc" } ], "http://purl.org/vocab/changeset/schema#createdDate": [ { "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
22
+ "@value": "2002-05-21T13:26:31" } ], "http://purl.org/vocab/changeset/schema#changeReason": [ { "@type": "http://www.w3.org/2001/XMLSchema#string",
23
+ "@value": "revised" } ] }, { "@id": "_:b8authoritiessubjectssh2002003586", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "@id": "http://www.loc.gov/mads/rdf/v1#TopicElement" } ], "http://www.loc.gov/mads/rdf/v1#elementValue": [ { "@language": "en",
24
+ "@value": "Smith, Jon (Fictitious character)" } ] } ]
@@ -2,17 +2,17 @@ source 'https://rubygems.org'
2
2
 
3
3
 
4
4
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
- gem 'rails', '4.1.1'
5
+ gem 'rails', '4.2.0'
6
6
  # Use sqlite3 as the database for Active Record
7
7
  gem 'sqlite3'
8
8
  # Use SCSS for stylesheets
9
- gem 'sass-rails', '~> 4.0.3'
9
+ gem 'sass-rails', '~> 5.0'
10
10
  # Use Uglifier as compressor for JavaScript assets
11
11
  gem 'uglifier', '>= 1.3.0'
12
- # Use CoffeeScript for .js.coffee assets and views
13
- gem 'coffee-rails', '~> 4.0.0'
12
+ # Use CoffeeScript for .coffee assets and views
13
+ gem 'coffee-rails', '~> 4.1.0'
14
14
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
15
- # gem 'therubyracer', platforms: :ruby
15
+ # gem 'therubyracer', platforms: :ruby
16
16
 
17
17
  # Use jquery as the JavaScript library
18
18
  gem 'jquery-rails'
@@ -21,21 +21,24 @@ gem 'turbolinks'
21
21
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22
22
  gem 'jbuilder', '~> 2.0'
23
23
  # bundle exec rake doc:rails generates the API under doc/api.
24
- gem 'sdoc', '~> 0.4.0', group: :doc
25
-
26
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
27
- gem 'spring', group: :development
24
+ gem 'sdoc', '~> 0.4.0', group: :doc
28
25
 
29
26
  # Use ActiveModel has_secure_password
30
27
  # gem 'bcrypt', '~> 3.1.7'
31
28
 
32
- # Use unicorn as the app server
29
+ # Use Unicorn as the app server
33
30
  # gem 'unicorn'
34
31
 
35
32
  # Use Capistrano for deployment
36
33
  # gem 'capistrano-rails', group: :development
37
34
 
38
- # Use debugger
39
- # gem 'debugger', group: [:development, :test]
35
+ group :development, :test do
36
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
37
+ gem 'byebug'
38
+
39
+ # Access an IRB console on exception pages or by using <%= console %> in views
40
+ gem 'web-console', '~> 2.0'
41
+ end
40
42
 
41
- gem 'qa', :path => '/Users/awead/Projects/Github/projecthydra-labs/questioning_authority'
43
+
44
+ gem 'qa', :path => '/Users/justin/workspace/questioning_authority'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/awead/Projects/Github/projecthydra-labs/questioning_authority
2
+ remote: /Users/justin/workspace/questioning_authority
3
3
  specs:
4
- qa (0.2.1)
4
+ qa (0.3.0)
5
5
  activerecord-import
6
6
  deprecation
7
7
  nokogiri (~> 1.6.0)
@@ -11,135 +11,170 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionmailer (4.1.1)
15
- actionpack (= 4.1.1)
16
- actionview (= 4.1.1)
17
- mail (~> 2.5.4)
18
- actionpack (4.1.1)
19
- actionview (= 4.1.1)
20
- activesupport (= 4.1.1)
21
- rack (~> 1.5.2)
14
+ actionmailer (4.2.0)
15
+ actionpack (= 4.2.0)
16
+ actionview (= 4.2.0)
17
+ activejob (= 4.2.0)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 1.0, >= 1.0.5)
20
+ actionpack (4.2.0)
21
+ actionview (= 4.2.0)
22
+ activesupport (= 4.2.0)
23
+ rack (~> 1.6.0)
22
24
  rack-test (~> 0.6.2)
23
- actionview (4.1.1)
24
- activesupport (= 4.1.1)
25
+ rails-dom-testing (~> 1.0, >= 1.0.5)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
27
+ actionview (4.2.0)
28
+ activesupport (= 4.2.0)
25
29
  builder (~> 3.1)
26
30
  erubis (~> 2.7.0)
27
- activemodel (4.1.1)
28
- activesupport (= 4.1.1)
31
+ rails-dom-testing (~> 1.0, >= 1.0.5)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
33
+ activejob (4.2.0)
34
+ activesupport (= 4.2.0)
35
+ globalid (>= 0.3.0)
36
+ activemodel (4.2.0)
37
+ activesupport (= 4.2.0)
29
38
  builder (~> 3.1)
30
- activerecord (4.1.1)
31
- activemodel (= 4.1.1)
32
- activesupport (= 4.1.1)
33
- arel (~> 5.0.0)
34
- activerecord-import (0.5.0)
39
+ activerecord (4.2.0)
40
+ activemodel (= 4.2.0)
41
+ activesupport (= 4.2.0)
42
+ arel (~> 6.0)
43
+ activerecord-import (0.7.0)
35
44
  activerecord (>= 3.0)
36
- activesupport (4.1.1)
37
- i18n (~> 0.6, >= 0.6.9)
45
+ activesupport (4.2.0)
46
+ i18n (~> 0.7)
38
47
  json (~> 1.7, >= 1.7.7)
39
48
  minitest (~> 5.1)
40
- thread_safe (~> 0.1)
49
+ thread_safe (~> 0.3, >= 0.3.4)
41
50
  tzinfo (~> 1.1)
42
- arel (5.0.1.20140414130214)
51
+ arel (6.0.0)
52
+ binding_of_caller (0.7.2)
53
+ debug_inspector (>= 0.0.1)
43
54
  builder (3.2.2)
44
- coffee-rails (4.0.1)
55
+ byebug (3.5.1)
56
+ columnize (~> 0.8)
57
+ debugger-linecache (~> 1.2)
58
+ slop (~> 3.6)
59
+ coffee-rails (4.1.0)
45
60
  coffee-script (>= 2.2.0)
46
61
  railties (>= 4.0.0, < 5.0)
47
- coffee-script (2.2.0)
62
+ coffee-script (2.3.0)
48
63
  coffee-script-source
49
64
  execjs
50
- coffee-script-source (1.7.0)
51
- deprecation (0.1.0)
65
+ coffee-script-source (1.9.1)
66
+ columnize (0.9.0)
67
+ debug_inspector (0.0.2)
68
+ debugger-linecache (1.2.0)
69
+ deprecation (0.2.2)
52
70
  activesupport
53
71
  erubis (2.7.0)
54
- execjs (2.2.0)
72
+ execjs (2.4.0)
73
+ globalid (0.3.3)
74
+ activesupport (>= 4.1.0)
55
75
  hike (1.2.3)
56
- i18n (0.6.9)
57
- jbuilder (2.1.1)
76
+ i18n (0.7.0)
77
+ jbuilder (2.2.11)
58
78
  activesupport (>= 3.0.0, < 5)
59
79
  multi_json (~> 1.2)
60
- jquery-rails (3.1.0)
61
- railties (>= 3.0, < 5.0)
80
+ jquery-rails (4.0.3)
81
+ rails-dom-testing (~> 1.0)
82
+ railties (>= 4.2.0)
62
83
  thor (>= 0.14, < 2.0)
63
- json (1.8.1)
64
- mail (2.5.4)
65
- mime-types (~> 1.16)
66
- treetop (~> 1.4.8)
67
- mime-types (1.25.1)
68
- mini_portile (0.6.0)
69
- minitest (5.3.5)
70
- multi_json (1.10.1)
71
- nokogiri (1.6.2.1)
72
- mini_portile (= 0.6.0)
73
- polyglot (0.3.5)
74
- rack (1.5.2)
75
- rack-test (0.6.2)
84
+ json (1.8.2)
85
+ loofah (2.0.1)
86
+ nokogiri (>= 1.5.9)
87
+ mail (2.6.3)
88
+ mime-types (>= 1.16, < 3)
89
+ mime-types (2.4.3)
90
+ mini_portile (0.6.2)
91
+ minitest (5.5.1)
92
+ multi_json (1.11.0)
93
+ netrc (0.10.3)
94
+ nokogiri (1.6.6.2)
95
+ mini_portile (~> 0.6.0)
96
+ rack (1.6.0)
97
+ rack-test (0.6.3)
76
98
  rack (>= 1.0)
77
- rails (4.1.1)
78
- actionmailer (= 4.1.1)
79
- actionpack (= 4.1.1)
80
- actionview (= 4.1.1)
81
- activemodel (= 4.1.1)
82
- activerecord (= 4.1.1)
83
- activesupport (= 4.1.1)
99
+ rails (4.2.0)
100
+ actionmailer (= 4.2.0)
101
+ actionpack (= 4.2.0)
102
+ actionview (= 4.2.0)
103
+ activejob (= 4.2.0)
104
+ activemodel (= 4.2.0)
105
+ activerecord (= 4.2.0)
106
+ activesupport (= 4.2.0)
84
107
  bundler (>= 1.3.0, < 2.0)
85
- railties (= 4.1.1)
86
- sprockets-rails (~> 2.0)
87
- railties (4.1.1)
88
- actionpack (= 4.1.1)
89
- activesupport (= 4.1.1)
108
+ railties (= 4.2.0)
109
+ sprockets-rails
110
+ rails-deprecated_sanitizer (1.0.3)
111
+ activesupport (>= 4.2.0.alpha)
112
+ rails-dom-testing (1.0.5)
113
+ activesupport (>= 4.2.0.beta, < 5.0)
114
+ nokogiri (~> 1.6.0)
115
+ rails-deprecated_sanitizer (>= 1.0.1)
116
+ rails-html-sanitizer (1.0.2)
117
+ loofah (~> 2.0)
118
+ railties (4.2.0)
119
+ actionpack (= 4.2.0)
120
+ activesupport (= 4.2.0)
90
121
  rake (>= 0.8.7)
91
122
  thor (>= 0.18.1, < 2.0)
92
- rake (10.3.2)
93
- rdoc (4.1.1)
94
- json (~> 1.4)
95
- rest-client (1.6.7)
96
- mime-types (>= 1.16)
97
- sass (3.2.19)
98
- sass-rails (4.0.3)
123
+ rake (10.4.2)
124
+ rdoc (4.2.0)
125
+ rest-client (1.7.3)
126
+ mime-types (>= 1.16, < 3.0)
127
+ netrc (~> 0.7)
128
+ sass (3.4.13)
129
+ sass-rails (5.0.1)
99
130
  railties (>= 4.0.0, < 5.0)
100
- sass (~> 3.2.0)
101
- sprockets (~> 2.8, <= 2.11.0)
102
- sprockets-rails (~> 2.0)
103
- sdoc (0.4.0)
104
- json (~> 1.8)
105
- rdoc (~> 4.0, < 5.0)
106
- spring (1.1.3)
107
- sprockets (2.11.0)
131
+ sass (~> 3.1)
132
+ sprockets (>= 2.8, < 4.0)
133
+ sprockets-rails (>= 2.0, < 4.0)
134
+ tilt (~> 1.1)
135
+ sdoc (0.4.1)
136
+ json (~> 1.7, >= 1.7.7)
137
+ rdoc (~> 4.0)
138
+ slop (3.6.0)
139
+ sprockets (2.12.3)
108
140
  hike (~> 1.2)
109
141
  multi_json (~> 1.0)
110
142
  rack (~> 1.0)
111
143
  tilt (~> 1.1, != 1.3.0)
112
- sprockets-rails (2.1.3)
144
+ sprockets-rails (2.2.4)
113
145
  actionpack (>= 3.0)
114
146
  activesupport (>= 3.0)
115
- sprockets (~> 2.8)
116
- sqlite3 (1.3.9)
147
+ sprockets (>= 2.8, < 4.0)
148
+ sqlite3 (1.3.10)
117
149
  thor (0.19.1)
118
- thread_safe (0.3.4)
150
+ thread_safe (0.3.5)
119
151
  tilt (1.4.1)
120
- treetop (1.4.15)
121
- polyglot
122
- polyglot (>= 0.3.1)
123
- turbolinks (2.2.2)
152
+ turbolinks (2.5.3)
124
153
  coffee-rails
125
- tzinfo (1.2.1)
154
+ tzinfo (1.2.2)
126
155
  thread_safe (~> 0.1)
127
- uglifier (2.5.1)
156
+ uglifier (2.7.1)
128
157
  execjs (>= 0.3.0)
129
158
  json (>= 1.8.0)
159
+ web-console (2.1.1)
160
+ activemodel (>= 4.0)
161
+ binding_of_caller (>= 0.7.2)
162
+ railties (>= 4.0)
163
+ sprockets-rails (>= 2.0, < 4.0)
130
164
 
131
165
  PLATFORMS
132
166
  ruby
133
167
 
134
168
  DEPENDENCIES
135
- coffee-rails (~> 4.0.0)
169
+ byebug
170
+ coffee-rails (~> 4.1.0)
136
171
  jbuilder (~> 2.0)
137
172
  jquery-rails
138
173
  qa!
139
- rails (= 4.1.1)
140
- sass-rails (~> 4.0.3)
174
+ rails (= 4.2.0)
175
+ sass-rails (~> 5.0)
141
176
  sdoc (~> 0.4.0)
142
- spring
143
177
  sqlite3
144
178
  turbolinks
145
179
  uglifier (>= 1.3.0)
180
+ web-console (~> 2.0)
@@ -2,7 +2,7 @@
2
2
  // listed below.
3
3
  //
4
4
  // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
6
  //
7
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
8
  // compiled file.
@@ -3,7 +3,7 @@
3
3
  * listed below.
4
4
  *
5
5
  * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
7
  *
8
8
  * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
9
  * compiled file so the styles you add here take precedence over styles defined in any styles
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
- APP_PATH = File.expand_path('../../config/application', __FILE__)
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
7
3
  require_relative '../config/boot'
8
4
  require 'rails/commands'
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path("../spring", __FILE__)
4
- rescue LoadError
5
- end
6
2
  require_relative '../config/boot'
7
3
  require 'rake'
8
4
  Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -1,4 +1,4 @@
1
1
  # This file is used by Rack-based servers to start the application.
2
2
 
3
- require ::File.expand_path('../config/environment', __FILE__)
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
4
  run Rails.application
@@ -19,5 +19,8 @@ module Internal
19
19
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20
20
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21
21
  # config.i18n.default_locale = :de
22
+
23
+ # Do not swallow errors in after_commit/after_rollback callbacks.
24
+ config.active_record.raise_in_transactional_callbacks = true
22
25
  end
23
26
  end
@@ -1,4 +1,3 @@
1
- # Set up gems listed in the Gemfile.
2
1
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
2
 
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
3
+ require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -27,6 +27,10 @@ Rails.application.configure do
27
27
  # number of complex assets.
28
28
  config.assets.debug = true
29
29
 
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
30
34
  # Adds additional error checking when serving assets at runtime.
31
35
  # Checks for improperly declared sprockets dependencies.
32
36
  # Raises helpful error messages.