tattletail 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Tattletail
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/tattletail.rb CHANGED
@@ -118,6 +118,8 @@ module Tattletail
118
118
  end
119
119
  end
120
120
  end
121
+ alias tell_on tattle_on
122
+ alias tell_me_about tattle_on
121
123
 
122
124
  def tattle_on_class_method(*method_names)
123
125
  method_names.each do |method_name|
@@ -129,6 +131,10 @@ module Tattletail
129
131
  end
130
132
  end
131
133
  alias tattle_on_class_methods tattle_on_class_method
134
+ alias tell_on_class_methods tattle_on_class_method
135
+ alias tell_on_class_method tattle_on_class_method
136
+ alias tell_me_about_class_methods tattle_on_class_method
137
+ alias tell_me_about_class_method tattle_on_class_method
132
138
 
133
139
  def tattle_on_instance_method(*method_names)
134
140
  method_names.each do |method_name|
@@ -138,6 +144,10 @@ module Tattletail
138
144
  end
139
145
  end
140
146
  alias tattle_on_instance_methods tattle_on_instance_method
147
+ alias tell_on_instance_methods tattle_on_instance_method
148
+ alias tell_on_instance_method tattle_on_instance_method
149
+ alias tell_me_about_instance_methods tattle_on_instance_method
150
+ alias tell_me_about_instance_method tattle_on_instance_method
141
151
 
142
152
  private
143
153
 
@@ -226,17 +236,17 @@ class Fib
226
236
  return 1 if x <= 2
227
237
  find(x - 1) + find(x - 2)
228
238
  end
229
- tattle_on :find
239
+ tattle_on_class_method :find
230
240
 
231
241
  def find x
232
242
  x * 2
233
243
  end
234
- tattle_on_instance_method :find
244
+ tell_on_instance_method :find
235
245
 
236
246
  def fib_block &blk
237
247
  fib yield
238
248
  end
239
- tattle_on :fib_block
249
+ tell_on :fib_block
240
250
  end
241
251
 
242
252
  module Merge
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tattletail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &2157100980 !ruby/object:Gem::Requirement
17
+ requirement: &2153457780 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *2157100980
25
+ version_requirements: *2153457780
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: fuubar
28
- requirement: &2157100560 !ruby/object:Gem::Requirement
28
+ requirement: &2153457360 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2157100560
36
+ version_requirements: *2153457360
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: colorful
39
- requirement: &2157100140 !ruby/object:Gem::Requirement
39
+ requirement: &2153456940 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2157100140
47
+ version_requirements: *2153456940
48
48
  description: Provides a method to watch specific methods and print them when they
49
49
  are called
50
50
  email: