Skip to content

Commit e153b44

Browse files
committed
1.8.7 -> 1.9.2, whoo hoo
1 parent 938fdf8 commit e153b44

5 files changed

Lines changed: 7 additions & 20 deletions

File tree

.rvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rvm 1.8.7@hackety-hack.com
1+
rvm 1.9.2@hackety-hack.com

Gemfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,17 @@ gem "mongo_mapper", "~>0.8.4"
1313
gem "rack-flash", "~>0.1.1"
1414
gem "rdiscount", "~>1.6.5"
1515
gem "i18n", "~>0.4.1"
16-
gem "bson_ext", "~>1.1"
16+
gem "bson_ext", "~>1.1.5"
1717
gem "pony", "~>1.0.1"
1818
gem "sinatra-content-for"
1919

2020
group :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"
3128
end
3229

Gemfile.lock

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ GEM
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)
@@ -14,7 +13,6 @@ GEM
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)
@@ -30,7 +28,6 @@ GEM
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)
@@ -64,11 +61,6 @@ GEM
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

9688
DEPENDENCIES
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)

app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
require '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
3939
set :haml, :escape_html => true

models/hacker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)