rudsl_rails 1.1.1 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8973ce540423c842baf6358b9c7d3075dffd4467
4
- data.tar.gz: 3f2cf0f278b9c8fdf823c1657ba6bca2b41866a6
3
+ metadata.gz: fe82b6f652b8b085efe22330fe8260d3f4495ed4
4
+ data.tar.gz: 434373a70b29474a9b678706fe3770eda5bbc4e2
5
5
  SHA512:
6
- metadata.gz: 7e177f660ef7d8d257daa7d41a6a4a1fcb4405c503365ba446d8fb22f04d57e0f7c7bbad60b001fc0fef5b3fec068cb6774683e72dc9a0247a87dfbf70afc03e
7
- data.tar.gz: b70e6008cc770d5f09841445e2825e0cb5be475b7995f2db8cc772478550f7f5cba134eec406693804431c008a3927e2626e50acde47eb087b868dd5afd227af
6
+ metadata.gz: 6520d3c780a1e4df5f31e854cfd496d2cc30698942ad2ac66290165ba23ab739f04af22b552daba74051a87ef6b60ef4bb05c544b3bf65b9f397fb3895368a86
7
+ data.tar.gz: 8d76536fc90b7dee618aa79f7a78f7ed4298a9fa27862ef8a0685585fa12ad1909a3729705330614484ef720a1994e8b4fe7b06b4e0facd54e33a85b5412e65a
@@ -1,3 +1,3 @@
1
1
  module RudslRails
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
data/lib/rudsl_rails.rb CHANGED
@@ -2,16 +2,9 @@ require "rudsl_rails/version"
2
2
  require "rudsl"
3
3
 
4
4
  module RudslRails
5
- class Card
5
+ class Card < ActionView::Base
6
6
  include Rudsl
7
- include ActionView::Helpers::AssetUrlHelper
8
- include ActionView::Helpers::AssetTagHelper
9
7
  include ERB::Util
10
- include ActionView::Helpers::TranslationHelper
11
- include ActionView::Helpers::TagHelper
12
- include ActionView::Context
13
- include ActionView::Helpers::DateHelper
14
- include ActionView::Helpers::TextHelper
15
8
 
16
9
  def method_missing(method_sym, *arguments, &block)
17
10
  if method_sym.to_s.end_with?("_path") || method_sym.to_s.end_with?("_url")
@@ -26,7 +19,7 @@ module RudslRails
26
19
  end
27
20
 
28
21
  def html
29
- node.try(:to_s).try(:html_safe)
22
+ render html: node.try(:to_s).try(:html_safe)
30
23
  end
31
24
 
32
25
  def render(*args)
data/rudsl_rails.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ajith Hussain"]
10
10
  spec.email = ["csy0013@googlemail.com"]
11
11
  spec.summary = %q{rudsl_rails provides a nice way of using rudsl inside Rails}
12
- spec.description = %q{rudsl_rails helps organise your Rails view written in rudsl}
12
+ spec.description = %q{rudsl_rails helps organise your Rails views written in rudsl, through cards.}
13
13
  spec.homepage = "https://www.github.com/sparkymat/rudsl_rails"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudsl_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ajith Hussain
@@ -66,7 +66,8 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.0'
69
- description: rudsl_rails helps organise your Rails view written in rudsl
69
+ description: rudsl_rails helps organise your Rails views written in rudsl, through
70
+ cards.
70
71
  email:
71
72
  - csy0013@googlemail.com
72
73
  executables: []