hybag 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWMxNWM2NTA4Mzg0Mjg4N2ZmMTZkOTM1NjhlZmUyYzdjYTNkMWIwNA==
4
+ MDQ3ZTEwNGM0ODhmZGUzN2NjZDYxNzlmZWY1NjhmNDBhZTkzZmVmMw==
5
5
  data.tar.gz: !binary |-
6
- YWVlZmFkMGU5MjRkMjM2MjM2Y2Y5Zjc4MWEzOGZiODc4YTA2YjkwYQ==
6
+ MWRiY2RlYmNlMGRiMzIxNjA0NjczMzAyMzYzMGZkMWE1NDZhYjAzNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTY0NzA4ZWY3ZTllOTcyZWJkYmFlMjAyZThmNjUyZWQ3NGJlYzIxMmYwNWEx
10
- ODg1Mjc3OTc5Y2U3NzFkYjU3ODU4MjBkYjYyMTBhYzU4NTllY2YwNDE3ZTdj
11
- Mzg3MDQ4MmVjNjhiMTE0MzExZmQ1YTQ0MTc4OWU4YTExYWE4OTc=
9
+ NDZlYzMzY2YxNDlmOTUyMzg2ZDEzZTc3MmJmMzgxZmVkOTJkMTZlZDNiY2Nj
10
+ ZTY4ZTIyOWY4MmI4ZjA2MDJjZTI4NjA3NDEwMTFiZTkwMjhmNzFjYjJiYjYy
11
+ MzlkYmQxOWY3ZWVmYTgyZTEzNzBhMmM0ZTJiNzBlYWEyYzBlZTg=
12
12
  data.tar.gz: !binary |-
13
- MjcxNjVkNzE5NTQ3NjQ2MmEyOGI2NTJiYmE1NGE5MWI5YzdlYzRmYjUzYzVi
14
- ZGM2NThmZjZiZjkwNjMxMGZhMTU4Mjg5YTIzMzE3MThjNDExZWFiZmIwYmVj
15
- ODYxN2JmYmE4MzNhOTEyMDFlZmYzZjU3MTk3ZTg4N2MzNjVkZTc=
13
+ OGIwNDg2ZjFkY2Y3YjQ0NzY4ZDU4OWJmNTZlYTUzYzU2MjczODk1MTllZWUz
14
+ ZTU0ZTlhYTI4ZWE2NTQ0NWY3NzFhMDkxNzU3YmFhNTQwNWM2OTAwZjI1NTEz
15
+ NDBkNzQ1YjU5NmQ0NjgxY2Y5ZDUyMDVhNDNkMTk0YjdhZDU4M2Q=
@@ -9,7 +9,7 @@ module Hybag
9
9
 
10
10
  def ingest
11
11
  raise "Unable to determine model from bag" if model_name.blank?
12
- new_object = ActiveFedora.class_from_string(model_name.to_s).new
12
+ new_object = model_name.constantize.new
13
13
  # Assign a pid
14
14
  new_object.inner_object.pid = new_object.inner_object.assign_pid
15
15
  set_metadata_streams(new_object)
data/lib/hybag/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hybag
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Terrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-26 00:00:00.000000000 Z
11
+ date: 2013-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler