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.
@@ -3,6 +3,3 @@ language: ruby
3
3
  rvm:
4
4
  - 1.8.7
5
5
  - 1.9.3
6
-
7
- before_script:
8
- - "bundle exec rake opal"
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
1
  source :rubygems
2
+ gemspec
2
3
 
3
4
  gem 'rake'
5
+ gem 'sprockets'
4
6
 
5
7
  gem 'opal'
6
8
  gem 'opal-spec'
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2012 by Adam Beynon
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) 2012 by Adam Beynon
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/setup'
2
- require 'opal/rake_task'
1
+ require 'bundler'
2
+ Bundler.require
3
3
 
4
- Opal::RakeTask.new do |t|
5
- t.name = 'opal-jquery'
6
- t.dependencies = ['opal-spec']
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
- task :default => [:opal, :'opal:test']
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
@@ -0,0 +1,6 @@
1
+ //= require opal/jquery/document
2
+ //= require opal/jquery/element
3
+ //= require opal/jquery/event
4
+ //= require opal/jquery/http
5
+ //= require opal/jquery/kernel
6
+ //= require opal/jquery/local_storage
@@ -45,4 +45,3 @@ module Document
45
45
  `document.title = title`
46
46
  end
47
47
  end
48
-
@@ -111,4 +111,3 @@ class HTTP
111
111
  @callback.call self if @callback
112
112
  end
113
113
  end
114
-
@@ -3,4 +3,4 @@ module Kernel
3
3
  `alert(msg)`
4
4
  nil
5
5
  end
6
- end
6
+ end
@@ -22,4 +22,4 @@ module LocalStorage
22
22
  return val === null ? nil : val;
23
23
  }
24
24
  end
25
- end
25
+ end
@@ -1,4 +1 @@
1
- require 'opal-jquery/document'
2
- require 'opal-jquery/element'
3
- require 'opal-jquery/kernel'
4
- require 'opal-jquery/http'
1
+ require 'opal/jquery'
@@ -0,0 +1,5 @@
1
+ require 'opal'
2
+ require 'opal/jquery/version'
3
+
4
+ # Just register our opal code path with opal build tools
5
+ Opal.append_path File.join(File.dirname(__FILE__), '..', 'assets', 'javascripts')
@@ -0,0 +1,5 @@
1
+ module Opal
2
+ module JQuery
3
+ VERSION = '0.0.4'
4
+ end
5
+ end
@@ -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 = '0.0.3'
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'
@@ -1,13 +1,10 @@
1
- <!doctype html>
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>
@@ -1,3 +1,8 @@
1
+ #= require opal-spec
2
+ #= require opal-jquery
3
+ #= require_self
4
+ #= require_tree .
5
+
1
6
  module OpalSpec
2
7
  class ExampleGroup
3
8
 
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.3
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-01-17 00:00:00.000000000Z
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-jquery/document.rb
28
- - lib/opal-jquery/element.rb
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