semantic-ui-sass 2.1.3.0 → 2.1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +5 -5
- data/app/assets/javascripts/semantic-ui/api.js +1 -1
- data/app/assets/javascripts/semantic-ui/dropdown.js +9 -4
- data/app/assets/javascripts/semantic-ui/form.js +184 -90
- data/app/assets/javascripts/semantic-ui/search.js +1 -1
- data/app/assets/javascripts/semantic-ui/site.js +2 -2
- data/app/assets/javascripts/semantic-ui/tab.js +2 -2
- data/app/assets/stylesheets/semantic-ui.scss +2 -3
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +2 -2
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +14 -15
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +7 -7
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +3 -2
- data/app/assets/stylesheets/semantic-ui/elements/_container.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -2
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +3 -2
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/globals/_all.scss +2 -2
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +1 -1
- data/app/helpers/semantic_breadcrumbs_helper.rb +2 -2
- data/lib/semantic/ui/sass/breadcrumbs.rb +7 -7
- data/lib/semantic/ui/sass/version.rb +2 -2
- data/spec/helpers/semantic_breadcrumbs_helper_spec.rb +4 -4
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
module SemanticBreadcrumbsHelper
|
2
|
-
def
|
2
|
+
def semantic_breadcrumbs(divider = '/', &block)
|
3
3
|
content = render :partial => 'semantic/breadcrumbs', :layout => false, :locals => { :divider => divider }
|
4
4
|
if block_given?
|
5
5
|
capture(content, &block)
|
@@ -7,4 +7,4 @@ module SemanticBreadcrumbsHelper
|
|
7
7
|
content
|
8
8
|
end
|
9
9
|
end
|
10
|
-
end
|
10
|
+
end
|
@@ -8,25 +8,25 @@ module Semantic
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ClassMethods
|
11
|
-
def
|
11
|
+
def semantic_breadcrumb(name, url, options = {})
|
12
12
|
class_name = self.name
|
13
13
|
before_filter options do |controller|
|
14
|
-
name = controller.send :
|
15
|
-
controller.send :
|
14
|
+
name = controller.send :translate_semantic_breadcrumb, name, class_name if name.is_a?(Symbol)
|
15
|
+
controller.send :semantic_breadcrumb, name, url
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
protected
|
21
21
|
|
22
|
-
def
|
22
|
+
def semantic_breadcrumb(name, url = '', options = {})
|
23
23
|
@breadcrumbs ||= []
|
24
|
-
name =
|
24
|
+
name = translate_semantic_breadcrumb(name, self.class.name) if name.is_a?(Symbol)
|
25
25
|
url = eval(url.to_s) if url =~ /_path|_url|@/
|
26
26
|
@breadcrumbs << {:name => name, :url => url, :options => options}
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
29
|
+
def translate_semantic_breadcrumb(name, class_name)
|
30
30
|
scope = [:breadcrumbs]
|
31
31
|
namespace = class_name.underscore.split('/')
|
32
32
|
namespace.last.sub!('_controller', '')
|
@@ -38,4 +38,4 @@ module Semantic
|
|
38
38
|
|
39
39
|
end
|
40
40
|
end
|
41
|
-
end
|
41
|
+
end
|
@@ -5,7 +5,7 @@ describe SemanticBreadcrumbsHelper do
|
|
5
5
|
|
6
6
|
it "should return breadcrumbs" do
|
7
7
|
controller.instance_variable_set("@breadcrumbs", [{name: 'Home', url:'/'}])
|
8
|
-
expect(
|
8
|
+
expect(semantic_breadcrumbs).to like_of %Q{
|
9
9
|
<div class="ui breadcrumb">
|
10
10
|
<div class="active section">Home</div>
|
11
11
|
</div>
|
@@ -14,7 +14,7 @@ describe SemanticBreadcrumbsHelper do
|
|
14
14
|
|
15
15
|
it "should return breadcrumbs with multi params" do
|
16
16
|
controller.instance_variable_set("@breadcrumbs", [{name: 'Home', url:'/'}, {name: 'Posts', url: '/posts'}])
|
17
|
-
expect(
|
17
|
+
expect(semantic_breadcrumbs).to like_of %Q{
|
18
18
|
<div class="ui breadcrumb">
|
19
19
|
<a href="/">Home</a>
|
20
20
|
<div class="divider">/</div>
|
@@ -25,7 +25,7 @@ describe SemanticBreadcrumbsHelper do
|
|
25
25
|
|
26
26
|
it "should return breadcrumbs with divider" do
|
27
27
|
controller.instance_variable_set("@breadcrumbs", [{name: 'Home', url:'/'}, {name: 'Posts', url: '/posts'}])
|
28
|
-
expect(
|
28
|
+
expect(semantic_breadcrumbs('>')).to like_of %Q{
|
29
29
|
<div class="ui breadcrumb">
|
30
30
|
<a href="/">Home</a>
|
31
31
|
<div class="divider">></div>
|
@@ -35,4 +35,4 @@ describe SemanticBreadcrumbsHelper do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
38
|
-
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-ui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|