File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ gem 'puma'
8
8
# Project requirements
9
9
gem 'rake'
10
10
gem 'rinku'
11
+ gem 'rack-tracker'
11
12
12
13
# Component requirements
13
14
gem 'slim'
Original file line number Diff line number Diff line change 75
75
rack
76
76
rack-test (0.6.2 )
77
77
rack (>= 1.0 )
78
+ rack-tracker (0.2.1 )
79
+ activesupport (~> 4.1.0 )
80
+ rack (~> 1.5.2 )
81
+ tilt (~> 1.4.1 )
78
82
rake (10.3.2 )
79
83
rinku (1.7.3 )
80
84
rspec (3.0.0 )
@@ -119,6 +123,7 @@ DEPENDENCIES
119
123
pry-padrino
120
124
puma
121
125
rack-test
126
+ rack-tracker
122
127
rake
123
128
rinku
124
129
rspec
Original file line number Diff line number Diff line change 8
8
9
9
Padrino ::Logger ::Config [ :production ] [ :colorize_logging ] = false
10
10
11
+ if Padrino . env == :production
12
+ Padrino . use Rack ::Tracker do
13
+ handler :google_analytics , { tracker : 'UA-54887802-1' }
14
+ end
15
+ end
16
+
11
17
Padrino . before_load do
12
18
I18n . enforce_available_locales = true
13
19
I18n . default_locale = :ja
You can’t perform that action at this time.
0 commit comments