Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving large chunks over.

  • Loading branch information...
commit 52458a17e0192a7bb4a952bd0cbef4f4ddcabbe7 1 parent d11e931
@steveklabnik steveklabnik authored
Showing with 260 additions and 781 deletions.
  1. +42 −15 Gemfile
  2. +218 −4 Gemfile.lock
  3. 0  {sinatra → }/LICENSE
  4. +0 −261 README
  5. 0  {sinatra → }/README.md
  6. 0  {sinatra → app}/models/all.rb
  7. 0  {sinatra → app}/models/author.rb
  8. 0  {sinatra → app}/models/authorization.rb
  9. 0  {sinatra → app}/models/feed.rb
  10. 0  {sinatra → app}/models/notifier.rb
  11. 0  {sinatra → app}/models/update.rb
  12. 0  {sinatra → app}/models/user.rb
  13. 0  {sinatra → app}/views/layout.haml
  14. 0  {sinatra → app}/views/layout/update.haml
  15. 0  {sinatra → app}/views/login/_username_error.haml
  16. 0  {sinatra → app}/views/login/confirm.haml
  17. 0  {sinatra → app}/views/login/forgot_password.haml
  18. 0  {sinatra → app}/views/login/forgot_password_confirm.haml
  19. 0  {sinatra → app}/views/login/login.haml
  20. 0  {sinatra → app}/views/login/password_reset.haml
  21. 0  {sinatra → app}/views/login/reset_username.haml
  22. 0  {sinatra → app}/views/notifier/email_change.haml
  23. 0  {sinatra → app}/views/notifier/forgot_password.haml
  24. 0  {sinatra → app}/views/shared/_field.haml
  25. 0  {sinatra → app}/views/shared/_flash.haml
  26. 0  {sinatra → app}/views/shared/_footer.haml
  27. 0  {sinatra → app}/views/shared/_head.haml
  28. 0  {sinatra → app}/views/shared/_header.haml
  29. 0  {sinatra → app}/views/shared/_pagination.haml
  30. 0  {sinatra → app}/views/shared/menu/_footer.haml
  31. 0  {sinatra → app}/views/shared/menu/_main.haml
  32. 0  {sinatra → app}/views/shared/menu/_profile.haml
  33. 0  {sinatra → app}/views/shared/menu/_updates.haml
  34. 0  {sinatra → app}/views/shared/sidebar/_gravatar.haml
  35. 0  {sinatra → app}/views/shared/sidebar/_help.haml
  36. 0  {sinatra → app}/views/shared/sidebar/_profile.haml
  37. 0  {sinatra → app}/views/shared/sidebar/_signup.haml
  38. 0  {sinatra → app}/views/static/contact.haml
  39. 0  {sinatra → app}/views/static/doc_index.haml
  40. 0  {sinatra → app}/views/static/error.haml
  41. 0  {sinatra → app}/views/static/external_subscription.haml
  42. 0  {sinatra → app}/views/static/help.haml
  43. 0  {sinatra → app}/views/static/home.haml
  44. 0  {sinatra → app}/views/static/opensource.haml
  45. 0  {sinatra → app}/views/updates/_detail.haml
  46. 0  {sinatra → app}/views/updates/_form.haml
  47. 0  {sinatra → app}/views/updates/_list.haml
  48. 0  {sinatra → app}/views/updates/index.haml
  49. 0  {sinatra → app}/views/updates/search.haml
  50. 0  {sinatra → app}/views/updates/show.haml
  51. 0  {sinatra → app}/views/users/_errors.haml
  52. 0  {sinatra → app}/views/users/_list.haml
  53. 0  {sinatra → app}/views/users/edit.haml
  54. 0  {sinatra → app}/views/users/index.haml
  55. 0  {sinatra → app}/views/users/list.haml
  56. 0  {sinatra → app}/views/users/new.haml
  57. 0  {sinatra → app}/views/users/show.haml
  58. 0  {sinatra → app}/views/xml/webfinger/host-meta.haml
  59. 0  {sinatra → app}/views/xml/webfinger/xrd.haml
  60. 0  {sinatra → lib}/tasks/assets.rake
  61. 0  {sinatra → lib}/tasks/cron.rake
  62. 0  {sinatra → lib}/tasks/delayed_job.rake
  63. 0  {sinatra → lib}/tasks/fixdb.rake
  64. 0  {sinatra → lib}/tasks/gource.rake
  65. 0  {sinatra → lib}/tasks/pages.rake
  66. 0  {sinatra → lib}/tasks/rocco.rake
  67. 0  {sinatra → lib}/tasks/test.rake
  68. 0  {sinatra → lib}/tasks/whitespace.rake
  69. +0 −64 sinatra/Gemfile
  70. +0 −355 sinatra/Gemfile.lock
  71. +0 −8 sinatra/Rakefile
  72. +0 −50 sinatra/config.ru
  73. +0 −12 sinatra/config/assets.yml
  74. +0 −2  sinatra/config/compass.config
  75. +0 −8 sinatra/lib/rstatus/session.rb
  76. +0 −2  sinatra/log/exceptional.log
