statesman 5.1.0 → 5.2.0

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
  SHA256:
3
- metadata.gz: 137c7306b24f584a5b3e442ef5326ac210518c6ec64b3955106803b4d9bcddcc
4
- data.tar.gz: 88cc9d95d0b6ff92a257e7afdc9510bd372b562e0aeaa92403bc51b762485f1f
3
+ metadata.gz: 441e0ff074b2432e5f2b5cc45a3b1d1b0c315d6d65c436d79ad073dedb193008
4
+ data.tar.gz: 77f8efd0a2e49cfd3348d33ee0608f535157e93dda45d5cc978ff4ca56b01fba
5
5
  SHA512:
6
- metadata.gz: 6c5f8ad449fcea9f476d990048348eb766e2b65cf6f188118fc45162764f64656f6fec5ea65fbd797a999b517402501b5edbe2d45a834d5dcaf492f566b47f53
7
- data.tar.gz: '038b822e77c6a07df87cc8d4ab792b8bf5f7c61ed7f38548a6751d579fca3b988ef32a8f2cd6d609cf25b521218a87952cf4590400584add3031ff4cfe895eff'
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
@@ -30,7 +30,7 @@ protection.
30
30
  To get started, just add Statesman to your `Gemfile`, and then run `bundle`:
31
31
 
32
32
  ```ruby
33
- gem 'statesman', '~> 5.1.0'
33
+ gem 'statesman', '~> 5.2.0'
34
34
  ```
35
35
 
36
36
  ## Usage
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Statesman
2
- VERSION = "5.1.0".freeze
2
+ VERSION = "5.2.0".freeze
3
3
  end
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.1.0
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-05 00:00:00.000000000 Z
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.2
295
+ rubygems_version: 2.7.6
296
296
  signing_key:
297
297
  specification_version: 4
298
298
  summary: A statesman-like state machine library