opal 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Rakefile +19 -0
- data/examples/sinatra/config.ru +13 -6
- data/lib/opal/version.rb +1 -1
- data/opal.gemspec +1 -0
- data/opal/corelib/regexp.rb +1 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218fab39fcc4bdbcd8df4f573c9409542f2e91df
|
4
|
+
data.tar.gz: 2bacc0a96132c782d521cda64eb7cf74f3356874
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30228944916bea6c4e84cdc8ccac6e2b1f685b120800b8c9735daeee3bde90b208a97aed841972c42e86febe8ea8a8fc77588877ed16b1f1e3036474d399a03a
|
7
|
+
data.tar.gz: d73f33c4916c14796cc9274854ff8bb0907144f8d7ec3fc2b10100307be415a94631962110fe5e5dcfe6bcb84c0674b9b12c3e8e2c26475034200e0f69a08368
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -71,3 +71,22 @@ desc 'Remove any generated file.'
|
|
71
71
|
task :clobber do
|
72
72
|
rm_r './build'
|
73
73
|
end
|
74
|
+
|
75
|
+
namespace :doc do
|
76
|
+
generate_docs_for = ->(glob, name){
|
77
|
+
release_name = `git rev-parse --abbrev-ref HEAD`.chomp
|
78
|
+
command = "yard doc #{glob} -o gh-pages/doc/#{release_name}/#{name}"
|
79
|
+
puts command
|
80
|
+
system command
|
81
|
+
}
|
82
|
+
|
83
|
+
task :corelib do
|
84
|
+
generate_docs_for['opal/**/*.rb', 'corelib']
|
85
|
+
end
|
86
|
+
|
87
|
+
task :stdlib do
|
88
|
+
generate_docs_for['stdlib/**/*.rb', 'stdlib']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
task :doc => ['doc:corelib', 'doc:stdlib']
|
data/examples/sinatra/config.ru
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
require 'opal'
|
2
2
|
require 'sinatra'
|
3
3
|
|
4
|
+
opal = Opal::Server.new {|s|
|
5
|
+
s.append_path 'app'
|
6
|
+
s.main = 'application'
|
7
|
+
}
|
8
|
+
|
9
|
+
map '/__opal_source_maps__' do
|
10
|
+
run opal.source_maps
|
11
|
+
end
|
12
|
+
|
13
|
+
map '/assets' do
|
14
|
+
run opal.sprockets
|
15
|
+
end
|
16
|
+
|
4
17
|
get '/' do
|
5
18
|
<<-EOS
|
6
19
|
<!doctype html>
|
@@ -12,10 +25,4 @@ get '/' do
|
|
12
25
|
EOS
|
13
26
|
end
|
14
27
|
|
15
|
-
map '/assets' do
|
16
|
-
env = Opal::Environment.new
|
17
|
-
env.append_path 'app'
|
18
|
-
run env
|
19
|
-
end
|
20
|
-
|
21
28
|
run Sinatra::Application
|
data/lib/opal/version.rb
CHANGED
data/opal.gemspec
CHANGED
data/opal/corelib/regexp.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Beynon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: source_map
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yard
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: Ruby runtime and core library for javascript.
|
126
140
|
email: adam.beynon@gmail.com
|
127
141
|
executables:
|
@@ -558,7 +572,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
558
572
|
version: '0'
|
559
573
|
requirements: []
|
560
574
|
rubyforge_project:
|
561
|
-
rubygems_version: 2.
|
575
|
+
rubygems_version: 2.4.2
|
562
576
|
signing_key:
|
563
577
|
specification_version: 4
|
564
578
|
summary: Ruby runtime and core library for javascript
|
@@ -822,3 +836,4 @@ test_files:
|
|
822
836
|
- spec/opal/stdlib/template/paths_spec.rb
|
823
837
|
- spec/rubyspecs
|
824
838
|
- spec/spec_helper.rb
|
839
|
+
has_rdoc:
|