stateful.rb 2.3.0 → 2.3.1

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/lib/Stateful/VERSION.rb +1 -1
  4. data/test/ActiveRecord/WithColumnName.rb +1 -4
  5. data/test/ActiveRecord/WithExplicitDeterministicEventOrdering.rb +1 -4
  6. data/test/ActiveRecord/WithExplicitGlobalNonDeterministicEventOrdering.rb +1 -4
  7. data/test/ActiveRecord/WithExplicitGlobalNonDeterministicEventOrderingAndInitialStateBlock.rb +1 -4
  8. data/test/ActiveRecord/WithExplicitNonDeterministicEventOrdering.rb +1 -4
  9. data/test/ActiveRecord/WithInitialStateBlock.rb +1 -4
  10. data/test/ActiveRecord/WithMultipleFinalStates.rb +1 -4
  11. data/test/ActiveRecord/WithMultipleStateMachines.rb +1 -4
  12. data/test/ActiveRecord/WithMultipleStateMachinesAndStatefulBlock.rb +1 -4
  13. data/test/ActiveRecord/WithPersistenceNonSpecificExtend.rb +1 -4
  14. data/test/ActiveRecord/WithPersistenceNonSpecificExtendAndStatefulBlock.rb +1 -4
  15. data/test/ActiveRecord/WithPersistenceSpecificExtend.rb +1 -4
  16. data/test/ActiveRecord/WithPersistenceSpecificExtendAndStatefulBlock.rb +1 -4
  17. data/test/Poro/WithExplicitDeterministicEventOrdering.rb +1 -5
  18. data/test/Poro/WithExplicitGlobalNonDeterministicEventOrdering.rb +1 -5
  19. data/test/Poro/WithExplicitGlobalNonDeterministicEventOrderingAndInitialStateBlock.rb +1 -5
  20. data/test/Poro/WithExplicitNonDeterministicEventOrdering.rb +1 -5
  21. data/test/Poro/WithInitialStateBlock.rb +1 -5
  22. data/test/Poro/WithMultipleFinalStates.rb +1 -5
  23. data/test/Poro/WithMultipleStateMachines.rb +1 -5
  24. data/test/Poro/WithMultipleStateMachinesAndStatefulBlock.rb +1 -5
  25. data/test/Poro/WithPersistenceNonSpecificExtend.rb +1 -5
  26. data/test/Poro/WithPersistenceNonSpecificExtendAndStatefulBlock.rb +1 -5
  27. data/test/Poro/WithPersistenceSpecificExtend.rb +1 -5
  28. data/test/Poro/WithPersistenceSpecificExtendAndStatefulBlock.rb +1 -5
  29. data/test/Poro/WithVariableName.rb +1 -5
  30. data/test/Sequel/WithColumnName.rb +1 -4
  31. data/test/Sequel/WithExplicitDeterministicEventOrdering.rb +1 -4
  32. data/test/Sequel/WithExplicitGlobalNonDeterministicEventOrdering.rb +1 -4
  33. data/test/Sequel/WithExplicitGlobalNonDeterministicEventOrderingAndInitialStateBlock.rb +1 -4
  34. data/test/Sequel/WithExplicitNonDeterministicEventOrdering.rb +1 -4
  35. data/test/Sequel/WithInitialStateBlock.rb +1 -4
  36. data/test/Sequel/WithMultipleFinalStates.rb +1 -4
  37. data/test/Sequel/WithMultipleStateMachines.rb +1 -4
  38. data/test/Sequel/WithMultipleStateMachinesAndStatefulBlock.rb +1 -4
  39. data/test/Sequel/WithPersistenceNonSpecificExtend.rb +1 -4
  40. data/test/Sequel/WithPersistenceNonSpecificExtendAndStatefulBlock.rb +1 -4
  41. data/test/Sequel/WithPersistenceSpecificExtend.rb +1 -4
  42. data/test/Sequel/WithPersistenceSpecificExtendAndStatefulBlock.rb +1 -4
  43. data/test/Stateful.rb +0 -3
  44. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64d45e68824b71f7c09cdd74a2c5ee0b24dc8b6a5d56c8382d69db3755f2135b
4
- data.tar.gz: cb4c4e148e18cb5fe4792db4f3c7607917bae0d15fde9823200c7dd43e34731a
3
+ metadata.gz: 07c897617cdd223bd354d7f7819341cd8dfd388bf412b479fcac7b757e76d004
4
+ data.tar.gz: 6742bb2396d64fcac9ee8678b32b187d5b020fc2757842bc79f3f790f5a9a26f
5
5
  SHA512:
6
- metadata.gz: 2ee5b530989c26519491d9575bfdc5cad20f9eda1e1cae0c95186d52891c78e78a765d1eb1b42c194177959979abefd017f2f47edaeb586746556322b89f3f38
7
- data.tar.gz: 6e55e936a191bc872594b3a6ad370b1912b03950680eac27ecd9a960592b16129c69c073f0d903d1d5f1c50cfadeb5b08dad0b3a521fe045df4d649854d81b9a
6
+ metadata.gz: 1b396504ea4e1ad2f9f1e9c8419d8463749321e8e3ab64433c2cbbd7559377b2750a559099d25ab1e02c398cae2b20f3ec380cb27f83498b8808ddb0a7b4cbe0
7
+ data.tar.gz: eaf13d432db2b8df6f7785b009b2c837b434e051e01e318f3e82f497045b0c91af0cf02700f222c372a00478b093c4c98dd3c77f911550393ab8b8b1a89932c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # stateful/CHANGELOG.md
2
2
 
3
+ ## 2.3.1 (20260418): Use require\_relative in tests.
4
+ -----------------------------------------------------------------------------------------------------------------------
5
+
6
+ ### ~
7
+ 1. test/ActiveRecord/\*.rb:
8
+ - /require 'Stateful'/require\_relative '../../lib/Stateful'/
9
+ - /require 'Stateful/ActiveRecord'/require\_relative '../../lib/Stateful/ActiveRecord'/
10
+ (Ensures tests always run against the adjacent lib, not an installed gem.)
11
+ 2. test/Poro/\*.rb:
12
+ - /require 'Stateful'/require\_relative '../../lib/Stateful'/
13
+ - /require 'Stateful/Poro'/require\_relative '../../lib/Stateful/Poro'/
14
+ 3. test/Sequel/\*.rb:
15
+ - /require 'Stateful'/require\_relative '../../lib/Stateful'/
16
+ - /require 'Stateful/Sequel'/require\_relative '../../lib/Stateful/Sequel'/
17
+ 4. test/Stateful.rb: - $LOAD\_PATH manipulation (no longer needed with require\_relative).
18
+ 5. lib/Stateful/VERSION.rb: /2.3.0/2.3.1/
19
+
20
+
3
21
  ## 2.3.0 (20260418): Extract shared class methods.
4
22
  -----------------------------------------------------------------------------------------------------------------------
5
23
 
@@ -1,3 +1,3 @@
1
1
  module Stateful
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful/ActiveRecord'
11
+ require_relative '../../lib/Stateful/ActiveRecord'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful/ActiveRecord'
11
+ require_relative '../../lib/Stateful/ActiveRecord'
15
12
 
16
13
  class CreateTableMachines < ActiveRecord::Migration[6.0]
17
14
  def change
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine5
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine9
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine10
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine6
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine4
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine7
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine11
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine12
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine0
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine1
15
11
  extend Stateful
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful/Poro'
8
+ require_relative '../../lib/Stateful/Poro'
13
9
 
14
10
  class PoroMachine2
15
11
  extend Stateful::Poro
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful/Poro'
8
+ require_relative '../../lib/Stateful/Poro'
13
9
 
14
10
  class PoroMachine3
15
11
  extend Stateful::Poro
@@ -5,11 +5,7 @@ gem 'minitest-spec-context'
5
5
 
6
6
  require 'minitest/autorun'
7
7
  require 'minitest-spec-context'
8
-
9
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
10
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
-
12
- require 'Stateful'
8
+ require_relative '../../lib/Stateful'
13
9
 
14
10
  class PoroMachine8
15
11
  @stateful_variable_name = 'status'
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine8s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine5s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine9s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine10s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine6s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine4s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine7s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine11s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine12s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine0s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful'
11
+ require_relative '../../lib/Stateful'
15
12
 
16
13
  DB.create_table :sequel_machine1s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful/Sequel'
11
+ require_relative '../../lib/Stateful/Sequel'
15
12
 
16
13
  DB.create_table :sequel_machine2s do
17
14
  primary_key :id
@@ -8,10 +8,7 @@ require 'minitest-spec-context'
8
8
 
9
9
  require_relative './test_helper'
10
10
 
11
- lib_dir = File.expand_path(File.join(__FILE__, '..', '..', '..', 'lib'))
12
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
13
-
14
- require 'Stateful/Sequel'
11
+ require_relative '../../lib/Stateful/Sequel'
15
12
 
16
13
  DB.create_table :sequel_machine3s do
17
14
  primary_key :id
data/test/Stateful.rb CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  test_dir = File.dirname(File.expand_path(__FILE__))
4
4
 
5
- lib_dir = File.expand_path(File.join(test_dir, '..', 'lib'))
6
- $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
7
-
8
5
  active_record_specs = Dir[File.join(test_dir, 'ActiveRecord', '**', '*.rb')]
9
6
  active_record_specs.each{|spec| require spec}
10
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stateful.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran