locabulary 0.7.1 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a530ca8cb22b66cd2e70faf196726f2234a96df
4
- data.tar.gz: c93038497c23c882fa1c4c7d4085c03b71f74df6
3
+ metadata.gz: 688c412ebf6f10cdc690f74ef71c2e26f05bde76
4
+ data.tar.gz: 30c474dc41fdfc384a89d1476af2b50511ce51ea
5
5
  SHA512:
6
- metadata.gz: 672db8a5270258f3f05848463a4df4a33c4f231b51d69b7d4757d724caad3198de9c04d1ed2b32d6312f3e64b33665d66704844dc9660068cec8545338935409
7
- data.tar.gz: d6c0992457f66f37ab31e37fc40a7f02b01e0338133a62a78bfde387bb0e011f60b4259f5f4fb3dd60b7542064bb15a6ba8cf0ad4b05bb30c643310f41d802e2
6
+ metadata.gz: 4f2867b553d1c83ee2d4f56f45055d2dd2829cd26fe01a46ea4c3edca1c847f36f8adf6918da93fe1b3e748acb1c6ff4b92f55f6ecf1871ffcefaa252eaff46b
7
+ data.tar.gz: 88df884c8ceaa8fb15c0767378b3e9e96ab89aed5642cece677ff8085e180982bb8170cccb31dc88532ea7cf46abc17768ed6c008db5c6337066b5d9dae71b17
@@ -2,3 +2,4 @@ speedups:
2
2
  each_with_index_vs_while: false
3
3
  exclude_paths:
4
4
  - 'vendor/**/*.rb'
5
+ - 'gemfiles/**/*.rb'
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /config/client_secrets.yml
11
+ /gemfiles/*.lock
@@ -17,6 +17,7 @@ AllCops:
17
17
  Include:
18
18
  - Rakefile
19
19
  Exclude:
20
+ - 'gemfiles/**/*'
20
21
  - 'vendor/**/*'
21
22
  - 'tmp/**/*'
22
23
  - 'bin/**/*'
@@ -1 +1 @@
1
- 2.2.2
1
+ 2.1.10
@@ -1,9 +1,22 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
4
- - 2.0.0
3
+ - "2.1.10"
4
+ - "2.2.10"
5
+ - "2.3.7"
6
+ - "2.4.4"
7
+ - "2.5.1"
5
8
  cache: bundler
6
9
  sudo: false
7
10
  env:
8
11
  global:
9
12
  - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
13
+
14
+ matrix:
15
+ exclude:
16
+ - rvm: 2.0.0
17
+ gemfile: gemfiles/activesupport5.gemfile
18
+ - rvm: 2.1.10
19
+ gemfile: gemfiles/activesupport5.gemfile
20
+ gemfile:
21
+ - gemfiles/activesupport5.gemfile
22
+ - gemfiles/activesupport4.gemfile
data/README.md CHANGED
@@ -16,11 +16,23 @@ robust options.
16
16
  See the [Locublary module in lib/locabulary](/lib/locabulary.rb) for the public methods of this gem.
17
17
 
18
18
  ## Testing
19
+ Install the gems via `BUNDLE_GEMFILE=gemfiles/activesupport4.gemfile bundle install`
19
20
 
20
21
  The full test suite is run via `bundle exec rake`.
21
22
 
22
23
  If you are interested in running each file in isolation - a good thing for unit tests - use `./bin/rspec_isolated`.
23
24
 
25
+ ### Testing/Using Different Gemfiles
26
+
27
+ If you want to run your tests via a different gemfile, see the following:
28
+
29
+ ```console
30
+ $ BUNDLE_GEMFILE=gemfiles/activesupport4.gemfile bundle install
31
+ $ BUNDLE_GEMFILE=gemfiles/activesupport4.gemfile bundle exec rspec
32
+ ```
33
+
34
+ See the [Bundler `bundle config` documentation](https://bundler.io/v1.16/bundle_config.html) for further information.
35
+
24
36
  ## Updating Data Files
25
37
 
26
38
  The "administrative_units" data is maintained in a Google Spreadsheet. To synchronize the JSON data:
data/Rakefile CHANGED
@@ -13,9 +13,7 @@ unless Rake::Task.task_defined?('spec')
13
13
  end
14
14
 
15
15
  require 'rubocop/rake_task'
16
- RuboCop::RakeTask.new do |task|
17
- task.options << "--config=.hound.yml"
18
- end
16
+ RuboCop::RakeTask.new
19
17
 
20
18
  namespace :commitment do
21
19
  task :configure_test_for_code_coverage do
@@ -17,6 +17,14 @@
17
17
  "homepage": "http://architecture.nd.edu/",
18
18
  "activated_on": "2015-07-22"
19
19
  },
