font_awesome_rails_sass 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,27 @@
1
- # FontAwesomeRailsSass
1
+ # Font-Awesome Sass for Rails 3 Asset Pipeline
2
2
 
3
- TODO: Write a gem description
3
+ This is like all of the other font-awesome gems except that it's sass and not compiled to css. This means that you have direct access to Font-Awesome's mixins and variables directly form your SASS files.
4
+
5
+ ## Usage
6
+
7
+ It's really easy to use. Just add it to your scss or sass file:
8
+
9
+ # scss
10
+ @import "font-awesome/font-awesome";
11
+
12
+ # sass
13
+ @import font-awesome/font-awesome
14
+
15
+ This will load all of the font-awesome stylesheets. Take a look through the `app/assets/stylesheets/font-awesome` directory for more details.
16
+
17
+ In your sass or css files, you can now call mixins like:
18
+
19
+ # Some sass
20
+ selector
21
+ +icon-FontAwesome
22
+ content: $search
23
+
24
+ This is nice if you have an application where you need to access font-awesome's core, mixins or variables.
4
25
 
5
26
  ## Installation
6
27
 
@@ -16,9 +37,6 @@ Or install it yourself as:
16
37
 
17
38
  $ gem install font_awesome_rails_sass
18
39
 
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
40
 
23
41
  ## Contributing
24
42
 
@@ -10,17 +10,13 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["john@kohactive.com"]
11
11
  spec.description = "Font-Awesome Sassified"
12
12
  spec.summary = "Font-Awesome Sassified"
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/johnkoht/font_awesome_rails_sass"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
23
-
24
- spec.add_dependency "sass"
25
- spec.add_dependency "sass-rails"
20
+
21
+ spec.add_dependency "sass", ">= 3.2.0"
26
22
  end
@@ -1,3 +1,3 @@
1
1
  module FontAwesomeRailsSass
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,6 +1,11 @@
1
1
  require "font_awesome_rails_sass/version"
2
- require "font_awesome_rails_sass/engine"
3
2
 
4
- module FontAwesomeRailsSass
5
- # Your code goes here...
3
+ unless defined?(Sass)
4
+ require 'sass'
6
5
  end
6
+
7
+ module FontAwesomeRailsSass
8
+ if defined?(Rails) && defined?(Rails::Engine)
9
+ require "font_awesome_rails_sass/engine"
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: font_awesome_rails_sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,40 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-08 00:00:00.000000000 Z
12
+ date: 2013-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '1.3'
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.3'
30
- - !ruby/object:Gem::Dependency
31
- name: rake
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
14
  - !ruby/object:Gem::Dependency
47
15
  name: sass
48
16
  requirement: !ruby/object:Gem::Requirement
@@ -50,23 +18,7 @@ dependencies:
50
18
  requirements:
51
19
  - - ! '>='
52
20
  - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: sass-rails
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
21
+ version: 3.2.0
70
22
  type: :runtime
71
23
  prerelease: false
72
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +26,7 @@ dependencies:
74
26
  requirements:
75
27
  - - ! '>='
76
28
  - !ruby/object:Gem::Version
77
- version: '0'
29
+ version: 3.2.0
78
30
  description: Font-Awesome Sassified
79
31
  email:
80
32
  - john@kohactive.com
@@ -105,7 +57,7 @@ files:
105
57
  - lib/font_awesome_rails_sass.rb
106
58
  - lib/font_awesome_rails_sass/engine.rb
107
59
  - lib/font_awesome_rails_sass/version.rb
108
- homepage: ''
60
+ homepage: https://github.com/johnkoht/font_awesome_rails_sass
109
61
  licenses:
110
62
  - MIT
111
63
  post_install_message: