magicka 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce6145b05f6ec0b77cf8a501ec0f0f886f0bd512a492eec2495e1dad100c16da
4
- data.tar.gz: 89a0393acd79ab69f998694dbe94d302bf899903b75d60a66a3a07574845bc3e
3
+ metadata.gz: ee215dd9512aa8f283dfeedd12e3eaf13ecd7b738cdc5614e7b9fb82532b52a3
4
+ data.tar.gz: aeb3107ff20cdcc5062176127b5409fd2b574fb41d14b0ba9edb2576b8fccb04
5
5
  SHA512:
6
- metadata.gz: abf9488e091894dd7619cbc5b2d29b05d40552eacf74c93538862ad066b5807bb812913e033fa291959d04e23daa8a86878744876c83779d3d7b9b15062abd79
7
- data.tar.gz: 1d9fd2d213b949bd2506c46962433b5b674d0c96dc8f9cb115d756e1a2dc71e8595e5cae60bb935382f6bd1fcb589ca78708823c092e38981c422b10276edf70
6
+ metadata.gz: fc950ba9d4cbc6b085ae6c0730ccb5cbdcaa96f86014fcaa93a923189711664037f9454d1715dae6f885ed19a93bfc356f5cc3a613c1be1412210e62979b4c78
7
+ data.tar.gz: 07edd54ef28d7a5638b126ec140926928ea580febe9f9ce0384c179a13ee250a4432c0dc1f31798a6050c26cbadf617a41b012fb7ca35a318f40b92d662ceb10
data/README.md CHANGED
@@ -11,7 +11,7 @@ Magicka
11
11
 
12
12
  Yard Documentation
13
13
  -------------------
14
- [https://www.rubydoc.info/gems/magicka/0.5.1](https://www.rubydoc.info/gems/magicka/0.5.1)
14
+ [https://www.rubydoc.info/gems/magicka/0.5.2](https://www.rubydoc.info/gems/magicka/0.5.2)
15
15
 
16
16
  Installation
17
17
  ---------------
@@ -3,3 +3,4 @@ ignore:
3
3
  - lib/magicka.rb
4
4
  - lib/magicka/aggregator.rb
5
5
  - lib/magicka/aggregator/method_builder.rb
6
+ - lib/magicka/helper.rb
@@ -1,4 +1,4 @@
1
- threshold: 85.1
1
+ threshold: 84.2
2
2
  require_exact_threshold: false
3
3
  rules:
4
4
  ApiTag::Presence:
@@ -17,6 +17,7 @@ module Magicka
17
17
  autoload :Element, 'magicka/element'
18
18
  autoload :FormElement, 'magicka/form_element'
19
19
  autoload :Form, 'magicka/form'
20
+ autoload :Helper, 'magicka/helper'
20
21
  autoload :Input, 'magicka/input'
21
22
  autoload :Select, 'magicka/select'
22
23
  autoload :Text, 'magicka/text'
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Magicka
4
+ # Helper module to be used on rails
5
+ module Helper
6
+ def magicka_form(model)
7
+ yield Form.new(self, model)
8
+ end
9
+
10
+ def magicka_display(model)
11
+ yield Display.new(self, model)
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Magicka
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magicka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DarthJee
@@ -406,6 +406,7 @@ files:
406
406
  - lib/magicka/element/method_builder.rb
407
407
  - lib/magicka/form.rb
408
408
  - lib/magicka/form_element.rb
409
+ - lib/magicka/helper.rb
409
410
  - lib/magicka/input.rb
410
411
  - lib/magicka/select.rb
411
412
  - lib/magicka/text.rb