webhostinghub-glyphs-rails 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,29 +1,31 @@
1
- # Webhostinghub::Glyphs::Rails
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
- TODO: Write a gem description
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 this line to your application's Gemfile:
9
+ Add `webhostinghub-glyphs-rails` gem to your `Gemfile`:
8
10
 
11
+ ```ruby
9
12
  gem 'webhostinghub-glyphs-rails'
13
+ ```
10
14
 
11
- And then execute:
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
- Or install it yourself as:
17
+ ```scss
18
+ *= require webhostinghub-glyphs
19
+ ```
16
20
 
17
- $ gem install webhostinghub-glyphs-rails
21
+ That's it!
18
22
 
19
- ## Usage
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
- TODO: Write usage instructions here
25
+ ```scss
26
+ @import 'webhostinghub-glyphs';
27
+ ```
22
28
 
23
- ## Contributing
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
- 1. Fork it
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.
@@ -1,7 +1,7 @@
1
1
  module Webhostinghub
2
2
  module Glyphs
3
3
  module Rails
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -17,6 +17,4 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_runtime_dependency 'railties', '>= 3.1.1'
21
- gem.add_runtime_dependency 'sass-rails', '>= 3.1.1'
22
20
  end
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.1
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