View
57 Gemfile
@@ -2,9 +2,6 @@ source 'http://rubygems.org'
gem 'rails', '3.1.0.rc4'
-# Bundle edge Rails instead:
-# gem 'rails', :git => 'git://github.com/rails/rails.git'
-
gem 'sqlite3'
# Asset template engines
@@ -14,16 +11,46 @@ gem 'uglifier'
gem 'jquery-rails'
-# Use unicorn as the web server
-# gem 'unicorn'
-
-# Deploy with Capistrano
-# gem 'capistrano'
-
-# To use debugger
-# gem 'ruby-debug19', :require => 'ruby-debug'
-
-group :test do
- # Pretty printed test output
- gem 'turn', :require => false
+gem "omniauth"
+gem "sinatra", :require => "sinatra/base"
+gem "mongo_mapper"
+gem "mongomapper_ext"
+gem "bson_ext"
+gem "i18n"
+gem "haml"
+gem "twitter"
+gem "fb_graph"
+gem "pony"
+gem "bcrypt-ruby", :require => "bcrypt"
+gem "rdiscount"
+gem "ostatus", "~>0.0.9"
+gem "osub", "~>0.0.6"
+gem "opub"
+gem "redfinger"
+gem "nokogiri", "= 1.4.4"
+gem "whatlanguage"
+gem "ruby-stemmer"
+gem "tzinfo"
+gem "rsa"
+gem "exceptional"
+
+# background job queue
+gem "delayed_job", :git => "git://github.com/collectiveidea/delayed_job.git", :tag => "v2.1.4"
+gem "delayed_job_mongo_mapper", :git => "git://github.com/earbits/delayed_job_mongo_mapper.git"
+gem "whenever"
+
+group :development, :test do
+ gem "minitest"
+ gem 'rack-test'
+ gem "database_cleaner"
+ gem "factory_girl"
+ gem "capybara"
+ gem "rocco"
+ gem "pygmentize"
+ gem "mocha"
+ gem "vcr"
+ gem "webmock"
+ gem "simplecov", "~> 0.4.0", :require => false
+ gem "launchy"
end
+
View
222 Gemfile.lock
@@ -1,6 +1,25 @@
+GIT
+ remote: git://github.com/collectiveidea/delayed_job.git
+ revision: 8dc3930f20eb7363ef0d451ac05a3851eb0caaf6
+ tag: v2.1.4
+ specs:
+ delayed_job (2.1.4)
+ activesupport (~> 3.0)
+ daemons
+
+GIT
+ remote: git://github.com/earbits/delayed_job_mongo_mapper.git
+ revision: 96378a9584a077b5e01fc63294131728818d67eb
+ specs:
+ delayed_job_mongo_mapper (1.0.0)
+ delayed_job (~> 2.1.1)
+ mongo_mapper (~> 0.9)
+ rails (>= 3.0.0)
+
GEM
remote: http://rubygems.org/
specs:
+ aaronh-chronic (0.3.9)
actionmailer (3.1.0.rc4)
actionpack (= 3.1.0.rc4)
mail (~> 2.3.0)
@@ -31,34 +50,144 @@ GEM
activesupport (= 3.1.0.rc4)
activesupport (3.1.0.rc4)
multi_json (~> 1.0)
- ansi (1.3.0)
+ addressable (2.2.4)
arel (2.1.3)
+ attr_required (0.0.3)
bcrypt-ruby (2.1.4)
+ bson (1.3.1)
+ bson_ext (1.3.1)
builder (3.0.0)
+ capybara (1.0.0)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 0.2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.1.9)
+ ffi (~> 1.0.6)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.1)
+ crack (0.1.8)
+ daemons (1.1.4)
+ database_cleaner (0.6.7)
erubis (2.7.0)
+ exceptional (2.0.32)
+ rack
execjs (1.2.0)
multi_json (~> 1.0)
+ factory_girl (1.3.3)
+ faraday (0.6.1)
+ addressable (~> 2.2.4)
+ multipart-post (~> 1.1.0)
+ rack (< 2, >= 1.1.0)
+ faraday_middleware (0.6.5)
+ faraday (~> 0.6.0)
+ fb_graph (1.9.2)
+ httpclient (>= 2.2.0.2)
+ rack-oauth2 (>= 0.8.0)
+ ffi (1.0.9)
+ haml (3.1.2)
+ hashie (1.0.0)
hike (1.1.0)
+ httpclient (2.2.1)
i18n (0.6.0)
jquery-rails (1.0.12)
railties (~> 3.0)
thor (~> 0.14)
+ json (1.5.3)
+ json_pure (1.5.3)
+ launchy (2.0.1)
+ libxml-ruby (2.0.9)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
+ minitest (2.3.1)
+ mocha (0.9.12)
+ mongo (1.3.1)
+ bson (>= 1.3.1)
+ mongo_mapper (0.9.1)
+ activemodel (~> 3.0)
+ activesupport (~> 3.0)
+ plucky (~> 0.3.8)
+ mongomapper_ext (0.5.1)
+ mongo_mapper (~> 0.8)
+ uuidtools (>= 2.0.0)
multi_json (1.0.3)
+ multi_xml (0.2.2)
+ multipart-post (1.1.2)
+ mustache (0.99.4)
+ net-ldap (0.2.2)
+ nokogiri (1.4.4)
+ oa-basic (0.2.6)
+ oa-core (= 0.2.6)
+ rest-client (~> 1.6.0)
+ oa-core (0.2.6)
+ oa-enterprise (0.2.6)
+ addressable (= 2.2.4)
+ net-ldap (~> 0.2.2)
+ nokogiri (~> 1.4.2)
+ oa-core (= 0.2.6)
+ pyu-ruby-sasl (~> 0.0.3.1)
+ rubyntlm (~> 0.1.1)
+ oa-more (0.2.6)
+ multi_json (~> 1.0.0)
+ oa-core (= 0.2.6)
+ rest-client (~> 1.6.0)
+ oa-oauth (0.2.6)
+ faraday (~> 0.6.1)
+ multi_json (~> 1.0.0)
+ multi_xml (~> 0.2.2)
+ oa-core (= 0.2.6)
+ oauth (~> 0.4.0)
+ oauth2 (~> 0.4.1)
+ oa-openid (0.2.6)
+ oa-core (= 0.2.6)
+ rack-openid (~> 1.3.1)
+ ruby-openid-apps-discovery (~> 1.2.0)
+ oauth (0.4.5)
+ oauth2 (0.4.1)
+ faraday (~> 0.6.1)
+ multi_json (>= 0.0.5)
+ omniauth (0.2.6)
+ oa-basic (= 0.2.6)
+ oa-core (= 0.2.6)
+ oa-enterprise (= 0.2.6)
+ oa-more (= 0.2.6)
+ oa-oauth (= 0.2.6)
+ oa-openid (= 0.2.6)
+ opub (0.0.1)
+ ostatus (0.0.10)
+ ratom
+ osub (0.0.7)
+ ostatus
+ ruby-hmac
+ plucky (0.3.8)
+ mongo (~> 1.3)
polyglot (0.3.1)
+ pony (1.3)
+ mail (> 2.0)
+ pygmentize (0.0.3)
+ pyu-ruby-sasl (0.0.3.3)
rack (1.3.1)
rack-cache (1.0.2)
rack (>= 0.4)
rack-mount (0.8.1)
rack (>= 1.0.0)
+ rack-oauth2 (0.8.4)
+ activesupport (>= 2.3)
+ attr_required (>= 0.0.3)
+ httpclient (>= 2.2.0.2)
+ i18n
+ json (>= 1.4.3)
+ rack (>= 1.1)
+ rack-openid (1.3.1)
+ rack (>= 1.1.0)
+ ruby-openid (>= 2.1.8)
rack-ssl (1.3.2)
rack
rack-test (0.6.0)
@@ -79,13 +208,46 @@ GEM
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2)
+ ratom (0.6.9)
+ libxml-ruby (>= 1.1.2)
+ rdiscount (1.6.8)
rdoc (3.8)
+ redcarpet (1.17.2)
+ redfinger (0.1.0)
+ hashie
+ nokogiri (>= 1.4.0)
+ rest-client (>= 1.5.0)
+ rest-client (1.6.3)
+ mime-types (>= 1.16)
+ rocco (0.8.1)
+ mustache
+ redcarpet
+ rsa (0.1.4)
+ ruby-hmac (0.4.0)
+ ruby-openid (2.1.8)
+ ruby-openid-apps-discovery (1.2.0)
+ ruby-openid (>= 2.1.7)
+ ruby-stemmer (0.9.1)
+ rubyntlm (0.1.1)
+ rubyzip (0.9.4)
sass (3.1.4)
sass-rails (3.1.0.rc.4)
actionpack (~> 3.1.0.rc1)
railties (~> 3.1.0.rc1)
sass (>= 3.1.4)
sprockets (>= 2.0.0.beta.9)
+ selenium-webdriver (0.2.2)
+ childprocess (>= 0.1.9)
+ ffi (>= 1.0.7)
+ json_pure
+ rubyzip
+ simple_oauth (0.1.5)
+ simplecov (0.4.2)
+ simplecov-html (~> 0.4.4)
+ simplecov-html (0.4.5)
+ sinatra (1.2.6)
+ rack (~> 1.1)
+ tilt (< 2.0, >= 1.2.2)
sprockets (2.0.0.beta.10)
hike (~> 1.0)
rack (~> 1.0)
@@ -95,21 +257,73 @@ GEM
tilt (1.3.2)
treetop (1.4.9)
polyglot (>= 0.3.1)
- turn (0.8.2)
- ansi (>= 1.2.2)
+ twitter (1.6.0)
+ faraday (~> 0.6.1)
+ faraday_middleware (~> 0.6.3)
+ hashie (~> 1.0.0)
+ multi_json (~> 1.0.0)
+ multi_xml (~> 0.2.0)
+ simple_oauth (~> 0.1.5)
tzinfo (0.3.29)
uglifier (1.0.0)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
+ uuidtools (2.1.2)
+ vcr (1.10.2)
+ webmock (1.6.2)
+ addressable (>= 2.2.2)
+ crack (>= 0.1.7)
+ whatlanguage (1.0.0)
+ whenever (0.6.8)
+ aaronh-chronic (>= 0.3.9)
+ activesupport (>= 2.3.4)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
+ bcrypt-ruby
+ bson_ext
+ capybara
coffee-script
+ database_cleaner
+ delayed_job!
+ delayed_job_mongo_mapper!
+ exceptional
+ factory_girl
+ fb_graph
+ haml
+ i18n
jquery-rails
+ launchy
+ minitest
+ mocha
+ mongo_mapper
+ mongomapper_ext
+ nokogiri (= 1.4.4)
+ omniauth
+ opub
+ ostatus (~> 0.0.9)
+ osub (~> 0.0.6)
+ pony
+ pygmentize
+ rack-test
rails (= 3.1.0.rc4)
+ rdiscount
+ redfinger
+ rocco
+ rsa
+ ruby-stemmer
sass-rails (~> 3.1.0.rc)
+ simplecov (~> 0.4.0)
+ sinatra
sqlite3
- turn
+ twitter
+ tzinfo
uglifier
+ vcr
+ webmock
+ whatlanguage
+ whenever
View
0  sinatra/LICENSE → LICENSE
File renamed without changes
View
261 README
@@ -1,261 +0,0 @@
-== Welcome to Rails
-
-Rails is a web-application framework that includes everything needed to create
-database-backed web applications according to the Model-View-Control pattern.
-
-This pattern splits the view (also called the presentation) into "dumb"
-templates that are primarily responsible for inserting pre-built data in between
-HTML tags. The model contains the "smart" domain objects (such as Account,
-Product, Person, Post) that holds all the business logic and knows how to
-persist themselves to a database. The controller handles the incoming requests
-(such as Save New Account, Update Product, Show Post) by manipulating the model
-and directing data to the view.
-
-In Rails, the model is handled by what's called an object-relational mapping
-layer entitled Active Record. This layer allows you to present the data from
-database rows as objects and embellish these data objects with business logic
-methods. You can read more about Active Record in
-link:files/vendor/rails/activerecord/README.html.
-
-The controller and view are handled by the Action Pack, which handles both
-layers by its two parts: Action View and Action Controller. These two layers
-are bundled in a single package due to their heavy interdependence. This is
-unlike the relationship between the Active Record and Action Pack that is much
-more separate. Each of these packages can be used independently outside of
-Rails. You can read more about Action Pack in
-link:files/vendor/rails/actionpack/README.html.
-
-
-== Getting Started
-
-1. At the command prompt, create a new Rails application:
- <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
-
-2. Change directory to <tt>myapp</tt> and start the web server:
- <tt>cd myapp; rails server</tt> (run with --help for options)
-
-3. Go to http://localhost:3000/ and you'll see:
- "Welcome aboard: You're riding Ruby on Rails!"
-
-4. Follow the guidelines to start developing your application. You can find
-the following resources handy:
-
-* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
-* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
-
-
-== Debugging Rails
-
-Sometimes your application goes wrong. Fortunately there are a lot of tools that
-will help you debug it and get it back on the rails.
-
-First area to check is the application log files. Have "tail -f" commands
-running on the server.log and development.log. Rails will automatically display
-debugging and runtime information to these files. Debugging info will also be
-shown in the browser on requests from 127.0.0.1.
-
-You can also log your own messages directly into the log file from your code
-using the Ruby logger class from inside your controllers. Example:
-
- class WeblogController < ActionController::Base
- def destroy
- @weblog = Weblog.find(params[:id])
- @weblog.destroy
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
- end
- end
-
-The result will be a message in your log file along the lines of:
-
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
-
-More information on how to use the logger is at http://www.ruby-doc.org/core/
-
-Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
-several books available online as well:
-
-* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
-* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
-
-These two books will bring you up to speed on the Ruby language and also on
-programming in general.
-
-
-== Debugger
-
-Debugger support is available through the debugger command when you start your
-Mongrel or WEBrick server with --debugger. This means that you can break out of
-execution at any point in the code, investigate and change the model, and then,
-resume execution! You need to install ruby-debug to run the server in debugging
-mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
-
- class WeblogController < ActionController::Base
- def index
- @posts = Post.all
- debugger
- end
- end
-
-So the controller will accept the action, run the first line, then present you
-with a IRB prompt in the server window. Here you can do things like:
-
- >> @posts.inspect
- => "[#<Post:0x14a6be8
- @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
- #<Post:0x14a6620
- @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
- >> @posts.first.title = "hello from a debugger"
- => "hello from a debugger"
-
-...and even better, you can examine how your runtime objects actually work:
-
- >> f = @posts.first
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
- >> f.
- Display all 152 possibilities? (y or n)
-
-Finally, when you're ready to resume execution, you can enter "cont".
-
-
-== Console
-
-The console is a Ruby shell, which allows you to interact with your
-application's domain model. Here you'll have all parts of the application
-configured, just like it is when the application is running. You can inspect
-domain models, change values, and save to the database. Starting the script
-without arguments will launch it in the development environment.
-
-To start the console, run <tt>rails console</tt> from the application
-directory.
-
-Options:
-
-* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
- made to the database.
-* Passing an environment name as an argument will load the corresponding
- environment. Example: <tt>rails console production</tt>.
-
-To reload your controllers and models after launching the console run
-<tt>reload!</tt>
-
-More information about irb can be found at:
-link:http://www.rubycentral.org/pickaxe/irb.html
-
-
-== dbconsole
-
-You can go to the command line of your database directly through <tt>rails
-dbconsole</tt>. You would be connected to the database with the credentials
-defined in database.yml. Starting the script without arguments will connect you
-to the development database. Passing an argument will connect you to a different
-database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
-PostgreSQL and SQLite 3.
-
-== Description of Contents
-
-The default directory structure of a generated Ruby on Rails application:
-
- |-- app
- | |-- assets
- | |-- images
- | |-- javascripts
- | `-- stylesheets
- | |-- controllers
- | |-- helpers
- | |-- mailers
- | |-- models
- | `-- views
- | `-- layouts
- |-- config
- | |-- environments
- | |-- initializers
- | `-- locales
- |-- db
- |-- doc
- |-- lib
- | `-- tasks
- |-- log
- |-- public
- |-- script
- |-- test
- | |-- fixtures
- | |-- functional
- | |-- integration
- | |-- performance
- | `-- unit
- |-- tmp
- | |-- cache
- | |-- pids
- | |-- sessions
- | `-- sockets
- `-- vendor
- |-- assets
- `-- stylesheets
- `-- plugins
-
-app
- Holds all the code that's specific to this particular application.
-
-app/assets
- Contains subdirectories for images, stylesheets, and JavaScript files.
-
-app/controllers
- Holds controllers that should be named like weblogs_controller.rb for
- automated URL mapping. All controllers should descend from
- ApplicationController which itself descends from ActionController::Base.
-
-app/models
- Holds models that should be named like post.rb. Models descend from
- ActiveRecord::Base by default.
-
-app/views
- Holds the template files for the view that should be named like
- weblogs/index.html.erb for the WeblogsController#index action. All views use
- eRuby syntax by default.
-
-app/views/layouts
- Holds the template files for layouts to be used with views. This models the
- common header/footer method of wrapping views. In your views, define a layout
- using the <tt>layout :default</tt> and create a file named default.html.erb.
- Inside default.html.erb, call <% yield %> to render the view using this
- layout.
-
-app/helpers
- Holds view helpers that should be named like weblogs_helper.rb. These are
- generated for you automatically when using generators for controllers.
- Helpers can be used to wrap functionality for your views into methods.
-
-config
- Configuration files for the Rails environment, the routing map, the database,
- and other dependencies.
-
-db
- Contains the database schema in schema.rb. db/migrate contains all the
- sequence of Migrations for your schema.
-
-doc
- This directory is where your application documentation will be stored when
- generated using <tt>rake doc:app</tt>
-
-lib
- Application specific libraries. Basically, any kind of custom code that
- doesn't belong under controllers, models, or helpers. This directory is in
- the load path.
-
-public
- The directory available for the web server. Also contains the dispatchers and the
- default HTML files. This should be set as the DOCUMENT_ROOT of your web
- server.
-
-script
- Helper scripts for automation and generation.
-
-test
- Unit and functional tests along with fixtures. When using the rails generate
- command, template test files will be generated for you and placed in this
- directory.
-
-vendor
- External libraries that the application depends on. Also includes the plugins
- subdirectory. If the app has frozen rails, those gems also go here, under
- vendor/rails/. This directory is in the load path.
View
0  sinatra/README.md → README.md
File renamed without changes
View
0  sinatra/models/all.rb → app/models/all.rb
File renamed without changes
View
0  sinatra/models/author.rb → app/models/author.rb
File renamed without changes
View
0  sinatra/models/authorization.rb → app/models/authorization.rb
File renamed without changes
View
0  sinatra/models/feed.rb → app/models/feed.rb
File renamed without changes
View
0  sinatra/models/notifier.rb → app/models/notifier.rb
File renamed without changes
View
0  sinatra/models/update.rb → app/models/update.rb
File renamed without changes
View
0  sinatra/models/user.rb → app/models/user.rb
File renamed without changes
View
0  sinatra/views/layout.haml → app/views/layout.haml
File renamed without changes
View
0  sinatra/views/layout/update.haml → app/views/layout/update.haml
File renamed without changes
View
0  sinatra/views/login/_username_error.haml → app/views/login/_username_error.haml
File renamed without changes
View
0  sinatra/views/login/confirm.haml → app/views/login/confirm.haml
File renamed without changes
View
0  sinatra/views/login/forgot_password.haml → app/views/login/forgot_password.haml
File renamed without changes
View
0  sinatra/views/login/forgot_password_confirm.haml → app/views/login/forgot_password_confirm.haml
File renamed without changes
View
0  sinatra/views/login/login.haml → app/views/login/login.haml
File renamed without changes
View
0  sinatra/views/login/password_reset.haml → app/views/login/password_reset.haml
File renamed without changes
View
0  sinatra/views/login/reset_username.haml → app/views/login/reset_username.haml
File renamed without changes
View
0  sinatra/views/notifier/email_change.haml → app/views/notifier/email_change.haml
File renamed without changes
View
0  sinatra/views/notifier/forgot_password.haml → app/views/notifier/forgot_password.haml
File renamed without changes
View
0  sinatra/views/shared/_field.haml → app/views/shared/_field.haml
File renamed without changes
View
0  sinatra/views/shared/_flash.haml → app/views/shared/_flash.haml
File renamed without changes
View
0  sinatra/views/shared/_footer.haml → app/views/shared/_footer.haml
File renamed without changes
View
0  sinatra/views/shared/_head.haml → app/views/shared/_head.haml
File renamed without changes
View
0  sinatra/views/shared/_header.haml → app/views/shared/_header.haml
File renamed without changes
View
0  sinatra/views/shared/_pagination.haml → app/views/shared/_pagination.haml
File renamed without changes
View
0  sinatra/views/shared/menu/_footer.haml → app/views/shared/menu/_footer.haml
File renamed without changes
View
0  sinatra/views/shared/menu/_main.haml → app/views/shared/menu/_main.haml
File renamed without changes
View
0  sinatra/views/shared/menu/_profile.haml → app/views/shared/menu/_profile.haml
File renamed without changes
View
0  sinatra/views/shared/menu/_updates.haml → app/views/shared/menu/_updates.haml
File renamed without changes
View
0  sinatra/views/shared/sidebar/_gravatar.haml → app/views/shared/sidebar/_gravatar.haml
File renamed without changes
View
0  sinatra/views/shared/sidebar/_help.haml → app/views/shared/sidebar/_help.haml
File renamed without changes
View
0  sinatra/views/shared/sidebar/_profile.haml → app/views/shared/sidebar/_profile.haml
File renamed without changes
View
0  sinatra/views/shared/sidebar/_signup.haml → app/views/shared/sidebar/_signup.haml
File renamed without changes
View
0  sinatra/views/static/contact.haml → app/views/static/contact.haml
File renamed without changes
View
0  sinatra/views/static/doc_index.haml → app/views/static/doc_index.haml
File renamed without changes
View
0  sinatra/views/static/error.haml → app/views/static/error.haml
File renamed without changes
View
0  sinatra/views/static/external_subscription.haml → app/views/static/external_subscription.haml
File renamed without changes
View
0  sinatra/views/static/help.haml → app/views/static/help.haml
File renamed without changes
View
0  sinatra/views/static/home.haml → app/views/static/home.haml
File renamed without changes
View
0  sinatra/views/static/opensource.haml → app/views/static/opensource.haml
File renamed without changes
View
0  sinatra/views/updates/_detail.haml → app/views/updates/_detail.haml
File renamed without changes
View
0  sinatra/views/updates/_form.haml → app/views/updates/_form.haml
File renamed without changes
View
0  sinatra/views/updates/_list.haml → app/views/updates/_list.haml
File renamed without changes
View
0  sinatra/views/updates/index.haml → app/views/updates/index.haml
File renamed without changes
View
0  sinatra/views/updates/search.haml → app/views/updates/search.haml
File renamed without changes
View
0  sinatra/views/updates/show.haml → app/views/updates/show.haml
File renamed without changes
View
0  sinatra/views/users/_errors.haml → app/views/users/_errors.haml
File renamed without changes
View
0  sinatra/views/users/_list.haml → app/views/users/_list.haml
File renamed without changes
View
0  sinatra/views/users/edit.haml → app/views/users/edit.haml
File renamed without changes
View
0  sinatra/views/users/index.haml → app/views/users/index.haml
File renamed without changes
View
0  sinatra/views/users/list.haml → app/views/users/list.haml
File renamed without changes
View
0  sinatra/views/users/new.haml → app/views/users/new.haml
File renamed without changes
View
0  sinatra/views/users/show.haml → app/views/users/show.haml
File renamed without changes
View
0  sinatra/views/xml/webfinger/host-meta.haml → app/views/xml/webfinger/host-meta.haml
File renamed without changes
View
0  sinatra/views/xml/webfinger/xrd.haml → app/views/xml/webfinger/xrd.haml
File renamed without changes
View
0  sinatra/tasks/assets.rake → lib/tasks/assets.rake
File renamed without changes
View
0  sinatra/tasks/cron.rake → lib/tasks/cron.rake
File renamed without changes
View
0  sinatra/tasks/delayed_job.rake → lib/tasks/delayed_job.rake
File renamed without changes
View
0  sinatra/tasks/fixdb.rake → lib/tasks/fixdb.rake
File renamed without changes
View
0  sinatra/tasks/gource.rake → lib/tasks/gource.rake
File renamed without changes
View
0  sinatra/tasks/pages.rake → lib/tasks/pages.rake
File renamed without changes
View
0  sinatra/tasks/rocco.rake → lib/tasks/rocco.rake
File renamed without changes
View
0  sinatra/tasks/test.rake → lib/tasks/test.rake
File renamed without changes
View
0  sinatra/tasks/whitespace.rake → lib/tasks/whitespace.rake
File renamed without changes
View
64 sinatra/Gemfile
@@ -1,64 +0,0 @@
-source "http://rubygems.org"
-
-# this gem has to come before any that use require_relative
-gem "require_relative", :git => 'git://github.com/bct/require_relative.git', :platforms => :ruby_18
-
-gem "omniauth"
-gem "sinatra", :require => "sinatra/base"
-gem "mongo_mapper"
-gem "mongomapper_ext"
-gem "bson_ext"
-gem "i18n"
-gem "haml"
-gem "rake", "=0.8.7"
-gem "rack", "=1.2.2"
-gem "rack-flash"
-gem "rack-timeout"
-gem "system_timer", :platforms => :ruby_18
-gem "time-lord"
-gem "sinatra-content-for", :require => "sinatra/content_for"
-gem "sinatra-redirect-with-flash", :require => "sinatra/redirect_with_flash"
-gem "twitter"
-gem "fb_graph"
-gem "pony"
-gem "bcrypt-ruby", :require => "bcrypt"
-gem "rdiscount"
-gem "backports", :platforms => :ruby_18
-gem "ostatus", "> 0.0.9"
-gem "osub", "> 0.0.6"
-gem "opub"
-gem "redfinger"
-gem "nokogiri", "= 1.4.4"
-gem "newrelic_rpm"
-gem "whatlanguage"
-gem "ruby-stemmer"
-gem "sass"
-gem "compass"
-gem "tzinfo"
-gem "rsa"
-gem "exceptional"
-gem "sprockets", "2.0.0.beta.10"
-gem "rack-mount", :require => "rack/mount"
-gem "uglifier"
-
-# background job queue
-gem "delayed_job", :git => "git://github.com/collectiveidea/delayed_job.git", :tag => "v2.1.4"
-gem "delayed_job_mongo_mapper", :git => "git://github.com/earbits/delayed_job_mongo_mapper.git"
-gem "whenever"
-
-group :development, :test do
- gem "minitest", :platforms => :ruby_18
- gem 'coffee-script'
- gem 'rack-test'
- gem "database_cleaner"
- gem "factory_girl"
- gem "capybara"
- gem "rocco"
- gem "pygmentize"
- gem "mocha"
- gem "vcr"
- gem "webmock"
- gem "simplecov", "~> 0.4.0", :require => false
- gem "launchy"
- gem "jammit"
-end
View
355 sinatra/Gemfile.lock
@@ -1,355 +0,0 @@
-GIT
- remote: git://github.com/bct/require_relative.git
- revision: 7751a6ce9229aa1f839ee286e104114510dbc170
- specs:
- require_relative (0.0.2)
-
-GIT
- remote: git://github.com/collectiveidea/delayed_job.git
- revision: 8dc3930f20eb7363ef0d451ac05a3851eb0caaf6
- tag: v2.1.4
- specs:
- delayed_job (2.1.4)
- activesupport (~> 3.0)
- daemons
-
-GIT
- remote: git://github.com/earbits/delayed_job_mongo_mapper.git
- revision: 96378a9584a077b5e01fc63294131728818d67eb
- specs:
- delayed_job_mongo_mapper (1.0.0)
- delayed_job (~> 2.1.1)
- mongo_mapper (~> 0.9)
- rails (>= 3.0.0)
-
-GEM
- remote: http://rubygems.org/
- specs:
- POpen4 (0.1.4)
- Platform (>= 0.4.0)
- open4
- Platform (0.4.0)
- aaronh-chronic (0.3.9)
- abstract (1.0.0)
- actionmailer (3.0.7)
- actionpack (= 3.0.7)
- mail (~> 2.2.15)
- actionpack (3.0.7)
- activemodel (= 3.0.7)
- activesupport (= 3.0.7)
- builder (~> 2.1.2)
- erubis (~> 2.6.6)
- i18n (~> 0.5.0)
- rack (~> 1.2.1)
- rack-mount (~> 0.6.14)
- rack-test (~> 0.5.7)
- tzinfo (~> 0.3.23)
- activemodel (3.0.7)
- activesupport (= 3.0.7)
- builder (~> 2.1.2)
- i18n (~> 0.5.0)
- activerecord (3.0.7)
- activemodel (= 3.0.7)
- activesupport (= 3.0.7)
- arel (~> 2.0.2)
- tzinfo (~> 0.3.23)
- activeresource (3.0.7)
- activemodel (= 3.0.7)
- activesupport (= 3.0.7)
- activesupport (3.0.7)
- addressable (2.2.4)
- arel (2.0.10)
- backports (2.2.1)
- bcrypt-ruby (2.1.4)
- bson (1.3.1)
- bson_ext (1.3.1)
- builder (2.1.2)
- capybara (0.4.1.2)
- celerity (>= 0.7.9)
- culerity (>= 0.2.4)
- mime-types (>= 1.16)
- nokogiri (>= 1.3.3)
- rack (>= 1.0.0)
- rack-test (>= 0.5.4)
- selenium-webdriver (>= 0.0.27)
- xpath (~> 0.1.3)
- celerity (0.8.9)
- childprocess (0.1.8)
- ffi (~> 1.0.6)
- coffee-script (2.2.0)
- coffee-script-source
- execjs
- coffee-script-source (1.0.1)
- compass (0.10.6)
- haml (>= 3.0.4)
- configuration (1.2.0)
- crack (0.1.8)
- culerity (0.2.15)
- daemons (1.0.10)
- database_cleaner (0.6.6)
- erubis (2.6.6)
- abstract (>= 1.0.0)
- exceptional (2.0.32)
- rack
- execjs (0.1.0)
- factory_girl (1.3.3)
- faraday (0.5.7)
- addressable (~> 2.2.4)
- multipart-post (~> 1.1.0)
- rack (< 2, >= 1.1.0)
- faraday_middleware (0.3.2)
- faraday (~> 0.5.4)
- fb_graph (1.6.4)
- activesupport (>= 2.3)
- json (>= 1.4.3)
- oauth2 (>= 0.1.0)
- restclient_with_cert
- ffi (1.0.7)
- rake (>= 0.8.7)
- haml (3.0.25)
- hashie (1.0.0)
- hike (1.1.0)
- i18n (0.5.0)
- jammit (0.6.3)
- yui-compressor (>= 0.9.3)
- json (1.5.1)
- json_pure (1.5.1)
- launchy (0.4.0)
- configuration (>= 0.0.5)
- rake (>= 0.8.1)
- libxml-ruby (2.0.6)
- mail (2.2.15)
- activesupport (>= 2.3.6)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.16)
- minitest (2.0.2)
- mocha (0.9.12)
- mongo (1.3.1)
- bson (>= 1.3.1)
- mongo_mapper (0.9.1)
- activemodel (~> 3.0)
- activesupport (~> 3.0)
- plucky (~> 0.3.8)
- mongomapper_ext (0.5.1)
- mongo_mapper (~> 0.8)
- uuidtools (>= 2.0.0)
- multi_json (0.0.5)
- multi_xml (0.2.2)
- multipart-post (1.1.0)
- mustache (0.99.3)
- net-ldap (0.1.1)
- newrelic_rpm (2.14.0)
- nokogiri (1.4.4)
- oa-basic (0.2.0)
- multi_json (~> 0.0.2)
- nokogiri (~> 1.4.2)
- oa-core (= 0.2.0)
- rest-client (~> 1.6.0)
- oa-core (0.2.0)
- rack (~> 1.1)
- oa-enterprise (0.2.0)
- net-ldap (~> 0.1.1)
- nokogiri (~> 1.4.2)
- oa-core (= 0.2.0)
- pyu-ruby-sasl (~> 0.0.3.1)
- rubyntlm (~> 0.1.1)
- oa-more (0.2.0)
- multi_json (~> 0.0.2)
- oa-core (= 0.2.0)
- rest-client (~> 1.6.0)
- oa-oauth (0.2.0)
- multi_json (~> 0.0.2)
- nokogiri (~> 1.4.2)
- oa-core (= 0.2.0)
- oauth (~> 0.4.0)
- oauth2 (~> 0.1.1)
- oa-openid (0.2.0)
- oa-core (= 0.2.0)
- rack-openid (~> 1.2.0)
- ruby-openid-apps-discovery
- oauth (0.4.4)
- oauth2 (0.1.1)
- faraday (~> 0.5.0)
- multi_json (~> 0.0.4)
- omniauth (0.2.0)
- oa-basic (= 0.2.0)
- oa-core (= 0.2.0)
- oa-enterprise (= 0.2.0)
- oa-more (= 0.2.0)
- oa-oauth (= 0.2.0)
- oa-openid (= 0.2.0)
- open4 (1.0.1)
- opub (0.0.1)
- ostatus (0.0.10)
- ratom
- osub (0.0.7)
- ostatus
- ruby-hmac
- plucky (0.3.8)
- mongo (~> 1.3)
- polyglot (0.3.1)
- pony (1.1)
- mail (> 2.0)
- pygmentize (0.0.2)
- pyu-ruby-sasl (0.0.3.2)
- rack (1.2.2)
- rack-flash (0.1.1)
- rack
- rack-mount (0.6.14)
- rack (>= 1.0.0)
- rack-openid (1.2.0)
- rack (>= 1.1.0)
- ruby-openid (>= 2.1.8)
- rack-test (0.5.7)
- rack (>= 1.0)
- rack-timeout (0.0.1)
- rails (3.0.7)
- actionmailer (= 3.0.7)
- actionpack (= 3.0.7)
- activerecord (= 3.0.7)
- activeresource (= 3.0.7)
- activesupport (= 3.0.7)
- bundler (~> 1.0)
- railties (= 3.0.7)
- railties (3.0.7)
- actionpack (= 3.0.7)
- activesupport (= 3.0.7)
- rake (>= 0.8.7)
- thor (~> 0.14.4)
- rake (0.8.7)
- ratom (0.6.8)
- libxml-ruby (>= 1.1.2)
- rdiscount (1.6.8)
- redfinger (0.1.0)
- hashie
- nokogiri (>= 1.4.0)
- rest-client (>= 1.5.0)
- rest-client (1.6.1)
- mime-types (>= 1.16)
- restclient_with_cert (0.0.3)
- rest-client (>= 1.6)
- rocco (0.6)
- mustache
- rdiscount
- rsa (0.1.4)
- ruby-hmac (0.4.0)
- ruby-openid (2.1.8)
- ruby-openid-apps-discovery (1.2.0)
- ruby-openid (>= 2.1.7)
- ruby-stemmer (0.9.1)
- rubyntlm (0.1.1)
- rubyzip (0.9.4)
- sass (3.1.0.alpha.252)
- selenium-webdriver (0.1.4)
- childprocess (>= 0.1.7)
- ffi (>= 1.0.7)
- json_pure
- rubyzip
- simple_oauth (0.1.4)
- simplecov (0.4.2)
- simplecov-html (~> 0.4.4)
- simplecov-html (0.4.4)
- sinatra (1.2.6)
- rack (~> 1.1)
- tilt (< 2.0, >= 1.2.2)
- sinatra-content-for (0.2)
- sinatra
- sinatra-redirect-with-flash (0.1.2)
- rack-flash (>= 0.1.1)
- sinatra (>= 0.9.1)
- sprockets (2.0.0.beta.10)
- hike (~> 1.0)
- rack (~> 1.0)
- tilt (!= 1.3.0, ~> 1.1)
- system_timer (1.0)
- thor (0.14.6)
- tilt (1.3.2)
- time-lord (0.1.5)
- treetop (1.4.9)
- polyglot (>= 0.3.1)
- twitter (1.2.0)
- faraday (~> 0.5.4)
- faraday_middleware (~> 0.3.2)
- hashie (~> 1.0.0)
- multi_json (~> 0.0.5)
- multi_xml (~> 0.2.0)
- simple_oauth (~> 0.1.4)
- tzinfo (0.3.25)
- uglifier (0.5.1)
- execjs
- json
- uuidtools (2.1.2)
- vcr (1.7.2)
- webmock (1.6.2)
- addressable (>= 2.2.2)
- crack (>= 0.1.7)
- whatlanguage (1.0.0)
- whenever (0.6.8)
- aaronh-chronic (>= 0.3.9)
- activesupport (>= 2.3.4)
- xpath (0.1.3)
- nokogiri (~> 1.3)
- yui-compressor (0.9.6)
- POpen4 (>= 0.1.4)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- backports
- bcrypt-ruby
- bson_ext
- capybara
- coffee-script
- compass
- database_cleaner
- delayed_job!
- delayed_job_mongo_mapper!
- exceptional
- factory_girl
- fb_graph
- haml
- i18n
- jammit
- launchy
- minitest
- mocha
- mongo_mapper
- mongomapper_ext
- newrelic_rpm
- nokogiri (= 1.4.4)
- omniauth
- opub
- ostatus (> 0.0.9)
- osub (> 0.0.6)
- pony
- pygmentize
- rack (= 1.2.2)
- rack-flash
- rack-mount
- rack-test
- rack-timeout
- rake (= 0.8.7)
- rdiscount
- redfinger
- require_relative!
- rocco
- rsa
- ruby-stemmer
- sass
- simplecov (~> 0.4.0)
- sinatra
- sinatra-content-for
- sinatra-redirect-with-flash
- sprockets (= 2.0.0.beta.10)
- system_timer
- time-lord
- twitter
- tzinfo
- uglifier
- vcr
- webmock
- whatlanguage
- whenever
View
8 sinatra/Rakefile
@@ -1,8 +0,0 @@
-require 'rake/testtask'
-require 'rake/clean'
-
-task :environment do
- require(File.join(File.dirname(__FILE__),"rstatus"))
-end
-
-Dir.glob("tasks/*.rake").each { |r| import r }
View
50 sinatra/config.ru
@@ -1,50 +0,0 @@
-require 'rubygems'
-require 'bundler/setup'
-require "sprockets"
-require 'uglifier'
-require 'sass'
-
-require File.dirname(__FILE__) + '/rstatus'
-
-ENV['RACK_ENV'] ||= "development"
-
-unless ENV['RACK_ENV'] == "production"
- config = YAML.load_file(File.join(File.dirname(__FILE__) + '/config/config.yml'))[ENV['RACK_ENV']]
-
- config.each do |key, value|
- ENV[key] = value
- end
-else
- require 'exceptional'
- use Rack::Exceptional, ENV['EXCEPTIONAL_KEY']
-end
-
-Assets = Sprockets::Environment.new(Rstatus.root.to_s)
-Assets.static_root = File.join(Rstatus.root, "public", "assets")
-Assets.paths << "assets"
-Assets.logger = Rstatus.log
-# Assets.js_compressor = Uglifier.new
-
-Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
- load_paths << "#{Rstatus.root}/assets/stylesheets"
- load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
- load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets"
-end
-
-compressor = Object.new
-def compressor.compress(source)
- Sass::Engine.new(source,
- :syntax => :scss, :style => :compressed
- ).render
-end
-Assets.css_compressor = compressor
-
-
-map "/assets" do
- run Assets
-end
-
-map "/" do
- run Rstatus
-end
-
View
12 sinatra/config/assets.yml
@@ -1,12 +0,0 @@
-embed_assets: on
-gzip_assets: off
-compress_assets: on
-
-stylesheets:
- screen:
- - public/assets/src/n.css
-
-javascripts:
- app:
- - public/js/lib/jquery.equalHeights.js
- - public/assets/src/main.js
View
2  sinatra/config/compass.config
@@ -1,2 +0,0 @@
-project_path = File.dirname(__FILE__)
-sass_options = {}
View
8 sinatra/lib/rstatus/session.rb
@@ -1,8 +0,0 @@
-class Rstatus::Session < Rack::Session::Cookie
- def call(env)
- load_session(env)
- env["rack.session.options"][:expire_after] = (env['rack.session'][:remember_me] ? 30.days : 4.hours) if env['rack.session'][:user_id]
- status, headers, body = @app.call(env)
- commit_session(env, status, headers, body)
- end
-end
View
2  sinatra/log/exceptional.log
@@ -1,2 +0,0 @@
-# Logfile created on 2011-04-04 14:58:47 -0400 by logger.rb/25413
-[INFO] (["rack.rb:15:in `initialize'"]) 2011-04-04 18:58:47 UTC - Enabling Exceptional for Rack
Please sign in to comment.
Something went wrong with that request. Please try again.