-
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
0 parents
commit 62abb69
Showing
86 changed files
with
4,068 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RACK_ENV=development |
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,14 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile ~/.gitignore_global | ||
|
||
/.bundle | ||
/log/*.log | ||
/tmp | ||
/config/application.yml | ||
/doc | ||
.rspec | ||
.DS_Store | ||
.yardoc |
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,57 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rails', '3.2.3' | ||
|
||
# Bundle edge Rails instead: | ||
# gem 'rails', :git => 'git://github.com/rails/rails.git' | ||
|
||
# gem 'sqlite3' | ||
|
||
|
||
# Gems used only for assets and not required | ||
# in production environments by default. | ||
group :assets do | ||
gem 'sass-rails', '~> 3.2.3' | ||
gem 'compass-rails', '~> 1.0.2' | ||
gem 'bootstrap-sass', '~> 2.0.3' | ||
gem 'coffee-rails', '~> 3.2.1' | ||
|
||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', :platform => :ruby | ||
|
||
gem 'uglifier', '>= 1.0.3' | ||
end | ||
|
||
gem 'jquery-rails' | ||
gem 'haml-rails' | ||
gem 'oauth' | ||
gem 'settingslogic' | ||
gem 'rails_autolink' | ||
gem 'term-ansicolor' | ||
|
||
group :production do | ||
gem 'thin' | ||
end | ||
|
||
group :development, :test do | ||
gem 'rspec-rails' | ||
gem 'fuubar' | ||
gem 'guard-rspec' | ||
gem 'redcarpet' | ||
gem 'yard' | ||
end | ||
|
||
# To use ActiveModel has_secure_password | ||
# gem 'bcrypt-ruby', '~> 3.0.0' | ||
|
||
# To use Jbuilder templates for JSON | ||
# gem 'jbuilder' | ||
|
||
# Use unicorn as the app server | ||
# gem 'unicorn' | ||
|
||
# Deploy with Capistrano | ||
# gem 'capistrano' | ||
|
||
# To use debugger | ||
# gem 'ruby-debug19', :require => 'ruby-debug' |
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,185 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionmailer (3.2.3) | ||
actionpack (= 3.2.3) | ||
mail (~> 2.4.4) | ||
actionpack (3.2.3) | ||
activemodel (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
builder (~> 3.0.0) | ||
erubis (~> 2.7.0) | ||
journey (~> 1.0.1) | ||
rack (~> 1.4.0) | ||
rack-cache (~> 1.2) | ||
rack-test (~> 0.6.1) | ||
sprockets (~> 2.1.2) | ||
activemodel (3.2.3) | ||
activesupport (= 3.2.3) | ||
builder (~> 3.0.0) | ||
activerecord (3.2.3) | ||
activemodel (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
arel (~> 3.0.2) | ||
tzinfo (~> 0.3.29) | ||
activeresource (3.2.3) | ||
activemodel (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
activesupport (3.2.3) | ||
i18n (~> 0.6) | ||
multi_json (~> 1.0) | ||
arel (3.0.2) | ||
bootstrap-sass (2.0.3.1) | ||
builder (3.0.0) | ||
chunky_png (1.2.5) | ||
coffee-rails (3.2.2) | ||
coffee-script (>= 2.2.0) | ||
railties (~> 3.2.0) | ||
coffee-script (2.2.0) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.3.3) | ||
compass (0.12.1) | ||
chunky_png (~> 1.2) | ||
fssm (>= 0.2.7) | ||
sass (~> 3.1) | ||
compass-rails (1.0.2) | ||
compass (>= 0.12.0, < 0.14) | ||
daemons (1.0.10) | ||
diff-lcs (1.1.3) | ||
erubis (2.7.0) | ||
eventmachine (0.12.10) | ||
execjs (1.4.0) | ||
multi_json (~> 1.0) | ||
ffi (1.0.11) | ||
fssm (0.2.9) | ||
fuubar (1.0.0) | ||
rspec (~> 2.0) | ||
rspec-instafail (~> 0.2.0) | ||
ruby-progressbar (~> 0.0.10) | ||
guard (1.1.1) | ||
listen (>= 0.4.2) | ||
thor (>= 0.14.6) | ||
guard-rspec (1.0.0) | ||
guard (>= 1.1) | ||
haml (3.1.5) | ||
haml-rails (0.3.4) | ||
actionpack (~> 3.0) | ||
activesupport (~> 3.0) | ||
haml (~> 3.0) | ||
railties (~> 3.0) | ||
hike (1.2.1) | ||
i18n (0.6.0) | ||
journey (1.0.3) | ||
jquery-rails (2.0.2) | ||
railties (>= 3.2.0, < 5.0) | ||
thor (~> 0.14) | ||
json (1.7.3) | ||
listen (0.4.4) | ||
rb-fchange (~> 0.0.5) | ||
rb-fsevent (~> 0.9.1) | ||
rb-inotify (~> 0.8.8) | ||
mail (2.4.4) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
mime-types (1.18) | ||
multi_json (1.3.6) | ||
oauth (0.4.6) | ||
polyglot (0.3.3) | ||
rack (1.4.1) | ||
rack-cache (1.2) | ||
rack (>= 0.4) | ||
rack-ssl (1.3.2) | ||
rack | ||
rack-test (0.6.1) | ||
rack (>= 1.0) | ||
rails (3.2.3) | ||
actionmailer (= 3.2.3) | ||
actionpack (= 3.2.3) | ||
activerecord (= 3.2.3) | ||
activeresource (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
bundler (~> 1.0) | ||
railties (= 3.2.3) | ||
rails_autolink (1.0.9) | ||
rails (~> 3.1) | ||
railties (3.2.3) | ||
actionpack (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
rack-ssl (~> 1.3.2) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (~> 0.14.6) | ||
rake (0.9.2.2) | ||
rb-fchange (0.0.5) | ||
ffi | ||
rb-fsevent (0.9.1) | ||
rb-inotify (0.8.8) | ||
ffi (>= 0.5.0) | ||
rdoc (3.12) | ||
json (~> 1.4) | ||
redcarpet (2.1.1) | ||
rspec (2.10.0) | ||
rspec-core (~> 2.10.0) | ||
rspec-expectations (~> 2.10.0) | ||
rspec-mocks (~> 2.10.0) | ||
rspec-core (2.10.1) | ||
rspec-expectations (2.10.0) | ||
diff-lcs (~> 1.1.3) | ||
rspec-instafail (0.2.4) | ||
rspec-mocks (2.10.1) | ||
rspec-rails (2.10.0) | ||
actionpack (>= 3.0) | ||
activesupport (>= 3.0) | ||
railties (>= 3.0) | ||
rspec (~> 2.10.0) | ||
ruby-progressbar (0.0.10) | ||
sass (3.1.19) | ||
sass-rails (3.2.5) | ||
railties (~> 3.2.0) | ||
sass (>= 3.1.10) | ||
tilt (~> 1.3) | ||
settingslogic (2.0.6) | ||
sprockets (2.1.3) | ||
hike (~> 1.2) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
term-ansicolor (1.0.7) | ||
thin (1.3.1) | ||
daemons (>= 1.0.9) | ||
eventmachine (>= 0.12.6) | ||
rack (>= 1.0.0) | ||
thor (0.14.6) | ||
tilt (1.3.3) | ||
treetop (1.4.10) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.33) | ||
uglifier (1.2.4) | ||
execjs (>= 0.3.0) | ||
multi_json (>= 1.0.2) | ||
yard (0.8.2.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bootstrap-sass (~> 2.0.3) | ||
coffee-rails (~> 3.2.1) | ||
compass-rails (~> 1.0.2) | ||
fuubar | ||
guard-rspec | ||
haml-rails | ||
jquery-rails | ||
oauth | ||
rails (= 3.2.3) | ||
rails_autolink | ||
redcarpet | ||
rspec-rails | ||
sass-rails (~> 3.2.3) | ||
settingslogic | ||
term-ansicolor | ||
thin | ||
uglifier (>= 1.0.3) | ||
yard |
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,36 @@ | ||
# A sample Guardfile | ||
# More info at https://github.com/guard/guard#readme | ||
|
||
guard 'rspec', :version => 2 do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | ||
|
||
# Rails example | ||
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } | ||
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } | ||
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } | ||
watch('config/routes.rb') { "spec/routing" } | ||
watch('app/controllers/application_controller.rb') { "spec/controllers" } | ||
# Capybara request specs | ||
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } | ||
end | ||
|
||
|
||
guard 'rspec', :version => 2 do | ||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | ||
|
||
# Rails example | ||
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } | ||
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } | ||
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } | ||
watch('config/routes.rb') { "spec/routing" } | ||
watch('app/controllers/application_controller.rb') { "spec/controllers" } | ||
# Capybara request specs | ||
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } | ||
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 @@ | ||
web: bundle exec rails server thin -p $PORT -e $RACK_ENV |
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,11 @@ | ||
Jack of all tweets | ||
================== | ||
|
||
This is a small web app for exploring Twitter's [REST API](https://dev.twitter.com/docs/api). | ||
|
||
* authorization via [Sign in with Twitter](https://dev.twitter.com/docs/auth/sign-twitter) | ||
* paginated listing of users you are following | ||
* paginated listing of users matching a search | ||
* follow / unfollow multiple users by selection | ||
* monitor rate limit and feature rate limit status | ||
* lightweight - the web app doesn't have a database, OAuth token and token secret are stored in a cookie |
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,7 @@ | ||
#!/usr/bin/env rake | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require File.expand_path('../config/application', __FILE__) | ||
|
||
JackOfAllTweets::Application.load_tasks |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
// This is a manifest file that'll be compiled into application.js, which will include all the files | ||
// listed below. | ||
// | ||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | ||
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | ||
// | ||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | ||
// the compiled file. | ||
// | ||
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD | ||
// GO AFTER THE REQUIRES BELOW. | ||
// | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require bootstrap-tooltip | ||
//= require bootstrap-popover | ||
//= require_tree . |
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,32 @@ | ||
jQuery -> | ||
$('.dropdown-toggle').dropdown() | ||
$('a[rel="popover"]').popover(placement: 'bottom') | ||
|
||
# disables the submit button if no checkbox is checked | ||
setSubmit = -> | ||
if $('.accounts :checkbox:checked').length > 0 | ||
$('input:submit').addClass('btn-primary').prop('disabled', false) | ||
else | ||
$('input:submit').removeClass('btn-primary').prop('disabled', true) | ||
|
||
$('.accounts').on 'change', ':checkbox', (event) -> | ||
$checkbox = $(@) | ||
if $checkbox.is(':checked') | ||
$checkbox.closest('.account').addClass('selected') | ||
else | ||
$checkbox.closest('.account').removeClass('selected') | ||
setSubmit() | ||
|
||
$('.accounts').on 'click', ':checkbox', (event) -> | ||
# prevent recursion | ||
event.stopPropagation() | ||
|
||
$('.accounts').on 'click', '.account', (event) -> | ||
$(@).find(":checkbox").trigger('click') | ||
|
||
$('.accounts .account').css('cursor', 'pointer') | ||
|
||
$('.accounts :checkbox').hide().after('<div class="check-mark" />') | ||
|
||
setSubmit() | ||
|
Oops, something went wrong.