browse-everything 1.0.0.rc2 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +93 -0
  3. data/.gitignore +1 -0
  4. data/.rubocop.yml +43 -35
  5. data/CONTRIBUTING.md +3 -3
  6. data/Gemfile +3 -6
  7. data/LICENSE.txt +205 -22
  8. data/README.md +17 -15
  9. data/app/assets/javascripts/browse_everything/behavior.js +201 -158
  10. data/app/assets/javascripts/treetable.webpack.js +687 -0
  11. data/app/assets/stylesheets/browse_everything.scss +0 -0
  12. data/app/assets/stylesheets/{_browse_everything_bootstrap3.scss → browse_everything/_browse_everything_bootstrap3.scss} +6 -5
  13. data/app/assets/stylesheets/{_browse_everything_bootstrap4.scss → browse_everything/_browse_everything_bootstrap4.scss} +0 -0
  14. data/app/controllers/browse_everything_controller.rb +60 -60
  15. data/app/helpers/browse_everything_helper.rb +4 -0
  16. data/app/views/browse_everything/_files.html.erb +4 -2
  17. data/browse-everything.gemspec +8 -7
  18. data/lib/browse_everything.rb +2 -1
  19. data/lib/browse_everything/auth/google/credentials.rb +5 -5
  20. data/lib/browse_everything/auth/google/request_parameters.rb +38 -38
  21. data/lib/browse_everything/driver/base.rb +14 -14
  22. data/lib/browse_everything/driver/box.rb +62 -55
  23. data/lib/browse_everything/driver/dropbox.rb +37 -21
  24. data/lib/browse_everything/driver/file_system.rb +30 -18
  25. data/lib/browse_everything/driver/google_drive.rb +40 -39
  26. data/lib/browse_everything/driver/s3.rb +61 -45
  27. data/lib/browse_everything/file_entry.rb +1 -1
  28. data/lib/browse_everything/retriever.rb +72 -67
  29. data/lib/browse_everything/version.rb +1 -1
  30. data/lib/generators/browse_everything/templates/browse_everything_providers.yml.example +1 -0
  31. data/spec/features/test_compiling_stylesheets_spec.rb +1 -1
  32. data/spec/lib/browse_everything/browser_spec.rb +5 -3
  33. data/spec/lib/browse_everything/driver/dropbox_spec.rb +20 -1
  34. data/spec/lib/browse_everything/driver_spec.rb +43 -3
  35. data/spec/spec_helper.rb +9 -2
  36. data/spec/support/capybara.rb +0 -5
  37. data/spec/test_app_templates/Gemfile.extra +9 -0
  38. data/spec/test_app_templates/lib/generators/test_app_generator.rb +56 -5
  39. metadata +72 -39
  40. data/.travis.yml +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 617d8d7a23fcee87c1b3fe38d99d060c23acdb0edb5181dbb0354d0df905a03e
4
- data.tar.gz: 5726f28db0a5e000a87eb3de5055805d3b401334cd7100395d99550999ebcb5f
3
+ metadata.gz: 315a6af2831fb8ad4c8222c17cde9fc5e0a0ee257164291adb89d6074ca39cbc
4
+ data.tar.gz: e63c1cac7fcd694138091e637393558610f2d365f90629a08266a714cfc8f901
5
5
  SHA512:
