stateful.rb 2.3.4 → 2.3.5
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/CHANGELOG.md +8 -0
- data/lib/Stateful/ActiveRecord.rb +1 -3
- data/lib/Stateful/Poro.rb +1 -3
- data/lib/Stateful/Sequel.rb +1 -3
- data/lib/Stateful/State.rb +0 -1
- data/lib/Stateful/StateMachine.rb +0 -1
- data/lib/Stateful/Transition.rb +0 -2
- data/lib/Stateful/VERSION.rb +1 -1
- data/lib/Stateful.rb +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c59db122c866f83bcf4ee3edeb84e119fdf9983361adc7bcb58b9ae8f2b4a025
|
|
4
|
+
data.tar.gz: 38b5376b18359e05f7540eb50321bb18d6b8988988738818f1b049f9d62c6e80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56db73d72bfc7ea6d6ce667b7b7be9f5455fc437471d8db84f16cfd28a63d990c80c3002bdd47f2788e7921a7e1711c411ebe549131c384603fe34b1ec517c4b
|
|
7
|
+
data.tar.gz: 37125b132d495b7a38da67b33f4a49b57da1a11ac8716d5927935156a00949f6e8fef2df15d09cc8f5928a67076c80fc3d44d162beb62fd8201dd4d3f3a8fe97
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# stateful/CHANGELOG.md
|
|
2
2
|
|
|
3
|
+
## 2.3.5 (20260912): ~ the requires: /File.join('a', 'b')/'a\/b'/; - the blank line inside each class and module.
|
|
4
|
+
----------------------------------------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
### ~
|
|
7
|
+
1. lib and test: 7 requires read `File.join` over two string literals, which returns the same string the literal would: File.join joins with File::SEPARATOR, and that is "/" on every platform Ruby runs on, Windows included, File::ALT_SEPARATOR being untouched by it. So it conferred no portability and cost a `git grep` for the path it names.
|
|
8
|
+
2. lib and test: - 11 blank lines, each immediately after a class or module line and nothing else.
|
|
9
|
+
3. Stateful::VERSION: /2.3.4/2.3.5/
|
|
10
|
+
|
|
3
11
|
## 2.3.4 (20260910): ~ lib/Stateful.rb: + require_relative File.join('Stateful', 'VERSION'); + test/VERSION.rb
|
|
4
12
|
----------------------------------------------------------------------------------------------------
|
|
5
13
|
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
require_relative 'ClassMethods'
|
|
5
5
|
require_relative 'InstanceMethods'
|
|
6
|
-
require_relative
|
|
6
|
+
require_relative 'ActiveRecord/ClassMethods'
|
|
7
7
|
|
|
8
8
|
module Stateful
|
|
9
9
|
module ActiveRecord
|
|
10
|
-
|
|
11
10
|
class << self
|
|
12
11
|
|
|
13
12
|
def set_column_name(klass)
|
|
@@ -25,6 +24,5 @@ module Stateful
|
|
|
25
24
|
alias_method :included, :extended
|
|
26
25
|
|
|
27
26
|
end # class << self
|
|
28
|
-
|
|
29
27
|
end
|
|
30
28
|
end
|
data/lib/Stateful/Poro.rb
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
require_relative 'ClassMethods'
|
|
5
5
|
require_relative 'InstanceMethods'
|
|
6
|
-
require_relative
|
|
6
|
+
require_relative 'Poro/ClassMethods'
|
|
7
7
|
|
|
8
8
|
module Stateful
|
|
9
9
|
module Poro
|
|
10
|
-
|
|
11
10
|
class << self
|
|
12
11
|
|
|
13
12
|
def set_variable_name(klass)
|
|
@@ -25,6 +24,5 @@ module Stateful
|
|
|
25
24
|
alias_method :included, :extended
|
|
26
25
|
|
|
27
26
|
end # class << self
|
|
28
|
-
|
|
29
27
|
end
|
|
30
28
|
end
|
data/lib/Stateful/Sequel.rb
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
require_relative 'ClassMethods'
|
|
5
5
|
require_relative 'InstanceMethods'
|
|
6
|
-
require_relative
|
|
6
|
+
require_relative 'Sequel/ClassMethods'
|
|
7
7
|
|
|
8
8
|
module Stateful
|
|
9
9
|
module Sequel
|
|
10
|
-
|
|
11
10
|
class << self
|
|
12
11
|
|
|
13
12
|
def set_column_name(klass)
|
|
@@ -25,6 +24,5 @@ module Stateful
|
|
|
25
24
|
alias_method :included, :extended
|
|
26
25
|
|
|
27
26
|
end # class << self
|
|
28
|
-
|
|
29
27
|
end
|
|
30
28
|
end
|
data/lib/Stateful/State.rb
CHANGED
data/lib/Stateful/Transition.rb
CHANGED
data/lib/Stateful/VERSION.rb
CHANGED
data/lib/Stateful.rb
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
# Stateful.rb
|
|
2
2
|
# Stateful
|
|
3
3
|
|
|
4
|
-
require_relative
|
|
4
|
+
require_relative 'Stateful/VERSION'
|
|
5
5
|
|
|
6
6
|
module Stateful
|
|
7
|
-
|
|
8
7
|
class << self
|
|
9
8
|
|
|
10
9
|
def extended(klass)
|
|
11
10
|
if Object.const_defined?(:ActiveRecord) && defined?(::ActiveRecord::Base) && klass < ::ActiveRecord::Base
|
|
12
|
-
require_relative
|
|
11
|
+
require_relative 'Stateful/ActiveRecord'
|
|
13
12
|
klass.extend(Stateful::ActiveRecord)
|
|
14
13
|
elsif Object.const_defined?(:Sequel) && defined?(::Sequel::Model) && klass < ::Sequel::Model
|
|
15
|
-
require_relative
|
|
14
|
+
require_relative 'Stateful/Sequel'
|
|
16
15
|
klass.extend(Stateful::Sequel)
|
|
17
16
|
else
|
|
18
|
-
require_relative
|
|
17
|
+
require_relative 'Stateful/Poro'
|
|
19
18
|
klass.extend(Stateful::Poro)
|
|
20
19
|
end
|
|
21
20
|
end
|
|
22
21
|
alias_method :included, :extended
|
|
23
22
|
|
|
24
23
|
end # class << self
|
|
25
|
-
|
|
26
24
|
end
|