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 +1 -1
- data/lib/tsundere/imouto.rb +5 -1
- data/spec/imouto_spec.rb +15 -0
- data/tsundere.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/lib/tsundere/imouto.rb
CHANGED
data/spec/imouto_spec.rb
CHANGED
@@ -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
|
data/tsundere.gemspec
CHANGED
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
|
+
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:
|
168
|
+
hash: -1684389261992049503
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
170
|
none: false
|
171
171
|
requirements:
|