webhostinghub-glyphs-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +18 -16
- data/lib/webhostinghub-glyphs-rails/version.rb +1 -1
- data/webhostinghub-glyphs-rails.gemspec +0 -2
- metadata +2 -34
data/README.md
CHANGED
@@ -1,29 +1,31 @@
|
|
1
|
-
#
|
1
|
+
# WebHostingHub Glyphs + Rails [![Gem Version](https://badge.fury.io/rb/webhostinghub-glyphs-rails.png)](http://badge.fury.io/rb/webhostinghub-glyphs-rails) [![endorse](http://api.coderwall.com/galulex/endorsecount.png)](http://coderwall.com/galulex)
|
2
2
|
|
3
|
-
|
3
|
+
With SASS and fonts from [WebHostingHub Glyphs](http://www.webhostinghub.com/glyphs/), `webhostinghub-glyphs-rails` is a gem to integrate WebHostingHub Glyphs to your Rails application.
|
4
|
+
|
5
|
+
It supports Rails 3.1.1 and older.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
|
-
Add
|
9
|
+
Add `webhostinghub-glyphs-rails` gem to your `Gemfile`:
|
8
10
|
|
11
|
+
```ruby
|
9
12
|
gem 'webhostinghub-glyphs-rails'
|
13
|
+
```
|
10
14
|
|
11
|
-
|
12
|
-
|
13
|
-
$ bundle
|
15
|
+
Then add the stylesheet to your Rails assets. The simplest way to apply Font Awesome site-wide is to add a `require` statement in `app/assets/stylesheets/application.css`:
|
14
16
|
|
15
|
-
|
17
|
+
```scss
|
18
|
+
*= require webhostinghub-glyphs
|
19
|
+
```
|
16
20
|
|
17
|
-
|
21
|
+
That's it!
|
18
22
|
|
19
|
-
|
23
|
+
If you want to manage where the stylesheet will be used or just prefer SCSS, you can use `@import` in a SCSS file (e.g. a new file named `libs.css.scss`) to import the stylesheet:
|
20
24
|
|
21
|
-
|
25
|
+
```scss
|
26
|
+
@import 'webhostinghub-glyphs';
|
27
|
+
```
|
22
28
|
|
23
|
-
|
29
|
+
(By default Rails will import all SCSS files in `app/assets/stylesheets`, you can change this behavior by modifying `application.css`.)
|
24
30
|
|
25
|
-
|
26
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
-
5. Create new Pull Request
|
31
|
+
You can also use it with the SASS-converted Bootstrap gem, like [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass) or [anjlab-bootstrap-rails](https://github.com/anjlab/bootstrap-rails). Just require/import webhostinghub-glyphs right after bootstrap.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webhostinghub-glyphs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,39 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
date: 2013-03-16 00:00:00.000000000 Z
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: railties
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.1.1
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.1.1
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: sass-rails
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 3.1.1
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 3.1.1
|
13
|
+
dependencies: []
|
46
14
|
description: High quality icons that are easy to use with rails assets pipeline.
|
47
15
|
email:
|
48
16
|
- galulex@gmail.com
|