20
+ {
21
+ "predicate_name": "administrative_units",
22
+ "term_label": "University of Notre Dame::Keough School of Global Affairs",
23
+ "classification": "College",
24
+ "default_presentation_sequence": 10,
25
+ "homepage": "http://keough.nd.edu/",
26
+ "activated_on": "2018-05-02"
27
+ },
20
28
  {
21
29
  "predicate_name": "administrative_units",
22
30
  "term_label": "University of Notre Dame::College of Arts and Letters",
@@ -408,7 +416,7 @@
408
416
  "predicate_name": "administrative_units",
409
417
  "term_label": "University of Notre Dame::Hesburgh Libraries",
410
418
  "classification": "College",
411
- "default_presentation_sequence": 10,
419
+ "default_presentation_sequence": 11,
412
420
  "homepage": "http://library.nd.edu/",
413
421
  "activated_on": "2015-07-22"
414
422
  },
@@ -434,9 +442,189 @@
434
442
  },
435
443
  {
436
444
  "predicate_name": "administrative_units",
437
- "term_label": "University of Notre Dame::Centers and Institutes",
445
+ "term_label": "University of Notre Dame::Notre Dame Research",
438
446
  "classification": "CenterOrInstitute",
439
447
  "default_presentation_sequence": 11,
448
+ "activated_on": "2018-03-11"
449
+ },
450
+ {
451
+ "predicate_name": "administrative_units",
452
+ "term_label": "University of Notre Dame::Notre Dame Research::Advanced Diagnostics and Therapeutics",
453
+ "classification": "CenterOrInstitute",
454
+ "homepage": "https://advanceddiagnostics.nd.edu/",
455
+ "activated_on": "2018-03-11"
456
+ },
457
+ {
458
+ "predicate_name": "administrative_units",
459
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Environmental Science and Technology",
460
+ "classification": "CenterOrInstitute",
461
+ "affiliation": "University of Notre Dame::College of Engineering",
462
+ "homepage": "http://www.nd.edu/~cest/",
463
+ "activated_on": "2018-03-11"
464
+ },
465
+ {
466
+ "predicate_name": "administrative_units",
467
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Informatics and Computational Science",
468
+ "classification": "CenterOrInstitute",
469
+ "homepage": "https://cics.nd.edu/",
470
+ "activated_on": "2018-03-11"
471
+ },
472
+ {
473
+ "predicate_name": "administrative_units",
474
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Research Computing",
475
+ "classification": "CenterOrInstitute",
476
+ "homepage": "https://crc.nd.edu/",
477
+ "activated_on": "2018-03-11"
478
+ },
479
+ {
480
+ "predicate_name": "administrative_units",
481
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Social Research",
482
+ "classification": "CenterOrInstitute",
483
+ "homepage": "https://csr.nd.edu/",
484
+ "activated_on": "2018-03-11"
485
+ },
486
+ {
487
+ "predicate_name": "administrative_units",
488
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Theology, Science, and Human Flourishing",
489
+ "classification": "CenterOrInstitute",
490
+ "activated_on": "2018-03-11"
491
+ },
492
+ {
493
+ "predicate_name": "administrative_units",
494
+ "term_label": "University of Notre Dame::Notre Dame Research::Eck Institute for Global Health",
495
+ "classification": "CenterOrInstitute",
496
+ "homepage": "http://globalhealth.nd.edu/",
497
+ "activated_on": "2018-03-11"
498
+ },
499
+ {
500
+ "predicate_name": "administrative_units",
501
+ "term_label": "University of Notre Dame::Notre Dame Research::Engineering and Design Core Facility",
502
+ "classification": "CenterOrInstitute",
503
+ "homepage": "https://edcf.nd.edu/",
504
+ "activated_on": "2018-03-11"
505
+ },
506
+ {
507
+ "predicate_name": "administrative_units",
508
+ "term_label": "University of Notre Dame::Notre Dame Research::Environmental Change Initiative",
509
+ "classification": "CenterOrInstitute",
510
+ "homepage": "https://environmentalchange.nd.edu/",
511
+ "activated_on": "2018-03-11"
512
+ },
513
+ {
514
+ "predicate_name": "administrative_units",
515
+ "term_label": "University of Notre Dame::Notre Dame Research::University of Notre Dame Environmental Research Center (UNDERC)",
516
+ "classification": "CenterOrInstitute",
517
+ "affiliation": "University of Notre Dame::College of Science",
518
+ "homepage": "http://underc.nd.edu/",
519
+ "activated_on": "2018-03-11"
520
+ },
521
+ {
522
+ "predicate_name": "administrative_units",
523
+ "term_label": "University of Notre Dame::Notre Dame Research::Freimann Life Sciences Center",
524
+ "classification": "CenterOrInstitute",
525
+ "homepage": "https://freimann.nd.edu/",
526
+ "activated_on": "2018-03-11"
527
+ },
528
+ {
529
+ "predicate_name": "administrative_units",
530
+ "term_label": "University of Notre Dame::Notre Dame Research::Genomics and Bioinformatics Core Facility",
531
+ "classification": "CenterOrInstitute",
532
+ "homepage": "http://genomics.nd.edu/",
533
+ "activated_on": "2018-03-11"
534
+ },
535
+ {
536
+ "predicate_name": "administrative_units",
537
+ "term_label": "University of Notre Dame::Notre Dame Research::Integrated Imaging Facility",
538
+ "classification": "CenterOrInstitute",
539
+ "homepage": "https://imaging.nd.edu/",
540
+ "activated_on": "2018-03-11"
541
+ },
542
+ {
543
+ "predicate_name": "administrative_units",
544
+ "term_label": "University of Notre Dame::Notre Dame Research::Harper Cancer Research Institute",
545
+ "classification": "CenterOrInstitute",
546
+ "affiliation": "University of Notre Dame::College of Science",
547
+ "homepage": "http://harpercancer.nd.edu/",
548
+ "activated_on": "2018-03-11"
549
+ },
550
+ {
551
+ "predicate_name": "administrative_units",
552
+ "term_label": "University of Notre Dame::Notre Dame Research::Interdisciplinary Center for Network Science and Applications (iCeNSA)",
553
+ "classification": "CenterOrInstitute",
554
+ "homepage": "http://icensa.nd.edu/",
555
+ "activated_on": "2018-03-11"
556
+ },
557
+ {
558
+ "predicate_name": "administrative_units",
559
+ "term_label": "University of Notre Dame::Notre Dame Research::Materials Characterization Facility",
560
+ "classification": "CenterOrInstitute",
561
+ "homepage": "https://mcf.nd.edu/",
562
+ "activated_on": "2018-03-11"
563
+ },
564
+ {
565
+ "predicate_name": "administrative_units",
566
+ "term_label": "University of Notre Dame::Notre Dame Research::Notre Dame Global Adaptation Initiative (ND-GAIN)",
567
+ "classification": "CenterOrInstitute",
568
+ "homepage": "https://gain.nd.edu/",
569
+ "activated_on": "2018-03-11"
570
+ },
571
+ {
572
+ "predicate_name": "administrative_units",
573
+ "term_label": "University of Notre Dame::Notre Dame Research::Notre Dame Institute for Advanced Study",
574
+ "classification": "CenterOrInstitute",
575
+ "homepage": "https://ndias.nd.edu/",
576
+ "activated_on": "2018-03-11"
577
+ },
578
+ {
579
+ "predicate_name": "administrative_units",
580
+ "term_label": "University of Notre Dame::Notre Dame Research::Notre Dame Linked Experimental Ecosystem Facility",
581
+ "classification": "CenterOrInstitute",
582
+ "homepage": "https://environmentalchange.nd.edu/resources/nd-leef/",
583
+ "activated_on": "2018-03-11"
584
+ },
585
+ {
586
+ "predicate_name": "administrative_units",
587
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Sustainable Energy (ND Energy)",
588
+ "description": "Center for Sustainable Energy at Notre Dame",
589
+ "classification": "CenterOrInstitute",
590
+ "homepage": "http://energy.nd.edu/",
591
+ "activated_on": "2018-03-11"
592
+ },
593
+ {
594
+ "predicate_name": "administrative_units",
595
+ "term_label": "University of Notre Dame::Notre Dame Research::Center for Nano Science and Technology (NDnano)",
596
+ "description": "Nano Science and Technology",
597
+ "classification": "CenterOrInstitute",
598
+ "affiliation": "University of Notre Dame::College of Engineering",
599
+ "homepage": "http://nano.nd.edu/",
600
+ "activated_on": "2018-03-11"
601
+ },
602
+ {
603
+ "predicate_name": "administrative_units",
604
+ "term_label": "University of Notre Dame::Notre Dame Research::Radiation Laboratory",
605
+ "classification": "CenterOrInstitute",
606
+ "homepage": "http://www.rad.nd.edu/",
607
+ "activated_on": "2018-03-11"
608
+ },
609
+ {
610
+ "predicate_name": "administrative_units",
611
+ "term_label": "University of Notre Dame::Notre Dame Research::Notre Dame Turbomachinery Laboratory",
612
+ "classification": "CenterOrInstitute",
613
+ "homepage": "https://turbo.nd.edu/",
614
+ "activated_on": "2018-03-11"
615
+ },
616
+ {
617
+ "predicate_name": "administrative_units",
618
+ "term_label": "University of Notre Dame::Notre Dame Research::W. M. Keck Center For Transgene Research",
619
+ "classification": "CenterOrInstitute",
620
+ "homepage": "http://transgene.nd.edu/",
621
+ "activated_on": "2018-03-11"
622
+ },
623
+ {
624
+ "predicate_name": "administrative_units",
625
+ "term_label": "University of Notre Dame::Centers and Institutes",
626
+ "classification": "CenterOrInstitute",
627
+ "default_presentation_sequence": 12,
440
628
  "activated_on": "2015-07-22"
441
629
  },
442
630
  {
@@ -478,14 +666,6 @@
478
666
  "homepage": "http://library.nd.edu/cds/",
479
667
  "activated_on": "2015-07-22"
480
668
  },
481
- {
482
- "predicate_name": "administrative_units",
483
- "term_label": "University of Notre Dame::Centers and Institutes::Center for Environmental Science and Technology",
484
- "classification": "CenterOrInstitute",
485
- "affiliation": "University of Notre Dame::College of Engineering",
486
- "homepage": "http://www.nd.edu/~cest/",
487
- "activated_on": "2015-07-22"
488
- },
489
669
  {
490
670
  "predicate_name": "administrative_units",
491
671
  "term_label": "University of Notre Dame::Centers and Institutes::Center for Ethics and Culture",
@@ -596,12 +776,6 @@
596
776
  "homepage": "http://cssm.nd.edu/",
597
777
  "activated_on": "2015-07-22"
598
778
  },
599
- {
600
- "predicate_name": "administrative_units",
601
- "term_label": "University of Notre Dame::Centers and Institutes::Center for Theology, Science, and Human Flourishing",
602
- "classification": "CenterOrInstitute",
603
- "activated_on": "2015-07-22"
604
- },
605
779
  {
606
780
  "predicate_name": "administrative_units",
607
781
  "term_label": "University of Notre Dame::Centers and Institutes::Center for Zebrafish Research",
@@ -626,21 +800,6 @@
626
800
  "homepage": "http://business.nd.edu/Ethics_Centers/Deloitte_Center_for_Ethical_Leadership/",
627
801
  "activated_on": "2015-07-22"
628
802
  },
