chanko 2.0.4 → 2.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/chanko/function.rb +3 -1
- data/lib/chanko/unit_proxy.rb +4 -0
- data/lib/chanko/version.rb +1 -1
- data/spec/chanko/invoker_spec.rb +6 -0
- data/spec/fixtures/units/example_unit/example_unit.rb +4 -0
- 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: 85f38de7313d2d2ee7f638e03dc81c249a1bc3e6
|
4
|
+
data.tar.gz: 0fe314d508fdb5cf1df669f26eb02e2c61e6a7bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4294a26631dab10ffd21f2467c3ac7762dfa53009beebee2575f5b051862ee00da396c80af45a368a2489add336181a77d531bb3e5f28f3bba1c5df66752af46
|
7
|
+
data.tar.gz: 0801e6006c30e6e67fe5426487f6baa388d538b6028dfd20c987da74c87a76e9e4532ca0cbad64449cbcb21d0e9e679ebdf6ae1cf940ab739f4ce09d25a00072
|
data/CHANGELOG.md
CHANGED
data/lib/chanko/function.rb
CHANGED
data/lib/chanko/unit_proxy.rb
CHANGED
@@ -26,5 +26,9 @@ module Chanko
|
|
26
26
|
def method_missing(method_name, *args, &block)
|
27
27
|
@context.send("#{prefix}#{method_name}", *args, &block)
|
28
28
|
end
|
29
|
+
|
30
|
+
def respond_to_missing?(method_name, include_private)
|
31
|
+
@context.respond_to?("#{prefix}#{method_name}")
|
32
|
+
end
|
29
33
|
end
|
30
34
|
end
|
data/lib/chanko/version.rb
CHANGED
data/spec/chanko/invoker_spec.rb
CHANGED
@@ -41,6 +41,12 @@ module Chanko
|
|
41
41
|
view.invoke(:example_unit, :helper, :type => :plain).should == "helper"
|
42
42
|
end
|
43
43
|
|
44
|
+
context 'when unit is referred from unit function' do
|
45
|
+
it 'responds to method which the context responds to' do
|
46
|
+
expect(view.invoke(:example_unit, :respond_to_helper?, type: :plain)).to eq(true)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
44
50
|
context "when invoked in view" do
|
45
51
|
it "invokes with partial view" do
|
46
52
|
view.invoke(:example_unit, :render, :type => :plain).should == "test\n"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chanko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|