github-ds 0.2.3 → 0.2.4
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 +7 -1
- data/lib/github/ds/version.rb +1 -1
- data/lib/github/sql.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ca77b260c768c04ed6305fc197d57574853420a
|
|
4
|
+
data.tar.gz: 0bfa07eb461866f072a1dbdb9e4e0a1483fbcd9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80a238606f9688199c7e531e96bf745ad8f85a1ba7f30bd069f95bd916e975cba886c8b8796ce4c254fa247a575f22a86047120b88c4e3e1363e2772f362c481
|
|
7
|
+
data.tar.gz: 96bf836944b44fc3cba20d95a3a0bc60400eacef3b2a495fdd0d6a5631d383a9e512830c1533c1be8411dd049353017d16005436de630105171187c0b520a4b5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
Additions
|
|
6
|
+
|
|
7
|
+
* `GitHub::SQL.transaction` was added to allow `GitHub::SQL` queries to run transactionally https://github.com/github/github-ds/pull/24
|
|
8
|
+
|
|
3
9
|
## 0.2.3
|
|
4
10
|
|
|
5
11
|
Additions
|
|
6
12
|
|
|
7
|
-
* github-ds does not use `blank?` anymore
|
|
13
|
+
* github-ds does not use `blank?` anymore, thus not depending on `active_support/core_ext/object/blank` https://github.com/github/github-ds/commit/a22c397eaaa00bb441fb4a0ecdf3e371daa9001a
|
|
8
14
|
|
|
9
15
|
Fixes
|
|
10
16
|
|
data/lib/github/ds/version.rb
CHANGED
data/lib/github/sql.rb
CHANGED
|
@@ -67,6 +67,13 @@ module GitHub
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
# Public: Run inside a transaction
|
|
71
|
+
def self.transaction
|
|
72
|
+
ActiveRecord::Base.connection.transaction do
|
|
73
|
+
yield
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
70
77
|
# Public: Instantiate a literal SQL value.
|
|
71
78
|
#
|
|
72
79
|
# WARNING: The given value is LITERALLY inserted into your SQL without being
|