repo
string
commit
string
message
string
diff
string
andreacampi/fancybox
e3bbc8abb41de8d0d7c037323197e57367f6881d
Unix newlines.
diff --git a/jquery.fancybox-1.0.0.js b/jquery.fancybox-1.0.0.js index d1f2b75..bd932dd 100755 --- a/jquery.fancybox-1.0.0.js +++ b/jquery.fancybox-1.0.0.js @@ -1,384 +1,384 @@ -/* - * FancyBox - simple jQuery plugin for fancy image zooming - * Examples and documentation at: http://fancy.klade.lv/ - * Version: 1.0.0...
andreacampi/fancybox
19d822961a9134bc9443ef970976caa15b742e8b
Stock version from http://fancy.klade.lv/ (29/04/2008 release).
diff --git a/Thumbs.db b/Thumbs.db new file mode 100755 index 0000000..212ff8a Binary files /dev/null and b/Thumbs.db differ diff --git a/fancy.css b/fancy.css new file mode 100755 index 0000000..5dc50da --- /dev/null +++ b/fancy.css @@ -0,0 +1,231 @@ +div#fancy_overlay { + position:absolute; + top: 0; + left: 0; +...
mjangda/What-The-Colour
4fb429c6b29067e0bbebc9566416e9fceb6298c8
Adding Readme file
diff --git a/README b/README new file mode 100644 index 0000000..fe0f64b --- /dev/null +++ b/README @@ -0,0 +1,8 @@ +what the colour?! is a cool way to find images matching colour palettes. It mashes up the Piximilar and colourslovers.com APIs. + +This sweet app built over the period of 5-6 hours at the first HackTO ho...
mjangda/What-The-Colour
b4a279329b7891c14897bff405f51935aabce5a9
Initial dump of files
diff --git a/HttpClient.class.php b/HttpClient.class.php new file mode 100644 index 0000000..cae27f0 --- /dev/null +++ b/HttpClient.class.php @@ -0,0 +1,339 @@ +<?php + +/* Version 0.9, 6th April 2003 - Simon Willison ( http://simon.incutio.com/ ) + Manual: http://scripts.incutio.com/httpclient/ +*/ + +class HttpClie...
jmoses/rails-crud
3827734aa78eea0358d66f10c231523316a919b4
Move file around, make gem spec actually, you know, work.
diff --git a/Rakefile b/Rakefile index 8eb198e..0f7adb3 100644 --- a/Rakefile +++ b/Rakefile @@ -1,29 +1,29 @@ require 'rubygems' require 'rake' require 'rake/gempackagetask' PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*', 'app/**/*', 'rails/**/*' ] spec = Gem::Specification.new do |s| s.name = ...
jmoses/rails-crud
03aa0d1b54422c87d5a178a672c409fb7c4a1ab7
No backup files.
diff --git a/.gitignore b/.gitignore index 5fff1d9..d4f9f67 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ pkg +._*
jmoses/rails-crud
bc8d1163627881f2fd8b266f4fbcd3d4cd9757a9
Working rakefile
diff --git a/Rakefile b/Rakefile index 207d0f4..8eb198e 100644 --- a/Rakefile +++ b/Rakefile @@ -1,29 +1,29 @@ -require 'rubgems' +require 'rubygems' require 'rake' require 'rake/gempackagetask' -PKG_FILES = [ +PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*', 'app/**/*', 'rails/**/*' ] -spec = GemSpeci...
jmoses/rails-crud
4e882f834a1974844a868ab8f451635aeff1e891
ignore pcakged files
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5fff1d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pkg
jmoses/rails-crud
3d7970643ef13bedfb15e09dfd0ccd4386ab652d
Add rakefile for gems
diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..207d0f4 --- /dev/null +++ b/Rakefile @@ -0,0 +1,29 @@ +require 'rubgems' +require 'rake' +require 'rake/gempackagetask' + +PKG_FILES = [ + '[a-zA-Z]*', + 'lib/**/*', + 'app/**/*', + 'rails/**/*' +] + +spec = GemSpecification.new do |s| + s.name =...
jmoses/rails-crud
53baaccc6aba7c997021a5142d0e3f8374c0e1b3
Support for other actions besides edit and destroy
diff --git a/app/views/crud/_other_actions.html.haml b/app/views/crud/_other_actions.html.haml new file mode 100644 index 0000000..e69de29 diff --git a/app/views/crud/index.html.haml b/app/views/crud/index.html.haml index 55b2129..878ce3e 100644 --- a/app/views/crud/index.html.haml +++ b/app/views/crud/index.html.haml ...
jmoses/rails-crud
83f124d6a023e39c1c0bc47ac6b8872387be7b9e
Requires haml
diff --git a/README b/README new file mode 100644 index 0000000..cf17e05 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +# Requirements: + +* haml \ No newline at end of file
jmoses/rails-crud
ae092609e54f6b47e46ae062172c3ff1ce787866
Initial extract / commit
diff --git a/app/views/crud/.__fields.html.haml b/app/views/crud/.__fields.html.haml new file mode 100644 index 0000000..16fca37 Binary files /dev/null and b/app/views/crud/.__fields.html.haml differ diff --git a/app/views/crud/.__form.html.haml b/app/views/crud/.__form.html.haml new file mode 100644 index 0000000..a10...
mitchellh/hash_ring
0760efa8a2d0a7916faf52e6fca53f39592aa069
Fixed a bug with objects as nodes, forgot to call to_s in certain place which caused strange errors.
diff --git a/hash_ring.gemspec b/hash_ring.gemspec index e6c211c..29ee81c 100644 --- a/hash_ring.gemspec +++ b/hash_ring.gemspec @@ -1,32 +1,32 @@ Gem::Specification.new do |s| s.specification_version = 2 if s.respond_to? :specification_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.res...
mitchellh/hash_ring
79c86d40c780447636fb7fcb58f7ab9cd0573f6f
Added license and also added usage docs to top of HashRing class.
diff --git a/lib/hash_ring.rb b/lib/hash_ring.rb index ba47dad..12657ff 100644 --- a/lib/hash_ring.rb +++ b/lib/hash_ring.rb @@ -1,169 +1,185 @@ -# -#-- +###################################### +# hash_ring +# Code ported from Python version written by Amir Salihefendic +###################################### # Copyrig...
mitchellh/hash_ring
3089c5edaab16086da6002026b0b4c98165968b0
Added iterate_nodes method and specs.
diff --git a/lib/hash_ring.rb b/lib/hash_ring.rb index 569a7bc..ba47dad 100644 --- a/lib/hash_ring.rb +++ b/lib/hash_ring.rb @@ -1,145 +1,169 @@ # #-- # Copyright (c) 2009, Mitchell Hashimoto, mitchell.hashimoto@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
mitchellh/hash_ring
d59396c80dfc18c404d179ed38fa17b01d1f83e8
DRYd up specs a bit.
diff --git a/spec/hash_ring_spec.rb b/spec/hash_ring_spec.rb index c951608..3eee17d 100644 --- a/spec/hash_ring_spec.rb +++ b/spec/hash_ring_spec.rb @@ -1,178 +1,160 @@ require File.dirname(__FILE__) + '/spec_base' require 'digest/md5' # Basic constants UNWEIGHTED_RUNS = 1000 UNWEIGHTED_ERROR_BOUND = 0.05 WEIGH...
mitchellh/hash_ring
0e602321de7b5fc1fbe877d3b193873e5bbd712c
Added get_node function and specced.
diff --git a/lib/hash_ring.rb b/lib/hash_ring.rb index 0a7a91d..569a7bc 100644 --- a/lib/hash_ring.rb +++ b/lib/hash_ring.rb @@ -1,98 +1,145 @@ # #-- # Copyright (c) 2009, Mitchell Hashimoto, mitchell.hashimoto@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this so...
mitchellh/hash_ring
a1a08598eaa493bf04e3bf69d65de0a7b4452f39
Circle generation working properly + specced
diff --git a/lib/hash_ring.rb b/lib/hash_ring.rb index 468382f..0a7a91d 100644 --- a/lib/hash_ring.rb +++ b/lib/hash_ring.rb @@ -1,97 +1,98 @@ # #-- # Copyright (c) 2009, Mitchell Hashimoto, mitchell.hashimoto@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this sof...
mitchellh/hash_ring
3f2c2dec7ed7ce316876e4044fc9765b3f42e31a
Basic ring generation ported over with specs.
diff --git a/lib/hash_ring.rb b/lib/hash_ring.rb index b81d777..468382f 100644 --- a/lib/hash_ring.rb +++ b/lib/hash_ring.rb @@ -1,3 +1,97 @@ +# +#-- +# Copyright (c) 2009, Mitchell Hashimoto, mitchell.hashimoto@gmail.com +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this soft...
mitchellh/hash_ring
17de1921c400755ea8285e7733d009f56e360858
Added a more serious README.
diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..f2d9cf5 --- /dev/null +++ b/README.rdoc @@ -0,0 +1,11 @@ += hash_ring + +hash_ring is a pure Ruby implementation of consistent hashing. +hash_ring is based on the original Python code written by +Amir Salihefendic. A comprehensive blog post det...
mitchellh/hash_ring
e7562df53c814f3e9e1848eaf14812a45e030789
Added basic boilerplate code: Rakefile, gemspec, README, CREDITS.
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..613de00 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg/* +tmp/* +*~ \ No newline at end of file diff --git a/CREDITS.txt b/CREDITS.txt new file mode 100644 index 0000000..ef930a5 --- /dev/null +++ b/CREDITS.txt @@ -0,0 +1,9 @@ +==============...
abrooks/deVNC
a9e9a83ae285e5d56638b34008deab5cadcfcd4e
Notes with no context.
diff --git a/NOTES b/NOTES new file mode 100644 index 0000000..93fcdce --- /dev/null +++ b/NOTES @@ -0,0 +1,35 @@ +As far as design thoughts go I realized that in an X11 environment the +right way to enroll, de-enroll windows for sharing is mark windows via +X11 window properties which means the initial management inte...
singpolyma/NNTP-Forum
6323939133f717d13d76b5976c00ee73e24d5e05
mention apt.singpolyma.net
diff --git a/README b/README index 8b9c172..5f59181 100644 --- a/README +++ b/README @@ -1,21 +1,23 @@ The purpose of this project is to create a fully-functional webforum that uses NNTP instead of SQL to access its data. This application uses rackup, and should support any server that supports rackup. It has been...
singpolyma/NNTP-Forum
e12b06e455c09674aa569eeaa6644524203405c0
do not choke on empty parts
diff --git a/controllers/thread.rb b/controllers/thread.rb index 6ea1347..f079934 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,93 +1,93 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'nokogiri' require 'kramdown' require 'mail' class ThreadController < ...
singpolyma/NNTP-Forum
94d5258e2248c66c63e917e4e4ceff130dee4938
no extra / when in root
diff --git a/views/rss_item.haml b/views/rss_item.haml index 95aca23..8bd315a 100644 --- a/views/rss_item.haml +++ b/views/rss_item.haml @@ -1,9 +1,9 @@ -# encoding: utf-8 %item %title= item[:subject] %pubDate= item[:date].rfc2822 %link - http#{@env['HTTPS']?'s':''}://#{@env['HTTP_HOST']}/#{@env['config']['sub...
singpolyma/NNTP-Forum
44691980c2d4268b1b19fdb635b57f937df83230
more quoting formatting fixes
diff --git a/controllers/thread.rb b/controllers/thread.rb index e7adf91..6ea1347 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,91 +1,93 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'nokogiri' require 'kramdown' require 'mail' class ThreadController < ...
singpolyma/NNTP-Forum
0685945451c674cf9383689901ddb5750cbb2d34
the comma is not required, and is in fact nonstandard
diff --git a/lib/nntp.rb b/lib/nntp.rb index 5b77542..5df675f 100644 --- a/lib/nntp.rb +++ b/lib/nntp.rb @@ -1,97 +1,97 @@ require 'lib/simple_protocol' require 'uri' require 'time' module NNTP def self.overview_to_hash(line) line = line.force_encoding('utf-8').split("\t") { :article_num => line[0]....
singpolyma/NNTP-Forum
3eb4ccc0136a478c8430ae416236c070b236ddc2
select each thread only once
diff --git a/lib/nntp.rb b/lib/nntp.rb index 9ec606b..5b77542 100644 --- a/lib/nntp.rb +++ b/lib/nntp.rb @@ -1,93 +1,97 @@ require 'lib/simple_protocol' require 'uri' require 'time' module NNTP def self.overview_to_hash(line) line = line.force_encoding('utf-8').split("\t") { :article_num => line[0]....
singpolyma/NNTP-Forum
b04d2ee494eeb8445fc67292a2231adcd2a71f2e
redirect back to thread after reply
diff --git a/controllers/post.rb b/controllers/post.rb index 241a355..7556e27 100644 --- a/controllers/post.rb +++ b/controllers/post.rb @@ -1,96 +1,104 @@ # encoding: utf-8 require 'controllers/application' require 'lib/nntp' require 'mail' class PostController < ApplicationController attr_reader :template, :...
singpolyma/NNTP-Forum
e5162e1bc88d8f851caeb2c072d8204941b5b238
better nested blockquote support
diff --git a/controllers/thread.rb b/controllers/thread.rb index 015e026..e7adf91 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,89 +1,91 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'nokogiri' require 'kramdown' require 'mail' class ThreadController < ...
singpolyma/NNTP-Forum
c27f4c501f6a51d1eff73ffcb55467b92b46ffd4
clean up blockquotes so that Kramdown always renders them
diff --git a/controllers/thread.rb b/controllers/thread.rb index 57b68e2..015e026 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,89 +1,89 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'nokogiri' require 'kramdown' require 'mail' class ThreadController < ...
singpolyma/NNTP-Forum
9d2a00cc30bbf3b94bd54f7fc0451b501ea4dda0
switch to Kramdown
diff --git a/controllers/thread.rb b/controllers/thread.rb index ea2330e..57b68e2 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,90 +1,89 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'nokogiri' -require 'bluecloth' +require 'kramdown' require 'mail' clas...
singpolyma/NNTP-Forum
c84d5bca227a85822e29b59c236c21548fb0c8eb
tweak to post form text
diff --git a/views/post_form.haml b/views/post_form.haml index 8df759d..1ee6378 100644 --- a/views/post_form.haml +++ b/views/post_form.haml @@ -1,31 +1,34 @@ -# encoding: utf-8 !!! 5 %html(xmlns="http://www.w3.org/1999/xhtml") != include 'views/invisible_header.haml' %body != include 'views/visible_header....
singpolyma/NNTP-Forum
d5ee312a64e3a0bb248d752784c4dd26dee11462
new ruby1.9 path requirements
diff --git a/config.ru b/config.ru index 94e8d5d..23d552f 100755 --- a/config.ru +++ b/config.ru @@ -1,48 +1,50 @@ #!/usr/bin/env rackup # encoding: utf-8 #\ -E deployment +$: << File.dirname(__FILE__) + require 'rack/accept_media_types' #require 'rack/supported_media_types' require 'lib/path_info_fix' require...
singpolyma/NNTP-Forum
ba99510de63250899c8ea70687bcc58b27a43892
posting and replying
diff --git a/config.ru b/config.ru index e1c0aac..94e8d5d 100755 --- a/config.ru +++ b/config.ru @@ -1,36 +1,48 @@ #!/usr/bin/env rackup # encoding: utf-8 #\ -E deployment require 'rack/accept_media_types' #require 'rack/supported_media_types' require 'lib/path_info_fix' require 'lib/subdirectory_routing' req...
singpolyma/NNTP-Forum
b6aa47a5df4fc112032b98bc4a9ebb5983a4d3ab
fixes to NNTP wrapper
diff --git a/lib/nntp.rb b/lib/nntp.rb index fd593cc..9ec606b 100644 --- a/lib/nntp.rb +++ b/lib/nntp.rb @@ -1,82 +1,93 @@ require 'lib/simple_protocol' require 'uri' require 'time' module NNTP def self.overview_to_hash(line) line = line.force_encoding('utf-8').split("\t") { :article_num => line[0]....
singpolyma/NNTP-Forum
b62a42ed90afa28326cddcbc530a01aed47ec63a
more header decoding
diff --git a/controllers/thread.rb b/controllers/thread.rb index 00142d8..ea2330e 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,88 +1,90 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'nokogiri' require 'bluecloth' require 'mail' class ThreadController <...
singpolyma/NNTP-Forum
9683bcf8d81719603f32cda3e0c2d2aed638a1cd
styling updates
diff --git a/stylesheets/index.css b/stylesheets/index.css index cbb104a..b26e9ae 100644 --- a/stylesheets/index.css +++ b/stylesheets/index.css @@ -1,16 +1,21 @@ +.new { + display: block; + text-align: right; + margin-right: 1.5em; +} .hfeed .hentry .entry-title { display: block; margin-bottom: 0.3em; } .h...
singpolyma/NNTP-Forum
b97f156e579adb5357ecc2249ed8a12caef580b9
fix thread link
diff --git a/views/thread_summary.haml b/views/thread_summary.haml index 2d35427..3f87106 100644 --- a/views/thread_summary.haml +++ b/views/thread_summary.haml @@ -1,23 +1,23 @@ -# encoding: utf-8 %li.hentry - %a.entry-title.bookmark(href="thread/#{item[:message_id][1..-2]}") + %a.entry-title(rel="bookmark" href="#{...
singpolyma/NNTP-Forum
fee2a8253e851a84cc5baba90ac2f755b1f765c7
autodiscovery for rss
diff --git a/views/invisible_header.haml b/views/invisible_header.haml index 5997cbd..f8c94a7 100644 --- a/views/invisible_header.haml +++ b/views/invisible_header.haml @@ -1,4 +1,5 @@ -# encoding: utf-8 %head %title= title + %link(rel="alternate" type="application/rss+xml" href="?_accept=application/rss%2Bxml") ...
singpolyma/NNTP-Forum
e588f1b63ab25bd7b637b08834acdd47a8aa4d81
print original link if there is one
diff --git a/views/thread.haml b/views/thread.haml index b7ebd5b..1178eef 100644 --- a/views/thread.haml +++ b/views/thread.haml @@ -1,21 +1,24 @@ -# encoding: utf-8 !!! 5 %html(xmlns="http://www.w3.org/1999/xhtml") != include 'views/invisible_header.haml' %body != include 'views/visible_header.haml' %...
singpolyma/NNTP-Forum
75667728a4c3ee4f01da42f5bc9314c1b408e277
next is a better name than older
diff --git a/views/thread.haml b/views/thread.haml index 3486291..b7ebd5b 100644 --- a/views/thread.haml +++ b/views/thread.haml @@ -1,21 +1,21 @@ -# encoding: utf-8 !!! 5 %html(xmlns="http://www.w3.org/1999/xhtml") != include 'views/invisible_header.haml' %body != include 'views/visible_header.haml' %...
singpolyma/NNTP-Forum
e7396324986e07c93d67727294a9706347d89a2c
MIME handling/header decoding
diff --git a/controllers/index.rb b/controllers/index.rb index 2309d7d..7053e34 100644 --- a/controllers/index.rb +++ b/controllers/index.rb @@ -1,29 +1,36 @@ require 'controllers/application.rb' require 'lib/nntp' +require 'mail' class IndexController < ApplicationController def initialize(env) super Simp...
singpolyma/NNTP-Forum
fee79a1b92397b084fed0a86cd9fedb7289b8f71
Works when no results
diff --git a/controllers/application.rb b/controllers/application.rb index a1c18cc..f9e049d 100644 --- a/controllers/application.rb +++ b/controllers/application.rb @@ -1,55 +1,68 @@ require 'lib/haml_controller' require 'json' class ApplicationController < HamlController def initialize(env) super() @env =...
singpolyma/NNTP-Forum
6dbaec1cf456dc0a58f713ade5a38b417eca9155
allow _accept override
diff --git a/controllers/application.rb b/controllers/application.rb index 95a75eb..a1c18cc 100644 --- a/controllers/application.rb +++ b/controllers/application.rb @@ -1,55 +1,55 @@ require 'lib/haml_controller' require 'json' class ApplicationController < HamlController def initialize(env) super() @env =...
singpolyma/NNTP-Forum
056a2f4a6adbd5bef597faac386777af717c119f
uri formatting helper
diff --git a/lib/haml_controller.rb b/lib/haml_controller.rb index 9a7156c..4d6737e 100644 --- a/lib/haml_controller.rb +++ b/lib/haml_controller.rb @@ -1,46 +1,51 @@ require 'haml' +require 'uri' # Hack to make ruby 1.9.0 work with new haml unless Encoding.respond_to?:default_internal class Encoding def self...
singpolyma/NNTP-Forum
7f485383d78a5b2208ec229aad4b001652ec85da
better newline normalization
diff --git a/lib/simple_protocol.rb b/lib/simple_protocol.rb index eab68de..0dd4b61 100644 --- a/lib/simple_protocol.rb +++ b/lib/simple_protocol.rb @@ -1,71 +1,71 @@ require 'socket' require 'uri' class SimpleProtocol def initialize(args={}) server_set args @socket = TCPSocket.new(@host, @port) gets ...
singpolyma/NNTP-Forum
2478ab9f953db69b964fdb875758543c85f8a359
COPYING utf-8
diff --git a/COPYING b/COPYING index edeb75c..7a82815 100644 --- a/COPYING +++ b/COPYING @@ -1,13 +1,13 @@ -Copyright  2010, Stephen Paul Weber <singpolyma.net> +Copyright © 2010, Stephen Paul Weber <singpolyma.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without f...
singpolyma/NNTP-Forum
4d40fbb0931f1db5bc890bf1bcfb4c80792172b6
More styles for threads
diff --git a/stylesheets/thread.css b/stylesheets/thread.css index 998a89b..2a6a707 100644 --- a/stylesheets/thread.css +++ b/stylesheets/thread.css @@ -1,20 +1,29 @@ body > section > h1 { margin-left: 2%; margin-right: 2%; padding-left: 1%; padding-right: 1%; line-height: 1.4em; background: #666677;...
singpolyma/NNTP-Forum
adc21764f06d4d2645d95bcffefe241db14c14e2
Nokogiri and Mail
diff --git a/.gems b/.gems index e38f103..0cc51a7 100644 --- a/.gems +++ b/.gems @@ -1,6 +1,8 @@ rack --version 1.2.1 http_router --version 0.3.5 rack-accept-media-types json bluecloth --version 2.0.7 haml +nokogiri +mail
singpolyma/NNTP-Forum
60b42571fd558bd55bb38cf84ce3736cdc9ed9ad
Force bluecloth verios
diff --git a/.gems b/.gems index 6f85d3f..e38f103 100644 --- a/.gems +++ b/.gems @@ -1,6 +1,6 @@ rack --version 1.2.1 http_router --version 0.3.5 rack-accept-media-types json -bluecloth +bluecloth --version 2.0.7 haml
singpolyma/NNTP-Forum
6907e2e30fd60a49dd1931830827c0ed83f18ef0
prep for heroku test 1
diff --git a/.gems b/.gems new file mode 100644 index 0000000..6f85d3f --- /dev/null +++ b/.gems @@ -0,0 +1,6 @@ +rack --version 1.2.1 +http_router --version 0.3.5 +rack-accept-media-types +json +bluecloth +haml diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 7c3345a..0000000 --- a/.gitignore +++ /d...
singpolyma/NNTP-Forum
386cda67860b3c0badd15d2c97d4fe8e037334ae
Add cache headers
diff --git a/controllers/application.rb b/controllers/application.rb index 5ecddc3..95a75eb 100644 --- a/controllers/application.rb +++ b/controllers/application.rb @@ -1,51 +1,55 @@ require 'lib/haml_controller' require 'json' class ApplicationController < HamlController def initialize(env) super() @env =...
singpolyma/NNTP-Forum
6f4dafe78a529ff2f9252f8447fa5336924d1ace
accept HEAD requests
diff --git a/config.ru b/config.ru index a34de49..e1c0aac 100755 --- a/config.ru +++ b/config.ru @@ -1,36 +1,36 @@ #!/usr/bin/env rackup # encoding: utf-8 #\ -E deployment require 'rack/accept_media_types' #require 'rack/supported_media_types' require 'lib/path_info_fix' require 'lib/subdirectory_routing' req...
singpolyma/NNTP-Forum
fd8ccb6751795fc3da546e160475d3753ba0f917
Link properly running in root
diff --git a/views/visible_header.haml b/views/visible_header.haml index e862862..888fca1 100644 --- a/views/visible_header.haml +++ b/views/visible_header.haml @@ -1,5 +1,5 @@ -# encoding: utf-8 %header %h1 - %a.home{:href => @env['config']['subdirectory']} + %a.home{:href => @env['config']['subdirectory'] || '/...
singpolyma/NNTP-Forum
ea5ecf3b8476766af736994cc5daac9998a69807
MIME/HTML support
diff --git a/README b/README index 8a1d5ba..8b9c172 100644 --- a/README +++ b/README @@ -1,19 +1,21 @@ The purpose of this project is to create a fully-functional webforum that uses NNTP instead of SQL to access its data. This application uses rackup, and should support any server that supports rackup. It has been...
singpolyma/NNTP-Forum
10cd8b120e20b3dccbd8fdd67a4e7742c9310859
Show cross post and followup-to
diff --git a/controllers/thread.rb b/controllers/thread.rb index 94839c6..d5ac741 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,52 +1,54 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'bluecloth' class ThreadController < ApplicationController def initial...
singpolyma/NNTP-Forum
3a87a13a22d07ce5125d9784e8480225d8483cfa
> is meaningful to Markdown
diff --git a/controllers/thread.rb b/controllers/thread.rb index 11d5a01..94839c6 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,51 +1,52 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'bluecloth' class ThreadController < ApplicationController def initial...
singpolyma/NNTP-Forum
2185297464098b01c2803e52eb77f1359ddb0254
Heroku static files
diff --git a/config.ru b/config.ru index 3b4a2f8..a34de49 100755 --- a/config.ru +++ b/config.ru @@ -1,35 +1,36 @@ #!/usr/bin/env rackup # encoding: utf-8 #\ -E deployment require 'rack/accept_media_types' #require 'rack/supported_media_types' require 'lib/path_info_fix' require 'lib/subdirectory_routing' req...
singpolyma/NNTP-Forum
fa4d9e4858cb91a658e850fbc0f813ebcd0861b0
Being too conservative also costs performance
diff --git a/lib/nntp.rb b/lib/nntp.rb index d788118..c2b9893 100644 --- a/lib/nntp.rb +++ b/lib/nntp.rb @@ -1,81 +1,81 @@ require 'lib/simple_protocol' require 'uri' require 'time' module NNTP def self.overview_to_hash(line) line = line.force_encoding('utf-8').split("\t") { :article_num => line[0]....
singpolyma/NNTP-Forum
8881d83c486e416c5faa15385aac2d9707169b57
Support quoted names
diff --git a/views/thread_summary.haml b/views/thread_summary.haml index 856738c..8aa1db9 100644 --- a/views/thread_summary.haml +++ b/views/thread_summary.haml @@ -1,16 +1,16 @@ -# encoding: utf-8 %li.hentry %a.entry-title.bookmark(href="thread/#{item[:message_id][1..-2]}") = item[:subject] %span.author -i...
singpolyma/NNTP-Forum
65005ccc55a72d254e42693bbe1baeabde0744f0
Makefile improvements
diff --git a/Makefile b/Makefile index 23d902f..f3431cd 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,7 @@ +.SUFFIXES: .less .css + styles: for FILE in stylesheets/*.less; do $(MAKE) `dirname $$FILE`/`basename $$FILE .less`.css; done -.PHONY: clean -clean: - $(RM) $^ stylesheets/*.css - -.SUFFIXES: .less .css ...
singpolyma/NNTP-Forum
05f597dc6fdb5ff9a06f988cee630dc69145522c
Styling changes
diff --git a/stylesheets/common.less b/stylesheets/common.less index ea1af22..5c6a136 100644 --- a/stylesheets/common.less +++ b/stylesheets/common.less @@ -1,52 +1,65 @@ @import "colours"; html, body { background: @background; color: @foreground; font-family: sans-serif; padding: 0; margin: 0; } a { ...
singpolyma/NNTP-Forum
c3673ab14d9d5278b4de14a0483281757c9e0dec
Pagination now works
diff --git a/controllers/application.rb b/controllers/application.rb index db88c3a..d3385c3 100644 --- a/controllers/application.rb +++ b/controllers/application.rb @@ -1,39 +1,49 @@ require 'lib/haml_controller' require 'json' class ApplicationController < HamlController + def initialize(env) + super() + @env =...
singpolyma/NNTP-Forum
203855f751a173b9865343a4ba40dca67a2d81b4
Link to home in header
diff --git a/views/visible_header.haml b/views/visible_header.haml index 465261f..e862862 100644 --- a/views/visible_header.haml +++ b/views/visible_header.haml @@ -1,2 +1,5 @@ +-# encoding: utf-8 %header - %h1= @env['config']['title'] + %h1 + %a.home{:href => @env['config']['subdirectory']} + =@env['config']['titl...
singpolyma/NNTP-Forum
6473991d24e30b82cc6fc4b61dcf273d86cee5dd
Handle case when there is no email
diff --git a/controllers/thread.rb b/controllers/thread.rb index f20a95f..b0155ca 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,52 +1,52 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'bluecloth' class ThreadController < ApplicationController def initial...
singpolyma/NNTP-Forum
aa408cc71c6724787416ebc6eee854c5313061b7
Fix encodings
diff --git a/controllers/thread.rb b/controllers/thread.rb index 3e5eb93..f20a95f 100644 --- a/controllers/thread.rb +++ b/controllers/thread.rb @@ -1,51 +1,52 @@ require 'controllers/application' require 'lib/nntp' require 'digest' require 'bluecloth' class ThreadController < ApplicationController def initial...
satta/genometools-perl
aea39c7d428cc2cd35429ed71647f24a917c2092
some fixes
diff --git a/GT/Core/Encseq.pm b/GT/Core/Encseq.pm index d311981..ab8f6c4 100644 --- a/GT/Core/Encseq.pm +++ b/GT/Core/Encseq.pm @@ -1,190 +1,188 @@ #!/usr/bin/perl -w # # Copyright (c) 2010 Sascha Steinbiss <steinbiss@zbh.uni-hamburg.de> # Copyright (c) 2010 Center for Bioinformatics, University of Hamburg # # P...
hugomaiavieira/batraquio
779637a99a169a4d1ed914a102d57cb9fb217a87
Removed Licenses snippets; Add Obs about Gmate; Remove plugin task from install.sh
diff --git a/README.md b/README.md index 2a6c6f9..9bd3f21 100644 --- a/README.md +++ b/README.md @@ -1,344 +1,333 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and improve the developers production. -I strongly recommend that you install the [gmate](http://github.com/gmate/gmate)...
hugomaiavieira/batraquio
f85716817423d7e72c05d52845ce28f31d2a929a
Remove Align columns plugin; Move it to github.com/algorich/gedit-align-columns
diff --git a/README.md b/README.md index 9311161..2a6c6f9 100644 --- a/README.md +++ b/README.md @@ -1,348 +1,344 @@ #Batraquio -Batraquio is a set of gedit plugins, snippets and tools. The goal is help and -improve the developers production. +Batraquio is a set of gedit snippets and tools. The goal is help and impr...
hugomaiavieira/batraquio
813e56d11ce64ad0310e12ff7c8b63c75826a9a8
Change warning message
diff --git a/plugins/align_columns/align_columns/__init__.py b/plugins/align_columns/align_columns/__init__.py index 6972a22..6a6949a 100644 --- a/plugins/align_columns/align_columns/__init__.py +++ b/plugins/align_columns/align_columns/__init__.py @@ -1,120 +1,120 @@ # Copyright (c) 2011 Hugo Henriques Maia Vieira #...
hugomaiavieira/batraquio
53183f61af6233077ae14f3d24b87a8633d7789a
Amend typo
diff --git a/plugins/align_columns/README.md b/plugins/align_columns/README.md index 1432b7b..d87e6ec 100644 --- a/plugins/align_columns/README.md +++ b/plugins/align_columns/README.md @@ -1,41 +1,41 @@ # Align columns Let's say you're using Cucumber (or some Cucumber like) to write the functional tests of your pr...
hugomaiavieira/batraquio
7177b609f676380b58faae0b87f5757dd6e44f8b
Refactoring; Change the plugin name to 'Align columns'
diff --git a/README.md b/README.md index 231bcf4..9311161 100644 --- a/README.md +++ b/README.md @@ -1,348 +1,348 @@ #Batraquio Batraquio is a set of gedit plugins, snippets and tools. The goal is help and improve the developers production. I strongly recommend that you install the [gmate](http://github.com/gma...
hugomaiavieira/batraquio
b06503f09bb826ace514af70ee87ff4ef15322ab
Fix the Align table link
diff --git a/README.md b/README.md index baae8f1..231bcf4 100644 --- a/README.md +++ b/README.md @@ -1,348 +1,348 @@ #Batraquio Batraquio is a set of gedit plugins, snippets and tools. The goal is help and improve the developers production. I strongly recommend that you install the [gmate](http://github.com/gma...
hugomaiavieira/batraquio
911e8eb1ca79c7612c6511eeb6336d59eb23e118
Change the plugin name from 'Tabulate' to 'Align table'
diff --git a/README.md b/README.md index 3d458f8..baae8f1 100644 --- a/README.md +++ b/README.md @@ -1,344 +1,348 @@ #Batraquio Batraquio is a set of gedit plugins, snippets and tools. The goal is help and improve the developers production. I strongly recommend that you install the [gmate](http://github.com/gma...
hugomaiavieira/batraquio
3d9e33444d9a65c398eed9e00219f1a50182ee4b
Fix install bug
diff --git a/install.sh b/install.sh index 3b591ac..2c18672 100755 --- a/install.sh +++ b/install.sh @@ -1,128 +1,128 @@ #!/bin/bash # # install.sh - Install Batraquio, a collection of gedit snippets and tools for # development with BDD. # # -----------------------------------------------------------...
hugomaiavieira/batraquio
bcbb0c5920ff911001b316806b233f1795e754d2
Deal with exceptions of tabulate plugin
diff --git a/plugins/tabulate/tabulate/__init__.py b/plugins/tabulate/tabulate/__init__.py index bf2f1eb..b750a40 100644 --- a/plugins/tabulate/tabulate/__init__.py +++ b/plugins/tabulate/tabulate/__init__.py @@ -1,112 +1,120 @@ # Copyright (c) 2011 Hugo Henriques Maia Vieira # # This program is free software: you c...
hugomaiavieira/batraquio
da666a693abb486419e17e0de886afe73d3c1e56
Transform align_table in the Tabulate plugin; Change license
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 775c31d..6f1bf14 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,6 +1,4 @@ -Hugo Maia Vieira <hugomaiavieira@gmail.com> - -Rodrigo Manhães <rmanhaes@gmail.com> - -Gabriel L. Oliveira <ciberglo@gmail.com> +* Hugo Maia Vieira <hugomaiavieira@gmail.com> +* Ro...
hugomaiavieira/batraquio
2475e799d223fdd8b0baa0c83d48c5420d9f3ab0
Add some things to README
diff --git a/README.md b/README.md index f4f6d17..f44317b 100644 --- a/README.md +++ b/README.md @@ -1,365 +1,365 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
0366ce2de8e0f3dcaf44b87db3756b46d1d97fc7
Add some things to README
diff --git a/README.md b/README.md index 5bb03ab..f4f6d17 100644 --- a/README.md +++ b/README.md @@ -1,353 +1,365 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
0d5116dadd0e969ddd9fa4dd0926bce1e26ec26e
Add some things to README
diff --git a/README.md b/README.md index 744a267..5bb03ab 100644 --- a/README.md +++ b/README.md @@ -1,350 +1,353 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
37d664c8241ff80b4ad0bd4ab38462395a704148
Add license; Add license snippets
diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..413c6b3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2010 Hugo Henriques Maia Vieira + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (...
hugomaiavieira/batraquio
02bb267048f3cb6d5fe371fbe0dde25c3122d177
Add option --yes at install script
diff --git a/install.sh b/install.sh index 6496d63..931b3c8 100755 --- a/install.sh +++ b/install.sh @@ -1,57 +1,124 @@ +#!/bin/bash +# +# install.sh - Install Batraquio, a collection of gedit snippets and tools for +# development with BDD. +# +# ------------------------------------------------------------...
hugomaiavieira/batraquio
d29639177964325087dae0252158d1167a060d9f
'Scape HTML tags' snippet refactored.
diff --git a/snippets/html.xml b/snippets/html.xml index af916c9..1a280d9 100644 --- a/snippets/html.xml +++ b/snippets/html.xml @@ -1,18 +1,16 @@ <?xml version='1.0' encoding='utf-8'?> <snippets language="html"> <snippet> <text><![CDATA[$< #coding:utf8 def scape_html_tags(code): - code = code.replace(...
hugomaiavieira/batraquio
00438e02e567e188846a33807d47dc31b1b9a359
Added 'Scape HTML tags' snippet.
diff --git a/README.md b/README.md index a70e981..d441950 100644 --- a/README.md +++ b/README.md @@ -1,328 +1,336 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
eae4d23ef6efda53d76f7fea76a7e133dcead75a
Changed the 'align table' snippet for the new implementation
diff --git a/snippets/global.xml b/snippets/global.xml index d86b118..bb2069a 100644 --- a/snippets/global.xml +++ b/snippets/global.xml @@ -1,58 +1,114 @@ <?xml version='1.0' encoding='utf-8'?> <snippets> <snippet> <text><![CDATA[$< -def formata_linha(linha): - pos_pipe = linha.find('|') - linha = linh...
hugomaiavieira/batraquio
5a2ab19eb4f9836f06dd3b4d57e17124d879af2b
Fixed '>' bug.
diff --git a/src/align_table.py b/src/align_table.py index 09ee9a8..1457b67 100644 --- a/src/align_table.py +++ b/src/align_table.py @@ -1,97 +1,106 @@ #coding:utf8 import re class WhiteSpacesError(Exception): pass class DifferentNumberOfColumnsError(Exception): pass class Table(object): def __init__(...
hugomaiavieira/batraquio
90a4bc5e84f434c2734b6bb95db7bf76d1873830
Refactored align table
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f78cf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc + diff --git a/src/align_table.py b/src/align_table.py index bf8e398..09ee9a8 100644 --- a/src/align_table.py +++ b/src/align_table.py @@ -1,77 +1,97 @@ +#coding:utf8 + import re +cl...
hugomaiavieira/batraquio
05981b968cac1ce98588ddc1ad0d0382fdb1363a
Add new folder src with the snipets most complex with its tests; The first one is the 'align tables' that was entirely rewrite
diff --git a/src/align_table.py b/src/align_table.py new file mode 100644 index 0000000..bf8e398 --- /dev/null +++ b/src/align_table.py @@ -0,0 +1,77 @@ +import re + +class Table(object): + + def __init__(self, text): + self.lines_str = Table.text_to_list(text) + self.tabulation = self.max_tabulation()...
hugomaiavieira/batraquio
8fe974a8762d84dc7c0e269c760e6dc9639e992c
modified some 'have ...' matchers to 'include ...'
diff --git a/README.md b/README.md index f237e2b..a70e981 100644 --- a/README.md +++ b/README.md @@ -1,324 +1,328 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
7373f6cc50a78781845be877033a38c3e3686065
Added 'change' matcher and its derivatives
diff --git a/README.md b/README.md index 38f070e..f237e2b 100644 --- a/README.md +++ b/README.md @@ -1,300 +1,324 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
d0362b239d4647f5ea714c5bae0ea8e01de821a4
Added 'throw with message' matcher and refactored README
diff --git a/README.md b/README.md index e72397b..38f070e 100644 --- a/README.md +++ b/README.md @@ -1,296 +1,300 @@ #Batraquio Batraquio is a set of gedit snippets and tools. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](http://githu...
hugomaiavieira/batraquio
3b4027799f17663af3059aca448622e87b2ea963
Refactored CONTRIBUTORS.md
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index ad3acb5..775c31d 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,4 +1,6 @@ Hugo Maia Vieira <hugomaiavieira@gmail.com> + Rodrigo Manhães <rmanhaes@gmail.com> + Gabriel L. Oliveira <ciberglo@gmail.com>
hugomaiavieira/batraquio
538d59a8d74752b93d196fff34ea3409fd24ff1e
Add CONTRIBUTORS.md
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..ad3acb5 --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +Hugo Maia Vieira <hugomaiavieira@gmail.com> +Rodrigo Manhães <rmanhaes@gmail.com> +Gabriel L. Oliveira <ciberglo@gmail.com> +
hugomaiavieira/batraquio
fcea44a90243e5eb148c1831af8bc9dccf272fca
Add matcher close_to
diff --git a/README.md b/README.md index a8c27d9..6a44929 100644 --- a/README.md +++ b/README.md @@ -1,292 +1,295 @@ #Batraquio Batraquio is a set of gedit snippets and tools for python. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](h...
hugomaiavieira/batraquio
2d638aec66139668a1706b89a2711d4131a186cc
be_equal_to modified to equal_to
diff --git a/README.md b/README.md index 083c6f7..a8c27d9 100644 --- a/README.md +++ b/README.md @@ -1,292 +1,292 @@ #Batraquio Batraquio is a set of gedit snippets and tools for python. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](h...
hugomaiavieira/batraquio
e6389adb3a88594aa54a8e43dc19da95c78f96e7
Refactored example for table alignment in README
diff --git a/README.md b/README.md index a86e187..083c6f7 100644 --- a/README.md +++ b/README.md @@ -1,288 +1,292 @@ #Batraquio Batraquio is a set of gedit snippets and tools for python. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](h...
hugomaiavieira/batraquio
0b03842582bab70d84b372b2a6d7310af9f5d012
Fix error of tool 'Open Method Definition' when method is defined on a line greater than 09
diff --git a/tools/open-method-definition b/tools/open-method-definition index 96d4944..037efe8 100755 --- a/tools/open-method-definition +++ b/tools/open-method-definition @@ -1,81 +1,81 @@ #!/usr/bin/env python # [Gedit Tool] # Name=Open Method Definition # Shortcut=<Shift><Control>e # Applicability=all # Outpu...
hugomaiavieira/batraquio
3e3d85804c8694e00fb4eb5e25803199d2486b48
Add tool 'Execute File', and update README
diff --git a/README.md b/README.md index 97eb803..774d88d 100644 --- a/README.md +++ b/README.md @@ -1,265 +1,283 @@ #Batraquio Batraquio is a set of gedit snippets and tools for python. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](h...
hugomaiavieira/batraquio
f953889609a25ae2285a342f9f57f09a38678018
Fix README file to use correct names and 'Open Method Definition's tool description.
diff --git a/README.md b/README.md index 2928739..7a28b6d 100644 --- a/README.md +++ b/README.md @@ -1,265 +1,265 @@ #Batraquio Batraquio is a set of gedit snippets and tools for python. The goal is help and speed up the development, mostly using BDD approach. I strongly recommend that you install the [gmate](h...