structure 2.0.0 → 2.1.0

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
  SHA256:
3
- metadata.gz: 064e6d8430e533240d9469a4187b385a037ee8e2b3a27931fc9325a74b268e4a
4
- data.tar.gz: 2c30bba3a9e86f144f35ec400797e51e58df496f0794d36189a6a0087b1ceb8f
3
+ metadata.gz: d28935d786012d93c000fa620c3d2b0f803d7dac763651b08f481a75c7c47020
4
+ data.tar.gz: a30fced89ecf18c01a6ce6ec992d819ae6ee29af1f6061811580fdd0d4351cd3
5
5
  SHA512:
6
- metadata.gz: b1f320c939dc31be46b1b4e773cff83dfcaf2d8cf8698d1a4d73998f14d15ad8631805e659bf981c33221096186697a7febe971596f08e2a3edafcd7ea9397b5
7
- data.tar.gz: eb93e79d606b29dcd09bba61a86ca6cde493cc9b79336d78cf4fdbb1491633663b3c9723f0dcc1913685354e66b6030acd742ee635e33b9077adf20bcd9c8bdd
6
+ metadata.gz: 95c9b8681c349bd345bd2122bec804de274ea43fdbd1184159ef2b7a37a16888bc887d3cca5307e9b1e3a69d885c9cfd313e22f8581689f97dc4c336dd34cd21
7
+ data.tar.gz: 55606e2256adebc329f1778fc20ecd22b04943feafffde833559b35346fe3b0061c2d8ebcc977e743730c8728c194f0b3c2abe343ecbeed68725a67346feb3b4
data/lib/structure.rb CHANGED
@@ -6,7 +6,13 @@ module Structure
6
6
  private
7
7
 
8
8
  def included(base)
9
- base.extend ClassMethods
9
+ if base.is_a?(Class)
10
+ base.extend ClassMethods
11
+ else
12
+ def base.included(base)
13
+ ::Structure.send(:included, base)
14
+ end
15
+ end
10
16
  end
11
17
  end
12
18
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Structure
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-28 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest