browse-everything 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 5c44e6fe17fdd953916e2e9daee9dc2923123e3aa8b16e1b2413714e5c7e10a0
4
- data.tar.gz: 05656d696be1683da78311011c2274ab422186d072c4005b32ceee87b63d3264
3
+ metadata.gz: 6fe6dbea81b1448d87bb47017e4093bd7bc02dd5fe1342f50ae1b6e3e4eb64b2
4
+ data.tar.gz: e6afd6a3f29d6e799e75b49ec52d0029f375e7045a712c8af2ed6697034286c3
5
5
  SHA512:
6
- metadata.gz: cb7a332399ae1928ea4883ea8931b72410edd3f5b2ce59527f50b3df6c2b0e620812e58c742f09f0386c8f077ef3ae836bf379227287c82d94a32274b1f759c0
7
- data.tar.gz: a036a93cb63e5880323cbe5bf9a505e5f7289926ab392029254f463b62993eb88f4c40351238ad98af299f5612727dee47d00419128c5cc79d6c6a4f9850bc88
6
+ metadata.gz: 3f3a9a013d2cf846d7791059cc9478755bfe9fce8c6661ad49999b4501b6cd9004e96e051a3e053f683319230fd06f569500880655503be699f4828a9ac267fb
7
+ data.tar.gz: 10248df8fb1256c830c1bbb69dc7ec497611cea89f6642f3c97f9d56b9a761e1ebfb8786b41ad6dc1adbf169c5385731004ae45ced9e8bbcee05c42e0ed94762
@@ -1,148 +1,71 @@
1
-
1
+ ---
2
2
  version: 2.1
3
- executors:
4
- ruby:
5
- docker:
6
- - image: circleci/ruby:2.6
7
- working_directory: ~/browse-everything
8
- environment:
9
- BUNDLE_PATH: vendor/bundle
10
- BUNDLE_JOBS: 4
11
- BUNDLE_RETRY: 3
3
+ orbs:
4
+ samvera: samvera/circleci-orb@0
12
5
 
13
6
  jobs:
14
- bundle:
15
- executor: ruby
16
- steps:
17
- - restore_cache: # Restore the cached source code base (for repeated jobs)
18
- keys:
19
- - v1-source-{{ .Branch }}-{{ .Revision }}
20
- - v1-source-{{ .Branch }}-
21
- - v1-source-
22
- - checkout
23
- - save_cache: # Save the cache for the source code base
24
- key: v1-source-{{ .Branch }}-{{ .Revision }}
25
- paths:
26
- - ".git"
27
- - restore_cache:
28
- keys:
29
- - v1-bundle-{{ checksum "Gemfile" }}--{{ checksum "browse-everything.gemspec" }}
30
- - v1-bundle
31
- - run:
32
- name: Install dependencies
33
- command: bundle check || bundle install
34
- - save_cache:
35
- key: v1-bundle-{{ checksum "Gemfile.lock" }}--{{ checksum "browse-everything.gemspec" }}
36
- paths:
37
- - ~/browse-everything/vendor/bundle
38
- - persist_to_workspace:
39
- root: ~/
40
- paths:
41
- - browse-everything/*
42
- - browse-everything/**/*
43
- rubocop:
44
- executor: ruby
7
+ build:
8
+ parameters:
9
+ ruby_version:
10
+ type: string
11
+ rails_version:
12
+ type: string
13
+ bundler_version:
14
+ type: string
15
+ default: 2.0.1
16
+ executor:
17
+ name: 'samvera/ruby'
18
+ ruby_version: << parameters.ruby_version >>
19
+ environment:
20
+ RAILS_VERSION: << parameters.rails_version >>
45
21
  steps:
46
- - attach_workspace:
47
- at: ~/
48
- - run:
49
- name: Call Rubocop
50
- command: bundle exec rubocop
51
- engine_cart:
52
- docker:
53
- - image: circleci/ruby:2.6-node
22
+ - samvera/cached_checkout
54
23
 
55
- working_directory: ~/browse-everything
24
+ - samvera/bundle_for_gem:
25
+ bundler_version: << parameters.bundler_version >>
26
+ ruby_version: << parameters.ruby_version >>
27
+ project: 'browse-everything'
56
28
 
57
- environment:
58
- BUNDLE_PATH: vendor/bundle
59
- BUNDLE_JOBS: 4
60
- BUNDLE_RETRY: 3
61
- RAILS_ENV: test
62
- RACK_ENV: test
63
- NOKOGIRI_USE_SYSTEM_LIBRARIES: true
64
- ENGINE_CART_RAILS_OPTIONS: --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-puma --skip-test
65
- SPEC_OPTS: --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
66
- COVERALLS_PARALLEL: true
67
- steps:
68
- - attach_workspace:
69
- at: ~/
70
- - restore_cache:
71
- keys:
72
- - v1-test-app-{{ checksum "Gemfile.lock" }}
73
- - run:
74
- name: Check dependencies
75
- command: bundle check || bundle install
76
- - run:
77
- name: Generate test app
78
- command: bundle exec rake engine_cart:generate
79
- - run:
80
- name: Ensure test app dependencies are installed
81
- command: |
82
- cd .internal_test_app
83
- bundle check || bundle install
29
+ - samvera/engine_cart_generate:
30
+ cache_key: v1-internal-test-app-{{ checksum "browse-everything.gemspec" }}-{{ checksum "spec/test_app_templates/lib/generators/test_app_generator.rb" }}-{{ checksum "lib/generators/browse_everything/install_generator.rb" }}-{{ checksum "lib/generators/browse_everything/config_generator.rb" }}--<< parameters.rails_version >>-<< parameters.ruby_version >>
84
31
 
85
- - save_cache:
86
- key: v1-test-app-{{ checksum "Gemfile.lock" }}
87
- paths:
88
- - ".internal_test_app"
89
- - persist_to_workspace:
90
- root: ~/
91
- paths:
92
- - browse-everything/*
93
- - browse-everything/**/*
94
- rspec:
95
- docker:
96
- - image: circleci/ruby:2.6-node-browsers-legacy
32
+ - samvera/bundle_for_gem:
33
+ ruby_version: << parameters.ruby_version >>
34
+ bundler_version: << parameters.bundler_version >>
35
+ project: 'browse-everything'
97
36
 
98
- working_directory: ~/browse-everything
99
- parallelism: 4
37
+ - samvera/rubocop
100
38
 
101
- environment:
102
- BUNDLE_PATH: vendor/bundle
103
- BUNDLE_JOBS: 4
104
- BUNDLE_RETRY: 3
105
- RAILS_ENV: test
106
- RACK_ENV: test
107
- NOKOGIRI_USE_SYSTEM_LIBRARIES: true
108
- ENGINE_CART_RAILS_OPTIONS: --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-puma --skip-test
109
- SPEC_OPTS: --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
110
- COVERALLS_PARALLEL: true
111
- steps:
112
- - attach_workspace:
113
- at: ~/
114
- - run:
115
- name: Ensure top-level Gemfile.lock is valid
116
- command: bundle check || bundle install
117
- - run:
118
- name: Install Karma for JavaScript and functional tests
119
- command: sudo npm install -g karma karma-jasmine karma-chrome-launcher
120
- - run:
121
- name: Run RSpec in parallel
122
- command: |
123
- mkdir /tmp/test-results
124
- bundle exec rspec $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
125
- # collect reports
126
- - store_test_results:
127
- path: /tmp/test-results
128
- - store_artifacts:
129
- path: /tmp/test-results
130
- destination: test-results
39
+ - run:
40
+ name: Install Karma for JavaScript and functional tests
41
+ command: sudo npm install -g karma karma-jasmine karma-chrome-launcher
42
+
43
+ - samvera/parallel_rspec
131
44
 
132
45
  workflows:
133
- version: 2.1
134
46
  ci:
135
47
  jobs:
