opal-jquery 0.2.0 → 0.3.0.beta1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 25363d75e66b1ceff1ee1cf42b8043e042bda7d1
4
+ data.tar.gz: 4ebc01fd931f21b6b564ea6ad5276019b6eef6ee
5
+ SHA512:
6
+ metadata.gz: fd980b4568e6e68c2aa5998fae67bc3b7a463e1c87c8984f95e3d66c343cb040a95c030aa032c5f2f0c3760ca38e560f0a00aef381c5c901a5641d253df4970d
7
+ data.tar.gz: a5f79ef93073c297f2458d1d0f5d804616f55add80a000e16a04915198130049cf6d530f6e2212ad69e1f2b36c40ca123f00e012ac3897875d99dd74d1ba7826
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  build
5
5
  gh-pages
6
6
  /.bundle
7
+ .yardoc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## edge
2
2
 
3
+ * Add `HTTP.setup` and `HTTP.setup=` to access `$.ajaxSetup`
4
+
5
+ * Add PATCH and HEAD support to `HTTP`
6
+
7
+ * Let `Element` accept previously defined `JQUERY_CLASS` and `JQUERY_SELECTOR`
8
+ for environments such as node-webkit where `$` can't be found in the global object.
9
+
10
+ * Add Promise support to `HTTP` get/post/put/delete methods. Also remove
11
+ `HTTP#callback` and `#errback` methods.
12
+
3
13
  ## 0.2.0 2014-03-12
4
14
 
5
15
  * Add `Document.body` and `Document.head` shortcut to element instances.
