active_fedora-datastreams 0.2.0 → 0.3.0

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: 1a459d0b272e69c5f4207348dbddf46298b07f39516a763f487ad167b714b516
4
- data.tar.gz: 8d7c2bd5a0a249ea09d9a2ee6a28adba574c3ba8ef30bd080575735366138adf
3
+ metadata.gz: 046d91b4b339d4a8d607e9661bb0f65920aef226fab2e4501a924b7b5ed24791
4
+ data.tar.gz: 9a042abf3bd4b1362e867b8a2ab306cd874bb7e7c2a7b27ec647a394d704d352
5
5
  SHA512:
6
- metadata.gz: ac36e381d07c025bdbcaaff568bfaa3528e95d3a91c53e570db2178879fba6124b25d319b435ea0fd782217edae0edb00758b1f6f78f43f8be792517cae21a75
7
- data.tar.gz: e865108f87e78d68e77857d4af4606b401ed80e2ef06adae398e33a2445d62ddb2589a2a74e5af299de09848abd16cfaeaec94a5703774850e84924c854cc152
6
+ metadata.gz: 47c79389f4c376ed9fcad0aaa14099c9e1b2b8d4908e0b2c8b31daa57910e064778a6b5a504b49234e554666c089e51af714241eecd172f4ab737eb502418aad
7
+ data.tar.gz: 54f1923d8a551b984e170f2e2128e418794486d4c4021861ef964ad4d1d5ae4690048b3f79e567a4bb1b9a5bb1d6147b0c595a5b859e5c278313ca6037cb00ab
@@ -0,0 +1,67 @@
1
+ version: 2.1
2
+ orbs:
3
+ samvera: samvera/circleci-orb@1
4
+ jobs:
5
+ bundle_lint_test:
6
+ parameters:
7
+ ruby_version:
8
+ type: string
9
+ bundler_version:
10
+ type: string
11
+ default: 2.0.1
12
+ rails_version:
13
+ type: string
14
+ solr_port:
15
+ type: string
16
+ default: '8985'
17
+ executor:
18
+ name: 'samvera/ruby_fcrepo_solr'
19
+ ruby_version: << parameters.ruby_version >>
20
+ solr_version: 7-slim
21
+ environment:
22
+ RAILS_VERSION: << parameters.rails_version >>
23
+ SOLR_TEST_PORT: << parameters.solr_port >>
24
+ steps:
25
+ - samvera/cached_checkout
26
+ - checkout
27
+ - run:
28
+ name: Check for 'master' branch
29
+ command: |
30
+ git fetch --all --quiet --prune --prune-tags
31
+ if [[ -n "$(git branch --all --list master */master)" ]]; then
32
+ echo "A branch named 'master' was found. Please remove it."
33
+ echo "$(git branch --all --list master */master)"
34
+ fi
35
+ [[ -z "$(git branch --all --list master */master)" ]]
36
+
37
+ - samvera/bundle:
38
+ ruby_version: << parameters.ruby_version >>
39
+ bundler_version: << parameters.bundler_version >>
40
+
41
+ - samvera/install_solr_core
42
+
43
+ # Skip rubocop for now
44
+ #- samvera/rubocop
45
+
46
+ - samvera/parallel_rspec
47
+
48
+ workflows:
49
+ ci:
50
+ jobs:
51
+ - bundle_lint_test:
52
+ name: ruby2-7_rails5-2
53
+ ruby_version: 2.7.4
54
+ rails_version: 5.2.6
55
+ - bundle_lint_test:
56
+ name: ruby2-6_rails5-2
57
+ ruby_version: 2.6.8
58
+ rails_version: 5.2.6
59
+ - bundle_lint_test:
60
+ name: ruby2-5_rails5-2
61
+ ruby_version: 2.5.9
62
+ rails_version: 5.2.6
63
+ - bundle_lint_test:
64
+ name: ruby2-4_rails5-2
65
+ ruby_version: 2.4.10
66
+ rails_version: 5.2.6
67
+
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
4
+
3
5
  # Specify your gem's dependencies in active_fedora-datastreams.gemspec
4
6
  gemspec
data/README.md CHANGED
@@ -30,5 +30,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
30
30
 
31
31
  ## Contributing
32
32
 
33
- Bug reports and pull requests are welcome on GitHub at https://github.com/samvera-labs/active_fedora-datastreams. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
33
+ If you're working on a PR for this project, create a feature branch off of `main`.
34
+
35
+ This repository follows the [Samvera Community Code of Conduct](https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Code+of+Conduct) and [language recommendations](https://github.com/samvera/maintenance/blob/main/templates/CONTRIBUTING.md#language). Please ***do not*** create a branch called `master` for this repository or as part of your pull request; the branch will either need to be removed or renamed before it can be considered for inclusion in the code base and history of this repository.
34
36
 
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/samvera-labs/active_fedora-datastreams. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -17,12 +17,17 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "active-fedora", ">= 11.0.0.pre", "< 13"
20
+ spec.add_dependency "active-fedora", ">= 11.0.0.pre", "< 14"
21
+ spec.add_dependency "activemodel", "< 6.0" # Pin this because there are test failures with rails 6.1
21
22
  spec.add_dependency "om", "~> 3.1"
22
23
  spec.add_dependency "nom-xml", ">= 0.5.1"
23
24
  spec.add_dependency "rdf-rdfxml", '~> 2.0'
25
+ spec.add_dependency "rdf", "< 3.2" # Pin this to avoid a breaking change introduced in 3.2.0
24
26
  spec.add_development_dependency "rake", "~> 10.0"
25
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_development_dependency 'rspec_junit_formatter'
29
+ spec.add_development_dependency 'coveralls'
30
+ spec.add_development_dependency 'simplecov'
26
31
  spec.add_development_dependency "solr_wrapper", "~> 2.1"
27
32
  spec.add_development_dependency 'fcrepo_wrapper', '~> 0.9'
28
33
  spec.add_development_dependency "rubocop", '~> 0.42'
data/config/fedora.yml CHANGED
@@ -1,14 +1,14 @@
1
1
  development:
2
2
  user: fedoraAdmin
3
3
  password: fedoraAdmin
4
- url: http://127.0.0.1:<%= ENV['FCREPO_DEVELOPMENT_PORT'] || 8984 %>/rest
5
- base_path: /dev
4
+ url: http://<%= ENV['FCREPO_HOST'] || 'localhost' %>:<%= ENV['FCREPO_DEVELOPMENT_PORT'] || ENV['FCREPO_PORT'] || 8984 %>/<%= ENV['FCREPO_REST_PATH'] || 'rest' %>
5
+ base_path: <%= ENV['FCREPO_BASE_PATH'] || '/dev' %>
6
6
  test:
7
7
  user: fedoraAdmin
8
8
  password: fedoraAdmin
9
- url: http://localhost:<%= ENV['FCREPO_TEST_PORT'] || 8986 %>/rest
10
- base_path: /test
9
+ url: http://<%= ENV['FCREPO_HOST'] || 'localhost' %>:<%= ENV['FCREPO_TEST_PORT'] || ENV['FCREPO_PORT'] || 8986 %>/<%= ENV['FCREPO_REST_PATH'] || 'rest' %>
10
+ base_path: <%= ENV['FCREPO_BASE_PATH'] || '/test' %>
11
11
  production:
12
12
  user: fedoraAdmin
13
13
  password: fedoraAdmin
14
- url: http://127.0.0.1:8983/fedora/rest
14
+ url: http://<%= ENV['FCREPO_HOST'] || 'localhost' %>:<%= ENV['FCREPO_PORT'] || 8983 %>/<%= ENV['FCREPO_REST_PATH'] || 'rest' %>
@@ -1,5 +1,5 @@
1
1
  module ActiveFedora
2
2
  module Datastreams
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.3.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_fedora-datastreams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-06 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active-fedora
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 11.0.0.pre
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '13'
22
+ version: '14'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,21 @@ dependencies:
29
29
  version: 11.0.0.pre
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '13'
32
+ version: '14'
33
+ - !ruby/object:Gem::Dependency
34
+ name: activemodel
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "<"
38
+ - !ruby/object:Gem::Version
39
+ version: '6.0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '6.0'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: om
35
49
  requirement: !ruby/object:Gem::Requirement
@@ -72,6 +86,20 @@ dependencies:
72
86
  - - "~>"
73
87
  - !ruby/object:Gem::Version
74
88
  version: '2.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rdf
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "<"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.2'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "<"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.2'
75
103
  - !ruby/object:Gem::Dependency
76
104
  name: rake
77
105
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +128,48 @@ dependencies:
100
128
  - - "~>"
101
129
  - !ruby/object:Gem::Version
102
130
  version: '3.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rspec_junit_formatter
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: coveralls
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: simplecov
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
103
173
  - !ruby/object:Gem::Dependency
104
174
  name: solr_wrapper
105
175
  requirement: !ruby/object:Gem::Requirement
@@ -177,6 +247,7 @@ executables: []
177
247
  extensions: []
178
248
  extra_rdoc_files: []
179
249
  files:
250
+ - ".circleci/config.yml"
180
251
  - ".gitignore"
181
252
  - ".rspec"
182
253
  - ".rubocop.yml"
@@ -218,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
289
  - !ruby/object:Gem::Version
219
290
  version: '0'
220
291
  requirements: []
221
- rubygems_version: 3.0.3
292
+ rubygems_version: 3.1.6
222
293
  signing_key:
223
294
  specification_version: 4
224
295
  summary: Datastreams for ActiveFedora