136
- - bundle
137
- - rubocop:
138
- requires:
139
- - bundle
140
- - engine_cart:
141
- requires:
142
- - bundle
143
- - rspec:
144
- requires:
145
- - rubocop
146
- - engine_cart
147
-
148
-
48
+ - build:
49
+ name: "ruby2-6_rails5-2"
50
+ ruby_version: 2.6.3
51
+ rails_version: 5.2.3
52
+ - build:
53
+ name: "ruby2-6_rails5-1"
54
+ ruby_version: 2.6.3
55
+ rails_version: 5.1.7
56
+ - build:
57
+ name: "ruby2-5_rails5-2"
58
+ ruby_version: 2.5.5
59
+ rails_version: 5.2.3
60
+ - build:
61
+ name: "ruby2-5_rails5-1"
62
+ ruby_version: 2.5.5
63
+ rails_version: 5.1.7
64
+ - build:
65
+ name: "ruby2-4_rails5-2"
66
+ ruby_version: 2.4.6
67
+ rails_version: 5.2.3
68
+ - build:
69
+ name: "ruby2-4_rails5-1"
70
+ ruby_version: 2.4.6
71
+ rails_version: 5.1.7
@@ -127,12 +127,12 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
127
127
  We adopted [Github's Pull Request Review](https://help.github.com/articles/about-pull-request-reviews/) for our repositories.
128
128
  Common checks that may occur in our repositories:
129
129
 
130
- 1. Travis CI - where our automated tests are running
130
+ 1. CircleCI - where our automated tests are running
131
131
  2. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
132
132
 
133
133
  If one or more of the required checks failed (or are incomplete), the code should not be merged (and the UI will not allow it). If all of the checks have passed, then anyone on the project (including the pull request submitter) may merge the code.
134
134
 
135
- *Example: Carolyn submits a pull request, Justin reviews the pull request and approves. However, Justin is still waiting on other checks (Travis CI is usually the culprit), so he does not merge the pull request. Eventually, all of the checks pass. At this point, Carolyn or anyone else may merge the pull request.*
135
+ *Example: Carolyn submits a pull request, Justin reviews the pull request and approves. However, Justin is still waiting on other checks, so he does not merge the pull request. Eventually, all of the checks pass. At this point, Carolyn or anyone else may merge the pull request.*
136
136
 
137
137
  #### Things to Consider When Reviewing
138
138
 
@@ -149,7 +149,7 @@ This is your chance for a mentoring moment of another developer. Take time to gi
149
149
  * Do new or changed methods, modules, and classes have documentation?
150
150
  * Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
151
151
  * Does the description of the new/changed specs match your understanding of what the spec is doing?
152
- * Did the Travis tests complete successfully?
152
+ * Did the CircleCI tests complete successfully?
153
153
 
154
154
  If you are uncertain, bring other contributors into the conversation by assigning them as a reviewer.
155
155
 
@@ -1,22 +1,205 @@
1
- Copyright (c) 2013 Michael Klein
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2012 Penn State University
190
+ Copyright 2013 University of Notre Dame, Northwestern University, and Data Curation Experts
191
+ Copyright 2014 Data Curation Experts
192
+ Additional copyright may be held by others, as reflected in the commit log
193
+
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Code:
4
4
  [![Gem Version](https://badge.fury.io/rb/browse-everything.png)](http://badge.fury.io/rb/browse-everything)
5
- [![Build Status](https://travis-ci.org/samvera/browse-everything.svg?branch=master)](https://travis-ci.org/samvera/browse-everything)
5
+ [![CircleCI](https://circleci.com/gh/samvera/browse-everything.svg?style=svg)](https://circleci.com/gh/samvera/browse-everything)
6
6
  [![Coverage Status](https://coveralls.io/repos/samvera/browse-everything/badge.svg?branch=master&service=github)](https://coveralls.io/github/samvera/browse-everything?branch=master)
7
7
 
8
8
  Docs:
@@ -39,14 +39,14 @@ what this means can be found
39
39
 
40
40
  ## Supported Ruby Releases
41
41
  Currently, the following releases of Ruby are supported:
42
- - 2.6.1
43
- - 2.5.3
44
- - 2.4.5
42
+ - 2.6.3
43
+ - 2.5.5
44
+ - 2.4.6
45
45
 
46
46
  ## Supported Rails Releases
47
47
  The supported Rail releases follow those specified by [the security policy of the Rails Community](https://rubyonrails.org/security/). As is the case with the supported Ruby releases, it is recommended that one upgrades from any Rails release no longer receiving security updates.
48
- - 5.2.2
49
- - 5.1.6.1
48
+ - 5.2.3
49
+ - 5.1.7
50
50
 
51
51
  ## Installation
52
52
 
@@ -25,16 +25,17 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'google-api-client', '~> 0.23'
26
26
  spec.add_dependency 'google_drive', '~> 2.1'
27
27
  spec.add_dependency 'googleauth', '0.6.6'
28
- spec.add_dependency 'rails', '>= 4.2'
28
+ spec.add_dependency 'puma', '~> 3.11'
29
+ spec.add_dependency 'rails', '>= 4.2', '< 6.0'
29
30
  spec.add_dependency 'ruby-box'
30
31
  spec.add_dependency 'signet', '~> 0.8'
32
+ spec.add_dependency 'sprockets', '~> 3.7'
31
33
  spec.add_dependency 'thor', '~> 0.19'
32
34
  spec.add_dependency 'typhoeus'
33
35
 
34
36
  spec.add_development_dependency 'bixby', '>= 1.0'
35
37
  spec.add_development_dependency 'bundler', '>= 1.3'
36
38
  spec.add_development_dependency 'capybara'
37
- spec.add_development_dependency 'chromedriver-helper', '~> 2.1'
38
39
  spec.add_development_dependency 'coveralls'
39
40
  spec.add_development_dependency 'engine_cart', '~> 2.0'
40
41
  spec.add_development_dependency 'factory_bot_rails'
@@ -50,5 +51,6 @@ Gem::Specification.new do |spec|
50
51
  spec.add_development_dependency 'selenium-webdriver'
51
52
  spec.add_development_dependency 'simplecov'
52
53
  spec.add_development_dependency 'sqlite3'
54
+ spec.add_development_dependency 'webdrivers'
53
55
  spec.add_development_dependency 'webmock'
54
56
  end
@@ -59,7 +59,8 @@ module BrowseEverything
59
59
  @config = ActiveSupport::HashWithIndifferentAccess.new config_values
60
60
  @config.deep_symbolize_keys
61
61
  rescue Errno::ENOENT
62
- raise ConfigurationError, 'Missing browse_everything_providers.yml configuration file'
62
+ Rails.logger.warn 'Missing browse_everything_providers.yml configuration file'
63
+ @config = ActiveSupport::HashWithIndifferentAccess.new({})
63
64
  end
64
65
  else
65
66
  raise InitializationError, "Unrecognized configuration: #{value.inspect}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrowseEverything
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
@@ -4,7 +4,7 @@ ENV['RAILS_ENV'] ||= 'test'
4
4
  require 'bundler/setup'
5
5
 
6
6
  def coverage_needed?
7
- ENV['COVERAGE'] || ENV['TRAVIS']
7
+ ENV['COVERAGE'] || ENV['CI']
8
8
  end
9
9
 
10
10
  if coverage_needed?
@@ -36,7 +36,7 @@ require 'capybara/rspec'
36
36
  require 'rspec'
37
37
  require 'rspec/rails'
38
38
  require 'rspec/its'
39
- require 'chromedriver-helper'
39
+ require 'webdrivers'
40
40
 
41
41
  # Requires supporting ruby files with custom matchers and macros, etc,
42
42
  # in spec/support/ and its subdirectories.
@@ -46,6 +46,12 @@ require 'webmock/rspec'
46
46
  WebMock.disable_net_connect!(allow_localhost: true)
47
47
 
48
48
  RSpec.configure do |config|
49
+ config.before(:each, type: :feature) { WebMock.disable! }
50
+ config.after(:each, type: :feature) do
51
+ WebMock.enable!
52
+ WebMock.disable_net_connect!(allow_localhost: true)
53
+ end
54
+
49
55
  config.expect_with :rspec do |c|
50
56
  c.syntax = %i[should expect]
51
57
  end
@@ -4,11 +4,6 @@ require 'selenium-webdriver'
4
4
 
5
5
  # Temporary pin until chromedriver-helper patched to deal with change in chromedriver versioning
6
6
  # See https://github.com/flavorjones/chromedriver-helper/pull/63
7
- # @note In January 2018, TravisCI disabled Chrome sandboxing in its Linux
8
- # container build environments to mitigate Meltdown/Spectre
9
- # vulnerabilities, at which point Hyrax could no longer use the
10
- # Capybara-provided :selenium_chrome_headless driver (which does not
11
- # include the `--no-sandbox` argument).
12
7
  Capybara.register_driver :selenium_chrome_headless_sandboxless do |app|
13
8
  browser_options = ::Selenium::WebDriver::Chrome::Options.new
14
9
  browser_options.args << '--headless'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browse-everything
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carolyn Cole
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2019-04-23 00:00:00.000000000 Z
16
+ date: 2019-11-01 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: addressable
@@ -99,6 +99,20 @@ dependencies:
99
99
  - - '='
100
100
  - !ruby/object:Gem::Version
101
101
  version: 0.6.6
102
+ - !ruby/object:Gem::Dependency
103
+ name: puma
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '3.11'
109
+ type: :runtime
110
+ prerelease: false
111
+ version_requirements: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '3.11'
102
116
  - !ruby/object:Gem::Dependency
103
117
  name: rails
104
118
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +120,9 @@ dependencies:
106
120
  - - ">="
107
121
  - !ruby/object:Gem::Version
108
122
  version: '4.2'
123
+ - - "<"
124
+ - !ruby/object:Gem::Version
125
+ version: '6.0'
109
126
  type: :runtime
110
127
  prerelease: false
111
128
  version_requirements: !ruby/object:Gem::Requirement
@@ -113,6 +130,9 @@ dependencies:
113
130
  - - ">="
114
131
  - !ruby/object:Gem::Version
115
132
  version: '4.2'
133
+ - - "<"
134
+ - !ruby/object:Gem::Version
135
+ version: '6.0'
116
136
  - !ruby/object:Gem::Dependency
117
137
  name: ruby-box
118
138
  requirement: !ruby/object:Gem::Requirement
@@ -141,6 +161,20 @@ dependencies:
141
161
  - - "~>"
142
162
  - !ruby/object:Gem::Version
143
163
  version: '0.8'
164
+ - !ruby/object:Gem::Dependency
165
+ name: sprockets
166
+ requirement: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '3.7'
171
+ type: :runtime
172
+ prerelease: false
173
+ version_requirements: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '3.7'
144
178
  - !ruby/object:Gem::Dependency
145
179
  name: thor
146
180
  requirement: !ruby/object:Gem::Requirement
@@ -211,20 +245,6 @@ dependencies:
211
245
  - - ">="
212
246
  - !ruby/object:Gem::Version
213
247
  version: '0'
214
- - !ruby/object:Gem::Dependency
215
- name: chromedriver-helper
216
- requirement: !ruby/object:Gem::Requirement
217
- requirements:
218
- - - "~>"
219
- - !ruby/object:Gem::Version
220
- version: '2.1'
221
- type: :development
222
- prerelease: false
223
- version_requirements: !ruby/object:Gem::Requirement
224
- requirements:
225
- - - "~>"
226
- - !ruby/object:Gem::Version
227
- version: '2.1'
228
248
  - !ruby/object:Gem::Dependency
229
249
  name: coveralls
230
250
  requirement: !ruby/object:Gem::Requirement
@@ -435,6 +455,20 @@ dependencies:
435
455
  - - ">="
436
456
  - !ruby/object:Gem::Version
437
457
  version: '0'
458
+ - !ruby/object:Gem::Dependency
459
+ name: webdrivers
460
+ requirement: !ruby/object:Gem::Requirement
461
+ requirements:
462
+ - - ">="
463
+ - !ruby/object:Gem::Version
464
+ version: '0'
465
+ type: :development
466
+ prerelease: false
467
+ version_requirements: !ruby/object:Gem::Requirement
468
+ requirements:
469
+ - - ">="
470
+ - !ruby/object:Gem::Version
471
+ version: '0'
438
472
  - !ruby/object:Gem::Dependency
439
473
  name: webmock
440
474
  requirement: !ruby/object:Gem::Requirement
@@ -467,7 +501,6 @@ files:
467
501
  - ".rspec"
468
502
  - ".rubocop.yml"
469
503
  - ".rubocop_todo.yml"
470
- - ".travis.yml"
471
504
  - CODE_OF_CONDUCT.md
472
505
  - CONTRIBUTING.md
473
506
  - Gemfile
@@ -1,30 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- dist: trusty
4
- sudo: required
5
- addons:
6
- chrome: stable
7
- cache:
8
- bundler: true
9
-
10
- before_install:
11
- - gem update --system # https://docs.travis-ci.com/user/languages/ruby/#Upgrading-RubyGems
12
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
13
- - gem install bundler -v '< 2'
14
- - npm install -g karma karma-jasmine karma-chrome-launcher
15
- - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
16
-
17
- rvm:
18
- - 2.6.1
19
- - 2.5.3
20
- - 2.4.5
21
-
22
- env:
23
- global:
24
- - CHROME_BIN=google-chrome-stable
25
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
26
- matrix:
27
- - "RAILS_VERSION=5.2.2"
28
- - "RAILS_VERSION=5.2.2 TEST_BOOTSTRAP=3"
29
- - "RAILS_VERSION=5.1.6.1"
30
- - "RAILS_VERSION=5.1.6.1 TEST_BOOTSTRAP=3"