active_fedora-datastreams 0.1.0 → 0.2.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
- SHA1:
3
- metadata.gz: 1bd06d5a97b4fd602e01da55dabd0eb63223606b
4
- data.tar.gz: 5e7b41bf053c7fdd2021af984ce0a31207bdb77c
2
+ SHA256:
3
+ metadata.gz: 1a459d0b272e69c5f4207348dbddf46298b07f39516a763f487ad167b714b516
4
+ data.tar.gz: 8d7c2bd5a0a249ea09d9a2ee6a28adba574c3ba8ef30bd080575735366138adf
5
5
  SHA512:
6
- metadata.gz: 51cb0a96ba7c135ce6454cf0b8a65b91849e8ecf0b040613a40a69628ab6c44b0cd9f4d2b14229fcb71667b4fbcc363fc7e21177cd7449073175e1f3db971062
7
- data.tar.gz: 98d586bf304ed09a8c546157a44cfffb1d2db256349a97fdcc042c477f8537b95d0c5f691c6f7588a22604e5c20fe24f1dfb4dcd421220d771d74cd46da45644
6
+ metadata.gz: ac36e381d07c025bdbcaaff568bfaa3528e95d3a91c53e570db2178879fba6124b25d319b435ea0fd782217edae0edb00758b1f6f78f43f8be792517cae21a75
7
+ data.tar.gz: e865108f87e78d68e77857d4af4606b401ed80e2ef06adae398e33a2445d62ddb2589a2a74e5af299de09848abd16cfaeaec94a5703774850e84924c854cc152
@@ -1,5 +1,21 @@
1
1
  sudo: false
2
+ cache: bundler
2
3
  language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.12.5
4
+ rvm: 2.4
5
+ matrix:
6
+ include:
7
+ - rvm: 2.3
8
+ env: RAILS_VERSION=4.2.10
9
+ BUNDLER_VERSION=1.17.3
10
+ - env: RAILS_VERSION=5.0.7
11
+ - env: RAILS_VERSION=5.1.6
12
+ - rvm: 2.5
13
+ - env: RAILS_VERSION=5.2.1
14
+ - rvm: 2.6
15
+ global_env:
16
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
17
+ before_install:
18
+ - gem update --system
19
+ - if [ ! -z $BUNDLER_VERSION ]; then gem install bundler -v $BUNDLER_VERSION; else gem install bundler; fi
20
+ before_script:
21
+ - jdk_switcher use oraclejdk8
data/README.md CHANGED
@@ -30,5 +30,5 @@ 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/[USERNAME]/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
+ 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.
34
34
 
@@ -17,15 +17,14 @@ 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", "< 12"
20
+ spec.add_dependency "active-fedora", ">= 11.0.0.pre", "< 13"
21
21
  spec.add_dependency "om", "~> 3.1"
22
22
  spec.add_dependency "nom-xml", ">= 0.5.1"
23
23
  spec.add_dependency "rdf-rdfxml", '~> 2.0'
24
- spec.add_development_dependency "bundler", "~> 1.12"
25
24
  spec.add_development_dependency "rake", "~> 10.0"
26
25
  spec.add_development_dependency "rspec", "~> 3.0"
27
- spec.add_development_dependency "solr_wrapper", "~> 0.4"
28
- spec.add_development_dependency 'fcrepo_wrapper', '~> 0.2'
26
+ spec.add_development_dependency "solr_wrapper", "~> 2.1"
27
+ spec.add_development_dependency 'fcrepo_wrapper', '~> 0.9'
29
28
  spec.add_development_dependency "rubocop", '~> 0.42'
30
29
  spec.add_development_dependency "rubocop-rspec", '~> 1.4'
31
30
  spec.add_development_dependency "equivalent-xml"
@@ -44,22 +44,22 @@ module ActiveFedora
44
44
  end
45
45
 
46
46
  def refresh_attributes
47
- changed_attributes.clear
47
+ clear_attribute_changes(changes.keys)
48
48
  @ng_xml = nil
49
49
  end
50
50
 
51
51
  # don't want content eagerly loaded by proxy, so implementing methods that would be implemented by define_attribute_methods
52
52
  def ng_xml_will_change!
53
- changed_attributes['ng_xml'] = nil
53
+ attributes_changed_by_setter['ng_xml'] = nil
54
54
  end
55
55
 
56
56
  def ng_xml_doesnt_change!
57
- changed_attributes.delete('ng_xml')
57
+ attributes_changed_by_setter.delete('ng_xml')
58
58
  end
59
59
 
60
60
  # don't want content eagerly loaded by proxy, so implementing methods that would be implemented by define_attribute_methods
61
61
  def ng_xml_changed?
62
- changed_attributes.key? 'ng_xml'
62
+ attributes_changed_by_setter.key? 'ng_xml'
63
63
  end
64
64
 
65
65
  def remote_content
@@ -108,7 +108,7 @@ module ActiveFedora
108
108
  end
109
109
 
110
110
  def autocreate?
111
- changed_attributes.key? :profile
111
+ attributes_changed_by_setter.key? :profile
112
112
  end
113
113
 
114
114
  def xml_loaded
@@ -1,5 +1,5 @@
1
1
  module ActiveFedora
2
2
  module Datastreams
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.2.0".freeze
4
4
  end
5
5
  end
@@ -1,3 +1,5 @@
1
+ require 'tempfile'
2
+
1
3
  module ActiveFedora
2
4
  class RDFDatastream < File
3
5
  include ActiveTriples::NestedAttributes
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.1.0
4
+ version: 0.2.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: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2019-03-06 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: '12'
22
+ version: '13'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 11.0.0.pre
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '12'
32
+ version: '13'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: om
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '2.0'
75
- - !ruby/object:Gem::Dependency
76
- name: bundler
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.12'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.12'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: rake
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -120,28 +106,28 @@ dependencies:
120
106
  requirements:
121
107
  - - "~>"
122
108
  - !ruby/object:Gem::Version
123
- version: '0.4'
109
+ version: '2.1'
124
110
  type: :development
125
111
  prerelease: false
126
112
  version_requirements: !ruby/object:Gem::Requirement
127
113
  requirements:
128
114
  - - "~>"
129
115
  - !ruby/object:Gem::Version
130
- version: '0.4'
116
+ version: '2.1'
131
117
  - !ruby/object:Gem::Dependency
132
118
  name: fcrepo_wrapper
133
119
  requirement: !ruby/object:Gem::Requirement
134
120
  requirements:
135
121
  - - "~>"
136
122
  - !ruby/object:Gem::Version
137
- version: '0.2'
123
+ version: '0.9'
138
124
  type: :development
139
125
  prerelease: false
140
126
  version_requirements: !ruby/object:Gem::Requirement
141
127
  requirements:
142
128
  - - "~>"
143
129
  - !ruby/object:Gem::Version
144
- version: '0.2'
130
+ version: '0.9'
145
131
  - !ruby/object:Gem::Dependency
146
132
  name: rubocop
147
133
  requirement: !ruby/object:Gem::Requirement
@@ -232,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
218
  - !ruby/object:Gem::Version
233
219
  version: '0'
234
220
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.5.1
221
+ rubygems_version: 3.0.3
237
222
  signing_key:
238
223
  specification_version: 4
239
224
  summary: Datastreams for ActiveFedora