629
- {
630
- "predicate_name": "administrative_units",
631
- "term_label": "University of Notre Dame::Centers and Institutes::Eck Institute for Global Health",
632
- "classification": "CenterOrInstitute",
633
- "homepage": "http://globalhealth.nd.edu/",
634
- "activated_on": "2015-07-22"
635
- },
636
- {
637
- "predicate_name": "administrative_units",
638
- "term_label": "University of Notre Dame::Centers and Institutes::Environmental Research Center (UNDERC)",
639
- "classification": "CenterOrInstitute",
640
- "affiliation": "University of Notre Dame::College of Science",
641
- "homepage": "http://underc.nd.edu/",
642
- "activated_on": "2015-07-22"
643
- },
644
803
  {
645
804
  "predicate_name": "administrative_units",
646
805
  "term_label": "University of Notre Dame::Centers and Institutes::Fanning Center for Business Communication",
@@ -664,23 +823,6 @@
664
823
  "homepage": "http://business.nd.edu/Gigot_Center",
665
824
  "activated_on": "2015-07-22"
666
825
  },
667
- {
668
- "predicate_name": "administrative_units",
669
- "term_label": "University of Notre Dame::Centers and Institutes::Harper Cancer Research Institute",
670
- "classification": "CenterOrInstitute",
671
- "affiliation": "University of Notre Dame::College of Science",
672
- "homepage": "http://harpercancer.nd.edu/",
673
- "activated_on": "2015-07-22"
674
- },
675
- {
676
- "predicate_name": "administrative_units",
677
- "term_label": "University of Notre Dame::Centers and Institutes::iCeNSA",
678
- "description": "Interdisciplinary Center for Network Science & Applications",
679
- "classification": "CenterOrInstitute",
680
- "affiliation": "University of Notre Dame::College of Science",
681
- "homepage": "http://www.icensa.com/",
682
- "activated_on": "2015-07-22"
683
- },
684
826
  {
685
827
  "predicate_name": "administrative_units",
686
828
  "term_label": "University of Notre Dame::Centers and Institutes::Institute for Church Life",
@@ -735,13 +877,6 @@
735
877
  "homepage": "http://physics.nd.edu/research/centers/",
736
878
  "activated_on": "2015-07-22"
737
879
  },
738
- {
739
- "predicate_name": "administrative_units",
740
- "term_label": "University of Notre Dame::Centers and Institutes::Interdisciplinary Center for Network Science and Applications",
741
- "classification": "CenterOrInstitute",
742
- "homepage": "http://icensa.nd.edu/",
743
- "activated_on": "2015-07-22"
744
- },
745
880
  {
746
881
  "predicate_name": "administrative_units",
747
882
  "term_label": "University of Notre Dame::Centers and Institutes::Interdisciplinary Center for the Study of Biocomplexity",
@@ -826,30 +961,6 @@
826
961
  "homepage": "http://nanovic.nd.edu/",
827
962
  "activated_on": "2015-07-22"
828
963
  },
829
- {
830
- "predicate_name": "administrative_units",
831
- "term_label": "University of Notre Dame::Centers and Institutes::NDEnergy",
832
- "description": "Center for Sustainable Energy at Notre Dame",
833
- "classification": "CenterOrInstitute",
834
- "homepage": "http://energy.nd.edu/",
835
- "activated_on": "2015-07-22"
836
- },
837
- {
838
- "predicate_name": "administrative_units",
839
- "term_label": "University of Notre Dame::Centers and Institutes::NDnano",
840
- "description": "Nano Science and Technology",
841
- "classification": "CenterOrInstitute",
842
- "affiliation": "University of Notre Dame::College of Engineering",
843
- "homepage": "http://nano.nd.edu/",
844
- "activated_on": "2015-07-22"
845
- },
846
- {
847
- "predicate_name": "administrative_units",
848
- "term_label": "University of Notre Dame::Centers and Institutes::Notre Dame Radiation Laboratory",
849
- "classification": "CenterOrInstitute",
850
- "homepage": "http://www.rad.nd.edu/",
851
- "activated_on": "2015-07-22"
852
- },
853
964
  {
854
965
  "predicate_name": "administrative_units",
855
966
  "term_label": "University of Notre Dame::Centers and Institutes::QuarkNet Center",
@@ -889,13 +1000,6 @@
889
1000
  "homepage": "http://library.nd.edu/vrc/",
890
1001
  "activated_on": "2015-07-22"
891
1002
  },
892
- {
893
- "predicate_name": "administrative_units",
894
- "term_label": "University of Notre Dame::Centers and Institutes::W. M. Keck Center For Transgene Research",
895
- "classification": "CenterOrInstitute",
896
- "homepage": "http://transgene.nd.edu/",
897
- "activated_on": "2015-07-22"
898
- },
899
1003
  {
900
1004
  "predicate_name": "administrative_units",
901
1005
  "term_label": "University of Notre Dame::Centers and Institutes::William J. Shaw Center for Children and Families",
@@ -916,15 +1020,23 @@
916
1020
  "predicate_name": "administrative_units",
917
1021
  "term_label": "University of Notre Dame::University of Notre Dame Press",
918
1022
  "classification": "CampusOffice",
919
- "default_presentation_sequence": 12,
1023
+ "default_presentation_sequence": 13,
920
1024
  "homepage": "http://undpress.nd.edu/",
921
1025
  "activated_on": "2015-07-22"
922
1026
  },
1027
+ {
1028
+ "predicate_name": "administrative_units",
1029
+ "term_label": "University of Notre Dame::Snite Museum of Art",
1030
+ "classification": "OrganizationalGroup",
1031
+ "default_presentation_sequence": 14,
1032
+ "homepage": "http://snite.nd.edu/",
1033
+ "activated_on": "2018-04-17"
1034
+ },
923
1035
  {
924
1036
  "predicate_name": "administrative_units",
925
1037
  "term_label": "Catholic Organizations",
926
1038
  "classification": "OrganizationalGroup",
927
- "default_presentation_sequence": 13,
1039
+ "default_presentation_sequence": 15,
928
1040
  "activated_on": "2015-07-22"
929
1041
  },
930
1042
  {
@@ -27,8 +27,13 @@
27
27
  "activated_on": "2015-07-22"
28
28
  },
29
29
  {
30
- "term_label": "First Year of Studies",
30
+ "term_label": "Keough School of Global Affairs",
31
31
  "default_presentation_sequence": 60,
32
+ "activated_on": "2018-05-02"
33
+ },
34
+ {
35
+ "term_label": "First Year of Studies",
36
+ "default_presentation_sequence": 70,
32
37
  "activated_on": "2015-12-14"
33
38
  }
34
39
  ]
