transactify 0.1 → 0.2

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: 48a5b7c36d8e42d76b055b8ce4ed926f42dd3fd3
4
- data.tar.gz: 8fb5dbef224c54f71a865a5f5e328efae98d9b15
3
+ metadata.gz: 07dae933ac728dd062a620081130dbc0cbf8ca8b
4
+ data.tar.gz: ccbd23a937da625662d17604aad10545b6c8b098
5
5
  SHA512:
6
- metadata.gz: 3b1c76b13baeecca5fbded365411a16e7b89af71cc510001167365f8cd3523e3e32b319dcc73cf2bc423c65eb0aef22dd30bdd39faedb2758bbe2620d747b61e
7
- data.tar.gz: 62b49a75aa81c8606c9ddf4c3b9084b8ce6e5bd06f6f3dc36ecde76e87ad0c7ebd5168965f942b6ea53719ee2de923ffbf901a4df6571497a40d32a48127017d
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
 
@@ -1,3 +1,3 @@
1
1
  module Transactify
2
- VERSION = "0.1"
2
+ VERSION = "0.2"
3
3
  end
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
- interceptor = const_set("#{base_klass.name.demodulize}Interceptor", Module.new)
9
- base_klass.send(:prepend, interceptor)
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.1'
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 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler