semantic-ui-sass 0.19.3.0 → 0.19.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/app/assets/stylesheets/semantic-ui/elements/_basic.icon.scss +6 -6
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +6 -6
- data/app/helpers/semantic_flash_helper.rb +4 -4
- data/lib/semantic/ui/sass/version.rb +1 -1
- data/semantic-ui-sass.gemspec +1 -1
- data/spec/helpers/semantic_flash_helper_spec.rb +31 -28
- data/spec/spec_helper.rb +2 -2
- metadata +28 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e46d1fee00028f72ce0a42f618b71bb38582bbee
|
4
|
+
data.tar.gz: 9eae453aa246dce4b974ec653a6127a7d46ffa28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faa9e7634960d2814b308fcbfbf2e83af35a34585a583dd85b1df66dccf90a00454a8fad15674a2f0282c67fe9bc15a04dd6c9ddbe523c035749bf80af254ab5
|
7
|
+
data.tar.gz: a9c3b915040d1c400d22c860e4c42c2768684134048bcf27247221e1202156e05a2290e69166d0ecc532ed49a1d3cb31ec8c86fd13b23de5ab728f970a7b5c1c
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
@font-face {
|
18
18
|
font-family: 'Basic Icons';
|
19
|
-
src: url("semantic-ui/basic.icons.eot");
|
20
|
-
src: url("semantic-ui/basic.icons.eot?#iefix") format('embedded-opentype'),
|
21
|
-
url("semantic-ui/basic.icons.svg#basic.icons") format('svg'),
|
22
|
-
url("semantic-ui/basic.icons.woff") format('woff'),
|
23
|
-
url("semantic-ui/basic.icons.ttf") format('truetype');
|
19
|
+
src: asset-url("semantic-ui/basic.icons.eot");
|
20
|
+
src: asset-url("semantic-ui/basic.icons.eot?#iefix") format('embedded-opentype'),
|
21
|
+
asset-url("semantic-ui/basic.icons.svg#basic.icons") format('svg'),
|
22
|
+
asset-url("semantic-ui/basic.icons.woff") format('woff'),
|
23
|
+
asset-url("semantic-ui/basic.icons.ttf") format('truetype');
|
24
24
|
font-style: normal;
|
25
25
|
font-weight: normal;
|
26
26
|
font-variant: normal;
|
@@ -1121,4 +1121,4 @@ i.massive.basic.icon {
|
|
1121
1121
|
font-size: 8em;
|
1122
1122
|
margin-right: 1em;
|
1123
1123
|
vertical-align: middle;
|
1124
|
-
}
|
1124
|
+
}
|
@@ -29,11 +29,11 @@
|
|
29
29
|
|
30
30
|
@font-face {
|
31
31
|
font-family: 'Icons';
|
32
|
-
src: url("semantic-ui/icons.eot");
|
33
|
-
src: url("semantic-ui/icons.eot?#iefix") format('embedded-opentype'),
|
34
|
-
url("semantic-ui/icons.svg#icons") format('svg'),
|
35
|
-
url("semantic-ui/icons.woff") format('woff'),
|
36
|
-
url("semantic-ui/icons.ttf") format('truetype');
|
32
|
+
src: asset-url("semantic-ui/icons.eot");
|
33
|
+
src: asset-url("semantic-ui/icons.eot?#iefix") format('embedded-opentype'),
|
34
|
+
asset-url("semantic-ui/icons.svg#icons") format('svg'),
|
35
|
+
asset-url("semantic-ui/icons.woff") format('woff'),
|
36
|
+
asset-url("semantic-ui/icons.ttf") format('truetype');
|
37
37
|
font-style: normal;
|
38
38
|
font-weight: normal;
|
39
39
|
font-variant: normal;
|
@@ -1834,4 +1834,4 @@ i.huge.icon {
|
|
1834
1834
|
i.massive.icon {
|
1835
1835
|
font-size: 8em;
|
1836
1836
|
vertical-align: middle;
|
1837
|
-
}
|
1837
|
+
}
|
@@ -5,9 +5,9 @@ module SemanticFlashHelper
|
|
5
5
|
output = ''
|
6
6
|
flash.each do |type, message|
|
7
7
|
next if message.blank?
|
8
|
-
type = :success if type == :notice
|
9
|
-
type = :error if type == :alert
|
10
|
-
next unless ALERT_TYPES.include?(type)
|
8
|
+
type = :success if type.to_sym == :notice
|
9
|
+
type = :error if type.to_sym == :alert
|
10
|
+
next unless ALERT_TYPES.include?(type.to_sym)
|
11
11
|
output += flash_container(type, message)
|
12
12
|
end
|
13
13
|
|
@@ -19,4 +19,4 @@ module SemanticFlashHelper
|
|
19
19
|
content_tag(:i, '', class: "close icon") + message
|
20
20
|
end
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
data/semantic-ui-sass.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'sass-rails', '>= 3.2'
|
25
25
|
spec.add_development_dependency 'pry'
|
26
26
|
spec.add_development_dependency 'dotenv'
|
27
|
-
spec.add_development_dependency
|
27
|
+
spec.add_development_dependency 'rspec-rails', '>= 3.0'
|
28
28
|
spec.add_development_dependency "rails", '>= 3.2.0'
|
29
29
|
spec.add_development_dependency "autoprefixer-rails"
|
30
30
|
end
|
@@ -3,31 +3,34 @@ require 'spec_helper'
|
|
3
3
|
describe SemanticFlashHelper do
|
4
4
|
describe "semantic_flash" do
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
6
|
+
it "should return warning flash message" do
|
7
|
+
@request.flash[:warning] = "Update Warning!"
|
8
|
+
expect(semantic_flash).to eq '<div class="ui warning message"><i class="close icon"></i>Update Warning!</div>'
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should return alert-success message when using notice message" do
|
12
|
+
@request.flash[:notice] = "Update Success!"
|
13
|
+
expect(semantic_flash).to eq '<div class="ui success message"><i class="close icon"></i>Update Success!</div>'
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should return error message when using notice alert" do
|
17
|
+
@request.flash[:alert] = "Update Failed!"
|
18
|
+
expect(semantic_flash).to eq '<div class="ui error message"><i class="close icon"></i>Update Failed!</div>'
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should return alert-error message when using notice error" do
|
22
|
+
@request.flash[:error] = "Update Failed!"
|
23
|
+
expect(semantic_flash).to eq '<div class="ui error message"><i class="close icon"></i>Update Failed!</div>'
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should return no message when using an undefined message" do
|
27
|
+
@request.flash[:undefined] = "Update Undefined!"
|
28
|
+
expect(semantic_flash).to eq ""
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should return no message when the message is blank" do
|
32
|
+
@request.flash[:notice] = ""
|
33
|
+
expect(semantic_flash).to eq ""
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
ENV["RAILS_ENV"] ||= 'test'
|
2
2
|
require File.expand_path("../dummy/config/environment", __FILE__)
|
3
3
|
require 'rspec/rails'
|
4
|
-
require 'rspec/autorun'
|
5
4
|
|
6
5
|
RSpec.configure do |config|
|
6
|
+
config.infer_spec_type_from_file_location!
|
7
7
|
end
|
8
8
|
|
9
9
|
def normalize(str)
|
@@ -14,4 +14,4 @@ RSpec::Matchers.define :like_of do |expected|
|
|
14
14
|
match do |actual|
|
15
15
|
normalize(actual) == normalize(expected)
|
16
16
|
end
|
17
|
-
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,139 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic-ui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.3.
|
4
|
+
version: 0.19.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sass
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sass-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pry
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: dotenv
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
103
|
+
version: '3.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
110
|
+
version: '3.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rails
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 3.2.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.2.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: autoprefixer-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
description: Semantic UI, converted to Sass and ready to drop into Rails & Compass.
|
@@ -143,8 +143,9 @@ executables: []
|
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
-
- .gitignore
|
147
|
-
- .rspec
|
146
|
+
- ".gitignore"
|
147
|
+
- ".rspec"
|
148
|
+
- ".travis.yml"
|
148
149
|
- CHANGELOG.md
|
149
150
|
- Gemfile
|
150
151
|
- LICENSE.txt
|
@@ -298,17 +299,17 @@ require_paths:
|
|
298
299
|
- lib
|
299
300
|
required_ruby_version: !ruby/object:Gem::Requirement
|
300
301
|
requirements:
|
301
|
-
- -
|
302
|
+
- - ">="
|
302
303
|
- !ruby/object:Gem::Version
|
303
304
|
version: '0'
|
304
305
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
305
306
|
requirements:
|
306
|
-
- -
|
307
|
+
- - ">="
|
307
308
|
- !ruby/object:Gem::Version
|
308
309
|
version: '0'
|
309
310
|
requirements: []
|
310
311
|
rubyforge_project:
|
311
|
-
rubygems_version: 2.
|
312
|
+
rubygems_version: 2.2.2
|
312
313
|
signing_key:
|
313
314
|
specification_version: 4
|
314
315
|
summary: Semantic UI, converted to Sass and ready to drop into Rails & Compass.
|