libis-workflow-mongoid 2.0.beta.6 → 2.0.beta.7
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 +4 -4
- data/lib/libis/workflow/mongoid/config.rb +9 -4
- data/lib/libis/workflow/mongoid/version.rb +1 -1
- data/spec/workflow_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac4c9488f91558b6d4fafd74dee9f290ee3d0cef
|
|
4
|
+
data.tar.gz: 2d3a0bb20458ad20cbbcc602e7b464a6007cf94e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 908030d2bf775e4c7ce2e9a093ac702052c5dae6a7c75dc493b35c883c0e2a0f3b4462773dc02f8a8a3a9af992c471626f04bde61cb22efcd29af9171322ad32
|
|
7
|
+
data.tar.gz: 97cd7017c9f6f636ecd63e218775f555a8cdb23523e807a3cdea3add0d4a1379c719c94f29e7411569a4718b63b29bb83590b11a7b3fc939331a483dd76e2e9b
|
|
@@ -9,13 +9,18 @@ module Libis
|
|
|
9
9
|
module Workflow
|
|
10
10
|
module Mongoid
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# noinspection RubyConstantNamingConvention
|
|
13
|
+
Config = ::Libis::Workflow::Config
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
Config.define_singleton_method(:database_connect) do |config_file = './mongoid.yml', environment = nil|
|
|
16
|
+
# noinspection RubyResolve
|
|
17
|
+
instance.database_connect(config_file, environment)
|
|
18
|
+
end
|
|
17
19
|
|
|
20
|
+
Config.send(:define_method, :database_connect) do |config_file = './mongoid.yml', environment = nil|
|
|
21
|
+
::Mongoid.load! config_file, environment
|
|
18
22
|
end
|
|
23
|
+
|
|
19
24
|
end
|
|
20
25
|
end
|
|
21
26
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Libis
|
|
4
4
|
module Workflow
|
|
5
5
|
module Mongoid
|
|
6
|
-
VERSION = '2.0.beta.
|
|
6
|
+
VERSION = '2.0.beta.7' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
end
|
data/spec/workflow_spec.rb
CHANGED
|
@@ -148,7 +148,7 @@ STR
|
|
|
148
148
|
sample_out = sample_out.lines.to_a
|
|
149
149
|
output = @logoutput.string.lines
|
|
150
150
|
|
|
151
|
-
expect(
|
|
151
|
+
expect(output.count).to eq sample_out.count
|
|
152
152
|
output.each_with_index do |o, i|
|
|
153
153
|
expect(o[/(?<=\] ).*/]).to eq sample_out[i].strip
|
|
154
154
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libis-workflow-mongoid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.beta.
|
|
4
|
+
version: 2.0.beta.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kris Dekeyser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: libis-workflow
|
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
182
|
version: 1.3.1
|
|
183
183
|
requirements: []
|
|
184
184
|
rubyforge_project:
|
|
185
|
-
rubygems_version: 2.4.
|
|
185
|
+
rubygems_version: 2.4.8
|
|
186
186
|
signing_key:
|
|
187
187
|
specification_version: 4
|
|
188
188
|
summary: Mongoid persistence for the LIBIS Workflow framework.
|