File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- rvm 1.8.7 @hackety-hack.com
1+ rvm 1.9.2 @hackety-hack.com
Original file line number Diff line number Diff line change @@ -13,20 +13,17 @@ gem "mongo_mapper", "~>0.8.4"
1313gem "rack-flash" , "~>0.1.1"
1414gem "rdiscount" , "~>1.6.5"
1515gem "i18n" , "~>0.4.1"
16- gem "bson_ext" , "~>1.1"
16+ gem "bson_ext" , "~>1.1.5 "
1717gem "pony" , "~>1.0.1"
1818gem "sinatra-content-for"
1919
2020group :test do
2121 gem "launchy" , "~>0.3.7"
22- gem "autotest" , "~>4.3.2"
2322 gem "capybara" , "~>0.3.9"
2423 gem "factory_girl" , "~>1.3.2"
2524 gem "database_cleaner" , "~>0.6.0"
2625 gem "rspec" , "~>2.1.0"
2726 gem "webrat" , "~>0.7.1"
2827 gem "steak" , "~>1.0.0"
29-
30- gem "ruby-debug"
3128end
3229
Original file line number Diff line number Diff line change 22 remote: http://rubygems.org/
33 specs:
44 activesupport (3.0.3 )
5- autotest (4.3.2 )
65 bson (1.1.2 )
7- bson_ext (1.1.2 )
6+ bson_ext (1.1.5 )
87 capybara (0.3.9 )
98 culerity (>= 0.2.4 )
109 mime-types (>= 1.16 )
1413 selenium-webdriver (>= 0.0.3 )
1514 childprocess (0.1.4 )
1615 ffi (~> 0.6.3 )
17- columnize (0.3.2 )
1816 configuration (1.2.0 )
1917 culerity (0.2.12 )
2018 database_cleaner (0.6.0 )
3028 launchy (0.3.7 )
3129 configuration (>= 0.0.5 )
3230 rake (>= 0.8.1 )
33- linecache (0.43 )
3431 mail (2.2.10 )
3532 activesupport (>= 2.3.6 )
3633 i18n (~> 0.4.1 )
6461 rspec-expectations (2.1.0 )
6562 diff-lcs (~> 1.1.2 )
6663 rspec-mocks (2.1.0 )
67- ruby-debug (0.10.4 )
68- columnize (>= 0.1 )
69- ruby-debug-base (~> 0.10.4.0 )
70- ruby-debug-base (0.10.4 )
71- linecache (>= 0.3 )
7264 rubyzip (0.9.4 )
7365 selenium-webdriver (0.1.0 )
7466 childprocess (= 0.1.4 )
@@ -94,8 +86,7 @@ PLATFORMS
9486 ruby
9587
9688DEPENDENCIES
97- autotest (~> 4.3.2 )
98- bson_ext (~> 1.1 )
89+ bson_ext (~> 1.1.5 )
9990 capybara (~> 0.3.9 )
10091 database_cleaner (~> 0.6.0 )
10192 factory_girl (~> 1.3.2 )
@@ -107,7 +98,6 @@ DEPENDENCIES
10798 rack-flash (~> 0.1.1 )
10899 rdiscount (~> 1.6.5 )
109100 rspec (~> 2.1.0 )
110- ruby-debug
111101 sinatra (~> 1.1 )
112102 sinatra-content-for
113103 steak (~> 1.0.0 )
Original file line number Diff line number Diff line change 3333
3434require 'sinatra/content_for'
3535
36- require 'helpers'
36+ require_relative 'helpers'
3737
3838#this makes Haml escape any html by default. See here: http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options
3939set :haml , :escape_html => true
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ def admin?
7575
7676 #a helper function for gravatar urls
7777 def gravatar_url
78- require 'md5'
79- "http://www.gravatar.com/avatar/#{ MD5 :: md5 ( email . downcase ) } "
78+ require 'digest/ md5'
79+ "http://www.gravatar.com/avatar/#{ Digest :: MD5 . hexdigest ( email . downcase ) } "
8080 end
8181
8282 #this method makes the hacker follow the followee
You can’t perform that action at this time.
0 commit comments