abraham 1.1.1 → 1.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
  SHA1:
3
- metadata.gz: 5d324d38e018a20624bfa1a8b296e321786eec9f
4
- data.tar.gz: 92af5ba1d78e1d5d74bb283531515fb93e779b8e
3
+ metadata.gz: f5a9c1a8732b54dd31605f42f5e32cf0f923ee85
4
+ data.tar.gz: 2d7759e71f4fd72008359d75ec04ae4fa2fa43c6
5
5
  SHA512:
6
- metadata.gz: 938e181315ae4a5eb02d1867bd056c73b53ef9f594f2ea09efe71ed19084b9dc0b9066071ecc921dedea1d0590effddf16c37591d0fb1a77920d2ce89fb97106
7
- data.tar.gz: 1141a3b21b31295891a90d262881af6a0e9d754a175fe445b1d60de6629957e6d32ca2e8175a72f5ea28ed63a7179a456e48e102387bfd7da40e7af22ee47216
6
+ metadata.gz: 26d2d7bdaed394764e35cfd8ab9f4a94197fa51be62d87421d7087c34a37ebc37e04bfbc0460ffc970ec8e256ef8c1aa0b29ca9f4524ac4149dcbc2957641002
7
+ data.tar.gz: efe53f1380173af7427a80416b4f38b90980bd9353dfef18589a813c3cfb4216c3607f759710be9270c531f4fbb08a921d63691ba46521e9ddb153791c53f3ae
@@ -32,6 +32,10 @@
32
32
  text: "<%= step['text'] %>",
33
33
  <% if step.key?('attachTo') %>
34
34
  attachTo: { element: "<%= step['attachTo']['element'] %>", on: "<%= step['attachTo']['placement'] %>" },
35
+ showOn: function() {
36
+ // Only display this step if its selector is present
37
+ return document.querySelector("<%= step['attachTo']['element'] %>") ? true : false
38
+ },
35
39
  <% end %>
36
40
  buttons: [
37
41
  <% if index == 0 %>
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Abraham
3
- VERSION = '1.1.1'
3
+ VERSION = '1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abraham
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Abbett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails