enju_biblio 0.1.0.pre64 → 0.1.0.pre65
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c839ddf139ea8e9fc7d2926aa37afabf51fe325
|
4
|
+
data.tar.gz: 280ec8b0ea508ab3cd854ffc8f413f65963bd977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8c750255c7992b6af9e86b9359a8ef20c1f333486b20dc46ca553afdf8e1bf2506b343c32b92d2434897c19c6a46e985bb1188714e09efa57c80f62310aa0e8
|
7
|
+
data.tar.gz: 1360353ffe8e1d3b68ec1480d2f5ee0f17713a462924254610cb39b958071094b8ab9798504149428498f0d4be5fabcc6062cc21bcc490fe2fb94bffc8f5bc65
|
@@ -157,6 +157,10 @@ class AgentImportFile < ActiveRecord::Base
|
|
157
157
|
AgentImportFileTransition
|
158
158
|
end
|
159
159
|
|
160
|
+
def self.initial_state
|
161
|
+
:pending
|
162
|
+
end
|
163
|
+
|
160
164
|
def open_import_file
|
161
165
|
tempfile = Tempfile.new(self.class.name.underscore)
|
162
166
|
if Setting.uploaded_file.storage == :s3
|
@@ -13,7 +13,7 @@ class ImportRequest < ActiveRecord::Base
|
|
13
13
|
has_many :import_request_transitions
|
14
14
|
|
15
15
|
def state_machine
|
16
|
-
|
16
|
+
ImportRequestStateMachine.new(self, transition_class: ImportRequestTransition)
|
17
17
|
end
|
18
18
|
|
19
19
|
delegate :can_transition_to?, :transition_to!, :transition_to, :current_state,
|
@@ -61,10 +61,13 @@ class ImportRequest < ActiveRecord::Base
|
|
61
61
|
end
|
62
62
|
|
63
63
|
private
|
64
|
-
|
65
64
|
def self.transition_class
|
66
65
|
ImportRequestTransition
|
67
66
|
end
|
67
|
+
|
68
|
+
def self.initial_state
|
69
|
+
:pending
|
70
|
+
end
|
68
71
|
end
|
69
72
|
|
70
73
|
# == Schema Information
|
data/lib/enju_biblio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_biblio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paperclip
|