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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47a30b8ff6c187495ba01a26d23e30af086686d9
4
- data.tar.gz: b8b8473c03c6f3bcebe33ea60e9c41e59359e45d
3
+ metadata.gz: c4f4c74c97181b0db2c4555454d0a4ae4d9af758
4
+ data.tar.gz: 97107b60d9e683fbc0a3ca53c6e27ae98c2fe62a
5
5
  SHA512:
6
- metadata.gz: 6523770dc0da188909c896d2f9f005af8aed1aa7f11e75a48c8a3eee8d80838e7e88a333ea0cff45e2a18fad3a5f0e2b9d15463222a47ffff74e35cb2dbb6fde
7
- data.tar.gz: 1abfe9da9fcf22d927afe9b8b7c14e7a3fd0b4ecca5c004a071d39c57d501640509496696a19d1d77c84328351d646ef17bff10660e768bed611fb2ca61a155a
6
+ metadata.gz: 67e4ab2d84f29b578f15668788edbef1eae23a5cc31962ebb5184667288bfa27e934c7679be11425ee7a051cc75a7d4edd778a3c6e57a65486f10491777fe062
7
+ data.tar.gz: 0ac0f1d1f47ecbee80543f27ec8b9c50107eddba5445e0dfa00a17c59aae180b9f00b69186b5497c00ad0634b3c52104e52b79cbf203ba19a6189e6ad5682de8
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Taipo
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler