font_awesome_tag_helper 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/Gemfile +7 -0
- data/MIT-LICENSE +1 -1
- data/README.rdoc +40 -3
- data/Rakefile +0 -4
- data/font_awesome_tag_helper.gemspec +32 -0
- data/lib/font_awesome_tag_helper/version.rb +16 -2
- data/lib/font_awesome_tag_helper.rb +50 -2
- data/test/dummy/app/controllers/font_awesome_tag_helper_controller.rb +1 -0
- data/test/dummy/{db/test.sqlite3 → app/mailers/.gitkeep} +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/font_awesome_tag_helper/index.html.erb +1 -1
- data/test/dummy/config/boot.rb +1 -1
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/db +0 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/font_awesome_tag_helper_controller_test.rb +146 -4
- data/test/test_helper.rb +2 -0
- metadata +39 -26
- data/test/dummy/log/test.log +0 -127
data/.gitignore
ADDED
data/Gemfile
ADDED
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -2,7 +2,44 @@
|
|
2
2
|
|
3
3
|
tag helper methods for Font Awesome icons
|
4
4
|
|
5
|
-
Usage
|
5
|
+
== Usage
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
icon_tag :icon_name, options_hash
|
8
|
+
|
9
|
+
== Examples
|
10
|
+
|
11
|
+
icon_tag :search
|
12
|
+
|
13
|
+
produces:
|
14
|
+
|
15
|
+
<i class"icon-search"></i>
|
16
|
+
|
17
|
+
--
|
18
|
+
|
19
|
+
icon_tag :search, { id: "search", name: "search_icon" }
|
20
|
+
|
21
|
+
produces:
|
22
|
+
|
23
|
+
<i id="search" name="search_icon" class="icon-search"></i>
|
24
|
+
|
25
|
+
--
|
26
|
+
|
27
|
+
icon_tag :search, { id: "search", name: "search_icon", large: true, pull: "right" }
|
28
|
+
|
29
|
+
produces:
|
30
|
+
|
31
|
+
<i id="search" name="search_icon" class"icon-search icon-large pull-right"></i>
|
32
|
+
|
33
|
+
== Available Options
|
34
|
+
|
35
|
+
- +id+ the value of the id attribute. Accepts a string.
|
36
|
+
- +name+ the value of the name attribute. Accepts a string.
|
37
|
+
- +size+ increases the size of the icon. Adds +icon-2x+, +icon-3x+ or +icon-4x+ to the class when the value is set to a valid multiplayer +2+, +3+ or +4+. Accepts an integer.
|
38
|
+
- +large+ increases the size of the icon. Adds +icon-large+ to the class when the value is set to +true+. Accepts a boolean.
|
39
|
+
- +border+ includes a border around the icon. Adds +icon-border+ to the class when the value is set to +true+. Accepts a boolean.
|
40
|
+
- +pull+ orientates the icon to the left or right. Adds +pull-left+ or +pull-right+ to the class when the value is set to +left+ or +right+. Accepts a string.
|
41
|
+
- +spin+ animates the icon. Adds +icon-spin+ to the class when the value is set to +true+. Accepts a boolean.
|
42
|
+
- +li+ or +list+ formats the icon for a list. Adds +icon-li+ to the class when the value is set to +true+. Accepts a boolean.
|
43
|
+
- +width+ increases the width to the width of the parent element. Adds +icon-fixed-width+ to the class when the value is set to +fixed+. Accepts a string.
|
44
|
+
- +rotate+ turns the icon the specified number of degrees. Adds +icon-rotate-90+, +icon-rotate-180+ or +icon-rotate-270+ to the class when the value is set to +90+, +180+ or +270+. Accepts an integer.
|
45
|
+
- +width+ flips the icon. Adds +icon-flip-horizontal+ or +icon-flip-vertical+ to the class when the value is set to +horizontal+ or +vertical+. Accepts a string.
|
data/Rakefile
CHANGED
@@ -20,9 +20,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
23
|
Bundler::GemHelper.install_tasks
|
27
24
|
|
28
25
|
require 'rake/testtask'
|
@@ -34,5 +31,4 @@ Rake::TestTask.new(:test) do |t|
|
|
34
31
|
t.verbose = false
|
35
32
|
end
|
36
33
|
|
37
|
-
|
38
34
|
task :default => :test
|
@@ -0,0 +1,32 @@
|
|
1
|
+
lib = File.expand_path('../lib/', __FILE__)
|
2
|
+
$:.unshift lib unless $:.include?(lib)
|
3
|
+
|
4
|
+
require "font_awesome_tag_helper/version"
|
5
|
+
require 'date'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "font_awesome_tag_helper"
|
9
|
+
s.version = ExpiringAssetLinks::Version.string
|
10
|
+
s.date = Date.today
|
11
|
+
|
12
|
+
s.summary = "Adds Font Awesome tag helpers."
|
13
|
+
s.description = "Adds Font Awesome tag helpers."
|
14
|
+
s.license = 'MIT'
|
15
|
+
|
16
|
+
s.author = "chaunce"
|
17
|
+
s.email = "chaunce.slc@gmail.com"
|
18
|
+
s.homepage = "http://github.com/chaunce/font_awesome_tag_helper"
|
19
|
+
|
20
|
+
s.has_rdoc = false
|
21
|
+
s.rdoc_options = ['--line-numbers', '--inline-source', '--main', 'README.rdoc']
|
22
|
+
|
23
|
+
s.require_paths = ['lib']
|
24
|
+
|
25
|
+
s.files = `git ls-files`.split("\n")
|
26
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
|
+
|
28
|
+
s.add_dependency "rails"
|
29
|
+
s.add_dependency "font-awesome-rails"
|
30
|
+
|
31
|
+
s.add_development_dependency "sqlite3"
|
32
|
+
end
|
@@ -1,3 +1,17 @@
|
|
1
|
-
module
|
2
|
-
|
1
|
+
module ExpiringAssetLinks
|
2
|
+
# Contains information about this gem's version
|
3
|
+
module Version
|
4
|
+
MAJOR = 0
|
5
|
+
MINOR = 1
|
6
|
+
PATCH = 2
|
7
|
+
|
8
|
+
# Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
|
9
|
+
#
|
10
|
+
# Example
|
11
|
+
#
|
12
|
+
# Version.string # '1.0.2'
|
13
|
+
def self.string
|
14
|
+
[MAJOR, MINOR, PATCH].join('.')
|
15
|
+
end
|
16
|
+
end
|
3
17
|
end
|
@@ -1,9 +1,57 @@
|
|
1
1
|
module FontAwesomeTagHelper
|
2
2
|
def icon_tag(icon_name, options = {})
|
3
|
+
|
4
|
+
class_options = options.collect do |option, option_value|
|
5
|
+
value = option_value.to_s
|
6
|
+
case option.to_sym
|
7
|
+
when :size, :large # icon-large, icon-2x, icon-3x, icon-4x
|
8
|
+
if (option.to_sym == :large && value != "false") || value == "large"
|
9
|
+
"icon-large"
|
10
|
+
elsif [2,3,4].include?(value.to_i)
|
11
|
+
"icon-#{value.to_i}x"
|
12
|
+
# else
|
13
|
+
# "icon-large"
|
14
|
+
end
|
15
|
+
when :border # icon-border
|
16
|
+
"icon-border" unless value == "false"
|
17
|
+
when :pull # pull-right pull-left
|
18
|
+
case value
|
19
|
+
when "right"
|
20
|
+
"pull-right"
|
21
|
+
when "left"
|
22
|
+
"pull-left"
|
23
|
+
end
|
24
|
+
when :spin # icon-spin
|
25
|
+
"icon-spin" unless value == "false"
|
26
|
+
when :li, :list # icon-li
|
27
|
+
"icon-li" unless value == "false"
|
28
|
+
when :width # icon-fixed-width
|
29
|
+
"icon-fixed-width" if value.match(/^fixed/).present?
|
30
|
+
when :rotate # icon-rotate-90, icon-rotate-180, icon-rotate-270
|
31
|
+
case value.to_i
|
32
|
+
when 90
|
33
|
+
"icon-rotate-90"
|
34
|
+
when 180
|
35
|
+
"icon-rotate-180"
|
36
|
+
when 270
|
37
|
+
"icon-rotate-270"
|
38
|
+
end
|
39
|
+
when :flip # icon-flip-horizontal, icon-flip-vertical
|
40
|
+
case value
|
41
|
+
when "horizontal"
|
42
|
+
"icon-flip-horizontal"
|
43
|
+
when "vertical"
|
44
|
+
"icon-flip-vertical"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end.uniq.reject(&:nil?)
|
48
|
+
class_options.delete("icon-large") if class_options.include?("icon-large") && class_options.select{ |option| option =~ /icon-[2,3,4]x/ }.any?
|
49
|
+
class_options.reject!{ |option| option =~ /^icon-rotate/ } if class_options.select{ |option| option =~ /^icon-rotate/ }.any? && class_options.select{ |option| option =~ /^icon-flip/ }.any?
|
50
|
+
|
3
51
|
tag = "<i"
|
4
52
|
tag += " id=\"#{options[:id].to_s}\"" if options[:id].present?
|
5
|
-
tag += " name=\"#{
|
6
|
-
tag += " class=\"#{(
|
53
|
+
tag += " name=\"#{options[:name].to_s}\"" if options[:name].present?
|
54
|
+
tag += " class=\"#{class_options.unshift("icon-#{icon_name}").join(' ')}\""
|
7
55
|
tag += "></i>"
|
8
56
|
return tag.html_safe
|
9
57
|
end
|
File without changes
|
File without changes
|
@@ -1 +1 @@
|
|
1
|
-
<%= icon_tag @tag %>
|
1
|
+
<%= icon_tag @tag, @options %>
|
data/test/dummy/config/boot.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED
@@ -55,6 +55,6 @@ Dummy::Application.routes.draw do
|
|
55
55
|
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
56
|
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
57
|
# match ':controller(/:action(/:id))(.:format)'
|
58
|
-
|
58
|
+
|
59
59
|
resources :font_awesome_tag_helper
|
60
60
|
end
|
data/test/dummy/db/db
ADDED
File without changes
|
File without changes
|
File without changes
|
@@ -2,13 +2,155 @@ require 'test_helper'
|
|
2
2
|
require 'font_awesome_tag_helper_controller'
|
3
3
|
|
4
4
|
class FontAwesomeTagHelperControllerTest < ActionController::TestCase
|
5
|
-
test "
|
6
|
-
tag =
|
7
|
-
|
5
|
+
test "generate_tag" do
|
6
|
+
tag = "search"
|
7
|
+
|
8
|
+
get :index, { :tag => tag }
|
9
|
+
assert_response 200
|
10
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag}" }
|
11
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
12
|
+
assert_tag :tag => 'i', :content => nil
|
13
|
+
end
|
14
|
+
|
15
|
+
test "generate_tag_without_options" do
|
16
|
+
tag = "search"
|
17
|
+
|
8
18
|
get :index, { :tag => tag }
|
9
19
|
assert_response 200
|
10
20
|
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag}" }
|
21
|
+
assert_tag :tag => 'i', :attributes => { :id => nil }
|
22
|
+
assert_tag :tag => 'i', :attributes => { :name => nil }
|
23
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
24
|
+
assert_tag :tag => 'i', :content => nil
|
25
|
+
end
|
26
|
+
|
27
|
+
test "generate_tag_with_basic_options" do
|
28
|
+
tag = "search"
|
29
|
+
options = { id: "search-box", name: "search" }
|
30
|
+
|
31
|
+
get :index, { :tag => tag, :options => options }
|
32
|
+
assert_response 200
|
33
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag}" }
|
34
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
35
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
36
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
37
|
+
assert_tag :tag => 'i', :content => nil
|
38
|
+
end
|
39
|
+
|
40
|
+
test "generate_tag_with_advanced_options" do
|
41
|
+
tag = "search"
|
42
|
+
options = { id: "search-box", name: "search", width: "fixed", size: "2x" }
|
43
|
+
|
44
|
+
get :index, { :tag => tag, :options => options }
|
45
|
+
assert_response 200
|
46
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-fixed-width icon-2x" }
|
47
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
48
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
49
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
50
|
+
assert_tag :tag => 'i', :content => nil
|
51
|
+
end
|
52
|
+
|
53
|
+
test "generate_tag_with_boolean_option" do
|
54
|
+
tag = "search"
|
55
|
+
options = { id: "search-box", name: "search", width: "fixed", large: true }
|
56
|
+
|
57
|
+
get :index, { :tag => tag, :options => options }
|
58
|
+
assert_response 200
|
59
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-fixed-width icon-large" }
|
60
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
61
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
62
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
63
|
+
assert_tag :tag => 'i', :content => nil
|
64
|
+
end
|
65
|
+
|
66
|
+
test "generate_tag_with_boolean_string_option" do
|
67
|
+
tag = "search"
|
68
|
+
options = { id: "search-box", name: "search", width: "fixed", large: "true" }
|
69
|
+
|
70
|
+
get :index, { :tag => tag, :options => options }
|
71
|
+
assert_response 200
|
72
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-fixed-width icon-large" }
|
73
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
74
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
75
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
76
|
+
assert_tag :tag => 'i', :content => nil
|
77
|
+
end
|
78
|
+
|
79
|
+
test "generate_tag_with_false_boolean_option" do
|
80
|
+
tag = "search"
|
81
|
+
options = { id: "search-box", name: "search", width: "fixed", large: false }
|
82
|
+
|
83
|
+
get :index, { :tag => tag, :options => options }
|
84
|
+
assert_response 200
|
85
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-fixed-width" }
|
86
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
87
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
88
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
89
|
+
assert_tag :tag => 'i', :content => nil
|
90
|
+
end
|
91
|
+
|
92
|
+
test "generate_tag_with_false_boolean_string_option" do
|
93
|
+
tag = "search"
|
94
|
+
options = { id: "search-box", name: "search", width: "fixed", large: "false" }
|
95
|
+
|
96
|
+
get :index, { :tag => tag, :options => options }
|
97
|
+
assert_response 200
|
98
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-fixed-width" }
|
99
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
100
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
101
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
102
|
+
assert_tag :tag => 'i', :content => nil
|
103
|
+
end
|
104
|
+
|
105
|
+
test "generate_tag_with_many_advanced_options" do
|
106
|
+
tag = "search"
|
107
|
+
options = { id: "search-box", name: "search", size: "4x", large: false, border: "true", pull: "left", spin: true, li: "false", list: "li", width: "fixed-width", rotate: 180, flip: "none" }
|
108
|
+
|
109
|
+
get :index, { :tag => tag, :options => options }
|
110
|
+
assert_response 200
|
111
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-4x icon-border pull-left icon-spin icon-li icon-fixed-width icon-rotate-180" }
|
112
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
113
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
114
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
115
|
+
assert_tag :tag => 'i', :content => nil
|
116
|
+
end
|
117
|
+
|
118
|
+
test "generate_tag_with_duplicate_options" do
|
119
|
+
tag = "search"
|
120
|
+
options = { id: "search-box", name: "search", size: "4x", large: true, li: "yes", list: "li", rotate: 180, flip: "horizontal" }
|
121
|
+
|
122
|
+
get :index, { :tag => tag, :options => options }
|
123
|
+
assert_response 200
|
124
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag} icon-4x icon-li icon-flip-horizontal" }
|
125
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
126
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
127
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
128
|
+
assert_tag :tag => 'i', :content => nil
|
129
|
+
end
|
130
|
+
|
131
|
+
test "generate_tag_with_invalid_options" do
|
132
|
+
tag = "search"
|
133
|
+
options = { id: "search-box", name: "search", popup: true, flash: "Yes!", hidden: "okay" }
|
134
|
+
|
135
|
+
get :index, { :tag => tag, :options => options }
|
136
|
+
assert_response 200
|
137
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag}" }
|
138
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-box" }
|
139
|
+
assert_tag :tag => 'i', :attributes => { :name => "search" }
|
140
|
+
assert_tag :tag => 'i', :children => { :count => 0 }
|
141
|
+
assert_tag :tag => 'i', :content => nil
|
142
|
+
end
|
143
|
+
|
144
|
+
test "generate_invalid_tag" do
|
145
|
+
tag = "search-invalid"
|
146
|
+
options = { id: "search-invalid-box", name: "search-invalid" }
|
147
|
+
|
148
|
+
get :index, { :tag => tag, :options => options }
|
149
|
+
assert_response 200
|
150
|
+
assert_tag :tag => 'i', :attributes => { :class => "icon-#{tag}" }
|
151
|
+
assert_tag :tag => 'i', :attributes => { :id => "search-invalid-box" }
|
152
|
+
assert_tag :tag => 'i', :attributes => { :name => "search-invalid" }
|
11
153
|
assert_tag :tag => 'i', :children => { :count => 0 }
|
12
154
|
assert_tag :tag => 'i', :content => nil
|
13
155
|
end
|
14
|
-
end
|
156
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -13,3 +13,5 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
13
13
|
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
14
|
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
15
|
end
|
16
|
+
|
17
|
+
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font_awesome_tag_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: font-awesome-rails
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,25 +60,32 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
description: Adds Font Awesome tag helpers.
|
63
|
-
email:
|
64
|
-
- chaunce.slc@gmail.com
|
63
|
+
email: chaunce.slc@gmail.com
|
65
64
|
executables: []
|
66
65
|
extensions: []
|
67
66
|
extra_rdoc_files: []
|
68
67
|
files:
|
69
|
-
-
|
70
|
-
-
|
71
|
-
- lib/tasks/font_awesome_tag_helper_tasks.rake
|
68
|
+
- .gitignore
|
69
|
+
- Gemfile
|
72
70
|
- MIT-LICENSE
|
73
|
-
- Rakefile
|
74
71
|
- README.rdoc
|
72
|
+
- Rakefile
|
73
|
+
- font_awesome_tag_helper.gemspec
|
74
|
+
- lib/font_awesome_tag_helper.rb
|
75
|
+
- lib/font_awesome_tag_helper/version.rb
|
76
|
+
- lib/tasks/font_awesome_tag_helper_tasks.rake
|
77
|
+
- test/dummy/README.rdoc
|
78
|
+
- test/dummy/Rakefile
|
75
79
|
- test/dummy/app/assets/javascripts/application.js
|
76
80
|
- test/dummy/app/assets/stylesheets/application.css
|
77
81
|
- test/dummy/app/controllers/application_controller.rb
|
78
82
|
- test/dummy/app/controllers/font_awesome_tag_helper_controller.rb
|
79
83
|
- test/dummy/app/helpers/application_helper.rb
|
84
|
+
- test/dummy/app/mailers/.gitkeep
|
85
|
+
- test/dummy/app/models/.gitkeep
|
80
86
|
- test/dummy/app/views/font_awesome_tag_helper/index.html.erb
|
81
87
|
- test/dummy/app/views/layouts/application.html.erb
|
88
|
+
- test/dummy/config.ru
|
82
89
|
- test/dummy/config/application.rb
|
83
90
|
- test/dummy/config/boot.rb
|
84
91
|
- test/dummy/config/database.yml
|
@@ -94,23 +101,26 @@ files:
|
|
94
101
|
- test/dummy/config/initializers/wrap_parameters.rb
|
95
102
|
- test/dummy/config/locales/en.yml
|
96
103
|
- test/dummy/config/routes.rb
|
97
|
-
- test/dummy/
|
98
|
-
- test/dummy/
|
99
|
-
- test/dummy/log
|
104
|
+
- test/dummy/db/db
|
105
|
+
- test/dummy/lib/assets/.gitkeep
|
106
|
+
- test/dummy/log/.gitkeep
|
100
107
|
- test/dummy/public/404.html
|
101
108
|
- test/dummy/public/422.html
|
102
109
|
- test/dummy/public/500.html
|
103
110
|
- test/dummy/public/favicon.ico
|
104
|
-
- test/dummy/Rakefile
|
105
|
-
- test/dummy/README.rdoc
|
106
111
|
- test/dummy/script/rails
|
107
112
|
- test/font_awesome_tag_helper_controller_test.rb
|
108
113
|
- test/font_awesome_tag_helper_test.rb
|
109
114
|
- test/test_helper.rb
|
110
|
-
homepage:
|
111
|
-
licenses:
|
115
|
+
homepage: http://github.com/chaunce/font_awesome_tag_helper
|
116
|
+
licenses:
|
117
|
+
- MIT
|
112
118
|
post_install_message:
|
113
|
-
rdoc_options:
|
119
|
+
rdoc_options:
|
120
|
+
- --line-numbers
|
121
|
+
- --inline-source
|
122
|
+
- --main
|
123
|
+
- README.rdoc
|
114
124
|
require_paths:
|
115
125
|
- lib
|
116
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -127,18 +137,23 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
137
|
version: '0'
|
128
138
|
requirements: []
|
129
139
|
rubyforge_project:
|
130
|
-
rubygems_version: 1.8.
|
140
|
+
rubygems_version: 1.8.25
|
131
141
|
signing_key:
|
132
142
|
specification_version: 3
|
133
143
|
summary: Adds Font Awesome tag helpers.
|
134
144
|
test_files:
|
145
|
+
- test/dummy/README.rdoc
|
146
|
+
- test/dummy/Rakefile
|
135
147
|
- test/dummy/app/assets/javascripts/application.js
|
136
148
|
- test/dummy/app/assets/stylesheets/application.css
|
137
149
|
- test/dummy/app/controllers/application_controller.rb
|
138
150
|
- test/dummy/app/controllers/font_awesome_tag_helper_controller.rb
|
139
151
|
- test/dummy/app/helpers/application_helper.rb
|
152
|
+
- test/dummy/app/mailers/.gitkeep
|
153
|
+
- test/dummy/app/models/.gitkeep
|
140
154
|
- test/dummy/app/views/font_awesome_tag_helper/index.html.erb
|
141
155
|
- test/dummy/app/views/layouts/application.html.erb
|
156
|
+
- test/dummy/config.ru
|
142
157
|
- test/dummy/config/application.rb
|
143
158
|
- test/dummy/config/boot.rb
|
144
159
|
- test/dummy/config/database.yml
|
@@ -154,15 +169,13 @@ test_files:
|
|
154
169
|
- test/dummy/config/initializers/wrap_parameters.rb
|
155
170
|
- test/dummy/config/locales/en.yml
|
156
171
|
- test/dummy/config/routes.rb
|
157
|
-
- test/dummy/
|
158
|
-
- test/dummy/
|
159
|
-
- test/dummy/log
|
172
|
+
- test/dummy/db/db
|
173
|
+
- test/dummy/lib/assets/.gitkeep
|
174
|
+
- test/dummy/log/.gitkeep
|
160
175
|
- test/dummy/public/404.html
|
161
176
|
- test/dummy/public/422.html
|
162
177
|
- test/dummy/public/500.html
|
163
178
|
- test/dummy/public/favicon.ico
|
164
|
-
- test/dummy/Rakefile
|
165
|
-
- test/dummy/README.rdoc
|
166
179
|
- test/dummy/script/rails
|
167
180
|
- test/font_awesome_tag_helper_controller_test.rb
|
168
181
|
- test/font_awesome_tag_helper_test.rb
|
data/test/dummy/log/test.log
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
3
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
-
Connecting to database specified by database.yml
|
5
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
6
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
7
|
-
Connecting to database specified by database.yml
|
8
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
9
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
10
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
12
|
-
Connecting to database specified by database.yml
|
13
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
14
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
15
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
17
|
-
Connecting to database specified by database.yml
|
18
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
19
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
20
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
22
|
-
Connecting to database specified by database.yml
|
23
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
24
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
25
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (2.0ms)
|
26
|
-
Completed 200 OK in 39ms (Views: 38.9ms | ActiveRecord: 0.0ms)
|
27
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
28
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
30
|
-
Connecting to database specified by database.yml
|
31
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
32
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
33
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (1.6ms)
|
34
|
-
Completed 200 OK in 31ms (Views: 30.8ms | ActiveRecord: 0.0ms)
|
35
|
-
|
36
|
-
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
37
|
-
|
38
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
39
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
40
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
41
|
-
Connecting to database specified by database.yml
|
42
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
43
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
44
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (2.6ms)
|
45
|
-
Completed 200 OK in 38ms (Views: 37.4ms | ActiveRecord: 0.0ms)
|
46
|
-
|
47
|
-
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
48
|
-
|
49
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
50
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
51
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
52
|
-
Connecting to database specified by database.yml
|
53
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
54
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
55
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (45.9ms)
|
56
|
-
Completed 500 Internal Server Error in 75ms
|
57
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
58
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
60
|
-
Connecting to database specified by database.yml
|
61
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
62
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
63
|
-
Completed 500 Internal Server Error in 1ms
|
64
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
65
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
66
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
67
|
-
Connecting to database specified by database.yml
|
68
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
69
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
70
|
-
Parameters: {"tag"=>"search"}
|
71
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (1.6ms)
|
72
|
-
Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms)
|
73
|
-
|
74
|
-
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
75
|
-
|
76
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
78
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
79
|
-
Connecting to database specified by database.yml
|
80
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
81
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
82
|
-
Parameters: {"tag"=>"search"}
|
83
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (1.6ms)
|
84
|
-
Completed 200 OK in 39ms (Views: 38.9ms | ActiveRecord: 0.0ms)
|
85
|
-
|
86
|
-
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
87
|
-
|
88
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
89
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
90
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
91
|
-
Connecting to database specified by database.yml
|
92
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
93
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
94
|
-
Parameters: {"tag"=>"search"}
|
95
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (45.4ms)
|
96
|
-
Completed 200 OK in 79ms (Views: 78.3ms | ActiveRecord: 0.0ms)
|
97
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
98
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
99
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
100
|
-
Connecting to database specified by database.yml
|
101
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
102
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
103
|
-
Parameters: {"tag"=>"search"}
|
104
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (1.6ms)
|
105
|
-
Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)
|
106
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
107
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
108
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
109
|
-
Connecting to database specified by database.yml
|
110
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
111
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
112
|
-
Parameters: {"tag"=>"search"}
|
113
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (1.6ms)
|
114
|
-
Completed 200 OK in 33ms (Views: 32.3ms | ActiveRecord: 0.0ms)
|
115
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
116
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
117
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
118
|
-
Connecting to database specified by database.yml
|
119
|
-
Connecting to database specified by database.yml
|
120
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
121
|
-
Processing by FontAwesomeTagHelperController#index as HTML
|
122
|
-
Parameters: {"tag"=>"search"}
|
123
|
-
Rendered font_awesome_tag_helper/index.html.erb within layouts/application (3.1ms)
|
124
|
-
Completed 200 OK in 40ms (Views: 39.7ms | ActiveRecord: 0.0ms)
|
125
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
127
|
-
[1m[35m (0.0ms)[0m rollback transaction
|