Skip to content
Browse files

fusejs: Begin FuseJS Alpha

  • Loading branch information...
1 parent 12a50e5 commit 1a4bec7b56d62b1f75a57fdbf10038ce245555ec @jdalton jdalton committed Dec 7, 2008
View
2 CHANGELOG
@@ -1,3 +1,5 @@
+*FuseJS Alpha* (December 6, 2008)
+
* Add private helper method isHostObject() to correctly detect host methods and properties. [David Mark, jddalton]
* Massive code rewrite and restructuring [bkerley, jddalton, Joe Gornick, T.J. Crowder]
View
2 LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2005-2008 Sam Stephenson
+Copyright (c) 2008-2009 John-David Dalton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
43 README.rdoc
@@ -1,56 +1,55 @@
-= Prototype
+= FuseJS
==== An object-oriented JavaScript framework
-Prototype is a JavaScript framework that aims to ease development of dynamic
+Fuse is a JavaScript framework that aims to ease development of dynamic
web applications. It offers a familiar class-style OO framework, extensive
Ajax support, higher-order programming constructs, and easy DOM manipulation.
=== Targeted platforms
-Prototype currently targets the following platforms:
+FuseJS currently targets the following platforms:
* Microsoft Internet Explorer for Windows, version 6.0 and higher
* Mozilla Firefox 1.5 and higher
* Apple Safari 2.0 and higher
* Opera 9.25 and higher
-== Using Prototype
+== Using FuseJS
-To use Prototype in your application, download the latest release from the
-Prototype web site (http://prototypejs.org/download) and copy
-<tt>dist/prototype.js</tt> to a suitable location. Then include it in your HTML
+To use FuseJS in your application, download the latest release from the
+FuseJS web site (http://fusejs.com/download) and copy
+<tt>dist/fuse.js</tt> to a suitable location. Then include it in your HTML
like so:
- <script type="text/javascript" src="/path/to/prototype.js"></script>
+ <script type="text/javascript" src="/path/to/fuse.js"></script>
-=== Building Prototype from source
+=== Building FuseJS from source
-<tt>prototype.js</tt> is a composite file generated from many source files in
-the <tt>src/</tt> directory. To build Prototype, you'll need:
+<tt>fuse.js</tt> is a composite file generated from many source files in
+the <tt>src/</tt> directory. To build FuseJS, you'll need:
-* a copy of the Prototype source tree, either from a distribution tarball or
+* a copy of the FuseJS source tree, either from a distribution tarball or
from the Git repository (see below)
* Ruby 1.8.2 or higher (http://www.ruby-lang.org/)
* Rake -- Ruby Make (http://rake.rubyforge.org/)
* RDoc, if your Ruby distribution does not include it
-From the root Prototype directory,
+From the root FuseJS directory,
-* <tt>rake dist</tt> will preprocess the Prototype source using ERB and
- generate the composite <tt>dist/prototype.js</tt>.
+* <tt>rake dist</tt> will preprocess the FuseJS source using ERB and
+ generate the composite <tt>dist/fuse.js</tt>.
* <tt>rake package</tt> will create a distribution tarball in the
<tt>pkg/</tt> directory.
-== Contributing to Prototype
+== Contributing to FuseJS
-Check out the Prototype source with
- $ git clone git://github.com/sstephenson/prototype.git
+Check out the FuseJS source with
+ $ git clone git://github.com/jdalton/fusejs.git
Find out how to contribute:
- http://prototypejs.org/contribute
+ http://fusejs.com/contribute
== Documentation
-Please see the online Prototype API:
- http://prototypejs.org/api
-
+Please see the online FuseJS API:
+ http://fusejs.com/api
View
44 Rakefile
@@ -1,46 +1,46 @@
require 'rake'
require 'rake/packagetask'
-PROTOTYPE_ROOT = File.expand_path(File.dirname(__FILE__))
-PROTOTYPE_SRC_DIR = File.join(PROTOTYPE_ROOT, 'src')
-PROTOTYPE_DIST_DIR = File.join(PROTOTYPE_ROOT, 'dist')
-PROTOTYPE_PKG_DIR = File.join(PROTOTYPE_ROOT, 'pkg')
-PROTOTYPE_TEST_DIR = File.join(PROTOTYPE_ROOT, 'test')
-PROTOTYPE_TMP_DIR = File.join(PROTOTYPE_TEST_DIR, 'unit', 'tmp')
-PROTOTYPE_VERSION = '1.6.0.2'
+FUSEJS_ROOT = File.expand_path(File.dirname(__FILE__))
+FUSEJS_SRC_DIR = File.join(FUSEJS_ROOT, 'src')
+FUSEJS_DIST_DIR = File.join(FUSEJS_ROOT, 'dist')
+FUSEJS_PKG_DIR = File.join(FUSEJS_ROOT, 'pkg')
+FUSEJS_TEST_DIR = File.join(FUSEJS_ROOT, 'test')
+FUSEJS_TMP_DIR = File.join(FUSEJS_TEST_DIR, 'unit', 'tmp')
+FUSEJS_VERSION = 'Alpha'
task :default => [:dist, :dist_helper, :package, :clean_package_source]
desc "Builds the distribution."
task :dist do
- $:.unshift File.join(PROTOTYPE_ROOT, 'lib')
+ $:.unshift File.join(FUSEJS_ROOT, 'lib')
require 'protodoc'
- Dir.chdir(PROTOTYPE_SRC_DIR) do
- File.open(File.join(PROTOTYPE_DIST_DIR, 'prototype.js'), 'w+') do |dist|
- dist << Protodoc::Preprocessor.new('prototype.js')
+ Dir.chdir(FUSEJS_SRC_DIR) do
+ File.open(File.join(FUSEJS_DIST_DIR, 'fuse.js'), 'w+') do |dist|
+ dist << Protodoc::Preprocessor.new('fuse.js')
end
end
end
desc "Builds the updating helper."
task :dist_helper do
- $:.unshift File.join(PROTOTYPE_ROOT, 'lib')
+ $:.unshift File.join(FUSEJS_ROOT, 'lib')
require 'protodoc'
- Dir.chdir(File.join(PROTOTYPE_ROOT, 'ext', 'update_helper')) do
- File.open(File.join(PROTOTYPE_DIST_DIR, 'prototype_update_helper.js'), 'w+') do |dist|
+ Dir.chdir(File.join(FUSEJS_ROOT, 'ext', 'update_helper')) do
+ File.open(File.join(FUSEJS_DIST_DIR, 'prototype_update_helper.js'), 'w+') do |dist|
dist << Protodoc::Preprocessor.new('prototype_update_helper.js')
end
end
end
-Rake::PackageTask.new('prototype', PROTOTYPE_VERSION) do |package|
+Rake::PackageTask.new('fuse', FUSEJS_VERSION) do |package|
package.need_tar_gz = true
- package.package_dir = PROTOTYPE_PKG_DIR
+ package.package_dir = FUSEJS_PKG_DIR
package.package_files.include(
'[A-Z]*',
- 'dist/prototype.js',
+ 'dist/fuse.js',
'lib/**',
'src/**',
'test/**'
@@ -60,7 +60,7 @@ JavaScriptTestTask.new(:test_units => [:build_unit_tests]) do |t|
t.mount("/dist")
t.mount("/test")
- Dir.mkdir(PROTOTYPE_TMP_DIR) unless File.exist?(PROTOTYPE_TMP_DIR)
+ Dir.mkdir(FUSEJS_TMP_DIR) unless File.exist?(FUSEJS_TMP_DIR)
Dir["test/unit/tmp/*_test.html"].each do |file|
test_name = File.basename(file).sub("_test.html", "")
@@ -76,17 +76,17 @@ end
task :build_unit_tests do
Dir[File.join('test', 'unit', '*_test.js')].each do |file|
- PageBuilder.new(file, 'prototype.erb').render
+ PageBuilder.new(file, 'fuse.erb').render
end
end
task :clean_package_source do
- rm_rf File.join(PROTOTYPE_PKG_DIR, "prototype-#{PROTOTYPE_VERSION}")
+ rm_rf File.join(FUSEJS_PKG_DIR, "fuse-#{FUSEJS_VERSION}")
end
desc 'Generates an empty tmp directory for building tests.'
task :clean_tmp do
puts 'Generating an empty tmp directory for building tests.'
- FileUtils.rm_rf(PROTOTYPE_TMP_DIR) if File.exist?(PROTOTYPE_TMP_DIR)
- Dir.mkdir(PROTOTYPE_TMP_DIR)
+ FileUtils.rm_rf(FUSEJS_TMP_DIR) if File.exist?(FUSEJS_TMP_DIR)
+ Dir.mkdir(FUSEJS_TMP_DIR)
end
View
8 src/HEADER
@@ -1,7 +1,7 @@
-/* Prototype JavaScript framework, version <%= PROTOTYPE_VERSION %>
- * (c) 2005-2008 Sam Stephenson
+/* Fuse JavaScript framework, version <%= FUSEJS_VERSION %>
+ * (c) 2008-2009 John-David Dalton
*
- * Prototype is freely distributable under the terms of an MIT-style license.
- * For details, see the Prototype web site: http://www.prototypejs.org/
+ * FuseJS is freely distributable under the terms of an MIT-style license.
+ * For details, see the FuseJS web site: http://www.fusejs.com/
*
*--------------------------------------------------------------------------*/
View
2 src/prototype.js → src/fuse.js
@@ -49,7 +49,7 @@
/*---------------------------- PROTOTYPE OBJECT ----------------------------*/
var P = Prototype = {
- Version: '<%= PROTOTYPE_VERSION %>',
+ Version: '<%= FUSEJS_VERSION %>',
Browser: {
'IE': isHostObject(global, 'attachEvent') && userAgent.indexOf('Opera') === -1,
View
4 test/browser.html
@@ -3,7 +3,7 @@
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>Prototype object browser</title>
+ <title>FuseJS object browser</title>
<style type="text/css" media="screen">
body {
font-family: Lucida Grande, Verdana, sans-serif;
@@ -76,7 +76,7 @@
}
</style>
- <script type="text/javascript" src="../dist/prototype.js"></script>
+ <script type="text/javascript" src="../dist/fuse.js"></script>
<script type="text/javascript">
var Browser = Class.create();
Browser.prototype = {
View
4 test/console.html
@@ -2,8 +2,8 @@
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
- <title>Prototype Console</title>
- <script src="../dist/prototype.js" type="text/javascript"></script>
+ <title>FuseJS Console</title>
+ <script src="../dist/fuse.js" type="text/javascript"></script>
<script type="text/javascript">
Prototype.Console = Class.create();
Prototype.Console.prototype = {
View
6 test/functional/event.html
@@ -2,9 +2,9 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>Prototype functional test file</title>
+ <title>FuseJS functional test file</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <script src="../../dist/prototype.js" type="text/javascript"></script>
+ <script src="../../dist/fuse.js" type="text/javascript"></script>
<style type="text/css" media="screen">
/* <![CDATA[ */
@@ -51,7 +51,7 @@
</script>
</head>
<body>
- <h1>Prototype functional tests for the Event module</h1>
+ <h1>FuseJS functional tests for the Event module</h1>
<div id="log">log empty</div>
View
4 test/lib/templates/default.erb
@@ -2,9 +2,9 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>Unit test file | <%= @title %></title>
+ <title>FuseJS Unit test file | <%= @title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <script src="../../../dist/prototype.js" type="text/javascript"></script>
+ <script src="../../../dist/fuse.js" type="text/javascript"></script>
<script src="../../lib/assets/unittest.js" type="text/javascript"></script>
<link rel="stylesheet" href="../../lib/assets/test.css" type="text/css" />
View
6 test/lib/templates/prototype.erb → test/lib/templates/fuse.erb
@@ -2,15 +2,15 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>Prototype Unit test file | <%= @title %></title>
+ <title>FuseJS Unit test file | <%= @title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" charset="utf-8">
var originalElement = window.Element;
var eventResults = {
eventElement: { }
};
</script>
- <script src="../../../dist/prototype.js" type="text/javascript"></script>
+ <script src="../../../dist/fuse.js" type="text/javascript"></script>
<script src="../../lib/assets/unittest.js" type="text/javascript"></script>
<link rel="stylesheet" href="../../lib/assets/test.css" type="text/css" />
@@ -25,7 +25,7 @@
<script src="../<%= @js_filename %>" type="text/javascript"></script>
</head>
<body>
-<h1>Prototype Unit test file</h1>
+<h1>FuseJS Unit test file</h1>
<h2><%= @title %></h2>
<!-- This file is programmatically generated. Do not attempt to modify it. Instead, modify <%= @fixtures_filename %> -->

0 comments on commit 1a4bec7

Please sign in to comment.
Something went wrong with that request. Please try again.