batch-rails2 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -30,6 +30,22 @@ add the following to your application.css
30
30
  *= require 'batch'
31
31
  ```
32
32
 
33
+ and then in your markup
34
+
35
+ ```
36
+ <i class="batch-*"></i>
37
+ ```
38
+
39
+ where * stands for the name of the icon.
40
+
41
+ You can also override the prefix "batch-" with an initializer:
42
+
43
+ ```
44
+ BatchRails2.setup do |config|
45
+ config.prefix = "icon-"
46
+ end
47
+ ```
48
+
33
49
  ## Contributing
34
50
 
35
51
  1. Fork it
@@ -0,0 +1,7 @@
1
+ $fontFileName: "/assets/batch";
2
+ $fontName: "batch";
3
+ $classPrefix: "<%= BatchRails2.prefix %>";
4
+
5
+ @import "batch/settings";
6
+
7
+ @import "batch/icons-ie7"
@@ -0,0 +1,7 @@
1
+ $fontFileName: "/assets/batch";
2
+ $fontName: "batch";
3
+ $classPrefix: "<%= BatchRails2.prefix %>";
4
+
5
+ @import "batch/settings";
6
+
7
+ @import "batch/icons"
data/batch-rails2.gemspec CHANGED
@@ -5,11 +5,11 @@ require 'batch-rails2/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "batch-rails2"
8
- gem.version = Batch::VERSION
8
+ gem.version = BatchRails2::VERSION
9
9
  gem.authors = ["Marten Klitzke"]
10
10
  gem.email = ["m.klitzke@gmail.com"]
11
11
  gem.description = %q{Batch icons as a webfont for rails}
12
- gem.summary = %q{Batch icons as a webfont for rails}
12
+ gem.summary = %q{Basic integration for the Batch Webfont Icons}
13
13
  gem.homepage = "https://github.com/mortik/batch-rails2"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
- module Batch
2
- VERSION = "0.0.2"
1
+ module BatchRails2
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/batch-rails2.rb CHANGED
@@ -1,6 +1,13 @@
1
1
  require "batch-rails2/version"
2
2
 
3
- module Batch
3
+ module BatchRails2
4
4
  class Engine < ::Rails::Engine
5
5
  end
6
+
7
+ mattr_accessor :prefix
8
+ @@prefix = "batch-"
9
+
10
+ def self.setup
11
+ yield self
12
+ end
6
13
  end
@@ -1,5 +1,3 @@
1
- @import "batch/settings";
2
-
3
1
  /* general icons for IE7 */
4
2
  [class*="#{$classPrefix}"] {
5
3
  font-family: $fontName;
@@ -7,6 +5,7 @@
7
5
  font-style: normal;
8
6
  }
9
7
 
8
+ /* icons */
10
9
  @include ie-class("at","151");
11
10
  @include ie-class("speech-bubble-left","000");
12
11
  @include ie-class("speech-bubble-center", "001");
@@ -349,4 +348,4 @@
349
348
  @include ie-class("watch", "178");
350
349
  @include ie-class("watch-2", "179");
351
350
  @include ie-class("unwatch", "17a");
352
- @include ie-class("revert", "17c");
351
+ @include ie-class("revert", "17c");
@@ -1,5 +1,3 @@
1
- @import "batch/settings";
2
-
3
1
  /* font-face */
4
2
  @include face;
5
3
 
@@ -24,6 +22,7 @@
24
22
  -webkit-font-smoothing: antialiased;
25
23
  }
26
24
 
25
+ /* icons */
27
26
  @include i-class("at","151");
28
27
  @include i-class("speech-bubble-left","000");
29
28
  @include i-class("speech-bubble-center", "001");
@@ -366,4 +365,4 @@
366
365
  @include i-class("watch", "178");
367
366
  @include i-class("watch-2", "179");
368
367
  @include i-class("unwatch", "17a");
369
- @include i-class("revert", "17c");
368
+ @include i-class("revert", "17c");
@@ -1,7 +1,3 @@
1
- $fontFileName: "/assets/batch";
2
- $fontName: "batch";
3
- $classPrefix: "batch-";
4
-
5
1
  @mixin i-class($name,$pua) {
6
2
  .#{$classPrefix}#{$name}:before {
7
3
  content: "\f#{$pua}";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batch-rails2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-23 00:00:00.000000000 Z
12
+ date: 2013-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -55,6 +55,8 @@ files:
55
55
  - LICENSE.txt
56
56
  - README.md
57
57
  - Rakefile
58
+ - app/assets/stylesheets/batch-ie7.scss
59
+ - app/assets/stylesheets/batch.scss.erb
58
60
  - batch-rails2.gemspec
59
61
  - lib/batch-rails2.rb
60
62
  - lib/batch-rails2/version.rb
@@ -62,8 +64,8 @@ files:
62
64
  - vendor/assets/fonts/batch.svg
63
65
  - vendor/assets/fonts/batch.ttf
64
66
  - vendor/assets/fonts/batch.woff
65
- - vendor/assets/stylesheets/batch-ie7.scss
66
- - vendor/assets/stylesheets/batch.scss
67
+ - vendor/assets/stylesheets/batch/_icons-ie7.scss
68
+ - vendor/assets/stylesheets/batch/_icons.scss
67
69
  - vendor/assets/stylesheets/batch/_settings.scss
68
70
  homepage: https://github.com/mortik/batch-rails2
69
71
  licenses: []
@@ -88,5 +90,5 @@ rubyforge_project:
88
90
  rubygems_version: 1.8.23
89
91
  signing_key:
90
92
  specification_version: 3
91
- summary: Batch icons as a webfont for rails
93
+ summary: Basic integration for the Batch Webfont Icons
92
94
  test_files: []