@@ -0,0 +1,32 @@
1
+ # The purpose of this file is to preserve the current state of locabulary's dependencies
2
+ # And inch forward
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in vocabulary.gemspec
6
+ gemspec path: '../'
7
+
8
+ gem "json", "~> 1.8"
9
+ gem "dry-configurable", "~> 0.1.7"
10
+ # gem "activesupport", '>= 4.0', "< 6.0"
11
+ gem 'activesupport', '~> 4.0'
12
+
13
+ group :test do
14
+ gem "dry-validation", "~> 0.9.5"
15
+ gem "dry-logic", "~> 0.3.0"
16
+ gem "dry-types", "~> 0.8.1"
17
+ gem "dry-container", "~> 0.5.0"
18
+ gem "dry-equalizer", "~> 0.2.0"
19
+ gem "dry-monads", "~> 0.1.1"
20
+ gem "bundler"
21
+ gem "rspec", '3.5.0'
22
+ gem "rspec-its", '1.2.0'
23
+ gem "rake", "~> 10.0"
24
+ gem 'google_drive', "2.1.2"
25
+ gem 'highline', '1.7.8'
26
+ gem "rubocop", '~> 0.46.0'
27
+ gem "simplecov", '0.12.0'
28
+ gem "codeclimate-test-reporter", '1.0.3'
29
+ gem "fasterer", '0.3.2'
30
+ gem "shoulda-matchers", '3.1.1'
31
+ gem "nokogiri", '~> 1.6.8.1'
32
+ end
@@ -0,0 +1,8 @@
1
+ # The purpose of this file is to preserve the current state of locabulary's dependencies
2
+ # And inch forward
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in vocabulary.gemspec
6
+ gemspec path: '../'
7
+ # gem "activesupport", '>= 4.0', "< 6.0"
8
+ gem 'activesupport', '~> 5.0'
@@ -17,11 +17,15 @@ module Locabulary
17
17
 
18
18
  # There is a problem with the hierarchy; A child is being defined without a defined parent.
19
19
  class MissingHierarchicalParentError < RuntimeError
20
- attr_reader :predicate_name, :error
21
- def initialize(predicate_name, error)
20
+ attr_reader :predicate_name, :error, :item
21
+ def initialize(predicate_name, error, item = nil)
22
22
  @predicate_name = predicate_name
23
23
  @error = error
24
- super("Expected #{predicate_name.inspect} to have a welformed tree. Error: #{error}")
24
+ @item = item
25
+ message = ["Expected #{predicate_name.inspect} to have a welformed tree."]
26
+ message << "With item #{item.inspect}." if item
27
+ message << "Error: #{error}"
28
+ super(message.join(" "))
25
29
  end
26
30
  end
27
31
  end
@@ -46,7 +46,7 @@ module Locabulary
46
46
  begin
47
47
  hierarchy_graph_keys.fetch(item.parent_term_label).add_child(item) unless item.parent_slugs.empty?
48
48
  rescue KeyError => error
49
- raise Exceptions::MissingHierarchicalParentError.new(predicate_name, error)
49
+ raise Exceptions::MissingHierarchicalParentError.new(predicate_name, error, item)
50
50
  end
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module Locabulary
2
- VERSION = '0.7.1'.freeze
2
+ VERSION = '0.8.1'.freeze
3
3
  end
@@ -19,27 +19,35 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
  spec.license = 'APACHE2'
21
21
 
22
- spec.add_dependency "json", "~> 1.8"
23
- spec.add_dependency "dry-configurable", "~> 0.1.7"
24
- spec.add_dependency "activesupport", '~>4.0'
22
+ spec.add_dependency "json"
23
+ spec.add_dependency "dry-configurable"
24
+ spec.add_dependency "activesupport", '>= 4.0', "< 6.0"
25
25
 
26
- spec.add_development_dependency "dry-validation", "~> 0.9.5"
27
- spec.add_development_dependency "dry-logic", "~> 0.3.0"
28
- spec.add_development_dependency "dry-types", "~> 0.8.1"
29
- spec.add_development_dependency "dry-container", "~> 0.5.0"
30
- spec.add_development_dependency "dry-equalizer", "~> 0.2.0"
31
- spec.add_development_dependency "dry-monads", "~> 0.1.1"
26
+ spec.add_development_dependency "dry-validation"
27
+ # Attempted to update dry-logic without dependency, ran rspec and got the following
28
+ # NoMethodError:
29
+ # undefined method `curry' for #<Method: Module(Dry::Logic::Predicates::Methods)#type?>
30
+ if RUBY_VERSION =~ /\A2\.[0|1]/
31
+ spec.add_development_dependency "dry-logic", "~> 0.3.0"
32
+ spec.add_development_dependency "dry-monads", "~> 0.3.1"
33
+ else
34
+ spec.add_development_dependency "dry-logic"
35
+ spec.add_development_dependency "dry-monads"
36
+ end
37
+ spec.add_development_dependency "dry-types"
38
+ spec.add_development_dependency "dry-container"
39
+ spec.add_development_dependency "dry-equalizer"
32
40
 
33
41
  spec.add_development_dependency "bundler"
34
- spec.add_development_dependency "rspec", '3.5.0'
35
- spec.add_development_dependency "rspec-its", '1.2.0'
36
- spec.add_development_dependency "rake", "~> 10.0"
42
+ spec.add_development_dependency "rspec"
43
+ spec.add_development_dependency "rspec-its"
44
+ spec.add_development_dependency "rake"
37
45
  spec.add_development_dependency 'google_drive', "2.1.2"
38
46
  spec.add_development_dependency 'highline', '1.7.8'
39
47
  spec.add_development_dependency "rubocop", '~> 0.46.0'
40
- spec.add_development_dependency "simplecov", '0.12.0'
48
+ spec.add_development_dependency "simplecov"
41
49
  spec.add_development_dependency "codeclimate-test-reporter", '1.0.3'
42
- spec.add_development_dependency "fasterer", '0.3.2'
43
- spec.add_development_dependency "shoulda-matchers", '3.1.1'
44
- spec.add_development_dependency "nokogiri", '~> 1.6.8.1'
50
+ spec.add_development_dependency "fasterer"
51
+ spec.add_development_dependency "shoulda-matchers"
52
+ spec.add_development_dependency "nokogiri"
45
53
  end
metadata CHANGED
@@ -1,71 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locabulary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.8'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dry-configurable
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.7
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.7
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '6.0'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: '4.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '6.0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: dry-validation
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - "~>"
65
+ - - ">="
60
66
  - !ruby/object:Gem::Version
61
- version: 0.9.5
67
+ version: '0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - "~>"
72
+ - - ">="
67
73
  - !ruby/object:Gem::Version
68
- version: 0.9.5
74
+ version: '0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: dry-logic
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -81,61 +87,61 @@ dependencies:
81
87
  - !ruby/object:Gem::Version
82
88
  version: 0.3.0
83
89
  - !ruby/object:Gem::Dependency
84
- name: dry-types
90
+ name: dry-monads
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 0.8.1
95
+ version: 0.3.1
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: 0.8.1
102
+ version: 0.3.1
97
103
  - !ruby/object:Gem::Dependency
98
- name: dry-container
104
+ name: dry-types
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - "~>"
107
+ - - ">="
102
108
  - !ruby/object:Gem::Version
103
- version: 0.5.0
109
+ version: '0'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - "~>"
114
+ - - ">="
109
115
  - !ruby/object:Gem::Version
110
- version: 0.5.0
116
+ version: '0'
111
117
  - !ruby/object:Gem::Dependency
112
- name: dry-equalizer
118
+ name: dry-container
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
- - - "~>"
121
+ - - ">="
116
122
  - !ruby/object:Gem::Version
117
- version: 0.2.0
123
+ version: '0'
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
- - - "~>"
128
+ - - ">="
123
129
  - !ruby/object:Gem::Version
124
- version: 0.2.0
130
+ version: '0'
125
131
  - !ruby/object:Gem::Dependency
126
- name: dry-monads
132
+ name: dry-equalizer
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - "~>"
135
+ - - ">="
130
136
  - !ruby/object:Gem::Version
131
- version: 0.1.1
137
+ version: '0'
132
138
  type: :development
133
139
  prerelease: false
134
140
  version_requirements: !ruby/object:Gem::Requirement
135
141
  requirements:
136
- - - "~>"
142
+ - - ">="
137
143
  - !ruby/object:Gem::Version
138
- version: 0.1.1
144
+ version: '0'
139
145
  - !ruby/object:Gem::Dependency
140
146
  name: bundler
141
147
  requirement: !ruby/object:Gem::Requirement
@@ -154,44 +160,44 @@ dependencies:
154
160
  name: rspec
155
161
  requirement: !ruby/object:Gem::Requirement
156
162
  requirements:
157
- - - '='
163
+ - - ">="
158
164
  - !ruby/object:Gem::Version
159
- version: 3.5.0
165
+ version: '0'
160
166
  type: :development
161
167
  prerelease: false
162
168
  version_requirements: !ruby/object:Gem::Requirement
163
169
  requirements:
164
- - - '='
170
+ - - ">="
165
171
  - !ruby/object:Gem::Version
166
- version: 3.5.0
172
+ version: '0'
167
173
  - !ruby/object:Gem::Dependency
168
174
  name: rspec-its
169
175
  requirement: !ruby/object:Gem::Requirement
170
176
  requirements:
171
- - - '='
177
+ - - ">="
172
178
  - !ruby/object:Gem::Version
173
- version: 1.2.0
179
+ version: '0'
174
180
  type: :development
175
181
  prerelease: false
176
182
  version_requirements: !ruby/object:Gem::Requirement
177
183
  requirements:
178
- - - '='
184
+ - - ">="
179
185
  - !ruby/object:Gem::Version
180
- version: 1.2.0
186
+ version: '0'
181
187
  - !ruby/object:Gem::Dependency
182
188
  name: rake
183
189
  requirement: !ruby/object:Gem::Requirement
184
190
  requirements:
185
- - - "~>"
191
+ - - ">="
186
192
  - !ruby/object:Gem::Version
187
- version: '10.0'
193
+ version: '0'
188
194
  type: :development
189
195
  prerelease: false
190
196
  version_requirements: !ruby/object:Gem::Requirement
191
197
  requirements:
192
- - - "~>"
198
+ - - ">="
193
199
  - !ruby/object:Gem::Version
194
- version: '10.0'
200
+ version: '0'
195
201
  - !ruby/object:Gem::Dependency
196
202
  name: google_drive
197
203
  requirement: !ruby/object:Gem::Requirement
@@ -238,16 +244,16 @@ dependencies:
238
244
  name: simplecov
239
245
  requirement: !ruby/object:Gem::Requirement
240
246
  requirements:
241
- - - '='
247
+ - - ">="
242
248
  - !ruby/object:Gem::Version
243
- version: 0.12.0
249
+ version: '0'
244
250
  type: :development
245
251
  prerelease: false
246
252
  version_requirements: !ruby/object:Gem::Requirement
247
253
  requirements:
248
- - - '='
254
+ - - ">="
249
255
  - !ruby/object:Gem::Version
250
- version: 0.12.0
256
+ version: '0'
251
257
  - !ruby/object:Gem::Dependency
252
258
  name: codeclimate-test-reporter
253
259
  requirement: !ruby/object:Gem::Requirement
@@ -266,44 +272,44 @@ dependencies:
266
272
  name: fasterer
267
273
  requirement: !ruby/object:Gem::Requirement
268
274
  requirements:
269
- - - '='
275
+ - - ">="
270
276
  - !ruby/object:Gem::Version
271
- version: 0.3.2
277
+ version: '0'
272
278
  type: :development
273
279
  prerelease: false
274
280
  version_requirements: !ruby/object:Gem::Requirement
275
281
  requirements:
276
- - - '='
282
+ - - ">="
277
283
  - !ruby/object:Gem::Version
278
- version: 0.3.2
284
+ version: '0'
279
285
  - !ruby/object:Gem::Dependency
280
286
  name: shoulda-matchers
281
287
  requirement: !ruby/object:Gem::Requirement
282
288
  requirements:
283
- - - '='
289
+ - - ">="
284
290
  - !ruby/object:Gem::Version
285
- version: 3.1.1
291
+ version: '0'
286
292
  type: :development
287
293
  prerelease: false
288
294
  version_requirements: !ruby/object:Gem::Requirement
289
295
  requirements:
290
- - - '='
296
+ - - ">="
291
297
  - !ruby/object:Gem::Version
292
- version: 3.1.1
298
+ version: '0'
293
299
  - !ruby/object:Gem::Dependency
294
300
  name: nokogiri
295
301
  requirement: !ruby/object:Gem::Requirement
296
302
  requirements:
297
- - - "~>"
303
+ - - ">="
298
304
  - !ruby/object:Gem::Version
299
- version: 1.6.8.1
305
+ version: '0'
300
306
  type: :development
301
307
  prerelease: false
302
308
  version_requirements: !ruby/object:Gem::Requirement
303
309
  requirements:
304
- - - "~>"
310
+ - - ">="
305
311
  - !ruby/object:Gem::Version
306
- version: 1.6.8.1
312
+ version: '0'
307
313
  description: An extraction of limited localized vocabulary for Sipity and CurateND.
308
314
  email:
309
315
  - jeremy.n.friesen@gmail.com
@@ -313,8 +319,8 @@ extra_rdoc_files: []
313
319
  files:
314
320
  - ".fasterer.yml"
315
321
  - ".gitignore"
316
- - ".hound.yml"
317
322
  - ".rspec"
323
+ - ".rubocop.yml"
318
324
  - ".rubocop_todo.yml"
319
325
  - ".ruby-version"
320
326
  - ".started-issues"
@@ -341,6 +347,8 @@ files:
341
347
  - data/underclass_level.json
342
348
  - data/work_patent_strategy.json
343
349
  - data/work_publication_strategy.json
350
+ - gemfiles/activesupport4.gemfile
351
+ - gemfiles/activesupport5.gemfile
344
352
  - lib/locabulary.rb
345
353
  - lib/locabulary/exceptions.rb
346
354
  - lib/locabulary/facet_wrapper_for_item.rb
@@ -385,7 +393,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
385
393
  version: '0'
386
394
  requirements: []
387
395
  rubyforge_project:
388
- rubygems_version: 2.4.5
396
+ rubygems_version: 2.2.5
389
397
  signing_key:
390
398
  specification_version: 4
391
399
  summary: An extraction of limited localized vocabulary for Sipity and CurateND.