about summary refs log tree commit homepage
path: root/examples/rails_app-2.3.4
DateCommit message (Collapse)
2009-11-14ry dahl prefers his name lowercased
Update all documentation and comments to reflect that.
2009-11-13examples/rails_app-2.3.4: show links to different interfaces
2009-11-13JSON: set no-transform in headers
We can't have Rack::Deflater compressing long-pulling JS
2009-11-13example/rails_app-2.3.4: UprStatus unit tests
UprStatus.incr now returns the value incremented to be compatible with Upr::Monitor.incr
2009-11-12example/rails_app-2.3.4: limit compat 1.9 to only 1.9
Not 1.8.7, too, since 1.8.7 strings respond to :bytesize each_byte iterators and j.next seem to make 1.8.7 unhappy
2009-11-12JSON compatible with Ry Dahl's Ajax.Pull + example
Ry posted about it here: http://rubyforge.org/pipermail/mongrel-users/2007-July/003747.html This is technically superior compared to all the existing interfaces since it only requires only one, long-running client-side HTTP request. I would imagine it's possible for a JavaScript programmer to be capable of even removing the need for an extra request entirely, I'm not that programmer...
2009-11-12Add jQuery-compatible Rails example
This uses the new Upr::JSON class to generate output. Apparently this is the same format used by Apache, nginx, and lighttpd. Hopefully this will help increase upr adoption.
2009-11-12examples/rails: UprStatus reuses expiry in Upr::Monitor
Thou Shalt Not Repeat Thyself. Thou Shalt Not Repeat Thyself. Thou Shalt Not Repeat Thyself. Thou Shalt Not Repeat Thyself. Thou Shalt Not Repeat Thyself. Thou Shalt Not Repeat Thyself. wait...
2009-11-12backends: internal API updates/cleanups
Return values for class methods for Upr::Monitor and UprStatus should synched. Class methods: * error!(upid) method added: sets seen = -1, updates time and returns Status(-like) object * read(upid) no longer updates time * incr(upid, nr) does up increment errored statuses * incr(upid, nr) returns nil on invalid upids * finish(upid) returns nil on invalid upids Additionally the AR example has been updated to include Upr::StatusMethods for instance methods.
2009-11-12Revert "examples/rails_app-2.3.4: move middleware setup to config.ru"
This reverts commit 4770ea6d7a6eaf00cc19bc4fb2afd59071e8cf66.
2009-11-11examples/rails_app-2.3.4: smaller JavaScript footprint
We'll be pulling in other JS files, too, so avoid pulling in too much.
2009-11-11examples/rails_app-2.3.4: move middleware setup to config.ru
config.ru is more obvious and easier to use with non-Rails applications. This is true especially if you want to share the Upr::Monitor object/connection with the upcoming Upr::Streaming JSON application.
2009-11-11examples/rails_app-2.3.4: fix session verifier 1.9
Rails 2.3.4 screwed up cookie sessions under Ruby 1.9 ref: https://rails.lighthouseapp.com/projects/8994/tickets/3144
2009-11-11example/rainbows_config: disable Nagle's algorithm
Less delay gives better interactive response
2009-11-11monitor: add "finish" method
This lets us finish up connections by setting seen == length when the client is finished uploading.
2009-11-10demo: make frequency 1 for smoother output
Making the demo look better? It's called "marketing" :)
2009-11-10demo: links to and from the demo site, cleanup output
Explain what the user will be seeing.
2009-11-10examples/rails: cleanup files when we're done
Also show size uploaded and better output with proper line breaks
2009-11-10initial commit