compass-jquery-plugin 0.3.0.beta.24 → 0.3.0.beta.25
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +10 -9
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +292 -288
- data/gem_tasks/ical.rake +85 -0
- data/gem_tasks/jqtouch.rake +1 -25
- data/gem_tasks/jrails.rake +127 -94
- data/gem_tasks/jstree.rake +2 -1
- data/gem_tasks/mobile.rake +33 -2
- data/gem_tasks/rubygems.rake +1 -1
- data/gem_tasks/tools.rake +66 -0
- data/lib/{compiler.jar → google-compiler-20100917.jar} +0 -0
- data/lib/handle_js_files.rb +27 -30
- data/lib/jquery/ical.rb +7 -0
- data/lib/jquery/{jqical → ical}/calendar.rb +5 -5
- data/lib/jquery/{jqical → ical}/event.rb +117 -117
- data/lib/jquery/{jqical → ical}/helpers/ui_event_helper.rb +1 -1
- data/lib/jquery/tools.rb +2 -0
- data/lib/js.jar +0 -0
- data/lib/jslint-check.js +36 -0
- data/lib/jslint.js +5500 -0
- data/templates/dynatree/jquery.dynatree.js +1170 -784
- data/templates/dynatree/jquery.dynatree.min.js +77 -67
- data/templates/emulators/emulators/blackberry.landscape.scss +1 -0
- data/templates/emulators/emulators/blackberry.portrait.scss +2 -2
- data/templates/emulators/emulators/blackberry.torch.portrait.png +0 -0
- data/templates/emulators/emulators/iphone.landscape.scss +1 -0
- data/templates/emulators/emulators/iphone.portrait.png +0 -0
- data/templates/emulators/emulators/iphone.portrait.scss +2 -1
- data/templates/emulators/emulators/palm.landscape.scss +1 -0
- data/templates/emulators/emulators/palm.portrait.scss +3 -2
- data/templates/emulators/emulators/palm.pre.portrait.png +0 -0
- data/templates/{jqical → ical}/app/views/shared/_ui_event_for.js.haml +0 -0
- data/templates/ical/config/initializers/ical.rb +7 -0
- data/templates/{jqical/jquery.jqical.js → ical/jquery.ical.js} +0 -0
- data/templates/{jqical/jquery.jqical.min.js → ical/jquery.ical.min.js} +0 -0
- data/templates/{jqical/jquery/jqical.scss → ical/jquery/ical.scss} +1 -1
- data/templates/{jqical/jquery/jqical → ical/jquery/ical}/calendar.png +0 -0
- data/templates/{jqical/jquery/jqical → ical/jquery/ical}/clock.png +0 -0
- data/templates/ical/manifest.rb +10 -0
- data/templates/jqtouch/config/initializers/jqtouch.rb +1 -1
- data/templates/jqtouch/manifest.rb +0 -261
- data/templates/jrails/config/initializers/jrails.rb +3 -3
- data/templates/jrails/{jquery-1.4.3.js → jquery-1.4.4.js} +102 -47
- data/templates/jrails/jquery-1.4.4.min.js +152 -0
- data/templates/jrails/lib/tasks/haml.rake +55 -0
- data/templates/jrails/manifest.rb +4 -2
- data/templates/jstree/jquery.jstree.js +148 -64
- data/templates/jstree/jquery.jstree.min.js +219 -215
- data/templates/mobile/config/initializers/mobile.rb +1 -1
- data/templates/jqtouch/jquery/touch/glyphish/Read me first - license.txt b/data/templates/mobile/glyphish/Read me first - → license.txt +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/01-refresh.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/02-redo.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/03-loopback.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/04-squiggle.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/05-shuffle.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/06-magnifying-glass.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/07-map-marker.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/08-chat.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/09-chat2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/10-medical.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/100-coffee.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/101-gameplan.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/102-walk.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/103-map.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/104-index-cards.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/105-piano.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/106-sliders.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/107-widescreen.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/108-badge.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/109-chicken.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/11-clock.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/110-bug.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/111-user.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/112-group.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/113-navigation.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/114-balloon.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/115-bow-and-arrow.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/116-controller.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/117-todo.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/118-coathanger.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/119-piggybank.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/12-eye.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/120-headphones.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/121-lanscape.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/122-stats.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/123-id-card.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/124-bullhorn.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/125-food.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/126-moon.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/127-sock.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/128-bone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/129-golf.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/13-target.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/130-dice.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/14-tag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/15-tags.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/16-line-chart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/17-bar-chart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/18-envelope.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/19-gear.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/20-gear2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/21-skull.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/22-skull-n-crossbones.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/23-bird.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/24-gift.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/25-weather.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/26-bandaid.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/27-planet.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/28-star.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/29-heart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/30-key.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/31-ipod.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/32-iphone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/33-cabinet.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/34-coffee.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/35-shopping-bag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/36-toolbox.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/37-suitcase.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/38-airplane.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/39-spraycan.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/40-inbox.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/41-picture-frame.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/42-photos.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/43-film-roll.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/44-shoebox.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/45-movie1.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/46-movie2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/47-fuel.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/48-fork-and-knife.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/49-battery.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/50-beaker.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/51-outlet.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/52-pinetree.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/53-house.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/54-lock.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/55-network.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/56-cloud.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/57-download.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/58-bookmark.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/59-flag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/60-signpost.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/61-brightness.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/62-contrast.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/63-runner.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/64-zap.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/65-note.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/66-microphone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/67-tshirt.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/68-paperclip.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/69-display.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/70-tv.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/71-compass.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/72-pin.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/73-radar.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/74-location.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/75-phone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/76-baby.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/77-ekg.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/78-stopwatch.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/79-medical-bag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/80-shopping-cart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/81-dashboard.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/82-dogpaw.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/83-calendar.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/84-lightbulb.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/85-trophy.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/86-camera.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/87-wineglass.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/88-beermug.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/89-dumbbell.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/90-lifebuoy.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/91-beaker2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/92-testtube.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/93-thermometer.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/94-pill.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/95-equalizer.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/96-book.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/97-puzzle.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/98-palette.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/icons/99-umbrella.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/01-refresh.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/02-redo.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/03-loopback.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/04-squiggle.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/05-shuffle.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/06-magnifying-glass.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/07-map-marker.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/08-chat.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/09-chat2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/10-medical.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/100-coffee.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/101-gameplan.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/102-walk.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/103-map.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/104-index-cards.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/105-piano.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/106-sliders.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/107-widescreen.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/108-badge.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/109-chicken.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/11-clock.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/110-bug.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/111-user.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/112-group.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/113-navigation.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/114-balloon.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/115-bow-and-arrow.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/116-controller.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/117-todo.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/118-coathanger.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/119-piggybank.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/12-eye.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/120-headphones.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/121-lanscape.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/122-stats.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/123-id-card.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/124-bullhorn.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/125-food.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/126-moon.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/127-sock.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/128-bone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/129-golf.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/13-target.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/130-dice.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/14-tag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/15-tags.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/16-line-chart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/17-bar-chart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/18-envelope.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/19-gear.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/20-gear2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/21-skull.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/22-skull-n-crossbones.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/23-bird.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/24-gift.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/25-weather.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/26-bandaid.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/27-planet.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/28-star.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/29-heart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/30-key.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/31-ipod.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/32-iphone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/33-cabinet.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/34-coffee.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/35-shopping-bag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/36-toolbox.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/37-suitcase.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/38-airplane.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/39-spraycan.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/40-inbox.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/41-picture-frame.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/42-photos.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/43-film-roll.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/44-shoebox.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/45-movie1.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/46-movie2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/47-fuel.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/48-fork-and-knife.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/49-battery.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/50-beaker.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/51-outlet.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/52-pinetree.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/53-house.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/54-lock.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/55-network.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/56-cloud.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/57-download.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/58-bookmark.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/59-flag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/60-signpost.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/61-brightness.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/62-contrast.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/63-runner.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/64-zap.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/65-note.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/66-microphone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/67-tshirt.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/68-paperclip.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/69-display.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/70-tv.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/71-compass.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/72-pin.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/73-radar.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/74-location.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/75-phone.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/76-baby.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/77-ekg.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/78-stopwatch.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/79-medical-bag.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/80-shopping-cart.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/81-dashboard.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/82-dogpaw.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/83-calendar.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/84-lightbulb.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/85-trophy.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/86-camera.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/87-wineglass.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/88-beermug.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/89-dumbbell.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/90-lifebuoy.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/91-beaker2.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/92-testtube.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/93-thermometer.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/94-pill.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/95-equalizer.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/96-book.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/97-puzzle.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/98-palette.png +0 -0
- data/templates/{jqtouch/jquery/touch → mobile}/glyphish/mini-icons/99-umbrella.png +0 -0
- data/templates/mobile/jquery.mobile.js +380 -179
- data/templates/mobile/jquery.mobile.min.js +3 -3
- data/templates/mobile/jquery/mobile/_base.scss +9 -10
- data/templates/mobile/jquery/mobile/default/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/default/icons-36-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/ajax-loader.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-18-white.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-black.png +0 -0
- data/templates/mobile/jquery/mobile/valencia/icons-36-white.png +0 -0
- data/templates/mobile/lib/tasks/jquery.mobile.rake +106 -0
- data/templates/mobile/manifest.rb +262 -2
- data/templates/{jqtools/config/initializers/jqtools.rb → tools/config/initializers/tools.rb} +2 -2
- data/templates/{jqtools → tools}/jquery.tools.js +0 -0
- data/templates/{jqtools → tools}/jquery.tools.min.js +0 -0
- data/templates/tools/lib/tasks/jquery.tools.rake +43 -0
- data/templates/tools/manifest.rb +7 -0
- metadata +293 -289
- data/gem_tasks/jqical.rake +0 -86
- data/gem_tasks/jqtools.rake +0 -60
- data/lib/jquery/jqical.rb +0 -7
- data/lib/jquery/jqtools.rb +0 -2
- data/templates/jqical/config/initializers/jqical.rb +0 -7
- data/templates/jqical/manifest.rb +0 -10
- data/templates/jqtools/manifest.rb +0 -6
- data/templates/jrails/jquery-1.4.3.min.js +0 -152
- data/templates/mobile/jquery/mobile/default/ajax-loader.gif +0 -0
- data/templates/mobile/jquery/mobile/valencia/ajax-loader.gif +0 -0
data/gem_tasks/ical.rake
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'lib/handle_js_files'
|
3
|
+
|
4
|
+
ICAL_SRC = File.join(GEM_ROOT, 'src', 'ical')
|
5
|
+
ICAL_SRC_IMAGES = File.join(ICAL_SRC, 'images')
|
6
|
+
|
7
|
+
ICAL_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'ical')
|
8
|
+
ICAL_DEST_STYLESHEETS = File.join(ICAL_DEST_TEMPLATES, 'jquery')
|
9
|
+
ICAL_DEST_IMAGES = File.join(ICAL_DEST_STYLESHEETS, 'ical')
|
10
|
+
ICAL_DEST_CONFIG = File.join(ICAL_DEST_TEMPLATES, 'config', 'initializers')
|
11
|
+
ICAL_DEST_VIEWS = File.join(ICAL_DEST_TEMPLATES, 'app', 'views', 'shared')
|
12
|
+
|
13
|
+
ICAL_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/ical.rake\n# Install with: compass install jquery/ical\n\n"
|
14
|
+
ICAL_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/ical.rake\n\n"
|
15
|
+
|
16
|
+
all_scripts = [
|
17
|
+
'js/anytime.js',
|
18
|
+
'js/anytimetz.js',
|
19
|
+
'js/fullcalendar.js'
|
20
|
+
].collect {|filename| File.read(File.join(ICAL_SRC, filename))}.join "\n\n"
|
21
|
+
|
22
|
+
all_stylesheets = [
|
23
|
+
'anytime.css',
|
24
|
+
'fullcalendar.css'
|
25
|
+
].collect {|filename| File.read(File.join(ICAL_SRC, 'css', filename))}.join "\n\n"
|
26
|
+
|
27
|
+
namespace :build do
|
28
|
+
desc 'Build the stylesheets and templates for ical.'
|
29
|
+
task :ical do
|
30
|
+
|
31
|
+
FileUtils.remove_dir ICAL_DEST_TEMPLATES if File.exists? ICAL_DEST_TEMPLATES
|
32
|
+
FileUtils.mkdir_p(ICAL_DEST_CONFIG)
|
33
|
+
FileUtils.mkdir_p(ICAL_DEST_VIEWS)
|
34
|
+
|
35
|
+
open File.join(ICAL_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
|
36
|
+
manifest.print ICAL_MESSAGE1
|
37
|
+
|
38
|
+
Dir.foreach File.join(ICAL_SRC, 'app', 'views', 'shared') do |file|
|
39
|
+
next unless /\.haml$/ =~ file
|
40
|
+
html = File.read File.join(ICAL_SRC, 'app', 'views', 'shared', file)
|
41
|
+
open File.join(ICAL_DEST_VIEWS, file), 'w' do |f|
|
42
|
+
f.print(html)
|
43
|
+
end
|
44
|
+
manifest.print "file 'app/views/shared/#{file}'\n"
|
45
|
+
end
|
46
|
+
|
47
|
+
open File.join(ICAL_DEST_CONFIG, 'ical.rb'), 'w' do |f|
|
48
|
+
f.print(File.read(File.join(ICAL_SRC, 'config', 'initializers', 'ical.rb')))
|
49
|
+
end
|
50
|
+
manifest.print "file 'config/initializers/ical.rb'\n"
|
51
|
+
|
52
|
+
open File.join(ICAL_DEST_TEMPLATES, 'jquery.ical.js'), 'w' do |f|
|
53
|
+
f.print concat_files(all_scripts)
|
54
|
+
end
|
55
|
+
manifest.print "javascript 'jquery.ical.js'\n"
|
56
|
+
|
57
|
+
open File.join(ICAL_DEST_TEMPLATES, 'jquery.ical.min.js'), 'w' do |f|
|
58
|
+
f.print compress_js(all_scripts, "google")
|
59
|
+
end
|
60
|
+
manifest.print "javascript 'jquery.ical.min.js'\n"
|
61
|
+
|
62
|
+
|
63
|
+
FileUtils.mkdir_p File.join(ICAL_DEST_STYLESHEETS)
|
64
|
+
open File.join(ICAL_DEST_STYLESHEETS, 'ical.scss'), 'w' do |f|
|
65
|
+
sass = ICAL_MESSAGE2
|
66
|
+
IO.popen("sass-convert -F css -T scss", 'r+') { |ff| ff.print(all_stylesheets); ff.close_write; sass += ff.read }
|
67
|
+
f.print sass
|
68
|
+
end
|
69
|
+
manifest.print "stylesheet 'jquery/ical.scss'\n"
|
70
|
+
|
71
|
+
# Images
|
72
|
+
|
73
|
+
# Copy the images directory
|
74
|
+
FileUtils.mkdir_p File.join(ICAL_DEST_IMAGES)
|
75
|
+
src_dir = ICAL_SRC_IMAGES
|
76
|
+
dest_dir = ICAL_DEST_IMAGES
|
77
|
+
|
78
|
+
Dir.foreach(src_dir) do |image|
|
79
|
+
next unless /\.png$/ =~ image
|
80
|
+
FileUtils.cp(File.join(src_dir, image), dest_dir)
|
81
|
+
manifest.print "image 'jquery/ical/#{image}'\n"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
data/gem_tasks/jqtouch.rake
CHANGED
@@ -142,31 +142,7 @@ namespace :build do
|
|
142
142
|
FileUtils.cp(File.join(src_dir, image), dest_dir)
|
143
143
|
manifest.print "image 'jquery/touch/sw/#{image}'\n"
|
144
144
|
end
|
145
|
-
|
146
|
-
# glyphish Images
|
147
|
-
FileUtils.mkdir_p(File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'icons'))
|
148
|
-
|
149
|
-
src_dir = File.join(JQTOUCH_SRC_IMAGES, 'glyphish', 'icons')
|
150
|
-
dest_dir = File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'icons')
|
151
|
-
Dir.foreach(src_dir) do |image|
|
152
|
-
next if /^\./ =~ image
|
153
|
-
FileUtils.cp(File.join(src_dir, image), dest_dir)
|
154
|
-
manifest.print "image 'jquery/touch/glyphish/icons/#{image}'\n"
|
155
|
-
end
|
156
|
-
FileUtils.mkdir_p(File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'mini-icons'))
|
157
|
-
src_dir = File.join(JQTOUCH_SRC_IMAGES, 'glyphish', 'icons')
|
158
|
-
dest_dir = File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'mini-icons')
|
159
|
-
Dir.foreach(src_dir) do |image|
|
160
|
-
next if /^\./ =~ image
|
161
|
-
FileUtils.cp(File.join(src_dir, image), dest_dir)
|
162
|
-
manifest.print "image 'jquery/touch/glyphish/mini-icons/#{image}'\n"
|
163
|
-
end
|
164
|
-
|
165
|
-
open File.join(JQTOUCH_DEST_IMAGES, 'glyphish', 'Read me first - license.txt'), 'w' do |f|
|
166
|
-
f.print(File.read(File.join(JQTOUCH_SRC_IMAGES, 'glyphish', 'Read me first - license.txt')))
|
167
|
-
end
|
168
|
-
manifest.print "image 'jquery/touch/glyphish/Read me first - license.txt'\n"
|
169
|
-
|
145
|
+
|
170
146
|
# jQuery jQTouch Themes
|
171
147
|
|
172
148
|
FileUtils.mkdir_p(JQTOUCH_DEST_THEMES)
|
data/gem_tasks/jrails.rake
CHANGED
@@ -3,82 +3,115 @@ require 'lib/handle_js_files'
|
|
3
3
|
require 'lib/jquery.ui'
|
4
4
|
|
5
5
|
# Compass generator for jrails 0.1+
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
SRC_JQUERY_SCRIPTS = SRC_JQUERY + "/*.js"
|
10
|
-
SRC_JQUERY_UI = File.join(GEM_ROOT, 'src', 'jrails', 'jquery.ui.1.8.6')
|
11
|
-
SRC_JQUERY_UI_SCRIPTS = File.join(SRC_JQUERY_UI, 'js') + "/*.js"
|
12
|
-
SRC_JQUERY_UI_THEMES = File.join(SRC_JQUERY_UI, 'themes')
|
13
|
-
SRC_JQUERY_UI_TRANSLATIONS = File.join(SRC_JQUERY_UI, 'js', 'i18n') #+ "/*.js"
|
14
|
-
SRC_SPARKLINES_SCRIPTS = File.join(GEM_ROOT, 'src', 'jrails', 'sparklines') + "/*.js"
|
15
|
-
SRC_JHAML_SCRIPTS = File.join(GEM_ROOT, 'src', 'jrails', 'jquery-haml') + "/*.js"
|
16
|
-
SRC_HAML_JS_SCRIPTS = File.join(GEM_ROOT, 'src', 'jrails', 'haml-js') + "/*.js"
|
17
|
-
SRC_FLASH = File.join(GEM_ROOT, 'src', 'jrails', 'flash_messages')
|
18
|
-
SRC_FLASH_JS_SCRIPTS = SRC_FLASH + "/*.js"
|
19
|
-
SRC_FLASH_IMAGES = File.join(SRC_FLASH, 'images')
|
6
|
+
SRC = File.join(GEM_ROOT, 'src', 'jrails')
|
7
|
+
JRAILS_SRC = File.join(SRC, 'jrails')
|
8
|
+
JRAILS_SRC_SCRIPTS = JRAILS_SRC + "/*.js"
|
20
9
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
10
|
+
JQUERY_SRC = File.join(SRC, 'jquery')
|
11
|
+
|
12
|
+
JQUERY_UI_SRC = File.join(SRC, 'jquery.ui')
|
13
|
+
JQUERY_UI_SRC_SCRIPTS = File.join(JQUERY_UI_SRC, 'js') + "/*.js"
|
14
|
+
JQUERY_UI_SRC_THEMES = File.join(JQUERY_UI_SRC, 'themes')
|
15
|
+
JQUERY_UI_SRC_TRANSLATIONS = File.join(JQUERY_UI_SRC, 'js', 'i18n') #+ "/*.js"
|
16
|
+
|
17
|
+
SPARKLINES_SRC_SCRIPTS = File.join(SRC, 'sparklines') + "/*.js"
|
18
|
+
|
19
|
+
JHAML_SRC_SCRIPTS = File.join(SRC, 'jquery-haml') + "/*.js"
|
20
|
+
|
21
|
+
HAML_SRC_JS_SCRIPTS = File.join(SRC, 'haml-js') + "/*.js"
|
22
|
+
|
23
|
+
FLASH_SRC = File.join(SRC, 'flash_messages')
|
24
|
+
FLASH_SRC_JS_SCRIPTS = FLASH_SRC + "/*.js"
|
25
|
+
FLASH_SRC_IMAGES = File.join(FLASH_SRC, 'images')
|
26
|
+
|
27
|
+
JRAILS_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jrails')
|
28
|
+
JRAILS_DEST_SIZZLE = File.join(JRAILS_DEST_TEMPLATES, 'sizzle')
|
29
|
+
JRAILS_DEST_TRANSLATIONS = File.join(JRAILS_DEST_TEMPLATES, 'i18n', 'jquery.ui')
|
30
|
+
JRAILS_DEST_THEMES = File.join(JRAILS_DEST_TEMPLATES, 'jquery', 'ui')
|
31
|
+
JRAILS_DEST_IMAGES = File.join(JRAILS_DEST_TEMPLATES, 'jquery', 'ui')
|
32
|
+
|
33
|
+
FLASH_DEST_STYLESHEETS = File.join(JRAILS_DEST_TEMPLATES, 'partials')
|
34
|
+
FLASH_DEST_IMAGES = File.join(JRAILS_DEST_IMAGES, 'flash_messages')
|
27
35
|
|
28
36
|
namespace :build do
|
29
37
|
desc 'Build the stylesheets and templates for jRails.'
|
30
38
|
task :jrails do
|
31
39
|
|
32
|
-
FileUtils.remove_dir
|
33
|
-
FileUtils.mkdir_p(File.join(
|
34
|
-
FileUtils.mkdir_p(File.join(
|
40
|
+
FileUtils.remove_dir JRAILS_DEST_TEMPLATES if File.exists? JRAILS_DEST_TEMPLATES
|
41
|
+
FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers'))
|
42
|
+
FileUtils.mkdir_p(File.join(JRAILS_DEST_TEMPLATES, 'lib', 'tasks'))
|
43
|
+
FileUtils.mkdir_p(File.join(JRAILS_DEST_THEMES))
|
35
44
|
|
36
|
-
open File.join(
|
37
|
-
|
45
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'manifest.rb'), 'w' do |manifest|
|
46
|
+
|
38
47
|
# jRails
|
39
|
-
|
40
48
|
manifest.print JRAILS_MESSAGE1
|
41
49
|
|
42
|
-
open File.join(
|
43
|
-
f.print(File.read(File.join(
|
50
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'config', 'initializers', 'jrails.rb'), 'w' do |f|
|
51
|
+
f.print(File.read(File.join(JRAILS_SRC, 'config', 'initializers', 'jrails.rb')))
|
44
52
|
end
|
45
53
|
manifest.print "file 'config/initializers/jrails.rb'\n"
|
54
|
+
|
55
|
+
manifest.print "file 'lib/tasks/haml.rake'\n"
|
56
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'lib', 'tasks', 'haml.rake'), 'w' do |f|
|
57
|
+
f.print(File.read(File.join(SRC, 'lib', 'tasks', 'haml.rake')))
|
58
|
+
end
|
59
|
+
manifest.print "file 'lib/tasks/haml.rake'\n"
|
46
60
|
|
47
|
-
open File.join(
|
48
|
-
f.print concat_files(all_files(
|
61
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jrails.js'), 'w' do |f|
|
62
|
+
f.print concat_files(all_files(JRAILS_SRC_SCRIPTS))
|
49
63
|
end
|
50
64
|
manifest.print "javascript 'jrails.js'\n"
|
51
65
|
|
52
|
-
open File.join(
|
53
|
-
f.print compress_js(all_files(
|
66
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jrails.min.js'), 'w' do |f|
|
67
|
+
f.print compress_js(all_files(JRAILS_SRC_SCRIPTS), "google")
|
54
68
|
end
|
55
69
|
manifest.print "javascript 'jrails.min.js'\n"
|
56
|
-
|
70
|
+
|
57
71
|
# jQuery 1.4
|
58
|
-
|
59
|
-
|
60
|
-
|
72
|
+
|
73
|
+
all_jquery_scripts = [
|
74
|
+
'intro.js',
|
75
|
+
'core.js',
|
76
|
+
'support.js',
|
77
|
+
'data.js',
|
78
|
+
'queue.js',
|
79
|
+
'attributes.js',
|
80
|
+
'event.js',
|
81
|
+
'selector.js',
|
82
|
+
'traversing.js',
|
83
|
+
'manipulation.js',
|
84
|
+
'css.js',
|
85
|
+
'ajax.js',
|
86
|
+
'effects.js',
|
87
|
+
'offset.js',
|
88
|
+
'dimensions.js',
|
89
|
+
'outro.js'
|
90
|
+
].collect {|filename| File.read(File.join(JQUERY_SRC, 'js', filename))}.join "\n\n"
|
91
|
+
|
92
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-1.4.4.js'), 'w' do |f|
|
93
|
+
f.print concat_files(all_jquery_scripts)
|
61
94
|
end
|
62
|
-
manifest.print "javascript 'jquery-1.4.
|
95
|
+
manifest.print "javascript 'jquery-1.4.4.js'\n"
|
63
96
|
|
64
|
-
open File.join(
|
65
|
-
f.print compress_js(
|
97
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-1.4.4.min.js'), 'w' do |f|
|
98
|
+
f.print compress_js(all_jquery_scripts, "google")
|
66
99
|
end
|
67
|
-
manifest.print "javascript 'jquery-1.4.
|
68
|
-
|
100
|
+
manifest.print "javascript 'jquery-1.4.4.min.js'\n"
|
101
|
+
|
69
102
|
# jQuery 1.4 Compat 1.3
|
70
103
|
|
71
104
|
['compat-1.3'].each do |path|
|
72
|
-
Dir.foreach File.join(
|
105
|
+
Dir.foreach File.join(JQUERY_SRC, path) do |file|
|
73
106
|
next unless /\.js$/ =~ file
|
74
|
-
js = File.read File.join(
|
107
|
+
js = File.read File.join(JQUERY_SRC, path, file)
|
75
108
|
manifest.print "javascript '#{file}'\n"
|
76
|
-
open File.join(
|
109
|
+
open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
|
77
110
|
f.write js
|
78
111
|
end
|
79
112
|
file.gsub!(/\.js$/, '.min.js')
|
80
113
|
manifest.print "javascript '#{file}'\n"
|
81
|
-
open File.join(
|
114
|
+
open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
|
82
115
|
f.write compress_js(js, "google")
|
83
116
|
end
|
84
117
|
end
|
@@ -87,39 +120,39 @@ namespace :build do
|
|
87
120
|
# jQuery 1.4 Plugins
|
88
121
|
|
89
122
|
['plugins'].each do |path|
|
90
|
-
Dir.foreach File.join(
|
123
|
+
Dir.foreach File.join(JQUERY_SRC, path) do |file|
|
91
124
|
|
92
125
|
if /\.css$/ =~ file
|
93
|
-
css = File.read File.join(
|
126
|
+
css = File.read File.join(JQUERY_SRC, path, file)
|
94
127
|
sass = ''
|
95
128
|
IO.popen("sass-convert -F css -T scss", 'r+') { |f| f.print(css); f.close_write; sass = f.read }
|
96
129
|
file.gsub!(/^jquery\./,'').gsub!(/\.css$/, '.scss')
|
97
|
-
open File.join(
|
130
|
+
open File.join(JRAILS_DEST_THEMES, file), 'w' do |f|
|
98
131
|
f.write sass
|
99
132
|
end
|
100
133
|
manifest.print "stylesheet 'jquery/ui/#{file}'\n"
|
101
134
|
end
|
102
135
|
|
103
136
|
next unless /\.js$/ =~ file
|
104
|
-
js = File.read File.join(
|
137
|
+
js = File.read File.join(JQUERY_SRC, path, file)
|
105
138
|
manifest.print "javascript '#{file}'\n"
|
106
|
-
open File.join(
|
139
|
+
open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
|
107
140
|
f.write js
|
108
141
|
end
|
109
142
|
file.gsub!(/\.js$/, '.min.js')
|
110
143
|
manifest.print "javascript '#{file}'\n"
|
111
|
-
open File.join(
|
144
|
+
open File.join(JRAILS_DEST_TEMPLATES, file), 'w' do |f|
|
112
145
|
f.write compress_js(js, "google")
|
113
146
|
end
|
114
147
|
end
|
115
148
|
end
|
116
149
|
|
117
|
-
Dir.foreach File.join(
|
150
|
+
Dir.foreach File.join(JQUERY_SRC, 'plugins', 'images') do |plugin|
|
118
151
|
next if /^\./ =~ plugin
|
119
152
|
|
120
153
|
# Copy the theme images directory
|
121
|
-
src_dir = File.join(
|
122
|
-
dest_dir = File.join(
|
154
|
+
src_dir = File.join(JQUERY_SRC, 'plugins', 'images', plugin)
|
155
|
+
dest_dir = File.join(JRAILS_DEST_IMAGES, plugin)
|
123
156
|
FileUtils.mkdir_p dest_dir
|
124
157
|
|
125
158
|
Dir.foreach(src_dir) do |image|
|
@@ -133,7 +166,7 @@ namespace :build do
|
|
133
166
|
|
134
167
|
# Scripts
|
135
168
|
|
136
|
-
all_jquery_ui_scripts = [
|
169
|
+
all_jquery_ui_scripts = [
|
137
170
|
'jquery-ui.js',
|
138
171
|
'jquery.effects.blind.js',
|
139
172
|
'jquery.effects.bounce.js',
|
@@ -168,14 +201,14 @@ namespace :build do
|
|
168
201
|
'jquery.ui.sortable.js',
|
169
202
|
'jquery.ui.tabs.js',
|
170
203
|
'jquery.ui.widget.js'
|
171
|
-
].collect {|filename| File.read(File.join(
|
204
|
+
].collect {|filename| File.read(File.join(JQUERY_UI_SRC, 'js', filename))}.join "\n\n"
|
172
205
|
|
173
|
-
open File.join(
|
206
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.6.js'), 'w' do |f|
|
174
207
|
f.print concat_files(all_jquery_ui_scripts)
|
175
208
|
end
|
176
209
|
manifest.print "javascript 'jquery-ui-1.8.6.js'\n"
|
177
210
|
|
178
|
-
open File.join(
|
211
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery-ui-1.8.6.min.js'), 'w' do |f|
|
179
212
|
f.print compress_js(all_jquery_ui_scripts, "google")
|
180
213
|
end
|
181
214
|
manifest.print "javascript 'jquery-ui-1.8.6.min.js'\n"
|
@@ -183,19 +216,19 @@ namespace :build do
|
|
183
216
|
# jQuery UI locales
|
184
217
|
|
185
218
|
['i18n'].each do |path|
|
186
|
-
FileUtils.mkdir_p(
|
187
|
-
Dir.foreach
|
219
|
+
FileUtils.mkdir_p(JRAILS_DEST_TRANSLATIONS)
|
220
|
+
Dir.foreach JQUERY_UI_SRC_TRANSLATIONS do |file|
|
188
221
|
next unless /^jquery.ui\.datepicker-(.+)\.js$/ =~ file
|
189
222
|
lang = file
|
190
|
-
js = File.read File.join(
|
223
|
+
js = File.read File.join(JQUERY_UI_SRC_TRANSLATIONS, file)
|
191
224
|
file.gsub!(/^jquery.ui\./,'')
|
192
225
|
manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
|
193
|
-
open File.join(
|
226
|
+
open File.join(JRAILS_DEST_TRANSLATIONS, file), 'w' do |f|
|
194
227
|
f.write js
|
195
228
|
end
|
196
229
|
file.gsub!(/\.js$/, '.min.js')
|
197
230
|
manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
|
198
|
-
open File.join(
|
231
|
+
open File.join(JRAILS_DEST_TRANSLATIONS, file), 'w' do |f|
|
199
232
|
f.write compress_js(js, "google")
|
200
233
|
end
|
201
234
|
end
|
@@ -203,8 +236,8 @@ namespace :build do
|
|
203
236
|
|
204
237
|
# jQuery UI Themes
|
205
238
|
|
206
|
-
ui = JqueryUiTheme.new(File.join(
|
207
|
-
ui.convert_css(File.join(
|
239
|
+
ui = JqueryUiTheme.new(File.join(JQUERY_UI_SRC_THEMES, 'base'))
|
240
|
+
ui.convert_css(File.join(JRAILS_DEST_THEMES, '_partials'))
|
208
241
|
|
209
242
|
all_jquery_ui_stylesheets = [
|
210
243
|
'_core.scss',
|
@@ -221,27 +254,27 @@ namespace :build do
|
|
221
254
|
'_slider.scss',
|
222
255
|
'_tabs.scss',
|
223
256
|
'_theme.scss'
|
224
|
-
].collect {|filename| File.read(File.join(
|
257
|
+
].collect {|filename| File.read(File.join(JRAILS_DEST_THEMES, '_partials', filename))}.join "\n\n"
|
225
258
|
|
226
|
-
open File.join(
|
259
|
+
open File.join(JRAILS_DEST_THEMES, '_theme.scss'), 'w' do |f|
|
227
260
|
sass = JRAILS_MESSAGE2
|
228
261
|
f.print(all_jquery_ui_stylesheets)
|
229
262
|
f.print sass
|
230
|
-
FileUtils.rm_r(File.join(
|
263
|
+
FileUtils.rm_r(File.join(JRAILS_DEST_THEMES, '_partials'))
|
231
264
|
end
|
232
265
|
|
233
266
|
manifest.print "stylesheet 'jquery/ui/_theme.scss'\n"
|
234
267
|
|
235
|
-
Dir.foreach
|
268
|
+
Dir.foreach JQUERY_UI_SRC_THEMES do |theme|
|
236
269
|
next if /^\./ =~ theme
|
237
270
|
|
238
271
|
# Convert the stylesheet
|
239
272
|
manifest.print "stylesheet 'jquery/ui/#{theme}.scss'\n"
|
240
|
-
ui.convert_theme(theme, File.join(
|
273
|
+
ui.convert_theme(theme, File.join(JQUERY_UI_SRC_THEMES, theme), File.join(JRAILS_DEST_THEMES))
|
241
274
|
|
242
275
|
# Copy the theme images directory
|
243
|
-
src_dir = File.join(
|
244
|
-
dest_dir = File.join(
|
276
|
+
src_dir = File.join(JQUERY_UI_SRC_THEMES, theme, 'images')
|
277
|
+
dest_dir = File.join(JRAILS_DEST_IMAGES, theme)
|
245
278
|
FileUtils.mkdir_p dest_dir
|
246
279
|
|
247
280
|
Dir.foreach(src_dir) do |image|
|
@@ -253,63 +286,63 @@ namespace :build do
|
|
253
286
|
|
254
287
|
# jQuery Sparklines
|
255
288
|
|
256
|
-
open File.join(
|
257
|
-
f.print concat_files(all_files(
|
289
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery.sparkline.js'), 'w' do |f|
|
290
|
+
f.print concat_files(all_files(SPARKLINES_SRC_SCRIPTS))
|
258
291
|
end
|
259
292
|
manifest.print "javascript 'jquery.sparkline.js'\n"
|
260
293
|
|
261
|
-
open File.join(
|
262
|
-
f.print compress_js(all_files(
|
294
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery.sparkline.min.js'), 'w' do |f|
|
295
|
+
f.print compress_js(all_files(SPARKLINES_SRC_SCRIPTS), "google")
|
263
296
|
end
|
264
297
|
manifest.print "javascript 'jquery.sparkline.min.js'\n"
|
265
298
|
|
266
299
|
# jQuery haml
|
267
300
|
|
268
|
-
open File.join(
|
269
|
-
f.print concat_files(all_files(
|
301
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery.haml.js'), 'w' do |f|
|
302
|
+
f.print concat_files(all_files(JHAML_SRC_SCRIPTS))
|
270
303
|
end
|
271
304
|
manifest.print "javascript 'jquery.haml.js'\n"
|
272
305
|
|
273
|
-
open File.join(
|
274
|
-
f.print compress_js(all_files(
|
306
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery.haml.min.js'), 'w' do |f|
|
307
|
+
f.print compress_js(all_files(JHAML_SRC_SCRIPTS), "google")
|
275
308
|
end
|
276
309
|
manifest.print "javascript 'jquery.haml.min.js'\n"
|
277
310
|
|
278
311
|
# HAML Js
|
279
|
-
open File.join(
|
280
|
-
f.print concat_files(all_files(
|
312
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'haml.js'), 'w' do |f|
|
313
|
+
f.print concat_files(all_files(HAML_SRC_JS_SCRIPTS))
|
281
314
|
end
|
282
315
|
manifest.print "javascript 'haml.js'\n"
|
283
316
|
|
284
|
-
open File.join(
|
285
|
-
f.print compress_js(all_files(
|
317
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'haml.min.js'), 'w' do |f|
|
318
|
+
f.print compress_js(all_files(JHAML_SRC_SCRIPTS), "google")
|
286
319
|
end
|
287
320
|
manifest.print "javascript 'haml.min.js'\n"
|
288
321
|
|
289
322
|
#Flash Messages
|
290
|
-
open File.join(
|
291
|
-
f.print concat_files(all_files(
|
323
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery.flash_messages.js'), 'w' do |f|
|
324
|
+
f.print concat_files(all_files(FLASH_SRC_JS_SCRIPTS))
|
292
325
|
end
|
293
326
|
manifest.print "javascript 'jquery.flash_messages.js'\n"
|
294
327
|
|
295
|
-
open File.join(
|
296
|
-
f.print compress_js(all_files(
|
328
|
+
open File.join(JRAILS_DEST_TEMPLATES, 'jquery.flash_messages.min.js'), 'w' do |f|
|
329
|
+
f.print compress_js(all_files(FLASH_SRC_JS_SCRIPTS), "google")
|
297
330
|
end
|
298
331
|
manifest.print "javascript 'jquery.flash_messages.min.js'\n"
|
299
332
|
|
300
|
-
FileUtils.mkdir_p(File.join(
|
301
|
-
css = File.read File.join(
|
333
|
+
FileUtils.mkdir_p(File.join(FLASH_DEST_STYLESHEETS))
|
334
|
+
css = File.read File.join(FLASH_SRC, 'flash_messages.css')
|
302
335
|
sass = ''
|
303
336
|
IO.popen("sass-convert -F css -T scss", 'r+') { |f| f.print(css); f.close_write; sass = f.read }
|
304
|
-
open File.join(
|
337
|
+
open File.join(FLASH_DEST_STYLESHEETS, '_flash_messages.scss'), 'w' do |f|
|
305
338
|
f.write sass
|
306
339
|
end
|
307
340
|
manifest.print "stylesheet 'partials/_flash_messages.scss'\n"
|
308
341
|
|
309
342
|
# Copy the images directory
|
310
|
-
FileUtils.mkdir_p File.join(
|
311
|
-
src_dir =
|
312
|
-
dest_dir =
|
343
|
+
FileUtils.mkdir_p File.join(FLASH_DEST_IMAGES)
|
344
|
+
src_dir = FLASH_SRC_IMAGES
|
345
|
+
dest_dir = FLASH_DEST_IMAGES
|
313
346
|
|
314
347
|
Dir.foreach(src_dir) do |image|
|
315
348
|
next unless /\.png$/ =~ image
|