data/Gemfile CHANGED
@@ -1,7 +1,5 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
- gem 'opal'
5
- gem 'opal-rspec', '0.3.0.beta2'
6
-
7
- gem 'rake'
4
+ gem 'opal', github: 'opal/opal'
5
+ # gem 'opal', path: '../opal'
data/README.md CHANGED
@@ -1,12 +1,11 @@
1
1
  # opal-jquery
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/opal/opal-jquery.png?branch=master)](http://travis-ci.org/opal/opal-jquery)
3
+ [![Build Status](http://img.shields.io/travis/opal/opal-jquery/master.svg)](http://travis-ci.org/opal/opal-jquery)
4
4
 
5
5
  opal-jquery provides DOM access to opal by wrapping jQuery (or zepto)
6
6
  and providing a nice ruby syntax for dealing with jQuery instances.
7
- opal-jquery is [hosted on github](http://github.com/opal/opal-jquery).
8
7
 
9
- See the [website for documentation](http://opalrb.org/jquery).
8
+ See the Opal website for [documentation](http://opalrb.org/docs/jquery).
10
9
 
11
10
  ## Documentation
12
11
 
@@ -231,13 +230,14 @@ request.errback { |response|
231
230
  puts "failed with status #{response.status_code}"
232
231
  }
233
232
  ```
234
- ### HTTP
235
233
 
236
- The `HTTP` class wraps jQuery's ajax request into a ruby class.
234
+ #### Other options
235
+
236
+ `HTTP` accepts the usual `$.ajax` options:
237
237
 
238
238
  ```ruby
239
- HTTP.get("/users/1.json") do |response|
240
- puts "Got response!"
239
+ HTTP.get '/search', data: {q: 'foo'}, async: false do |response|
240
+ p response.body
241
241
  end
242
242
  ```
243
243
 
data/Rakefile CHANGED
@@ -50,3 +50,28 @@ rescue Errno::ENOENT
50
50
  $stderr.puts '"gzip" command not found, it is required to produce the .gz version'
51
51
  nil
52
52
  end
53
+
54
+
55
+ namespace :doc do
56
+ doc_repo = Pathname(ENV['DOC_REPO'] || 'gh-pages')
57
+ doc_base = doc_repo.join('doc')
58
+ current_git_release = -> { `git rev-parse --abbrev-ref HEAD`.chomp }
59
+ # template_option = "--template opal --template-path #{doc_repo.join('yard-templates')}"
60
+ template_option = ""
61
+
62
+ directory doc_repo.to_s do
63
+ remote = ENV['DOC_REPO_REMOTE'] || '.'
64
+ sh 'git', 'clone', '-b', 'gh-pages', '--', remote, doc_repo.to_s
65
+ end
66
+
67
+ task :default => doc_repo.to_s do
68
+ git = current_git_release.call
69
+ name = 'api'
70
+ glob = 'opal/**/*.rb'
71
+ command = "yard doc #{glob} #{template_option} "\
72
+ "--readme opal/README.md -o gh-pages/doc/#{git}/#{name}"
73
+ puts command; system command
74
+ end
75
+ end
76
+
77
+ task :doc => 'doc:default'
data/config.ru CHANGED
@@ -1,6 +1,9 @@
1
1
  require 'bundler'
2
2
  Bundler.require
3
3
 
4
+ require 'opal-rspec'
5
+ Opal.append_path File.expand_path('../spec', __FILE__)
6
+
4
7
  run Opal::Server.new { |s|
5
8
  s.main = 'opal/rspec/sprockets_runner'
6
9
  s.append_path 'spec'
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module JQuery
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0.beta1'
4
4
  end
5
5
  end
data/opal-jquery.gemspec CHANGED
@@ -15,6 +15,8 @@ Gem::Specification.new do |s|
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
  s.require_paths = ['lib']
17
17
 
18
- s.add_runtime_dependency 'opal', ['>= 0.5.0', '< 1.0.0']
19
- s.add_development_dependency 'opal-rspec', '~> 0.3.0'
18
+ s.add_runtime_dependency 'opal', '~> 0.7.0.beta1'
19
+ s.add_development_dependency 'opal-rspec', '~> 0.4.0.beta2'
20
+ s.add_development_dependency 'yard'
21
+ s.add_development_dependency 'rake'
20
22
  end
@@ -0,0 +1,13 @@
1
+ require 'native'
2
+
3
+ unless defined?(JQUERY_CLASS)
4
+ case
5
+ when $$[:jQuery]
6
+ JQUERY_CLASS = JQUERY_SELECTOR = $$[:jQuery]
7
+ when $$[:Zepto] then
8
+ JQUERY_SELECTOR = $$[:Zepto]
9
+ JQUERY_CLASS = $$[:Zepto][:zepto][:Z]
10
+ else
11
+ raise NameError, 'Can\'t find jQuery or Zepto. jQuery must be included before opal-jquery'
12
+ end
13
+ end
@@ -1,8 +1,11 @@
1
+ require 'opal-jquery/constants'
1
2
  require 'opal-jquery/element'
2
3
 
3
4
  Document = Element.find(`document`)
4
5
 
5
6
  class << Document
7
+ `var $ = #{JQUERY_SELECTOR.to_n}` # cache $ for SPEED
8
+
6
9
  def ready?(&block)
7
10
  `$(#{ block })` if block
8
11
  end
@@ -1,20 +1,9 @@
1
1
  require 'native'
2
+ require 'opal-jquery/constants'
3
+
4
+ class Element < `#{JQUERY_CLASS.to_n}`
5
+ `var $ = #{JQUERY_SELECTOR.to_n}` # cache $ for SPEED
2
6
 
3
- %x{
4
- var root = $opal.global, dom_class;
5
-
6
- if (root.jQuery) {
7
- dom_class = jQuery
8
- }
9
- else if (root.Zepto) {
10
- dom_class = Zepto.zepto.Z;
11
- }
12
- else {
13
- throw new Error("jQuery must be included before opal-jquery");
14
- }
15
- }
16
-
17
- class Element < `dom_class`
18
7
  include Enumerable
19
8
 
20
9
  def self.find(selector)
@@ -46,10 +35,11 @@ class Element < `dom_class`
46
35
  end
47
36
 
48
37
  def self.expose(*methods)
38
+ method = nil
49
39
  %x{
50
40
  for (var i = 0, length = methods.length, method; i < length; i++) {
51
41
  method = methods[i];
52
- self._proto['$' + method] = self._proto[method];
42
+ #{alias_native method, method}
53
43
  }
54
44
 
55
45
  return nil;
@@ -63,7 +53,7 @@ class Element < `dom_class`
63
53
  expose :after, :before, :parent, :parents, :prepend, :prev, :remove
64
54
  expose :hide, :show, :toggle, :children, :blur, :closest, :detach
65
55
  expose :focus, :find, :next, :siblings, :text, :trigger, :append
66
- expose :height, :width, :serialize, :is, :filter, :last, :first
56
+ expose :serialize, :is, :filter, :last, :first
67
57
  expose :wrap, :stop, :clone, :empty
68
58
  expose :get, :attr, :prop
69
59
 
@@ -83,6 +73,8 @@ class Element < `dom_class`
83
73
  alias_native :text=, :text
84
74
  alias_native :toggle_class, :toggleClass
85
75
  alias_native :value=, :val
76
+ alias_native :scroll_top=, :scrollTop
77
+ alias_native :scroll_top, :scrollTop
86
78
  alias_native :scroll_left=, :scrollLeft
87
79
  alias_native :scroll_left, :scrollLeft
88
80
  alias_native :remove_attribute, :removeAttr
@@ -90,6 +82,8 @@ class Element < `dom_class`
90
82
  alias_native :slide_up, :slideUp
91
83
  alias_native :slide_toggle, :slideToggle
92
84
  alias_native :fade_toggle, :fadeToggle
85
+ alias_native :height=, :height
86
+ alias_native :width=, :width
93
87
 
94
88
  def to_n
95
89
  self
@@ -255,6 +249,9 @@ class Element < `dom_class`
255
249
 
256
250
  def inspect
257
251
  %x{
252
+ if (self[0] === document) return '#<Element [document]>'
253
+ else if (self[0] === window ) return '#<Element [window]>'
254
+
258
255
  var val, el, str, result = [];
259
256
 
260
257
  for (var i = 0, length = self.length; i < length; i++) {
@@ -327,4 +324,16 @@ class Element < `dom_class`
327
324
  def value
328
325
  `self.val() || ""`
329
326
  end
327
+
328
+ def height
329
+ `self.height() || nil`
330
+ end
331
+
332
+ def width
333
+ `self.width() || nil`
334
+ end
335
+
336
+ def position
337
+ Native(`self.position()`)
338
+ end
330
339
  end
@@ -1,5 +1,9 @@
1
+ require 'opal-jquery/constants'
2
+
1
3
  # Wraps native jQuery event objects.
2
4
  class Event
5
+ `var $ = #{JQUERY_SELECTOR.to_n}` # cache $ for SPEED
6
+
3
7
  def initialize(native)
4
8
  @native = native
5
9
  end
@@ -35,7 +39,7 @@ class Event
35
39
  end
36
40
 
37
41
  def stopped?
38
- `#@native.propagationStopped()`
42
+ `#@native.isPropagationStopped()`
39
43
  end
40
44
 
41
45
  def stop
@@ -1,23 +1,60 @@
1
1
  require 'json'
2
2
  require 'native'
3
+ require 'promise'
4
+ require 'opal-jquery/constants'
3
5
 
4
6
  class HTTP
7
+ `var $ = #{JQUERY_SELECTOR.to_n}` # cache $ for SPEED
8
+
9
+ def self.setup
10
+ Hash.new(`$.ajaxSetup()`)
11
+ end
12
+
13
+ def self.setup= settings
14
+ `$.ajaxSetup(#{settings.to_n})`
15
+ end
16
+
17
+
5
18
  attr_reader :body, :error_message, :method, :status_code, :url, :xhr
6
19
 
7
20
  def self.get(url, opts={}, &block)
8
- self.new(url, :GET, opts, block).send!
21
+ build_request url, :GET, opts, block
9
22
  end
10
23
 
11
24
  def self.post(url, opts={}, &block)
12
- self.new(url, :POST, opts, block).send!
25
+ build_request url, :POST, opts, block
13
26
  end
14
27
 
15
28
  def self.put(url, opts={}, &block)
16
- self.new(url, :PUT, opts, block).send!
29
+ build_request url, :PUT, opts, block
17
30
  end
18
31
 
19
32
  def self.delete(url, opts={}, &block)
20
- self.new(url, :DELETE, opts, block).send!
33
+ build_request url, :DELETE, opts, block
34
+ end
35
+
36
+ def self.patch(url, opts={}, &block)
37
+ build_request url, :PATCH, opts, block
38
+ end
39
+
40
+ def self.head(url, opts={}, &block)
41
+ build_request url, :HEAD, opts, block
42
+ end
43
+
44
+ def self.build_request(url, method, options, block)
45
+ unless block
46
+ promise = ::Promise.new
47
+ block = proc do |response|
48
+ if response.ok?
49
+ promise.resolve response
50
+ else
51
+ promise.reject response
52
+ end
53
+ end
54
+ end
55
+
56
+ http = new(url, method, options, block).send!
57
+ promise || http
21
58
  end
22
59
 
23
60
  def initialize(url, method, options, handler=nil)
@@ -69,16 +106,6 @@ class HTTP
69
106
  @settings = settings
70
107
  end
71
108
 
72
- def callback(&block)
73
- @callback = block
74
- self
75
- end
76
-
77
- def errback(&block)
78
- @errback = block
79
- self
80
- end
81
-
82
109
  def fail
83
110
  @ok = false
84
111
  @errback.call self if @errback
@@ -23,11 +23,11 @@ describe "Element animation methods" do
23
23
  foo = Element.find "#animate-foo"
24
24
  foo.animate :width => "200px", :speed => 100
25
25
 
26
- set_timeout 105 do
27
- run_async {
26
+ run_async {
27
+ set_timeout 150 do
28
28
  (foo.css("width").to_f > 199).should eq(true)
29
- }
30
- end
29
+ end
30
+ }
31
31
  end
32
32
 
33
33
  async "should accept a block as a callback" do
@@ -36,11 +36,11 @@ describe "Element animation methods" do
36
36
  foo.add_class "finished"
37
37
  end
38
38
 
39
- set_timeout 405 do
40
- run_async {
39
+ run_async {
40
+ set_timeout 405 do
41
41
  foo.class_name.should eq("finished")
42
- }
43
- end
42
+ end
43
+ }
44
44
  end
45
45
  end
46
46
  end
@@ -0,0 +1,53 @@
1
+ require "spec_helper"
2
+
3
+ describe "Element height and width" do
4
+ html <<-HTML
5
+ <div id="dimensions" style='width: 100px; height: 200px'></div>
6
+ HTML
7
+
8
+ describe '#height' do
9
+ it "should grab height of existing element" do
10
+ elm = Element.id('dimensions')
11
+
12
+ expect(elm.height).to eq(200)
13
+ end
14
+
15
+ it "should return nil if item does not exist" do
16
+ elm = Element.find('#not-an-elm')
17
+
18
+ expect(elm.height).to eq(nil)
19
+ end
20
+ end
21
+
22
+ describe '#height=' do
23
+ it "should allow us to set height" do
24
+ elm = Element.id('dimensions')
25
+ elm.height = 121
26
+
27
+ expect(elm.height).to eq(121)
28
+ end
29
+ end
30
+
31
+ describe '#width' do
32
+ it "should grab width of existing element" do
33
+ elm = Element.id('dimensions')
34
+
35
+ expect(elm.width).to eq(100)
36
+ end
37
+
38
+ it "should return nil if item does not exist" do
39
+ elm = Element.find('#not-an-elm')
40
+
41
+ expect(elm.width).to eq(nil)
42
+ end
43
+ end
44
+
45
+ describe '#width=' do
46
+ it "should allow us to set width" do
47
+ elm = Element.id('dimensions')
48
+ elm.width = 121
49
+
50
+ expect(elm.width).to eq(121)
51
+ end
52
+ end
53
+ end
@@ -7,12 +7,24 @@ describe "Element#inspect" do
7
7
  <p id="lol" class="bar"></div>
8
8
  HTML
9
9
 
10
- it "should return a string representation of the elements" do
10
+ it "returns a string representation of the elements" do
11
11
  Element.find('#foo').inspect.should == '#<Element [<div id="foo">]>'
12
12
  Element.find('.bar').inspect.should == '#<Element [<div class="bar">, <p id="lol" class="bar">]>'
13
13
  end
14
14
 
15
- it "should return '[]' when called on empty element set" do
15
+ it "returns '[]' when called on empty element set" do
16
16
  Element.find('.inspect-spec-none').inspect.should == '#<Element []>'
17
17
  end
18
+
19
+ it "returns '[]' when called on empty element set" do
20
+ Element.find('.inspect-spec-none').inspect.should == '#<Element []>'
21
+ end
22
+
23
+ it "returns '[document]' when called on $(document)" do
24
+ Element.find(`document`).inspect.should == '#<Element [document]>'
25
+ end
26
+
27
+ it "returns '[window]' when called on $(window)" do
28
+ Element.find(`window`).inspect.should == '#<Element [window]>'
29
+ end
18
30
  end
data/spec/http_spec.rb CHANGED
@@ -1,28 +1,55 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe HTTP do
4
- describe '#body' do
5
- async 'returns the response body as a string' do
6
- HTTP.get('spec/fixtures/simple.txt') do |response|
7
- run_async { response.body.should == "hey" }
8
- end
4
+ describe ".setup" do
5
+ it 'presents the $.ajaxSetup() object as a Hash' do
6
+ HTTP.setup.should be_a Hash
9
7
  end
10
8
  end
11
9
 
12
- describe '#callback' do
13
- async 'can add a success callback after the request is sent' do
14
- http = HTTP.get('spec/fixtures/simple.txt')
15
- http.callback do |response|
16
- run_async { response.should be_ok }
10
+ describe ".get" do
11
+ context "with a block" do
12
+ it "returns the http object instance" do
13
+ HTTP.get('/spec/fixtures/simple.txt') do
14
+ end.should be_a HTTP
15
+ end
16
+
17
+ async "block gets called on success" do
18
+ HTTP.get('spec/fixtures/simple.txt') do |response|
19
+ run_async { response.should be_ok }
20
+ end
21
+ end
22
+
23
+ async "block gets called on failure" do
24
+ HTTP.get('/spec/does/not/exist.txt') do |response|
25
+ run_async { response.should_not be_ok }
26
+ end
27
+ end
28
+ end
29
+
30
+ context "without a block" do
31
+ it "returns a promise" do
32
+ HTTP.get('/spec/fixtures/simple.txt').should be_a Promise
33
+ end
34
+
35
+ async "returns a promise which accepts a then-block for successful response" do
36
+ HTTP.get('spec/fixtures/simple.txt').then do |response|
37
+ run_async { response.should be_ok }
38
+ end
39
+ end
40
+
41
+ async "returns a promise which accepts a fail-block for failing response" do
42
+ HTTP.get('spec/does/not/exist.txt').fail do |response|
43
+ run_async { response.should_not be_ok }
44
+ end
17
45
  end
18
46
  end
19
47
  end
20
48
 
21
- describe '#callback' do
22
- async 'can add a failure callback after the request is sent' do
23
- http = HTTP.get('spec/fixtures/bad_url.txt')
24
- http.errback do |response|
25
- run_async { response.should_not be_ok }
49
+ describe '#body' do
50
+ async 'returns the response body as a string' do
51
+ HTTP.get('spec/fixtures/simple.txt') do |response|
52
+ run_async { response.body.should == "hey" }
26
53
  end
27
54
  end
28
55
  end
metadata CHANGED
@@ -1,62 +1,79 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-jquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.3.0.beta1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Beynon
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-12 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: opal
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 0.5.0
22
- - - <
23
- - !ruby/object:Gem::Version
24
- version: 1.0.0
19
+ version: 0.7.0.beta1
25
20
  type: :runtime
26
21
  prerelease: false
27
22
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
23
  requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: 0.5.0
33
- - - <
24
+ - - "~>"
34
25
  - !ruby/object:Gem::Version
35
- version: 1.0.0
26
+ version: 0.7.0.beta1
36
27
  - !ruby/object:Gem::Dependency
37
28
  name: opal-rspec
38
29
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
30
  requirements:
41
- - - ~>
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.4.0.beta2
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.4.0.beta2
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
- version: 0.3.0
47
+ version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
50
  version_requirements: !ruby/object:Gem::Requirement
47
- none: false
48
51
  requirements:
49
- - - ~>
52
+ - - ">="
50
53
  - !ruby/object:Gem::Version
51
- version: 0.3.0
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
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'
52
69
  description: Opal DOM library for jquery
53
70
  email: adam.beynon@gmail.com
54
71
  executables: []
55
72
  extensions: []
56
73
  extra_rdoc_files: []
57
74
  files:
58
- - .gitignore
59
- - .travis.yml
75
+ - ".gitignore"
76
+ - ".travis.yml"
60
77
  - CHANGELOG.md
61
78
  - Gemfile
62
79
  - LICENSE
@@ -74,6 +91,7 @@ files:
74
91
  - lib/opal/jquery/version.rb
75
92
  - opal-jquery.gemspec
76
93
  - opal/opal-jquery.rb
94
+ - opal/opal-jquery/constants.rb
77
95
  - opal/opal-jquery/document.rb
78
96
  - opal/opal-jquery/element.rb
79
97
  - opal/opal-jquery/event.rb
@@ -92,6 +110,7 @@ files:
92
110
  - spec/element/class_name_spec.rb
93
111
  - spec/element/css_spec.rb
94
112
  - spec/element/display_spec.rb
113
+ - spec/element/height_width_spec.rb
95
114
  - spec/element/inspect_spec.rb
96
115
  - spec/element/iterable_spec.rb
97
116
  - spec/element/length_spec.rb
@@ -111,27 +130,26 @@ files:
111
130
  - spec/zepto/zepto.js
112
131
  homepage: http://opalrb.org
113
132
  licenses: []
133
+ metadata: {}
114
134
  post_install_message:
115
135
  rdoc_options: []
116
136
  require_paths:
117
137
  - lib
118
138
  required_ruby_version: !ruby/object:Gem::Requirement
119
- none: false
120
139
  requirements:
121
- - - ! '>='
140
+ - - ">="
122
141
  - !ruby/object:Gem::Version
123
142
  version: '0'
124
143
  required_rubygems_version: !ruby/object:Gem::Requirement
125
- none: false
126
144
  requirements:
127
- - - ! '>='
145
+ - - ">"
128
146
  - !ruby/object:Gem::Version
129
- version: '0'
147
+ version: 1.3.1
130
148
  requirements: []
131
149
  rubyforge_project:
132
- rubygems_version: 1.8.23
150
+ rubygems_version: 2.2.2
133
151
  signing_key:
134
- specification_version: 3
152
+ specification_version: 4
135
153
  summary: Opal access to jquery
136
154
  test_files:
137
155
  - spec/document_spec.rb
@@ -145,6 +163,7 @@ test_files:
145
163
  - spec/element/class_name_spec.rb
146
164
  - spec/element/css_spec.rb
147
165
  - spec/element/display_spec.rb
166
+ - spec/element/height_width_spec.rb
148
167
  - spec/element/inspect_spec.rb
149
168
  - spec/element/iterable_spec.rb
150
169
  - spec/element/length_spec.rb
@@ -162,3 +181,4 @@ test_files:
162
181
  - spec/spec_helper.rb
163
182
  - spec/zepto/index.html.erb
164
183
  - spec/zepto/zepto.js
184
+ has_rdoc: