engine_of_war 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,7 @@ Gem::Specification.new do |gem|
26
26
  gem.add_dependency "rdiscount"
27
27
  gem.add_dependency "coffee-script"
28
28
  gem.add_dependency "rack-google-analytics"
29
+ gem.add_dependency "rack-gauges"
29
30
 
30
31
  gem.add_development_dependency "yard"
31
32
  gem.add_development_dependency "rake"
data/lib/engine_of_war.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'sinatra'
2
2
  require 'rack/google-analytics'
3
+ require 'rack/gauges'
3
4
  require 'compass'
4
5
  require "builder"
5
6
  require 'haml'
@@ -12,14 +12,17 @@ class EngineOfWar::App < Sinatra::Base
12
12
  set :scss, Compass.sass_engine_options
13
13
  set :github_info, nil
14
14
  set :site_title, nil
15
- set :google_analytics_key, nil
16
15
 
17
16
  set :config do
18
17
  File.expand_path(root + '/config/')
19
18
  end
20
19
 
21
20
  def self.google_analytics_key=(key)
22
- use Rack::GoogleAnalytics, :tracker => key
21
+ use Rack::GoogleAnalytics, tracker: key
22
+ end
23
+
24
+ def self.gauges_key=(key)
25
+ use Rack::Gauges, tracker: key
23
26
  end
24
27
 
25
28
  def render_page_with_layout(page)
@@ -1,3 +1,3 @@
1
1
  module EngineOfWar
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
data/spec/root_spec.rb CHANGED
@@ -39,6 +39,19 @@ describe "given a layout" do
39
39
  end
40
40
  end
41
41
  end
42
+
43
+ context "with gauges configured" do
44
+ before { Capybara.app.gauges_key = "gauges_key" }
45
+
46
+ context "on GET to /" do
47
+ before { visit "/" }
48
+
49
+ it "renders the google analytics JS" do
50
+ page.should have_selector('script[type="text/javascript"]:contains("gaug.es")')
51
+ page.should have_selector('script[type="text/javascript"]:contains("gauges_key")')
52
+ end
53
+ end
54
+ end
42
55
  end
43
56
  end
44
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engine_of_war
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-24 00:00:00.000000000 Z
12
+ date: 2012-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &70269693381840 !ruby/object:Gem::Requirement
16
+ requirement: &70116559072020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70269693381840
24
+ version_requirements: *70116559072020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: compass
27
- requirement: &70269693381420 !ruby/object:Gem::Requirement
27
+ requirement: &70116559071600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70269693381420
35
+ version_requirements: *70116559071600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: padrino
38
- requirement: &70269693380960 !ruby/object:Gem::Requirement
38
+ requirement: &70116559071140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70269693380960
46
+ version_requirements: *70116559071140
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: active_support
49
- requirement: &70269693380540 !ruby/object:Gem::Requirement
49
+ requirement: &70116559070720 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70269693380540
57
+ version_requirements: *70116559070720
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: builder
60
- requirement: &70269693380120 !ruby/object:Gem::Requirement
60
+ requirement: &70116559070300 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70269693380120
68
+ version_requirements: *70116559070300
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: haml
71
- requirement: &70269693379700 !ruby/object:Gem::Requirement
71
+ requirement: &70116559069880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70269693379700
79
+ version_requirements: *70116559069880
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sass
82
- requirement: &70269693379200 !ruby/object:Gem::Requirement
82
+ requirement: &70116559069380 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 3.1.7
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70269693379200
90
+ version_requirements: *70116559069380
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: RedCloth
93
- requirement: &70269693378780 !ruby/object:Gem::Requirement
93
+ requirement: &70116559068940 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70269693378780
101
+ version_requirements: *70116559068940
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rdiscount
104
- requirement: &70269693378320 !ruby/object:Gem::Requirement
104
+ requirement: &70116559068480 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70269693378320
112
+ version_requirements: *70116559068480
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: coffee-script
115
- requirement: &70269693377900 !ruby/object:Gem::Requirement
115
+ requirement: &70116559068060 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70269693377900
123
+ version_requirements: *70116559068060
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: rack-google-analytics
126
- requirement: &70269693377480 !ruby/object:Gem::Requirement
126
+ requirement: &70116559067640 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,21 @@ dependencies:
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70269693377480
134
+ version_requirements: *70116559067640
135
+ - !ruby/object:Gem::Dependency
136
+ name: rack-gauges
137
+ requirement: &70116559067220 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: *70116559067220
135
146
  - !ruby/object:Gem::Dependency
136
147
  name: yard
137
- requirement: &70269693377060 !ruby/object:Gem::Requirement
148
+ requirement: &70116559066800 !ruby/object:Gem::Requirement
138
149
  none: false
139
150
  requirements:
140
151
  - - ! '>='
@@ -142,10 +153,10 @@ dependencies:
142
153
  version: '0'
143
154
  type: :development
144
155
  prerelease: false
145
- version_requirements: *70269693377060
156
+ version_requirements: *70116559066800
146
157
  - !ruby/object:Gem::Dependency
147
158
  name: rake
148
- requirement: &70269693376640 !ruby/object:Gem::Requirement
159
+ requirement: &70116559066380 !ruby/object:Gem::Requirement
149
160
  none: false
150
161
  requirements:
151
162
  - - ! '>='
@@ -153,10 +164,10 @@ dependencies:
153
164
  version: '0'
154
165
  type: :development
155
166
  prerelease: false
156
- version_requirements: *70269693376640
167
+ version_requirements: *70116559066380
157
168
  - !ruby/object:Gem::Dependency
158
169
  name: rspec
159
- requirement: &70269693376220 !ruby/object:Gem::Requirement
170
+ requirement: &70116559065960 !ruby/object:Gem::Requirement
160
171
  none: false
161
172
  requirements:
162
173
  - - ! '>='
@@ -164,10 +175,10 @@ dependencies:
164
175
  version: '0'
165
176
  type: :development
166
177
  prerelease: false
167
- version_requirements: *70269693376220
178
+ version_requirements: *70116559065960
168
179
  - !ruby/object:Gem::Dependency
169
180
  name: capybara
170
- requirement: &70269693375800 !ruby/object:Gem::Requirement
181
+ requirement: &70116559065540 !ruby/object:Gem::Requirement
171
182
  none: false
172
183
  requirements:
173
184
  - - ! '>='
@@ -175,10 +186,10 @@ dependencies:
175
186
  version: '0'
176
187
  type: :development
177
188
  prerelease: false
178
- version_requirements: *70269693375800
189
+ version_requirements: *70116559065540
179
190
  - !ruby/object:Gem::Dependency
180
191
  name: guard-rspec
181
- requirement: &70269693375380 !ruby/object:Gem::Requirement
192
+ requirement: &70116559065120 !ruby/object:Gem::Requirement
182
193
  none: false
183
194
  requirements:
184
195
  - - ! '>='
@@ -186,10 +197,10 @@ dependencies:
186
197
  version: '0'
187
198
  type: :development
188
199
  prerelease: false
189
- version_requirements: *70269693375380
200
+ version_requirements: *70116559065120
190
201
  - !ruby/object:Gem::Dependency
191
202
  name: guard-bundler
192
- requirement: &70269693374960 !ruby/object:Gem::Requirement
203
+ requirement: &70116559064700 !ruby/object:Gem::Requirement
193
204
  none: false
194
205
  requirements:
195
206
  - - ! '>='
@@ -197,10 +208,10 @@ dependencies:
197
208
  version: '0'
198
209
  type: :development
199
210
  prerelease: false
200
- version_requirements: *70269693374960
211
+ version_requirements: *70116559064700
201
212
  - !ruby/object:Gem::Dependency
202
213
  name: ruby_gntp
203
- requirement: &70269693374540 !ruby/object:Gem::Requirement
214
+ requirement: &70116559064280 !ruby/object:Gem::Requirement
204
215
  none: false
205
216
  requirements:
206
217
  - - ! '>='
@@ -208,7 +219,7 @@ dependencies:
208
219
  version: '0'
209
220
  type: :development
210
221
  prerelease: false
211
- version_requirements: *70269693374540
222
+ version_requirements: *70116559064280
212
223
  description: Semi-static site engine.
213
224
  email:
214
225
  - us@thunderboltlabs.com
@@ -263,7 +274,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
274
  version: '0'
264
275
  segments:
265
276
  - 0
266
- hash: -3177996844443617288
277
+ hash: -89340852711932436
267
278
  required_rubygems_version: !ruby/object:Gem::Requirement
268
279
  none: false
269
280
  requirements:
@@ -272,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
283
  version: '0'
273
284
  segments:
274
285
  - 0
275
- hash: -3177996844443617288
286
+ hash: -89340852711932436
276
287
  requirements: []
277
288
  rubyforge_project:
278
289
  rubygems_version: 1.8.11