roda-component 0.1.17 → 0.1.18

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: c6ee949a432159269d22a12ba98d86e352f46d5a
4
- data.tar.gz: 5a07e83ab446cd2e71350b06240b3ef04623e17c
3
+ metadata.gz: 5adcbdffd9a69ae90810e945c39692c7b1a21c7f
4
+ data.tar.gz: 6e3c8b53a75ba2ef5cb47e74a3beb4a7054876e3
5
5
  SHA512:
6
- metadata.gz: fd87d95cb234b6161cb6e3a881bbcf89263c8e66f1e9b2aac1dc9fae8a66708675db7833abf4c82412fa0ee06087f45fe1d7ddf16fb7f55a38b978adedddeacb
7
- data.tar.gz: 6c784e64507255430a245ad25c1e289fdfca84f7d8b36eefbec193e0bbb446504e62fdf9af4aee15256e9fa19979a7e2b2ac23779bce22208044503f3d28429f
6
+ metadata.gz: c421253385cc606445f7062c74e7bd7234bb40131a838cd27ca583eba85868fd52a8f071f45a16c828a5586caeefea9c8b2fc97477a4f9e3f3e38418e08558a1
7
+ data.tar.gz: d7984354ed23c325c92f32e0ddd29dfea396813f33ed205acfe691fab95e8bb7fd6e5ad7ba747eef7f8df12d04be26b41906bb87d948f9ac573c96510b64c205
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gemspec
5
5
 
6
6
  gem 'roda-bin'
7
7
  gem "nokogiri", "~> 1.6.5", require: false
8
- gem "opal-browser", github: 'opal/opal-browser'
9
8
  gem 'awesome_print'
10
9
  gem 'tilt'
11
10
  gem 'sqlite3'
@@ -33,8 +33,8 @@ class Roda
33
33
  node
34
34
  end
35
35
 
36
- def data key = false, value = false
37
- if server?
36
+ unless RUBY_ENGINE == 'opal'
37
+ def data key = false, value = false
38
38
  d = Hash[node.xpath("@*[starts-with(name(), 'data-')]").map{|a| [a.name, a.value]}]
39
39
 
40
40
  if !key
@@ -44,8 +44,6 @@ class Roda
44
44
  else
45
45
  node["data-#{key}"] = value
46
46
  end
47
- else
48
- super
49
47
  end
50
48
  end
51
49
 
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.17"
3
+ VERSION = "0.1.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj