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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fba7810f4091cf5497c1e42b55e04b1615b673b7
4
- data.tar.gz: a6ba9289a9179285267f449cbc6fe0a6bbed0d54
3
+ metadata.gz: 218fab39fcc4bdbcd8df4f573c9409542f2e91df
4
+ data.tar.gz: 2bacc0a96132c782d521cda64eb7cf74f3356874
5
5
  SHA512:
6
- metadata.gz: aac7dfdf749778ea7385c0d798636c99f1af6ab3b8f614249265756f521f8765e9eca88adaf11791dabb1ef9ddbbb03f3dbabf3278d26c01961444150926ac1d
7
- data.tar.gz: 5bbecad1ba6817cae8cf57eab950444f083ce10abe5450751420ba5ebfcdc66eecad651fa955d9678ea95d1896a56deb1ffd4a163b6ef9be54f8e3f29b1c88cc
6
+ metadata.gz: 30228944916bea6c4e84cdc8ccac6e2b1f685b120800b8c9735daeee3bde90b208a97aed841972c42e86febe8ea8a8fc77588877ed16b1f1e3036474d399a03a
7
+ data.tar.gz: d73f33c4916c14796cc9274854ff8bb0907144f8d7ec3fc2b10100307be415a94631962110fe5e5dcfe6bcb84c0674b9b12c3e8e2c26475034200e0f69a08368
data/.gitignore CHANGED
@@ -6,3 +6,6 @@ Gemfile.lock
6
6
  build/
7
7
  /.github_access_token
8
8
  /cdn
9
+ /node_modules
10
+ /gh-pages
11
+ /tmp
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']
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Opal
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
data/opal.gemspec CHANGED
@@ -27,4 +27,5 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency 'rspec', '~> 2.14'
28
28
  s.add_development_dependency 'octokit', '~> 2.4.0'
29
29
  s.add_development_dependency 'bundler', '~> 1.6'
30
+ s.add_development_dependency 'yard'
30
31
  end
@@ -4,7 +4,7 @@ class Regexp
4
4
  class << self
5
5
  def escape(string)
6
6
  %x{
7
- return string.replace(/([-[\]/{}()*+?.^$\\| ])/g, '\\$1')
7
+ return string.replace(/([-[\]\/{}()*+?.^$\\| ])/g, '\\$1')
8
8
  .replace(/[\n]/g, '\\n')
9
9
  .replace(/[\r]/g, '\\r')
10
10
  .replace(/[\f]/g, '\\f')
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.2
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-04-24 00:00:00.000000000 Z
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.2.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: