Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
7 Gemfile
... ... @@ -1,13 +1,14 @@
1 1 source 'https://rubygems.org'
  2 +ruby '2.0.0'
2 3
3   -gem 'rails', '3.2.12'
  4 +gem 'rails', '3.2.13'
4 5 gem 'unicorn'
5 6 gem 'sqlite3', groups: [:development, :test]
6 7 gem 'pg', groups: [:production]
7 8 gem 'dalli', groups: [:production]
8   -gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
  9 +gem 'twitter-bootstrap-rails', github: 'seyhunak/twitter-bootstrap-rails'
9 10 gem 'dotenv', groups: [:development, :test]
10   -gem 'newrelic_rpm'
  11 +gem 'newrelic_rpm', '3.6', github: 'newrelic/rpm'
11 12 gem 'kaminari'
12 13 gem 'kaminari-bootstrap'
13 14 gem 'cache_digests'
73 Gemfile.lock
... ... @@ -1,4 +1,10 @@
1 1 GIT
  2 + remote: git://github.com/newrelic/rpm.git
  3 + revision: b8e54ef0ce27659ef5f8b7c0b15b28e354f358c9
  4 + specs:
  5 + newrelic_rpm (3.6.0)
  6 +
  7 +GIT
2 8 remote: git://github.com/seyhunak/twitter-bootstrap-rails.git
3 9 revision: 2268228f4fc40b76705891a7646a8a565f49ea5a
4 10 specs:
@@ -14,12 +20,12 @@ GEM
14 20 Platform (>= 0.4.0)
15 21 open4
16 22 Platform (0.4.0)
17   - actionmailer (3.2.12)
18   - actionpack (= 3.2.12)
19   - mail (~> 2.4.4)
20   - actionpack (3.2.12)
21   - activemodel (= 3.2.12)
22   - activesupport (= 3.2.12)
  23 + actionmailer (3.2.13)
  24 + actionpack (= 3.2.13)
  25 + mail (~> 2.5.3)
  26 + actionpack (3.2.13)
  27 + activemodel (= 3.2.13)
  28 + activesupport (= 3.2.13)
23 29 builder (~> 3.0.0)
24 30 erubis (~> 2.7.0)
25 31 journey (~> 1.0.4)
@@ -27,19 +33,19 @@ GEM
27 33 rack-cache (~> 1.2)
28 34 rack-test (~> 0.6.1)
29 35 sprockets (~> 2.2.1)
30   - activemodel (3.2.12)
31   - activesupport (= 3.2.12)
  36 + activemodel (3.2.13)
  37 + activesupport (= 3.2.13)
32 38 builder (~> 3.0.0)
33   - activerecord (3.2.12)
34   - activemodel (= 3.2.12)
35   - activesupport (= 3.2.12)
  39 + activerecord (3.2.13)
  40 + activemodel (= 3.2.13)
  41 + activesupport (= 3.2.13)
36 42 arel (~> 3.0.2)
37 43 tzinfo (~> 0.3.29)
38   - activeresource (3.2.12)
39   - activemodel (= 3.2.12)
40   - activesupport (= 3.2.12)
41   - activesupport (3.2.12)
42   - i18n (~> 0.6)
  44 + activeresource (3.2.13)
  45 + activemodel (= 3.2.13)
  46 + activesupport (= 3.2.13)
  47 + activesupport (3.2.13)
  48 + i18n (= 0.6.1)
43 49 multi_json (~> 1.0)
44 50 arel (3.0.2)
45 51 builder (3.0.4)
@@ -78,13 +84,12 @@ GEM
78 84 actionpack (>= 3.1)
79 85 less (~> 2.2.0)
80 86 libv8 (3.11.8.4)
81   - mail (2.4.4)
  87 + mail (2.5.3)
82 88 i18n (>= 0.4.0)
83 89 mime-types (~> 1.16)
84 90 treetop (~> 1.4.8)
85 91 mime-types (1.21)
86   - multi_json (1.6.0)
87   - newrelic_rpm (3.5.3.25)
  92 + multi_json (1.7.1)
88 93 open4 (1.3.0)
89 94 pg (0.14.1)
90 95 polyglot (0.3.3)
@@ -95,24 +100,24 @@ GEM
95 100 rack
96 101 rack-test (0.6.2)
97 102 rack (>= 1.0)
98   - rails (3.2.12)
99   - actionmailer (= 3.2.12)
100   - actionpack (= 3.2.12)
101   - activerecord (= 3.2.12)
102   - activeresource (= 3.2.12)
103   - activesupport (= 3.2.12)
  103 + rails (3.2.13)
  104 + actionmailer (= 3.2.13)
  105 + actionpack (= 3.2.13)
  106 + activerecord (= 3.2.13)
  107 + activeresource (= 3.2.13)
  108 + activesupport (= 3.2.13)
104 109 bundler (~> 1.0)
105   - railties (= 3.2.12)
106   - railties (3.2.12)
107   - actionpack (= 3.2.12)
108   - activesupport (= 3.2.12)
  110 + railties (= 3.2.13)
  111 + railties (3.2.13)
  112 + actionpack (= 3.2.13)
  113 + activesupport (= 3.2.13)
109 114 rack-ssl (~> 1.3.2)
110 115 rake (>= 0.8.7)
111 116 rdoc (~> 3.4)
112 117 thor (>= 0.14.6, < 2.0)
113 118 raindrops (0.10.0)
114 119 rake (10.0.3)
115   - rdoc (3.12.1)
  120 + rdoc (3.12.2)
116 121 json (~> 1.4)
117 122 ref (1.0.2)
118 123 sass (3.2.3)
@@ -129,11 +134,11 @@ GEM
129 134 therubyracer (0.11.0)
130 135 ref
131 136 thor (0.17.0)
132   - tilt (1.3.3)
  137 + tilt (1.3.6)
133 138 treetop (1.4.12)
134 139 polyglot
135 140 polyglot (>= 0.3.1)
136   - tzinfo (0.3.35)
  141 + tzinfo (0.3.37)
137 142 uglifier (1.3.0)
138 143 execjs (>= 0.3.0)
139 144 multi_json (~> 1.0, >= 1.0.2)
@@ -157,9 +162,9 @@ DEPENDENCIES
157 162 kaminari-bootstrap
158 163 less-rails
159 164 libv8 (~> 3.11.8)
160   - newrelic_rpm
  165 + newrelic_rpm (= 3.6)!
161 166 pg
162   - rails (= 3.2.12)
  167 + rails (= 3.2.13)
163 168 sass-rails (~> 3.2.3)
164 169 sqlite3
165 170 therubyracer
4 app/controllers/whores_controller.rb
@@ -4,7 +4,9 @@ class WhoresController < ApplicationController
4 4 def index
5 5 @whore = Whore.new
6 6 @whores = Whore.order("id DESC").page params[:page]
7   - @whore_count = Whore.count
  7 + @whore_count = Rails.cache.fetch([:whore_count], expires_in: 30.minutes) do
  8 + Whore.count
  9 + end
8 10 end
9 11
10 12 def create

No commit comments for this range

Something went wrong with that request. Please try again.