opal 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/runtime/yaml.js ADDED
@@ -0,0 +1,33 @@
1
+ /*
2
+ * yaml.js
3
+ * opal
4
+ *
5
+ * Created by Adam Beynon.
6
+ * Copyright 2010 Adam Beynon.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in
16
+ * all copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ * THE SOFTWARE.
25
+ */
26
+
27
+
28
+ /**
29
+ YAML support: all yml files in the browser will be pre-compiled into the vnyml
30
+ format. They will still, however, have the .yml or .yaml extension. This library
31
+ will reproduce the functionality of vanilla yaml but using the vnyml format
32
+ instead.
33
+ */
data/tasks/build.rb ADDED
@@ -0,0 +1,16 @@
1
+ require 'fileutils'
2
+
3
+ desc "Build charles"
4
+ task :build do
5
+
6
+ build_dest = File.join(File.dirname(__FILE__), '..', 'build', 'charles.js')
7
+ FileUtils.mkdir_p(File.dirname(build_dest))
8
+
9
+ # should minify really...
10
+ File.open(build_dest, "wb") do |f|
11
+ sources = File.join(File.dirname(__FILE__), '..', 'lib', '**', '*.js')
12
+ Dir.glob(sources).each { |s| open(s).each { |l| f.puts l } }
13
+ end
14
+ end
15
+
16
+
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: opal
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Adam Beynon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-01-22 00:00:00 +00:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: vienna
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.3
24
+ version:
25
+ description: Ruby runtime for the browser
26
+ email: adam@adambeynon.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files: []
32
+
33
+ files:
34
+ - .gitignore
35
+ - Rakefile
36
+ - VERSION
37
+ - docs/jarv.rdoc
38
+ - lib/opal.rb
39
+ - runtime/array.js
40
+ - runtime/class.js
41
+ - runtime/compar.js
42
+ - runtime/dir.js
43
+ - runtime/enum.js
44
+ - runtime/file.js
45
+ - runtime/gem.js
46
+ - runtime/hash.js
47
+ - runtime/init.js
48
+ - runtime/load.js
49
+ - runtime/module.js
50
+ - runtime/number.js
51
+ - runtime/object.js
52
+ - runtime/opal.js
53
+ - runtime/parse.js
54
+ - runtime/range.js
55
+ - runtime/re.js
56
+ - runtime/string.js
57
+ - runtime/variable.js
58
+ - runtime/vm.js
59
+ - runtime/yaml.js
60
+ - tasks/build.rb
61
+ has_rdoc: true
62
+ homepage: http://github.com/adambeynon/opal
63
+ licenses: []
64
+
65
+ post_install_message:
66
+ rdoc_options:
67
+ - --charset=UTF-8
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: "0"
75
+ version:
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: "0"
81
+ version:
82
+ requirements: []
83
+
84
+ rubyforge_project:
85
+ rubygems_version: 1.3.5
86
+ signing_key:
87
+ specification_version: 3
88
+ summary: Ruby runtime for the browser
89
+ test_files: []
90
+