font-awesome-rails 4.0.3.1 → 4.0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,6 +37,10 @@ class FontAwesome::Rails::IconHelperTest < ActionView::TestCase
37
37
  assert_icon "#{i("fa fa-camera-retro")} Take a photo", "camera-retro", :text => "Take a photo"
38
38
  end
39
39
 
40
+ test "#fa_icon should be able to put the icon on the right" do
41
+ assert_icon "Submit #{i("fa fa-chevron-right")}", "chevron-right", :text => "Submit", :right => true
42
+ end
43
+
40
44
  test "#fa_icon should html escape text" do
41
45
  assert_icon "#{i("fa fa-camera-retro")} &lt;script&gt;&lt;/script&gt;", "camera-retro", :text => "<script></script>"
42
46
  end
@@ -75,6 +79,11 @@ class FontAwesome::Rails::IconHelperTest < ActionView::TestCase
75
79
  assert_stacked_icon expected, "facebook", :base => "ban", :reverse => "true"
76
80
  end
77
81
 
82
+ test "#fa_stacked_icon should be able to put the icon on the right" do
83
+ expected = %(Go <span class="fa-stack">#{i("fa fa-square-o fa-stack-2x")}#{i("fa fa-exclamation fa-stack-1x")}</span>)
84
+ assert_stacked_icon expected, "exclamation", :text => "Go", :right => true
85
+ end
86
+
78
87
  test "#fa_stacked_icon should html escape text" do
79
88
  expected = %(<span class="fa-stack">#{i("fa fa-check-empty fa-stack-2x")}#{i("fa fa-twitter fa-stack-1x")}</span> &lt;script&gt;)
80
89
  assert_stacked_icon expected, "twitter", :base => "check-empty", :text => "<script>"
metadata CHANGED
@@ -1,75 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: font-awesome-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3.1
4
+ version: 4.0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - bokmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-03 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.2'
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- - !ruby/object:Gem::Dependency
48
- name: tzinfo
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - '>='
44
+ - - ">="
59
45
  - !ruby/object:Gem::Version
60
46
  version: '0'
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: sass-rails
63
49
  requirement: !ruby/object:Gem::Requirement
64
50
  requirements:
65
- - - '>='
51
+ - - ">="
66
52
  - !ruby/object:Gem::Version
67
53
  version: '0'
68
54
  type: :development
69
55
  prerelease: false
70
56
  version_requirements: !ruby/object:Gem::Requirement
71
57
  requirements:
72
- - - '>='
58
+ - - ">="
73
59
  - !ruby/object:Gem::Version
74
60
  version: '0'
75
61
  description: I like font-awesome. I like the asset pipeline. I like semantic versioning.
@@ -80,30 +66,30 @@ executables: []
80
66
  extensions: []
81
67
  extra_rdoc_files: []
82
68
  files:
69
+ - LICENSE
70
+ - README.md
71
+ - Rakefile
72
+ - app/assets/fonts/FontAwesome.otf
83
73
  - app/assets/fonts/fontawesome-webfont.eot
84
74
  - app/assets/fonts/fontawesome-webfont.svg
85
75
  - app/assets/fonts/fontawesome-webfont.ttf
86
76
  - app/assets/fonts/fontawesome-webfont.woff
87
- - app/assets/fonts/FontAwesome.otf
88
77
  - app/assets/stylesheets/font-awesome.css.erb
89
78
  - app/helpers/font_awesome/rails/icon_helper.rb
79
+ - lib/font-awesome-rails.rb
90
80
  - lib/font-awesome-rails/engine.rb
91
81
  - lib/font-awesome-rails/version.rb
92
- - lib/font-awesome-rails.rb
93
- - LICENSE
94
- - Rakefile
95
- - README.md
96
82
  - test/dummy/app/assets/stylesheets/sass-import.css.sass
97
83
  - test/dummy/app/assets/stylesheets/scss-import.css.scss
98
84
  - test/dummy/app/assets/stylesheets/sprockets-require.css
99
85
  - test/dummy/app/controllers/pages_controller.rb
100
86
  - test/dummy/app/views/pages/icons.html.erb
87
+ - test/dummy/config.ru
101
88
  - test/dummy/config/application.rb
102
89
  - test/dummy/config/boot.rb
103
90
  - test/dummy/config/environment.rb
104
91
  - test/dummy/config/initializers/secret_token.rb
105
92
  - test/dummy/config/routes.rb
106
- - test/dummy/config.ru
107
93
  - test/dummy/log/test.log
108
94
  - test/font_awesome_rails_test.rb
109
95
  - test/icon_helper_test.rb
@@ -119,17 +105,17 @@ require_paths:
119
105
  - lib
120
106
  required_ruby_version: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - '>='
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  required_rubygems_version: !ruby/object:Gem::Requirement
126
112
  requirements:
127
- - - '>='
113
+ - - ">="
128
114
  - !ruby/object:Gem::Version
129
115
  version: '0'
130
116
  requirements: []
131
117
  rubyforge_project:
132
- rubygems_version: 2.0.14
118
+ rubygems_version: 2.2.2
133
119
  signing_key:
134
120
  specification_version: 4
135
121
  summary: an asset gemification of the font-awesome icon font library