github-ds 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f0dadce425b6c2825dfc31cb30dded17ca6c3e3
4
- data.tar.gz: c97fde1c4929410829d1c0c5f91a9a9395f04cf5
3
+ metadata.gz: 5ca77b260c768c04ed6305fc197d57574853420a
4
+ data.tar.gz: 0bfa07eb461866f072a1dbdb9e4e0a1483fbcd9b
5
5
  SHA512:
6
- metadata.gz: 66eb4455a6fcc0cfe31a643e333d07681df935e1f841d69206637c1eb7c444c048e62f69ea7a7697af4895f879c4a027edfab8be0afb77f7f2155a88d17e0da6
7
- data.tar.gz: 491aef5523514c7d95ebcf69523a9ae1f88e38abbb524ed0ac5648545e22323bf5c2142c4e223671f89cbb1f3daca219890268a15c9049ec64ad6f708dacab6b
6
+ metadata.gz: 80a238606f9688199c7e531e96bf745ad8f85a1ba7f30bd069f95bd916e975cba886c8b8796ce4c254fa247a575f22a86047120b88c4e3e1363e2772f362c481
7
+ data.tar.gz: 96bf836944b44fc3cba20d95a3a0bc60400eacef3b2a495fdd0d6a5631d383a9e512830c1533c1be8411dd049353017d16005436de630105171187c0b520a4b5
@@ -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 hence not depending on `active_support/core_ext/object/blank` https://github.com/github/github-ds/commit/a22c397eaaa00bb441fb4a0ecdf3e371daa9001a
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
 
@@ -1,5 +1,5 @@
1
1
  module GitHub
2
2
  module DS
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-ds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source