slimmer 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,8 @@ class Slimmer::RelatedItemsInserter
15
15
  end
16
16
 
17
17
  def filter(content_document, page_template)
18
- if content_document.at_css('body.citizen div#related-items')
19
- page_template.at_css('body.citizen div#related-items').replace(related_item_block)
18
+ if content_document.at_css('body.mainstream div#related-items')
19
+ page_template.at_css('body.mainstream div#related-items').replace(related_item_block)
20
20
  end
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Slimmer
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
@@ -166,10 +166,10 @@ module TypicalUsage
166
166
  end
167
167
  end
168
168
 
169
- class CitizenRelatedItemsTest < ResponseWithRelatedItemsTest
169
+ class MainstreamRelatedItemsTest < ResponseWithRelatedItemsTest
170
170
  given_response 200, %{
171
171
  <html>
172
- <body class="citizen">
172
+ <body class="mainstream">
173
173
  <div id="wrapper">The body of the page<div id="related-items"></div></div>
174
174
  </body>
175
175
  </html>
@@ -185,10 +185,10 @@ module TypicalUsage
185
185
  end
186
186
  end
187
187
 
188
- class NonCitizentRelatedItemsTest < ResponseWithRelatedItemsTest
188
+ class NonMainstreamRelatedItemsTest < ResponseWithRelatedItemsTest
189
189
  given_response 200, %{
190
190
  <html>
191
- <body class="noncitizen">
191
+ <body class="nonmainstream">
192
192
  <div id="wrapper">The body of the page<div id="related-items"></div></div>
193
193
  </body>
194
194
  </html>
@@ -330,7 +330,7 @@ module TypicalUsage
330
330
  <script src="blah.js"></script>
331
331
  <link href="app.css" rel="stylesheet" type="text/css">
332
332
  </head>
333
- <body class="body_class citizen">
333
+ <body class="body_class mainstream">
334
334
  <div id="wrapper">The body of the page</div>
335
335
  <div id="related-items"></div>
336
336
  </body>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: slimmer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.3
5
+ version: 1.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Griffiths
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-08-15 00:00:00 Z
14
+ date: 2012-08-20 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri
@@ -213,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
- hash: -3770509032206210026
216
+ hash: -4494574925622942963
217
217
  segments:
218
218
  - 0
219
219
  version: "0"
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
223
  - - ">="
224
224
  - !ruby/object:Gem::Version
225
- hash: -3770509032206210026
225
+ hash: -4494574925622942963
226
226
  segments:
227
227
  - 0
228
228
  version: "0"