forked from coderberry/flitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Berry
committed
Oct 19, 2009
1 parent
cf4ad71
commit 308cc53
Showing
28 changed files
with
1,364 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ul id="flits_list"> | ||
<% flits.each do |flit| %> | ||
<li<% if flits.first == flit %> class="first"<% end %>> | ||
<%= image_tag flit.user.gravatar_url %> | ||
<div class="flit_message_container"> | ||
<%= link_to flit.user.username %> | ||
<%= h flit.message %> | ||
<div class="time_ago"> | ||
<%= distance_of_time_in_words_to_now(flit.created_at) %> ago | ||
</div> | ||
</div> | ||
<div class="clear"></div> | ||
</li> | ||
<% end %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h1><%= image_tag @user.gravatar_url, :align => "top" %> <%= @user.username %></h1> | ||
|
||
<%- form_tag toggle_follow_path do -%> | ||
<% if current_user.is_friend? @user %> | ||
<%= submit_tag "Following", :class => "button" %> | ||
<% else %> | ||
<%= submit_tag "Not Following", :class => "button" %> | ||
<% end %> | ||
<%- end -%> | ||
|
||
| ||
|
||
<%= render :partial => "flits_list", :locals => { :flits => @flits }%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
0.5.0 (31 July 2009) | ||
* Gemification | ||
* Support for Ruby 1.9.X | ||
* Updated to jQuery 1.3.2 | ||
* Updated to jQuery UI 1.7.2 | ||
* Created a jrails binary (runs rake tasks) because rails does not (yet?) pickup | ||
tasks from gem plugins | ||
* Changed default to use jQuery compatibility name (not $) | ||
* Created a scrub task that will remove the prototype / script.aculo.us | ||
javascript files | ||
* better approximate scriptaculous effect names | ||
* add support for page[:element_id].visual_effect(:effect) as well as page.visual_effect(:effect, :element_id) | ||
* added a reset form function to jrails.js (stolen from jquery form) | ||
* can now use jquery selectors in all functions | ||
* added javascript_function helper to render inline rjs helpers | ||
* better support for sortable_element | ||
|
||
0.4.0 (16 June 2008) | ||
* updated to jquery-ui 1.5 & merged js into single file | ||
* Added jQuery.noConflict support | ||
* support for value/val | ||
* additional support for update/delete methods | ||
* support for success/failure hash | ||
* setRequestHeader now gets called globally | ||
* Better support for droppables, sortables | ||
* Add support for prototype AJAX callbacks | ||
* better support for AJAX form calls | ||
|
||
0.3.0 (22 Feb 2008) | ||
* updated to jquery-fx 1.0b and jquery-ui 1.5b | ||
* Add text/javascript request header to fix format.js | ||
* Added Tasks (thanks ggarside) | ||
* Improve visual_effects methods | ||
* Fixed some RJS calls | ||
* Fixed observer code for ie | ||
|
||
0.2.0 (26 Nov 2007) | ||
* Vastly Improved FX | ||
* Improved Form Observers | ||
* Fixed Rails <= 1.2.6 Compatibility | ||
|
||
0.1.0 (15 Nov 2007) | ||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Copyright (c) 2008 Aaron Eisenberger | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
= jRails | ||
|
||
jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers. | ||
|
||
== Resources | ||
|
||
Install | ||
|
||
* .script/plugin install git://github.com/aaronchi/jrails.git | ||
|
||
Project Site | ||
|
||
* http://code.google.com/p/ennerchi | ||
|
||
Web Site | ||
|
||
* http://www.ennerchi.com/projects/jrails | ||
|
||
Group Site | ||
|
||
* http://groups.google.com/group/jrails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = "jrails" | ||
gem.summary = "jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers." | ||
gem.description = "Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library." | ||
gem.email = "[email protected]" | ||
gem.homepage = "http://ennerchi.com/projects/jrails" | ||
gem.authors = ["Aaron Eisenberger", "Patrick Hurley"] | ||
gem.rubyforge_project = "jrails" | ||
gem.files = FileList["[A-Z]*.rb","{bin,javascripts,lib,rails,tasks}/**/*"] | ||
end | ||
rescue LoadError | ||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:patch: 1 | ||
:major: 0 | ||
:minor: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'rubygems' | ||
require 'rake' | ||
|
||
RAILS_ROOT = Dir.pwd | ||
rakeapp = Rake.application | ||
fname =File.join(File.dirname(__FILE__), '..', 'tasks', 'jrails.rake') | ||
load fname | ||
|
||
task :help do | ||
puts "jrails [command]\n\n" | ||
rakeapp.options.show_task_pattern = Regexp.new('^[hius]') | ||
rakeapp.display_tasks_and_comments | ||
end | ||
|
||
desc 'Installs the jQuery and jRails javascripts to public/javascripts' | ||
task :install do | ||
Rake::Task['jrails:js:install'].invoke | ||
end | ||
|
||
desc 'Remove the prototype / script.aculo.us javascript files' | ||
task :scrub do | ||
Rake::Task['jrails:js:scrub'].invoke | ||
end | ||
|
||
rakeapp.init("jrails") | ||
task :default => [:help] | ||
|
||
rakeapp.top_level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'rails/init.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Install hook code here | ||
puts "Copying files..." | ||
dir = "javascripts" | ||
["jquery-ui.js", "jquery.js", "jrails.js"].each do |js_file| | ||
dest_file = File.join(RAILS_ROOT, "public", dir, js_file) | ||
src_file = File.join(File.dirname(__FILE__) , dir, js_file) | ||
FileUtils.cp_r(src_file, dest_file) | ||
end | ||
puts "Files copied - Installation complete!" |
Oops, something went wrong.