biola_frontend_toolkit 0.4.6 → 0.5.0

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: 7ad8bc3ee16d7ae159ba5569ca9652396ab2d9e5
4
- data.tar.gz: b8e0c16850e6fcb2ea586e083a98447799f1b204
3
+ metadata.gz: 3d6a6ed8c765d47223809d2437c6ed3eeff9d407
4
+ data.tar.gz: 15b8a58b20424a32e6372d09be3ad5751d6fdd71
5
5
  SHA512:
6
- metadata.gz: 34c2afc0fecbc398d623f883362bd78dd6b96cae1a79ef05355b33f56b57b1f747bb9889719e4a790d8a6ef0f4da4d2bd17dfe8dff738aacaee250ded743f6d7
7
- data.tar.gz: 2ce6763b9ccb9021e7e34240c878d006471ba52a34b1fffaa67ab207369239923649fd7aad4694a1a19b465f8520d26e6850a4aaf0536d2539c75c04bdda68e9
6
+ metadata.gz: 9b8c7790f3459e761a4f1fca240f73af9bf1187158a46059c95dd6b9dd8cbc9ed8f6b16b226c49935c82847f5ffd19c455ca3703e26671aa211aecd7a8a3a4b2
7
+ data.tar.gz: 2142ab74d70c3e57eda2c9bbdf2a47a66bb6d4511065f931ad429c21c24e8111561de398cedb28dcb87b552d74d0bc0623d314892b75fabf31269049123e9316
@@ -35,6 +35,14 @@ module BiolaFrontend
35
35
  end
36
36
  end
37
37
 
38
+ # Replaces http:// and https:// with just //
39
+ def strip_scheme(url)
40
+ url.to_s.gsub(/\Ahttps?:/, '')
41
+ end
42
+
43
+ def schemeless_image_tag(url)
44
+ image_tag strip_scheme(url)
45
+ end
38
46
  end
39
47
  end
40
- end
48
+ end
@@ -8,7 +8,7 @@
8
8
  #profile_link.dropdown.custom-dropdown
9
9
  a.dropdown-toggle href="#" aria-hidden="true" data-toggle="dropdown"
10
10
  - if current_user.try(:photo_url).present?
11
- #profile-img style="background-image: url('#{current_user.photo_url}')"
11
+ #profile-img style="background-image: url('#{strip_scheme(current_user.photo_url)}')"
12
12
  - else
13
13
  span.fa-stack.fa-lg
14
14
  i.fa.fa-circle.fa-stack-2x
@@ -9,7 +9,7 @@
9
9
  #current-user-profile.dropdown.custom-dropdown
10
10
  a.dropdown-toggle href="#" aria-hidden="true" data-toggle="dropdown"
11
11
  - if current_user.try(:photo_url).present?
12
- #profile-img style="background-image: url('#{current_user.photo_url}')"
12
+ #profile-img style="background-image: url('#{strip_scheme(current_user.photo_url)}')"
13
13
  - else
14
14
  span.fa-stack.fa-lg
15
15
  i.fa.fa-circle.fa-stack-2x
@@ -1,3 +1,3 @@
1
1
  module BiolaFrontendToolkit
2
- VERSION = "0.4.6"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biola_frontend_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
- rubygems_version: 2.4.8
180
+ rubygems_version: 2.6.1
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: this is a summary