6
- metadata.gz: a1cd94b143e8ca8bbd126b37358aa8dfaef97399e90b81c4a34b870f491e4c50fe093aeeec4ac6192ae480a05fd2307628658b64bb8c8b0bd936b83d2f168a81
7
- data.tar.gz: 131163303e6ab27cee2c92931898e44cf4f1a3d3f55ba1cc36e2046bf1b5eeea3971d5b540a1ef273871ce028f3c35e92524f986825cdc86ec29ca1959477ecf
6
+ metadata.gz: 4c0de73d92cd5e0b2098448d1d3b875321633a20f8b60858f86deabda8f1ea7dee179db574c626c47baf8844906814152fa04fc7273f2a2a2aaf58dd1f3430de
7
+ data.tar.gz: a791a8cdb21c903daa246c33eff6eb92a9980ec2e1701f5a659adbc185939144f9d86ebb4dfdc4b74a7e1e7a9d005701ba769964bc48edf50373a371fb595f32
@@ -0,0 +1,93 @@
1
+ ---
2
+ version: 2.1
3
+ orbs:
4
+ samvera: samvera/circleci-orb@0
5
+
6
+ jobs:
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.1.4
16
+ executor:
17
+ name: 'samvera/ruby'
18
+ ruby_version: << parameters.ruby_version >>
19
+ environment:
20
+ RAILS_VERSION: << parameters.rails_version >>
21
+ steps:
22
+ - samvera/cached_checkout
23
+
24
+ - samvera/bundle_for_gem:
25
+ bundler_version: << parameters.bundler_version >>
26
+ ruby_version: << parameters.ruby_version >>
27
+ project: 'browse-everything'
28
+
29
+ - samvera/engine_cart_generate:
30
+ cache_key: v1-internal-test-app-{{ checksum "browse-everything.gemspec" }}-{{ checksum "Gemfile" }}-{{ 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 >>
31
+
32
+ - samvera/bundle_for_gem:
33
+ ruby_version: << parameters.ruby_version >>
34
+ bundler_version: << parameters.bundler_version >>
35
+ project: 'browse-everything'
36
+
37
+ - samvera/rubocop
38
+
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
44
+
45
+ workflows:
46
+ ci:
47
+ jobs:
48
+ - build:
49
+ name: "ruby2-7_rails6-0"
50
+ ruby_version: 2.7.1
51
+ rails_version: 6.0.3.1
52
+ - build:
53
+ name: "ruby2-6_rails6-0"
54
+ ruby_version: 2.6.6
55
+ rails_version: 6.0.3.1
56
+ - build:
57
+ name: "ruby2-5_rails6-0"
58
+ ruby_version: 2.5.8
59
+ rails_version: 6.0.3.1
60
+
61
+ - build:
62
+ name: "ruby2-7_rails5-2"
63
+ ruby_version: 2.7.1
64
+ rails_version: 5.2.4.3
65
+ - build:
66
+ name: "ruby2-6_rails5-2"
67
+ ruby_version: 2.6.6
68
+ rails_version: 5.2.4.3
69
+ - build:
70
+ name: "ruby2-5_rails5-2"
71
+ ruby_version: 2.5.8
72
+ rails_version: 5.2.4.3
73
+ - build:
74
+ name: "ruby2-4_rails5-2"
75
+ ruby_version: 2.4.10
76
+ rails_version: 5.2.4.3
77
+
78
+ - build:
79
+ name: "ruby2-7_rails5-1"
80
+ ruby_version: 2.7.1
81
+ rails_version: 5.1.7
82
+ - build:
83
+ name: "ruby2-6_rails5-1"
84
+ ruby_version: 2.6.6
85
+ rails_version: 5.1.7
86
+ - build:
87
+ name: "ruby2-5_rails5-1"
88
+ ruby_version: 2.5.8
89
+ rails_version: 5.1.7
90
+ - build:
91
+ name: "ruby2-4_rails5-1"
92
+ ruby_version: 2.4.10
93
+ rails_version: 5.1.7
data/.gitignore CHANGED
@@ -13,6 +13,7 @@ lib/bundler/man
13
13
  pkg
14
14
  rdoc
15
15
  spec/reports
16
+ spec/fixtures/Getting Started.pdf
16
17
  test/tmp
17
18
  test/version_tmp
18
19
  tmp
@@ -3,71 +3,79 @@ inherit_gem:
3
3
  bixby: bixby_default.yml
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.3
6
+ TargetRubyVersion: 2.6
7
7
  DisplayCopNames: true
8
8
  Exclude:
9
9
  - 'vendor/**/*'
10
10
 
11
- Rails:
12
- Enabled: true
13
- Rails/FilePath:
11
+ Bundler/DuplicatedGem:
14
12
  Exclude:
15
- - 'lib/generators/browse_everything/config_generator.rb'
13
+ - 'Gemfile'
16
14
 
17
- Metrics/ClassLength:
18
- Max: 130
19
- Exclude:
20
- - 'lib/browse_everything/driver/google_drive.rb'
21
- Metrics/LineLength:
15
+ Layout/LineLength:
22
16
  Max: 400
23
17
  Exclude:
24
18
  - 'spec/lib/browse_everything/driver/box_spec.rb'
25
19
  - 'spec/lib/browse_everything/driver/dropbox_spec.rb'
20
+
26
21
  Metrics/BlockLength:
27
22
  Exclude:
28
23
  - '*.gemspec'
29
24
  - 'spec/**/*'
30
25
 
31
- RSpec/NestedGroups:
32
- Enabled: false
26
+ Metrics/ClassLength:
27
+ Max: 130
28
+ Exclude:
29
+ - 'lib/browse_everything/driver/google_drive.rb'
30
+
31
+ Metrics/MethodLength:
32
+ Exclude:
33
+ - 'spec/test_app_templates/lib/generators/test_app_generator.rb'
34
+
35
+ Naming/FileName:
36
+ Exclude:
37
+ - 'browse-everything.gemspec'
38
+ - 'Gemfile'
39
+ - 'lib/browse-everything.rb'
40
+
41
+ Rails:
42
+ Enabled: true
43
+
44
+ Rails/FilePath:
45
+ Exclude:
46
+ - 'lib/generators/browse_everything/config_generator.rb'
33
47
 
34
48
  RSpec/DescribeClass:
35
49
  Exclude:
36
50
  - 'spec/javascripts/**/*'
37
-
38
- RSpec/LeadingSubject:
39
- Enabled: false
40
51
 
41
52
  RSpec/ExampleLength:
42
53
  Enabled: false
43
54
 
44
- RSpec/MultipleExpectations:
55
+ RSpec/LeadingSubject:
45
56
  Enabled: false
46
57
 
47
- Style/NumericLiterals:
48
- MinDigits: 7
49
-
50
- Layout/IndentationConsistency:
51
- EnforcedStyle: rails
58
+ RSpec/MultipleExpectations:
59
+ Enabled: false
52
60
 
53
- Naming/FileName:
54
- Exclude:
55
- - 'browse-everything.gemspec'
56
- - 'Gemfile'
57
- - 'lib/browse-everything.rb'
61
+ RSpec/NestedGroups:
62
+ Enabled: false
58
63
 
59
64
  Style/MixinUsage:
60
65
  Exclude:
61
- - 'spec/lib/browse_everything/driver/s3_spec.rb'
62
- - 'spec/lib/browse_everything/driver/google_drive_spec.rb'
63
- - 'spec/lib/browse_everything/driver/file_system_spec.rb'
64
- - 'spec/lib/browse_everything/driver/dropbox_spec.rb'
65
- - 'spec/lib/browse_everything/driver/box_spec.rb'
66
- - 'spec/lib/browse_everything/driver/base_spec.rb'
66
+ - 'spec/helper/browse_everything_controller_helper_spec.rb'
67
67
  - 'spec/lib/browse_everything/browser_spec.rb'
68
+ - 'spec/lib/browse_everything/driver/base_spec.rb'
69
+ - 'spec/lib/browse_everything/driver/box_spec.rb'
70
+ - 'spec/lib/browse_everything/driver/dropbox_spec.rb'
71
+ - 'spec/lib/browse_everything/driver/file_system_spec.rb'
72
+ - 'spec/lib/browse_everything/driver/google_drive_spec.rb'
73
+ - 'spec/lib/browse_everything/driver/s3_spec.rb'
68
74
  - 'spec/services/browser_factory_spec.rb'
69
- - 'spec/helper/browse_everything_controller_helper_spec.rb'
70
75
 
71
- Bundler/DuplicatedGem:
76
+ Style/NumericLiterals:
77
+ MinDigits: 7
78
+
79
+ Style/RedundantBegin:
72
80
  Exclude:
73
- - 'Gemfile'
81
+ - 'lib/browse_everything/browser.rb'
@@ -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
 
data/Gemfile CHANGED
@@ -34,14 +34,11 @@ else
34
34
  end
35
35
 
36
36
  case ENV['RAILS_VERSION']
37
+ when /^6\./
38
+ gem 'puma', '~> 4.1'
37
39
  when /^5\./
38
40
  gem 'capybara', '~> 2.18.0'
39
- when /^4\.2/
40
- gem 'coffee-rails', '~> 4.1.0'
41
- gem 'json', '~> 1.8'
42
- gem 'railties', '~> 4.2'
43
- gem 'responders', '~> 2.0'
44
- gem 'sass-rails', '>= 5.0'
41
+ gem 'puma', '~> 3.11'
45
42
  end
46
43
  end
47
44
  # END ENGINE_CART BLOCK
@@ -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.