social_colors_rails 0.2.0 → 0.2.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: 25d6bacbac1d1221e6a35c06bea8a4712bb51a00
4
- data.tar.gz: d6ad44a6409627f58da6d21296bde41ec647af3c
3
+ metadata.gz: d37eabede90fef6acda4522bddf662bbc4a2972d
4
+ data.tar.gz: 145ae4f794fecb0db996dd7994958aee4a768935
5
5
  SHA512:
6
- metadata.gz: f4909e3f7c5fec1f9a38a1ab0c1ef315396d30868553fedccfafc31524fed56b96bc347c05fc93fc6996fe0530f5c0abe6e7dad9df344af38bdfda309a306d99
7
- data.tar.gz: 840e409ef872d68082ce67647a6597d88fa620c501245320c5b739728d69c472359835c43723a5be3aa16e38284ba10e365594e22e60b7c02b5740bd911bc31f
6
+ metadata.gz: 142cfdc1e59118660afaee0a9776d39e7d54375e1e2d885c62e9d435d57485eac2af06332d7f07b803ceb966d8b0ffd5d0ebc54f0f4f58fecff73a97f49ba75c
7
+ data.tar.gz: 862d8e9afa275436308983cb906b74a5d165a56c724885d099f8ea87b7420440cdca393e51f6cf2fe8eaa039a7aa833cbf148a1c169b2a30ae7066685e4b8eb3
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
  [![Build Status](https://travis-ci.org/TimVille/social_colors_rails.svg?branch=master)](https://travis-ci.org/TimVille/social_colors_rails)
3
3
 
4
4
  # Social-colors-rails
5
- Based on [font-awesome](http://fontawesome.io/), rails-social-colors provide official colors of social brand icons.
6
- See them on the [Rails social colors](https://timville.github.io/social_colors_rails/) official page.
5
+ Based on [font-awesome](http://fontawesome.io/), social_colors_rails provide official colors of social brand icons.
6
+ See them on the [Social colors rails](https://timville.github.io/social_colors_rails/) official page.
7
7
 
8
8
  ## Installation
9
9
  Add these line to your application's Gemfile:
@@ -36,7 +36,7 @@ Or if you work with SASS
36
36
  ```
37
37
 
38
38
  ### -- Customized --
39
- You can customize the social_colors rails plugin by importing the sass file and overwrite variables.
39
+ You can customize the social_colors_rails plugin by importing the sass file and overwrite variables.
40
40
  ```scss
41
41
  // Import your custom variables before the social_colors lib
42
42
  @import "_custom_variables";
@@ -93,7 +93,7 @@ social_tag "github", "https://github.com/TimVille", external: false
93
93
  # </a>
94
94
  ```
95
95
 
96
- In order to provide a context to the icons, you need to wrap your font-awesome icon with
96
+ But if you prefer, you can just wrap your font-awesome icon with these classes
97
97
  ```html
98
98
  <div class="icon-stack |brand-name|"></div>
99
99
  ```
@@ -44,7 +44,7 @@ module SocialColorsRails
44
44
  #
45
45
  ###
46
46
 
47
- def social_tag(name = "facebook", href = "#", button, url: nil, title: nil, style: "circle", size: nil, external: true, nofollow: true)
47
+ def social_tag(name = "facebook", href = "#", url: nil, title: nil, style: "circle", size: nil, external: true, nofollow: true)
48
48
  classes = "icon-stack stack-#{style} #{name}" + (size.nil? ? "" : " stack-#{size}")
49
49
  location = href
50
50
  options = {
@@ -52,7 +52,7 @@ module SocialColorsRails
52
52
  target: "_blank",
53
53
  }
54
54
 
55
- if !url.nil?
55
+ unless url.nil?
56
56
  location = url
57
57
  end
58
58
 
@@ -60,7 +60,7 @@ module SocialColorsRails
60
60
  options[:rel] = "external" + (nofollow ? " nofollow" : "")
61
61
  end
62
62
 
63
- if !title.nil?
63
+ unless title.nil?
64
64
  options[:title] = title
65
65
  end
66
66
  html = link_to(fa_icon(name), location, options)
@@ -1,3 +1,3 @@
1
1
  module SocialColorsRails
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -45,7 +45,7 @@ module SocialColorsRails
45
45
 
46
46
  context "with name & href" do
47
47
  it 'generate correct url link' do
48
- expect( brand ).not_to have_tag('a[href="http://twitter.com"].twitter')
48
+ expect( brand ).to have_tag('a.twitter[href="http://twitter.com/"]')
49
49
  end
50
50
  end
51
51
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_colors_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothée Ville
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-21 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  requirements: []
200
200
  rubyforge_project:
201
- rubygems_version: 2.6.11
201
+ rubygems_version: 2.5.1
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Add official color to stacked font-awesome social brand icon.