opal-jquery 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -3
- data/Gemfile +2 -0
- data/LICENSE +2 -2
- data/README.md +1 -5
- data/Rakefile +25 -6
- data/lib/assets/javascripts/opal-jquery.js +1 -0
- data/lib/assets/javascripts/opal/jquery.js +6 -0
- data/lib/{opal-jquery → assets/javascripts/opal/jquery}/document.rb +0 -1
- data/lib/{opal-jquery → assets/javascripts/opal/jquery}/element.rb +0 -0
- data/lib/{opal-jquery → assets/javascripts/opal/jquery}/event.rb +0 -0
- data/lib/{opal-jquery → assets/javascripts/opal/jquery}/http.rb +0 -1
- data/lib/{opal-jquery → assets/javascripts/opal/jquery}/kernel.rb +1 -1
- data/lib/{opal-jquery → assets/javascripts/opal/jquery}/local_storage.rb +1 -1
- data/lib/opal-jquery.rb +1 -4
- data/lib/opal/jquery.rb +5 -0
- data/lib/opal/jquery/version.rb +5 -0
- data/opal-jquery.gemspec +2 -1
- data/spec/index.html +2 -5
- data/spec/spec_helper.rb +5 -0
- metadata +12 -8
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (C)
|
1
|
+
Copyright (C) 2013 by Adam Beynon
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
16
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
18
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
-
THE SOFTWARE.
|
19
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -245,10 +245,6 @@ On osx you can install through homebrew
|
|
245
245
|
|
246
246
|
$ brew update; brew install phantomjs
|
247
247
|
|
248
|
-
Build dependencies, opal-jquery and it's specs into `build/`:
|
249
|
-
|
250
|
-
$ rake opal
|
251
|
-
|
252
248
|
Run the tests inside a phantom.js runner:
|
253
249
|
|
254
250
|
$ rake
|
@@ -276,7 +272,7 @@ Or use a guard script that does similar
|
|
276
272
|
|
277
273
|
### License
|
278
274
|
|
279
|
-
Copyright (C)
|
275
|
+
Copyright (C) 2013 by Adam Beynon
|
280
276
|
|
281
277
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
282
278
|
of this software and associated documentation files (the "Software"), to deal
|
data/Rakefile
CHANGED
@@ -1,9 +1,28 @@
|
|
1
|
-
require 'bundler
|
2
|
-
require
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.require
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
desc "Build opal-jquery into build"
|
5
|
+
task :build => [:dir] do
|
6
|
+
File.open('build/opal-jquery.js', 'w+') do |out|
|
7
|
+
out.puts Opal.process('opal-jquery')
|
8
|
+
end
|
7
9
|
end
|
8
10
|
|
9
|
-
|
11
|
+
desc "Build example specs ready to run"
|
12
|
+
task :build_specs => [:dir] do
|
13
|
+
Opal.append_path File.join(File.dirname(__FILE__), 'spec')
|
14
|
+
|
15
|
+
File.open('build/specs.js', 'w+') do |out|
|
16
|
+
out.puts Opal.process('spec_helper')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
task :dir do
|
21
|
+
FileUtils.mkdir_p 'build'
|
22
|
+
end
|
23
|
+
|
24
|
+
task :test do
|
25
|
+
OpalSpec.runner
|
26
|
+
end
|
27
|
+
|
28
|
+
task :default => [:build_specs, :test]
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require opal/jquery
|
File without changes
|
File without changes
|
data/lib/opal-jquery.rb
CHANGED
data/lib/opal/jquery.rb
ADDED
data/opal-jquery.gemspec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/opal/jquery/version', __FILE__)
|
2
3
|
|
3
4
|
Gem::Specification.new do |s|
|
4
5
|
s.name = 'opal-jquery'
|
5
|
-
s.version =
|
6
|
+
s.version = Opal::JQuery::VERSION
|
6
7
|
s.author = 'Adam Beynon'
|
7
8
|
s.email = 'adam.beynon@gmail.com'
|
8
9
|
s.homepage = 'http://opalrb.org'
|
data/spec/index.html
CHANGED
@@ -1,13 +1,10 @@
|
|
1
|
-
<!
|
1
|
+
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>opal-jquery Specs (jquery)</title>
|
5
5
|
</head>
|
6
6
|
<body>
|
7
7
|
<script src="../vendor/jquery.js"></script>
|
8
|
-
<script src="../build/opal.js"></script>
|
9
|
-
<script src="../build/opal-spec.js"></script>
|
10
|
-
<script src="../build/opal-jquery.js"></script>
|
11
8
|
<script src="../build/specs.js"></script>
|
12
9
|
</body>
|
13
|
-
</html>
|
10
|
+
</html>
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-jquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-05 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Opal DOM library for jquery
|
15
15
|
email: adam.beynon@gmail.com
|
@@ -23,13 +23,17 @@ files:
|
|
23
23
|
- LICENSE
|
24
24
|
- README.md
|
25
25
|
- Rakefile
|
26
|
+
- lib/assets/javascripts/opal-jquery.js
|
27
|
+
- lib/assets/javascripts/opal/jquery.js
|
28
|
+
- lib/assets/javascripts/opal/jquery/document.rb
|
29
|
+
- lib/assets/javascripts/opal/jquery/element.rb
|
30
|
+
- lib/assets/javascripts/opal/jquery/event.rb
|
31
|
+
- lib/assets/javascripts/opal/jquery/http.rb
|
32
|
+
- lib/assets/javascripts/opal/jquery/kernel.rb
|
33
|
+
- lib/assets/javascripts/opal/jquery/local_storage.rb
|
26
34
|
- lib/opal-jquery.rb
|
27
|
-
- lib/opal
|
28
|
-
- lib/opal
|
29
|
-
- lib/opal-jquery/event.rb
|
30
|
-
- lib/opal-jquery/http.rb
|
31
|
-
- lib/opal-jquery/kernel.rb
|
32
|
-
- lib/opal-jquery/local_storage.rb
|
35
|
+
- lib/opal/jquery.rb
|
36
|
+
- lib/opal/jquery/version.rb
|
33
37
|
- opal-jquery.gemspec
|
34
38
|
- spec/data/simple.txt
|
35
39
|
- spec/data/user.json
|