taipo 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/taipo.rb +3 -1
- data/lib/taipo/check.rb +7 -3
- data/lib/taipo/version.rb +1 -1
- 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: c4f4c74c97181b0db2c4555454d0a4ae4d9af758
|
4
|
+
data.tar.gz: 97107b60d9e683fbc0a3ca53c6e27ae98c2fe62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67e4ab2d84f29b578f15668788edbef1eae23a5cc31962ebb5184667288bfa27e934c7679be11425ee7a051cc75a7d4edd778a3c6e57a65486f10491777fe062
|
7
|
+
data.tar.gz: 0ac0f1d1f47ecbee80543f27ec8b9c50107eddba5445e0dfa00a17c59aae180b9f00b69186b5497c00ad0634b3c52104e52b79cbf203ba19a6189e6ad5682de8
|
data/lib/taipo.rb
CHANGED
@@ -41,6 +41,8 @@ module Taipo
|
|
41
41
|
@@alias = true
|
42
42
|
|
43
43
|
# Set whether +Kernel#binding+ should be aliased with the keyword +types+.
|
44
|
+
# Note that this will be reset to true whenever {Taipo::Check} is extended or
|
45
|
+
# included.
|
44
46
|
#
|
45
47
|
# @param v [Boolean] Whether to alias
|
46
48
|
#
|
@@ -134,4 +136,4 @@ module Taipo
|
|
134
136
|
(memo == '') ? t.to_s : memo + '|' + t.to_s
|
135
137
|
end
|
136
138
|
end
|
137
|
-
end
|
139
|
+
end
|
data/lib/taipo/check.rb
CHANGED
@@ -123,7 +123,8 @@ module Taipo
|
|
123
123
|
#
|
124
124
|
# This is the callback called by Ruby when a module is included. In this
|
125
125
|
# case, the callback will alias the method +__types__+ as +types+ if
|
126
|
-
# {Taipo.alias?} returns true.
|
126
|
+
# {Taipo.alias?} returns true. {Taipo.alias} is reset to true at the end of
|
127
|
+
# this method.
|
127
128
|
#
|
128
129
|
# @param extender [Class|Module] the class or module extending this module
|
129
130
|
#
|
@@ -132,13 +133,15 @@ module Taipo
|
|
132
133
|
def self.extended(extender)
|
133
134
|
extender.singleton_class.send(:alias_method, :types, :__types__) if
|
134
135
|
Taipo.alias?
|
136
|
+
Taipo.alias = true
|
135
137
|
end
|
136
138
|
|
137
139
|
# Perform operations if this module is included
|
138
140
|
#
|
139
141
|
# This is the callback called by Ruby when a module is included. In this
|
140
142
|
# case, the callback will alias the method +__types__+ as +types+ if
|
141
|
-
# {Taipo.alias?} returns true.
|
143
|
+
# {Taipo.alias?} returns true. {Taipo.alias} is reset to true at the end of
|
144
|
+
# this method.
|
142
145
|
#
|
143
146
|
# @param includer [Class|Module] the class or module including this module
|
144
147
|
#
|
@@ -146,6 +149,7 @@ module Taipo
|
|
146
149
|
# @api private
|
147
150
|
def self.included(includer)
|
148
151
|
includer.send(:alias_method, :types, :__types__) if Taipo.alias?
|
152
|
+
Taipo.alias = true
|
149
153
|
end
|
150
154
|
end
|
151
|
-
end
|
155
|
+
end
|
data/lib/taipo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taipo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Camilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|