statesman 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/statesman/adapters/active_record_queries.rb +4 -4
- data/lib/statesman/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 441e0ff074b2432e5f2b5cc45a3b1d1b0c315d6d65c436d79ad073dedb193008
|
4
|
+
data.tar.gz: 77f8efd0a2e49cfd3348d33ee0608f535157e93dda45d5cc978ff4ca56b01fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3202f129b6fc355feb700f86d5c90815904fbdf7021119dedeba067b2b6c3f982fa0fbdd2f0f44f4a3f51057bb3d04785c418acc4f362114f9a27bb1758b6d
|
7
|
+
data.tar.gz: 3a56b08c06a6ec8d0bfbb1330350dc8a9ee596ceca717437400db342941362d5879dd8cc5df398b6eee9b3508cb478068e6961734f84dcb8d64e782c58a2f32d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## v5.2.0, 17th December 2019
|
2
|
+
|
3
|
+
- Issue `most_recent_transition_join` query as a single-line string [#381](https://github.com/gocardless/statesman/pull/381)
|
4
|
+
|
1
5
|
## v5.1.0, 22th November 2019
|
2
6
|
|
3
7
|
- Correct `Statesman::Adapters::ActiveRecordQueries` error text [@Bramjetten](https://github.com/gocardless/statesman/pull/376)
|
data/README.md
CHANGED
@@ -101,10 +101,10 @@ module Statesman
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def most_recent_transition_join
|
104
|
-
"LEFT OUTER JOIN #{model_table} AS #{most_recent_transition_alias}
|
105
|
-
ON #{model.table_name}.id =
|
106
|
-
#{most_recent_transition_alias}.#{model_foreign_key}
|
107
|
-
AND #{most_recent_transition_alias}.most_recent = #{db_true}"
|
104
|
+
"LEFT OUTER JOIN #{model_table} AS #{most_recent_transition_alias} " \
|
105
|
+
"ON #{model.table_name}.id = " \
|
106
|
+
"#{most_recent_transition_alias}.#{model_foreign_key} " \
|
107
|
+
"AND #{most_recent_transition_alias}.most_recent = #{db_true}"
|
108
108
|
end
|
109
109
|
|
110
110
|
private
|
data/lib/statesman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statesman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ammeter
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
version: '0'
|
293
293
|
requirements: []
|
294
294
|
rubyforge_project:
|
295
|
-
rubygems_version: 2.7.6
|
295
|
+
rubygems_version: 2.7.6
|
296
296
|
signing_key:
|
297
297
|
specification_version: 4
|
298
298
|
summary: A statesman-like state machine library
|