asbru 0.0.6 → 0.0.7

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: dbe8a87c74d02a2012130ec1e2e93f3a5d5c52fe32aedfd9d85578e272e866b8
4
- data.tar.gz: 831326c07be46d075d2f71ae17e4b86511278bdc3382368a8d0efb4602d7737d
3
+ metadata.gz: aeb659c7586894cee347b85ddb88c84437a6f0e355051af176e07f33191a5171
4
+ data.tar.gz: 187577433b2cf87d1e0c54c295e1c815db1d9729a9536671d0b76f47776a726c
5
5
  SHA512:
6
- metadata.gz: 19fc868817266c527262c39a589bc5e5a0947de20063bfc613a6c40fa8b71a377b11d9cc7e1963ca12c86ab69ce833f462805a19dbe38c7cc56ebb1791faf360
7
- data.tar.gz: 106625b4ace1db59f41f2060e592793ed05ba07ac18fa20d986171fe8070aff1b88c764678905ba48c3c941b880c2e63b8fe9e35fad382da58c82d0cd295f1ee
6
+ metadata.gz: fb0804165ccad3401cb34dce86650703e81eea1da6c32c944029c8b55a915f11233282d285b3ed81dbc713ee19cc4a4e8bc412a661210210843de0661e528f5a
7
+ data.tar.gz: 8c6b8ff326ee00768f773b7b3189026d531d75b00e359a6a96be08f2b235a4d0b460ff55696f501c9c1b0fcedefa754f8d633d4d0d98ba50919eec4482b3aa6f
data/lib/asbru/links.rb CHANGED
@@ -7,9 +7,9 @@ module Asbru
7
7
  url,
8
8
  method: nil,
9
9
  link: true,
10
+ remote: false,
10
11
  confirm: nil,
11
12
  **options)
12
-
13
13
  options[:text] = text
14
14
  options[:action] = url
15
15
  options[:link] = link
@@ -17,7 +17,9 @@ module Asbru
17
17
  options[:customData] = {}
18
18
  options[:customData][:'data-method'] = method if method.present?
19
19
  options[:customData][:'data-confirm'] = confirm if confirm.present?
20
- options[:customData].merge(options[:custom_data]) if options[:custom_data]
20
+ options[:customData][:'data-remote'] = remote if remote.present?
21
+ options[:customData].merge!(options[:custom_data]) if options[:custom_data]
22
+
21
23
  Asbru::Components::Savage.send "#{Asbru.config.component_prefix}_button",
22
24
  **options
23
25
  end
data/lib/asbru/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Asbru
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asbru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stev-0
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-19 00:00:00.000000000 Z
11
+ date: 2021-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Creating component based webpages with short hand syntax.
56
70
  email:
57
71
  - skemp@adflow.io
@@ -94,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
108
  - !ruby/object:Gem::Version
95
109
  version: '0'
96
110
  requirements: []
97
- rubygems_version: 3.1.2
111
+ rubygems_version: 3.2.15
98
112
  signing_key:
99
113
  specification_version: 4
100
114
  summary: Asbru is a tool for creating component based webpages.