Showing with 4,163 additions and 4,352 deletions.
  1. +3 −0 .gitignore
  2. +0 −4 Gemfile
  3. +0 −41 Gemfile.lock
  4. +25 −0 Guardfile
  5. +1 −1 MIT-LICENSE
  6. +199 −389 README.md
  7. +80 −164 Rakefile
  8. +1 −1 examples/anim.html
  9. +11 −11 examples/iphone/index.html
  10. +18 −0 examples/load_jquery_on_ie.html
  11. +51 −0 examples/snow/index.html
  12. +30 −0 examples/touch_events.html
  13. +6 −0 script/guard
  14. +2 −0 script/test
  15. +0 −212 spec/javascripts/ajax_spec.js
  16. +0 −223 spec/javascripts/helpers/mock-ajax.js
  17. +0 −15 spec/javascripts/support/jasmine.yml
  18. +0 −23 spec/javascripts/support/jasmine_config.rb
  19. +0 −32 spec/javascripts/support/jasmine_runner.rb
  20. +160 −299 src/ajax.js
  21. +12 −20 src/assets.js
  22. +53 −20 src/data.js
  23. +24 −38 src/detect.js
  24. +129 −103 src/event.js
  25. +20 −74 src/form.js
  26. +52 −39 src/fx.js
  27. +34 −60 src/fx_methods.js
  28. +17 −17 src/gesture.js
  29. +17 −17 src/polyfill.js
  30. +70 −0 src/selector.js
  31. +22 −0 src/stack.js
  32. +61 −40 src/touch.js
  33. +379 −258 src/zepto.js
  34. +373 −247 test/ajax.html
  35. +13 −9 test/assets_functional.html
  36. +155 −38 test/data.html
  37. +99 −73 test/detect.html
  38. +137 −0 test/event.html
  39. +7 −92 test/evidence_runner.js
  40. +16 −0 test/fixtures/ajax_load_selector_javascript.html
  41. +7 −1 test/fixtures/jsonp.js
  42. +27 −27 test/form.html
  43. +79 −57 test/fx.html
  44. +6 −0 test/fx_functional.html
  45. +8 −4 test/gesture_functional.html
  46. +9 −9 test/polyfill.html
  47. +69 −0 test/runner.coffee
  48. +60 −0 test/selector.html
  49. +64 −0 test/stack.html
  50. +229 −0 test/touch.html
  51. +17 −10 test/touch_functional.html
  52. +23 −12 test/touchcancel_functional.html
  53. +1,288 −1,041 test/zepto.html
  54. +0 −202 vendor/google-compiler/COPYING
  55. +0 −289 vendor/google-compiler/README
  56. BIN vendor/google-compiler/compiler.jar
  57. +0 −140 vendor/yuicompressor/README
  58. BIN vendor/yuicompressor/yuicompressor-2.4.2.jar
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,6 @@ dist/zepto.js
pkg
*.swp
docs/*
.jhw-cache
.rbenv-version
public/
4 changes: 0 additions & 4 deletions Gemfile
@@ -1,7 +1,3 @@
source :rubygems

gem 'rake'
gem 'jasmine'

# requires Qt, so don't force it on everyone
gem 'jasmine-headless-webkit' if ENV['CI']
41 changes: 0 additions & 41 deletions Gemfile.lock
@@ -1,51 +1,10 @@
GEM
remote: http://rubygems.org/
specs:
childprocess (0.2.0)
ffi (~> 1.0.6)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.2)
diff-lcs (1.1.2)
execjs (1.2.9)
multi_json (~> 1.0)
ffi (1.0.9)
jasmine (1.0.2.1)
json_pure (>= 1.4.3)
rack (>= 1.1)
rspec (>= 1.3.1)
selenium-webdriver (>= 0.1.3)
jasmine-core (1.1.0.rc4)
jasmine-headless-webkit (0.6.3)
coffee-script (>= 2.2)
jasmine-core (~> 1.1.beta)
multi_json
rainbow
json_pure (1.5.3)
multi_json (1.0.3)
rack (1.3.2)
rainbow (1.1.1)
rake (0.9.2.2)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
rubyzip (0.9.4)
selenium-webdriver (2.3.2)
childprocess (>= 0.1.9)
ffi (>= 1.0.7)
json_pure
rubyzip

PLATFORMS
ruby

DEPENDENCIES
jasmine
jasmine-headless-webkit
rake
25 changes: 25 additions & 0 deletions Guardfile
@@ -0,0 +1,25 @@
require 'guard/guard'

class ::Guard::PhantomJS < ::Guard::Guard
def run_all
run_on_change([])
end

def run_on_change(paths)
passed = system @options[:runner], *paths

::Guard::Notifier.notify \
(passed ? 'passed' : 'failed'),
:title => 'Zepto test results',
:image => (passed ? :success : :failed)
end
end

guard :phantomjs, :runner => 'script/test' do
watch(%r{src/(.+)\.js$}) do |m|
"test/#{m[1]}.html"
end
watch(%r{test/(.+)\.html$}) do |m|
m[0] unless m[1].include? '_functional'
end
end
2 changes: 1 addition & 1 deletion MIT-LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2010, 2011 Thomas Fuchs
Copyright (c) 2010-2012 Thomas Fuchs
http://zeptojs.com/

Permission is hereby granted, free of charge, to any person obtaining
Expand Down