r_kit 0.1.1 → 0.1.2
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 +8 -8
- data/lib/r_kit/decorable.rb +26 -0
- data/lib/r_kit/version.rb +1 -1
- data/lib/r_kit.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDQ0MjZkMTE0ZjBiNzc0YTk3NjQxMTM0NTQxMDlhMWQ0YmRmMzBmNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDliODU0MGE3MTNkYWQzOTlkYjY4NjE1ZGVlNGUzYjU0NjNhMGZmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTYyMTU5ZGJiYWI3YTdlZDM0NzFkOTY1NmIwMGUxYzBhNTc0NDVjNmRjZDA1
|
10
|
+
Y2E2ZDcxZGJlNTliNThlM2Y3OGYxMjYzYzFiMTBmOGUwMzhlM2E5YjRmM2Y3
|
11
|
+
YjYzODBjYWRkMTRmNGQyNTk2Y2IwNWU1NzM5OGY3NTVmNmYwYzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTZjMzc0NmM2MjU5MGQ4M2NiMDA2NmM5MGIyZmVmNjYzODMyYzdiNmNjYTA0
|
14
|
+
MDc4OTI0YWJkYjgyYzhkMmRjMTRkZmNjZDYxYjc2ZTdiNmEyODIzN2ZmNmE3
|
15
|
+
M2VlY2IzYzdlZWI3Y2ViZTk0ZmUxNzIwYWU0ZTc1MzczNjNmMWI=
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Blog
|
2
|
+
module Decorable
|
3
|
+
def decorate(view_context)
|
4
|
+
@view_context = view_context
|
5
|
+
|
6
|
+
class << self
|
7
|
+
include DecoratorMethods
|
8
|
+
end
|
9
|
+
|
10
|
+
self
|
11
|
+
end
|
12
|
+
|
13
|
+
def h
|
14
|
+
@view_context
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module DecorableHelper
|
19
|
+
def decorate obj, &block
|
20
|
+
capture do
|
21
|
+
block.call obj.decorate(self)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/lib/r_kit/version.rb
CHANGED
data/lib/r_kit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Petrachi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Library for rails projects
|
14
14
|
email:
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- lib/assets/stylesheets/r_kit/variables/colors.scss
|
49
49
|
- lib/assets/stylesheets/r_kit/variables/typography.scss
|
50
50
|
- lib/r_kit.rb
|
51
|
+
- lib/r_kit/decorable.rb
|
51
52
|
- lib/r_kit/engine.rb
|
52
53
|
- lib/r_kit/version.rb
|
53
54
|
- r_kit.gemspec
|