transactify 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/transactify/version.rb +1 -1
- data/lib/transactify.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07dae933ac728dd062a620081130dbc0cbf8ca8b
|
4
|
+
data.tar.gz: ccbd23a937da625662d17604aad10545b6c8b098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79821893d1219a9a752f49624ccc90428936bbbde3add1b6e5755b4bdae2603e3b0dad31ffe9ec0780a2c10099724ca999b899a6d89fdb7c45a88c416d85d0f5
|
7
|
+
data.tar.gz: 13146a50a8bff12b4a59b5eb1dfc9c8570b7edbcd3fe48777a8e8735a3006254810749bccf58183b0d06613d44ebd504bf8f170a606270f7c60f795d0375044b
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Code Climate](https://codeclimate.com/github/igorkasyanchuk/transactify/badges/gpa.svg)](https://codeclimate.com/github/igorkasyanchuk/transactify)
|
4
4
|
[![Build Status](https://travis-ci.org/igorkasyanchuk/transactify.svg?branch=master)](https://travis-ci.org/igorkasyanchuk/transactify)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/transactify.svg)](https://badge.fury.io/rb/transactify)
|
5
6
|
|
6
7
|
[![Sample](https://raw.githubusercontent.com/igorkasyanchuk/transactify/master/transactify.png)](https://github.com/igorkasyanchuk/transactify)
|
7
8
|
|
data/lib/transactify/version.rb
CHANGED
data/lib/transactify.rb
CHANGED
@@ -5,8 +5,10 @@ module Transactify
|
|
5
5
|
|
6
6
|
def self.included(base_klass)
|
7
7
|
base_klass.extend(ClassMethods)
|
8
|
-
|
9
|
-
|
8
|
+
unless Object.const_defined?("#{base_klass.name.demodulize}Interceptor")
|
9
|
+
interceptor = const_set("#{base_klass.name.demodulize}Interceptor", Module.new)
|
10
|
+
base_klass.send(:prepend, interceptor)
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
module ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transactify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Kasyanchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|