gifted 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/gifted/gift.rb +1 -1
- data/lib/gifted/version.rb +1 -1
- data/lib/gifted/view_helpers.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeebd0032deb2eeb3807a1fb62d9f0f5d550e122c30ce11255239bc85cd0cb43
|
4
|
+
data.tar.gz: e5257438a37a2c99e4d614bafc538662f984f2c93f5e5f6a01430a9b51cd0629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb87190c4391255500961f2bdcde3ab95d7544164aa3e6d00a6c5f48a0c67c0a5fcfa16994c702a4e2b776422898248a0f7e6fd2221cb2c14a9249a1f7eaa192
|
7
|
+
data.tar.gz: d9ab08c52ad6c6b7b2e9074e9d3d0ed7270210643c52134fb45b532740da9c805e191233cbacdffa93d9e55323fa9f56d6a98a492535ebaae6d4dc15eb2f7281
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Gifted
|
2
2
|
|
3
|
-
Simple,
|
3
|
+
Simple, powerful, and explicit decorators for Ruby on Rails, inspired (and forked) from [ActiveDecorator](https://github.com/amatsuda/active_decorator). It has the following goals:
|
4
4
|
|
5
5
|
1. Fast and efficient.
|
6
6
|
2. Implicit decorators.
|
data/lib/gifted/gift.rb
CHANGED
@@ -21,7 +21,7 @@ module Gifted
|
|
21
21
|
|
22
22
|
if view
|
23
23
|
decorator = default_decorator.const_get("#{view.to_s.camelcase}Decorator")
|
24
|
-
decorator.send :include, Gifted::
|
24
|
+
decorator.send :include, Gifted::ViewHelpers unless decorator.is_a?(Class)
|
25
25
|
end
|
26
26
|
|
27
27
|
SimpleDelegator.new(self).extend decorator
|
data/lib/gifted/version.rb
CHANGED
data/lib/gifted/view_helpers.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gifted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
rubygems_version: 3.0.
|
172
|
+
rubygems_version: 3.0.4
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Simple, yet Powerful Rails Decorators
|