tsundere 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -21,7 +21,11 @@ module Tsundere
21
21
  end # method_missing
22
22
 
23
23
  def respond_to? meth
24
- @parent.respond_to? meth
24
+ if @parent.dere_for? @level, meth
25
+ @parent.respond_to? meth
26
+ else
27
+ false
28
+ end # if-dere
25
29
  end # meth
26
30
  end # imouto
27
31
  end # Tsundere
@@ -3,10 +3,15 @@ require 'spec_helper'
3
3
  class SchoolGirl
4
4
  include Tsundere
5
5
  attr_tsundere :show_up, :as => { :user => 1 }
6
+ attr_tsundere :brush_teeth, :as => { :oniichan => 2 }
6
7
 
7
8
  def show_up
8
9
  1
9
10
  end # show_up
11
+
12
+ def brush_teeth
13
+ 2
14
+ end # brush
10
15
  end # StereotypicalLoli
11
16
 
12
17
  describe SchoolGirl do
@@ -16,4 +21,14 @@ describe SchoolGirl do
16
21
  it "should respond to show_up" do
17
22
  @tsukihi.should respond_to :show_up
18
23
  end # it
24
+ it "should proxy correctly" do
25
+ @tsukihi.tsundere_for(:user).should respond_to :show_up
26
+ end # it
27
+ it "should not allow anyone to do that teeth scene" do
28
+ @tsukihi.tsundere_for(:user).should_not respond_to :brush_teeth
29
+ end # it
30
+ it "should allow oniichan to brush teeth" do
31
+ @tsukihi.tsundere_for(:oniichan).should respond_to :brush_teeth
32
+ @tsukihi.tsundere_for(:oniichan).should respond_to :show_up
33
+ end # it
19
34
  end # SchoolGirl
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tsundere"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Chen", "Trevor Umeda"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tsundere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: 1314369738905571817
168
+ hash: -1684389261992049503
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements: