effective_style_guide 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b84895736c9806c8826396aa6dfad6dccfd6650a
4
- data.tar.gz: eb13c3f17ea3600da6cce7267ccf7175ae552cc4
3
+ metadata.gz: 975b4f35cc47e78cc9cfaf36e4010201ff0ad1d7
4
+ data.tar.gz: fdd34e154198d4828b7d79838888a8c55ef93bf4
5
5
  SHA512:
6
- metadata.gz: 62f96c7567635c3f2dfb0d192bd698134531ad4738263b66c336d7b9be4c94101a55e550ca86ab5d8d96c7eaf11ae4275a0eec689f6e021105291746d4d7c6c5
7
- data.tar.gz: ec6f479e9128f158f8497d1639a4124cba97d582ae903b88614ca60d98846d614ccd1297eced13100111bc879a3dd4b496038edce2969851ad1095da7cd7ebf6
6
+ metadata.gz: 4b3c813060dc3542f175c46c33a4f55bc8bb61e0d487abc208c8c23a21ace522a72f497b0920b893c93aa8a91c1b65ad17c61f8126d86014514866dfe20d3e68
7
+ data.tar.gz: 5f0dc5614184e00be21a1de652a9fd6d6012ae1a59e0571ca5ca7c89746f75aee14311698d22cc67741493c64776194da39138705ab1786f348ce9701fdf58af
Binary file
@@ -1,5 +1,5 @@
1
1
  <div class="card" style="width: 18rem;">
2
- <img class="card-img-top" src="http://placehold.it/286x180" alt="Card image cap">
2
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="286" height="180" alt="Card image cap">
3
3
  <div class="card-body">
4
4
  <h5 class="card-title">Card title</h5>
5
5
  <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -30,7 +30,7 @@
30
30
  <p><br></p>
31
31
 
32
32
  <div class="card" style="width: 18rem;">
33
- <img class="card-img-top" src="http://placehold.it/286x180" alt="Card image cap">
33
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="286" height="180" alt="Card image cap">
34
34
  <div class="card-body">
35
35
  <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
36
36
  </div>
@@ -62,7 +62,7 @@
62
62
  <p><br></p>
63
63
 
64
64
  <div class="card" style="width: 18rem;">
65
- <img class="card-img-top" src="http://placehold.it/286x180" alt="Card image cap">
65
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="286" height="180" alt="Card image cap">
66
66
  <div class="card-body">
67
67
  <h5 class="card-title">Card title</h5>
68
68
  <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
@@ -207,7 +207,7 @@
207
207
  <p><br></p>
208
208
 
209
209
  <div class="card mb-3">
210
- <img class="card-img-top" src="http://placehold.it/1151x180" alt="Card image cap">
210
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="1151" height="180" alt="Card image cap">
211
211
  <div class="card-body">
212
212
  <h5 class="card-title">Card title</h5>
213
213
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -220,13 +220,13 @@
220
220
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
221
221
  <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
222
222
  </div>
223
- <img class="card-img-bottom" src="http://placehold.it/1151x180" alt="Card image cap">
223
+ <img class="card-img-bottom" src="<%= asset_path('placeholder.png') %>" width="1151" height="180" alt="Card image cap">
224
224
  </div>
225
225
 
226
226
  <p><br></p>
227
227
 
228
228
  <div class="card bg-dark text-white">
229
- <img class="card-img" src="http://placehold.it/1151x680" alt="Card image">
229
+ <img class="card-img" src="<%= asset_path('placeholder.png') %>" width="1151" height="680" alt="Card image">
230
230
  <div class="card-img-overlay">
231
231
  <h5 class="card-title">Card title</h5>
232
232
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -339,7 +339,7 @@
339
339
 
340
340
  <div class="card-group">
341
341
  <div class="card">
342
- <img class="card-img-top" src="http://placehold.it/383x180" alt="Card image cap">
342
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="383" height="180" alt="Card image cap">
343
343
  <div class="card-body">
344
344
  <h5 class="card-title">Card title</h5>
345
345
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -347,7 +347,7 @@
347
347
  </div>
348
348
  </div>
349
349
  <div class="card">
350
- <img class="card-img-top" src="http://placehold.it/383x180" alt="Card image cap">
350
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="383" height="180" alt="Card image cap">
351
351
  <div class="card-body">
352
352
  <h5 class="card-title">Card title</h5>
353
353
  <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
@@ -355,7 +355,7 @@
355
355
  </div>
356
356
  </div>
357
357
  <div class="card">
358
- <img class="card-img-top" src="http://placehold.it/383x180" alt="Card image cap">
358
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="383" height="180" alt="Card image cap">
359
359
  <div class="card-body">
360
360
  <h5 class="card-title">Card title</h5>
361
361
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
@@ -368,7 +368,7 @@
368
368
 
369
369
  <div class="card-group">
370
370
  <div class="card">
371
- <img class="card-img-top" src="http://placehold.it/383x180" alt="Card image cap">
371
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="383" height="180" alt="Card image cap">
372
372
  <div class="card-body">
373
373
  <h5 class="card-title">Card title</h5>
374
374
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -378,7 +378,7 @@
378
378
  </div>
379
379
  </div>
380
380
  <div class="card">
381
- <img class="card-img-top" src="http://placehold.it/383x180" alt="Card image cap">
381
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="383" height="180" alt="Card image cap">
382
382
  <div class="card-body">
383
383
  <h5 class="card-title">Card title</h5>
384
384
  <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
@@ -388,7 +388,7 @@
388
388
  </div>
389
389
  </div>
390
390
  <div class="card">
391
- <img class="card-img-top" src="http://placehold.it/383x180" alt="Card image cap">
391
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="383" height="180" alt="Card image cap">
392
392
  <div class="card-body">
393
393
  <h5 class="card-title">Card title</h5>
394
394
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
@@ -403,7 +403,7 @@
403
403
 
404
404
  <div class="card-deck">
405
405
  <div class="card">
406
- <img class="card-img-top" src="http://placehold.it/362x200" alt="Card image cap">
406
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="362" height="200" alt="Card image cap">
407
407
  <div class="card-body">
408
408
  <h5 class="card-title">Card title</h5>
409
409
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -411,7 +411,7 @@
411
411
  </div>
412
412
  </div>
413
413
  <div class="card">
414
- <img class="card-img-top" src="http://placehold.it/362x200" alt="Card image cap">
414
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="362" height="200" alt="Card image cap">
415
415
  <div class="card-body">
416
416
  <h5 class="card-title">Card title</h5>
417
417
  <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
@@ -419,7 +419,7 @@
419
419
  </div>
420
420
  </div>
421
421
  <div class="card">
422
- <img class="card-img-top" src="http://placehold.it/362x200" alt="Card image cap">
422
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="362" height="200" alt="Card image cap">
423
423
  <div class="card-body">
424
424
  <h5 class="card-title">Card title</h5>
425
425
  <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
@@ -432,7 +432,7 @@
432
432
 
433
433
  <div class="card-columns">
434
434
  <div class="card">
435
- <img class="card-img-top" src="http://placehold.it/286x180" alt="Card image cap">
435
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="286" height="180" alt="Card image cap">
436
436
  <div class="card-body">
437
437
  <h5 class="card-title">Card title that wraps to a new line</h5>
438
438
  <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
@@ -449,7 +449,7 @@
449
449
  </blockquote>
450
450
  </div>
451
451
  <div class="card">
452
- <img class="card-img-top" src="http://placehold.it/286x180" alt="Card image cap">
452
+ <img class="card-img-top" src="<%= asset_path('placeholder.png') %>" width="286" height="180" alt="Card image cap">
453
453
  <div class="card-body">
454
454
  <h5 class="card-title">Card title</h5>
455
455
  <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
@@ -474,7 +474,7 @@
474
474
  </div>
475
475
  </div>
476
476
  <div class="card">
477
- <img class="card-img" src="http://placehold.it/286x180" alt="Card image">
477
+ <img class="card-img" src="<%= asset_path('placeholder.png') %>" width="286" height="180" alt="Card image">
478
478
  </div>
479
479
  <div class="card p-3 text-right">
480
480
  <blockquote class="blockquote mb-0">
@@ -2,14 +2,14 @@
2
2
  - 4.times do
3
3
  .col-sm-3
4
4
  %a.thumbnail{:href => '#'}
5
- %img{:src => 'http://placehold.it/171x180', :height => 180, :width => 171}
5
+ %img{:src => asset_path('placeholder.png'), :height => 180, :width => 171}
6
6
 
7
7
 
8
8
  .row
9
9
  - 3.times do
10
10
  .col-sm-4
11
11
  .thumbnail
12
- %img{:src => 'http://placehold.it/242x200', :height => 200, :width => 242}
12
+ %img{:src => asset_path('placeholder.png'), :height => 200, :width => 242}
13
13
  .caption
14
14
  %h3 Thumbnail Label
15
15
  %p Cumque iste repellat rerum asperiores libero. Omnis quia et illo. Dignissimos ut quod debitis.
@@ -7,5 +7,9 @@ module EffectiveStyleGuide
7
7
  eval File.read("#{config.root}/config/effective_style_guide.rb")
8
8
  end
9
9
 
10
+ initializer 'effective_style_guide.assets' do |app|
11
+ Rails.application.config.assets.precompile += ['placeholder.png']
12
+ end
13
+
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveStyleGuide
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - MIT-LICENSE
50
50
  - README.md
51
+ - app/assets/images/placeholder.png
51
52
  - app/controllers/effective/style_guide_controller.rb
52
53
  - app/models/effective/access_denied.rb
53
54
  - app/models/effective/style_guide.rb
@@ -56,7 +57,7 @@ files:
56
57
  - app/views/effective/style_guide/_breadcrumbs.html
57
58
  - app/views/effective/style_guide/_buttons.html
58
59
  - app/views/effective/style_guide/_buttons_group.html
59
- - app/views/effective/style_guide/_cards.html
60
+ - app/views/effective/style_guide/_cards.html.erb
60
61
  - app/views/effective/style_guide/_collapse.html
61
62
  - app/views/effective/style_guide/_dropdowns.html
62
63
  - app/views/effective/style_guide/_form_with.html.haml