GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of madrobby/scripty2
Description: This is the alpha version of script.aculo.us 2, lovingly called "scripty2".
Homepage: http://script.aculo.us/2
Clone URL: git://github.com/kommen/scripty2.git
update license files; add license to generated file; ignore dist directory
madrobby (author)
Sat May 03 09:28:04 -0700 2008
commit  d5c034a12707e6f94c40ae003191253fe63966d2
tree    fe04d59446b77a894b6ae74d2e11ad1dfc63aad6
parent  9da8cabbf00026c4a22b4f179cdc0af06a4f8478
...
1
 
 
2
3
4
...
 
1
2
3
4
5
0
@@ -1,4 +1,5 @@
0
-Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
0
+Copyright (c) 2005-2008 Thomas Fuchs
0
+http://script.aculo.us/thomas
0
 
0
 Permission is hereby granted, free of charge, to any person obtaining
0
 a copy of this software and associated documentation files (the
...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
28
29
30
 
31
32
33
...
46
47
48
49
50
51
 
 
 
52
53
...
2
3
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
...
47
48
49
 
 
 
50
51
52
53
54
0
@@ -2,32 +2,33 @@ require 'rake'
0
 require 'rake/packagetask'
0
 require 'fileutils'
0
 
0
-task :default => :test_units
0
-
0
-require '../unittest/src/jstest'
0
-desc "Runs all the JavaScript unit tests and collects the results"
0
-JavaScriptTestTask.new(:test_units) do |t|
0
- tests_to_run = ENV['TESTS'] && ENV['TESTS'].split(',')
0
- browsers_to_test = ENV['BROWSERS'] && ENV['BROWSERS'].split(',')
0
-
0
- t.mount("/lib")
0
- t.mount("/src")
0
- t.mount("/test")
0
-
0
- Dir["test/unit/*.html"].sort.each do |test_file|
0
- test_file = "/#{test_file}"
0
- test_name = test_file[/.*\/(.+?)\.html/, 1]
0
- t.run(test_file) unless tests_to_run && !tests_to_run.include?(test_name)
0
- end
0
-
0
- %w( safari firefox ie konqueror opera ).each do |browser|
0
- t.browser(browser.to_sym) unless browsers_to_test && !browsers_to_test.include?(browser)
0
- end
0
-end
0
+# task :default => :test_units
0
+#
0
+# require '../unittest/src/jstest'
0
+# desc "Runs all the JavaScript unit tests and collects the results"
0
+# JavaScriptTestTask.new(:test_units) do |t|
0
+# tests_to_run = ENV['TESTS'] && ENV['TESTS'].split(',')
0
+# browsers_to_test = ENV['BROWSERS'] && ENV['BROWSERS'].split(',')
0
+#
0
+# t.mount("/lib")
0
+# t.mount("/src")
0
+# t.mount("/test")
0
+#
0
+# Dir["test/unit/*.html"].sort.each do |test_file|
0
+# test_file = "/#{test_file}"
0
+# test_name = test_file[/.*\/(.+?)\.html/, 1]
0
+# t.run(test_file) unless tests_to_run && !tests_to_run.include?(test_name)
0
+# end
0
+#
0
+# %w( safari firefox ie konqueror opera ).each do |browser|
0
+# t.browser(browser.to_sym) unless browsers_to_test && !browsers_to_test.include?(browser)
0
+# end
0
+# end
0
 
0
 desc "Make a effects.js package (temporary task until sprockets arrive)"
0
 task :package do |t|
0
   files = %w(
0
+ src/license.js
0
   src/base.js
0
   src/queue.js
0
   src/heartbeat.js
0
@@ -46,7 +47,7 @@ task :package do |t|
0
   src/transitions/transitions.js
0
   src/transitions/penner.js)
0
   FileUtils.mkdir('dist') unless File.exists?('dist')
0
- File.open('dist/effects.js', 'w+') do |dist|
0
- files.each { |f| dist << File.read(f) + "\n\n" }
0
- end
0
+
0
+ concatenated = files.map{|f| File.read(f) }.join("\n\n")
0
+ File.open('dist/effects.js', 'w+') { |dist| dist << concatenated }
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.