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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4ce0bbfcae9625500dac3b0b0383fd4eebd0071
4
- data.tar.gz: e07861d42d9273e1c0230ca5262426985f0820b0
3
+ metadata.gz: ac4c9488f91558b6d4fafd74dee9f290ee3d0cef
4
+ data.tar.gz: 2d3a0bb20458ad20cbbcc602e7b464a6007cf94e
5
5
  SHA512:
6
- metadata.gz: e405d87cb898211c6378b3a71a81fe48e8bb5d3997b8a35ad4cc91592c1416c1322b4495429aa41c3e451a261568f94f9a0cdb2e6a9373673bccb093700e1ffc
7
- data.tar.gz: 05268ad1805a517c09ce90f501d361cfae9fdbc453142b3a12a8064c0779654914cd9b8dbd8b231a1419af7a69e0b10421fc6dab62e1019d721fbde71ef0c7c3
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
- class Config < ::Libis::Workflow::Config
12
+ # noinspection RubyConstantNamingConvention
13
+ Config = ::Libis::Workflow::Config
13
14
 
14
- def self.database_connect(config_file = './mongoid.yml', environment = nil)
15
- ::Mongoid.load! config_file, environment
16
- end
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' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
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
@@ -148,7 +148,7 @@ STR
148
148
  sample_out = sample_out.lines.to_a
149
149
  output = @logoutput.string.lines
150
150
 
151
- expect(sample_out.count).to eq output.count
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.6
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-10 00:00:00.000000000 Z
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.6
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.