aasm-active_fedora 0.1.2 → 0.2.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d4bfa4cf61b31b2ad9eebdf441c1227d37f8d66
|
|
4
|
+
data.tar.gz: 698c117935e17d6705ab7e5f395e9d075749b20b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0d916ab7072c9e270d5ba4d591dde5836fbb8d6d267a0af12d5645783b4601468c79fc359fdcf38002dcbfd4ecae63013d8a4976cfe65b209f708a4feb9a043
|
|
7
|
+
data.tar.gz: 0fd471994d80874bf3c8202212dab1ba212e9384e1b2265cdd1ae9e27bf8f79605d7f627a76403f35e982d262feb0c7d90458352a49f913a291574738513d25f
|
data/README.md
CHANGED
|
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
32
|
|
|
33
33
|
## Contributing
|
|
34
34
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mbarnett/aasm-active_fedora. 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.
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
## License
|
data/aasm-active_fedora.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.require_paths = ['lib']
|
|
26
26
|
|
|
27
27
|
spec.add_dependency 'aasm', '~> 4.11'
|
|
28
|
-
spec.add_dependency '
|
|
28
|
+
spec.add_dependency 'active-fedora'
|
|
29
29
|
|
|
30
30
|
spec.add_development_dependency 'pry'
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require 'rdf'
|
|
2
|
-
require 'sufia'
|
|
3
2
|
|
|
4
3
|
module AASM
|
|
5
4
|
module Persistence
|
|
@@ -29,13 +28,6 @@ module AASM
|
|
|
29
28
|
base.send(:remove_method, :temp_af_moveaside)
|
|
30
29
|
|
|
31
30
|
base.after_initialize :aasm_ensure_initial_state
|
|
32
|
-
|
|
33
|
-
# add the property to SolrDocuments as well
|
|
34
|
-
Sufia::SolrDocumentBehavior.module_eval do
|
|
35
|
-
define_method attribute_name do
|
|
36
|
-
self[Solrizer.solr_name(attribute_name)]
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
31
|
end
|
|
40
32
|
|
|
41
33
|
module InstanceMethods
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
require 'pry'
|
|
1
2
|
module AASM
|
|
2
|
-
module
|
|
3
|
-
|
|
4
|
-
def
|
|
3
|
+
module PersistenceWithActiveFedora
|
|
4
|
+
module ClassMethods
|
|
5
|
+
def load_persistence(base)
|
|
5
6
|
hierarchy = base.ancestors.map {|klass| klass.to_s}
|
|
6
7
|
if hierarchy.include?('ActiveFedora::Base')
|
|
7
8
|
include_persistence base, :active_fedora
|
|
8
9
|
else
|
|
9
|
-
|
|
10
|
+
super
|
|
10
11
|
end
|
|
11
12
|
end
|
|
13
|
+
end
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
def self.prepended(base)
|
|
16
|
+
class << base
|
|
17
|
+
prepend ClassMethods
|
|
18
|
+
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
16
21
|
end
|
|
22
|
+
|
|
23
|
+
AASM::Persistence.send(:prepend, AASM::PersistenceWithActiveFedora)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aasm-active_fedora
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Barnett
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aasm
|
|
@@ -25,19 +25,19 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '4.11'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: active-fedora
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
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: '
|
|
40
|
+
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: pry
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -133,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
version: '0'
|
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- - "
|
|
136
|
+
- - ">"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version:
|
|
138
|
+
version: 1.3.1
|
|
139
139
|
requirements: []
|
|
140
140
|
rubyforge_project:
|
|
141
141
|
rubygems_version: 2.4.6
|