fomantic-ui-sass 2.9.3 → 2.9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/app/helpers/semantic_breadcrumbs_helper.rb +2 -0
- data/app/helpers/semantic_flash_helper.rb +2 -0
- data/app/helpers/semantic_icon_helper.rb +2 -0
- data/fomantic-ui-sass.gemspec +4 -2
- data/gemfiles/rails_5.0.gemfile +2 -0
- data/gemfiles/rails_5.1.gemfile +2 -0
- data/gemfiles/rails_5.2.gemfile +2 -0
- data/lib/fomantic/ui/sass/breadcrumbs.rb +2 -0
- data/lib/fomantic/ui/sass/engine.rb +5 -3
- data/lib/fomantic/ui/sass/version.rb +4 -2
- data/lib/fomantic-ui-sass.rb +2 -6
- data/spec/dummy/Rakefile +2 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/bin/bundle +2 -0
- data/spec/dummy/bin/rails +2 -0
- data/spec/dummy/bin/rake +2 -0
- data/spec/dummy/config/application.rb +3 -1
- data/spec/dummy/config/boot.rb +2 -0
- data/spec/dummy/config/environment.rb +2 -0
- data/spec/dummy/config/environments/development.rb +3 -1
- data/spec/dummy/config/environments/production.rb +2 -0
- data/spec/dummy/config/environments/test.rb +3 -1
- data/spec/dummy/config/initializers/backtrace_silencers.rb +2 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +2 -0
- data/spec/dummy/config/initializers/inflections.rb +2 -0
- data/spec/dummy/config/initializers/mime_types.rb +2 -0
- data/spec/dummy/config/initializers/secret_token.rb +2 -0
- data/spec/dummy/config/initializers/session_store.rb +2 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +2 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/config.ru +3 -1
- data/spec/helpers/semantic_breadcrumbs_helper_spec.rb +2 -0
- data/spec/helpers/semantic_flash_helper_spec.rb +2 -0
- data/spec/helpers/semantic_icon_helper_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/tasks/converter.rb +9 -19
- data/templates/project/manifest.rb +2 -0
- metadata +12 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 834d34f8c089a3d1f5518ce3094eb0c0254e1b556dcdb074c0defc061c8f33c8
|
4
|
+
data.tar.gz: 966e889f65791ee79d19ccfb678e50667d96e283576ac205fcb8485ef36cf96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ced8cc7cce8148ce51271d5f5c14c531cbf65c808992f3c8efd7c30dedde5e2b6ae0db610b1a38508110be80a27f4303f9b5d08f5bd21298fffa305f7d2fd2ce
|
7
|
+
data.tar.gz: 53f99320c8eb15e91bb86d58d6a50fc3da5d7adc5d5cccd0fac49fc63f092356ba370edaf7129b4bf65f0437eea7a516e6d97264c74de99588037d40dbc6131f
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/fomantic-ui-sass.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'fomantic/ui/sass/version'
|
@@ -11,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
11
13
|
spec.summary = 'Fomantic UI, converted to Sass and ready to drop into Rails, Compass, or Sprockets.'
|
12
14
|
spec.homepage = 'https://github.com/fomantic/Fomantic-UI-SASS'
|
13
15
|
spec.license = 'MIT'
|
16
|
+
spec.required_ruby_version = '>= 2.7.0'
|
14
17
|
|
15
18
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
16
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -18,9 +21,8 @@ Gem::Specification.new do |spec|
|
|
18
21
|
spec.require_paths = ['lib']
|
19
22
|
|
20
23
|
spec.add_runtime_dependency 'autoprefixer-rails'
|
24
|
+
spec.add_runtime_dependency 'dartsass-sprockets', '3.0.0'
|
21
25
|
spec.add_runtime_dependency 'railties', '>= 3.2.0'
|
22
|
-
spec.add_runtime_dependency 'sassc', '>= 2.2'
|
23
|
-
spec.add_runtime_dependency 'sassc-rails', '>= 2.1'
|
24
26
|
spec.add_runtime_dependency 'sprockets-rails', '>= 2.1.3'
|
25
27
|
|
26
28
|
spec.add_development_dependency 'bundler', '>= 1.3'
|
data/gemfiles/rails_5.0.gemfile
CHANGED
data/gemfiles/rails_5.1.gemfile
CHANGED
data/gemfiles/rails_5.2.gemfile
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "#{File.dirname(__FILE__)}/breadcrumbs.rb"
|
2
4
|
module Fomantic
|
3
5
|
module Ui
|
4
6
|
module Sass
|
@@ -8,12 +10,12 @@ module Fomantic
|
|
8
10
|
if ::Rails.version >= '5' || ::Sprockets::VERSION.start_with?('4')
|
9
11
|
::Rails.application.config.assets.precompile += %w[semantic-ui/*icons.*]
|
10
12
|
else
|
11
|
-
app.config.assets.precompile << %r{semantic-ui
|
13
|
+
app.config.assets.precompile << %r{semantic-ui/(basic\.)*icons\.(?:eot|svg|ttf|woff)$}
|
12
14
|
end
|
13
15
|
end
|
14
16
|
initializer 'fomantic-ui-sass.setup_helpers' do |app|
|
15
17
|
app.config.to_prepare do
|
16
|
-
ActionController::Base.
|
18
|
+
ActionController::Base.include Fomantic::Ui::Sass::BreadCrumbs
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fomantic
|
2
4
|
module Ui
|
3
5
|
module Sass
|
4
|
-
VERSION = '2.9.3'
|
5
|
-
SEMANTIC_UI_SHA = '697bba341f4ea6357e5fe22d8c7166aec107bf2a'
|
6
|
+
VERSION = '2.9.3.1'
|
7
|
+
SEMANTIC_UI_SHA = '697bba341f4ea6357e5fe22d8c7166aec107bf2a'
|
6
8
|
end
|
7
9
|
end
|
8
10
|
end
|
data/lib/fomantic-ui-sass.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fomantic
|
2
4
|
module Ui
|
3
5
|
module Sass
|
@@ -15,7 +17,6 @@ module Fomantic
|
|
15
17
|
Sprockets.append_path(javascripts_path)
|
16
18
|
end
|
17
19
|
|
18
|
-
configure_sass
|
19
20
|
unless defined?(::Rails) || defined?(::Compass) || defined?(::Sprockets)
|
20
21
|
raise Fomantic::Ui::Sass::FrameworkNotFound, 'fomantic-ui-sass requires either Rails > 3.1 or Compass, or Sprockets, none of which are loaded'
|
21
22
|
end
|
@@ -49,11 +50,6 @@ module Fomantic
|
|
49
50
|
def stylesheets_path
|
50
51
|
File.join(assets_path, 'stylesheets')
|
51
52
|
end
|
52
|
-
|
53
|
-
def configure_sass
|
54
|
-
require 'sassc'
|
55
|
-
::SassC.load_paths << stylesheets_path
|
56
|
-
end
|
57
53
|
end
|
58
54
|
end
|
59
55
|
end
|
data/spec/dummy/Rakefile
CHANGED
data/spec/dummy/bin/bundle
CHANGED
data/spec/dummy/bin/rails
CHANGED
data/spec/dummy/bin/rake
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require File.expand_path('boot', __dir__)
|
2
4
|
|
3
5
|
# Pick the frameworks you want:
|
4
6
|
# require "active_record/railtie"
|
5
7
|
require 'action_controller/railtie'
|
6
|
-
require 'action_mailer/railtie'
|
8
|
+
# require 'action_mailer/railtie'
|
7
9
|
require 'sprockets/railtie'
|
8
10
|
# require "rails/test_unit/railtie"
|
9
11
|
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Dummy::Application.configure do
|
2
4
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
5
|
|
@@ -14,7 +16,7 @@ Dummy::Application.configure do
|
|
14
16
|
config.action_controller.perform_caching = false
|
15
17
|
|
16
18
|
# Don't care if the mailer can't send.
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
+
# config.action_mailer.raise_delivery_errors = false
|
18
20
|
|
19
21
|
# Print deprecation notices to the Rails logger.
|
20
22
|
config.active_support.deprecation = :log
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
Dummy::Application.configure do
|
2
4
|
# Settings specified here will take precedence over those in config/application.rb.
|
3
5
|
|
@@ -29,7 +31,7 @@ Dummy::Application.configure do
|
|
29
31
|
# Tell Action Mailer not to deliver emails to the real world.
|
30
32
|
# The :test delivery method accumulates sent emails in the
|
31
33
|
# ActionMailer::Base.deliveries array.
|
32
|
-
config.action_mailer.delivery_method = :test
|
34
|
+
# config.action_mailer.delivery_method = :test
|
33
35
|
|
34
36
|
# Print deprecation notices to the stderr.
|
35
37
|
config.active_support.deprecation = :stderr
|
data/spec/dummy/config/routes.rb
CHANGED
data/spec/dummy/config.ru
CHANGED
data/spec/spec_helper.rb
CHANGED
data/tasks/converter.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Based on convert script from vwall/compass-twitter-bootstrap gem.
|
2
4
|
# https://github.com/vwall/compass-twitter-bootstrap/blob/#{@branch}/build/convert.rb
|
3
5
|
|
@@ -12,8 +14,8 @@ require 'pathname'
|
|
12
14
|
Dotenv.load
|
13
15
|
|
14
16
|
class Converter
|
15
|
-
GIT_DATA = 'https://api.github.com/repos'
|
16
|
-
GIT_RAW = 'https://raw.githubusercontent.com'
|
17
|
+
GIT_DATA = 'https://api.github.com/repos'
|
18
|
+
GIT_RAW = 'https://raw.githubusercontent.com'
|
17
19
|
TOKEN = ENV['TOKEN']
|
18
20
|
|
19
21
|
def initialize(branch)
|
@@ -116,9 +118,7 @@ class Converter
|
|
116
118
|
file = replace_import_font_url(file)
|
117
119
|
file = replace_font_family(file)
|
118
120
|
file = replace_image_urls(file)
|
119
|
-
|
120
|
-
|
121
|
-
file
|
121
|
+
replace_image_paths(file)
|
122
122
|
end
|
123
123
|
|
124
124
|
def save_file(name, content, path, _type = 'stylesheets')
|
@@ -142,12 +142,12 @@ class Converter
|
|
142
142
|
|
143
143
|
def store_version
|
144
144
|
path = 'lib/fomantic/ui/sass/version.rb'
|
145
|
-
content = File.read(path).sub(/SEMANTIC_UI_SHA\s*=\s*['"]
|
145
|
+
content = File.read(path).sub(/SEMANTIC_UI_SHA\s*=\s*['"]\w+['"]/, "SEMANTIC_UI_SHA = '#{@branch_sha}'")
|
146
146
|
File.open(path, 'w') { |f| f.write(content) }
|
147
147
|
end
|
148
148
|
|
149
149
|
def replace_fonts_url(less)
|
150
|
-
less.gsub(%r{url\(
|
150
|
+
less.gsub(%r{url\("\./\.\./themes/default/assets/fonts/?(.*?)"\)}) { |_s| "font-url(\"semantic-ui/#{Regexp.last_match(1)}\")" }
|
151
151
|
end
|
152
152
|
|
153
153
|
def replace_font_family(less)
|
@@ -171,18 +171,8 @@ class Converter
|
|
171
171
|
end
|
172
172
|
|
173
173
|
class Paths
|
174
|
-
attr_reader :root
|
175
|
-
|
176
|
-
attr_reader :tmp_semantic_ui
|
177
|
-
attr_reader :tmp_semantic_ui_src
|
178
|
-
attr_reader :tmp_semantic_ui_definitions
|
179
|
-
attr_reader :tmp_semantic_ui_dist
|
180
|
-
attr_reader :tmp_semantic_ui_components
|
181
|
-
|
182
|
-
attr_reader :fonts
|
183
|
-
attr_reader :images
|
184
|
-
attr_reader :javascripts
|
185
|
-
attr_reader :stylesheets
|
174
|
+
attr_reader :root, :tmp, :tmp_semantic_ui, :tmp_semantic_ui_src, :tmp_semantic_ui_definitions, :tmp_semantic_ui_dist, :tmp_semantic_ui_components, :fonts, :images,
|
175
|
+
:javascripts, :stylesheets
|
186
176
|
|
187
177
|
def initialize
|
188
178
|
@root = File.expand_path('..', __dir__)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fomantic-ui-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.3
|
4
|
+
version: 2.9.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: autoprefixer-rails
|
@@ -26,47 +26,33 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 3.2.0
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: 3.2.0
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: sassc
|
29
|
+
name: dartsass-sprockets
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
45
31
|
requirements:
|
46
|
-
- -
|
32
|
+
- - '='
|
47
33
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
34
|
+
version: 3.0.0
|
49
35
|
type: :runtime
|
50
36
|
prerelease: false
|
51
37
|
version_requirements: !ruby/object:Gem::Requirement
|
52
38
|
requirements:
|
53
|
-
- -
|
39
|
+
- - '='
|
54
40
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
41
|
+
version: 3.0.0
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
43
|
+
name: railties
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
59
45
|
requirements:
|
60
46
|
- - ">="
|
61
47
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
48
|
+
version: 3.2.0
|
63
49
|
type: :runtime
|
64
50
|
prerelease: false
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
66
52
|
requirements:
|
67
53
|
- - ">="
|
68
54
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
55
|
+
version: 3.2.0
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: sprockets-rails
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -375,14 +361,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
375
361
|
requirements:
|
376
362
|
- - ">="
|
377
363
|
- !ruby/object:Gem::Version
|
378
|
-
version:
|
364
|
+
version: 2.7.0
|
379
365
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
380
366
|
requirements:
|
381
367
|
- - ">="
|
382
368
|
- !ruby/object:Gem::Version
|
383
369
|
version: '0'
|
384
370
|
requirements: []
|
385
|
-
rubygems_version: 3.
|
371
|
+
rubygems_version: 3.5.6
|
386
372
|
signing_key:
|
387
373
|
specification_version: 4
|
388
374
|
summary: Fomantic UI, converted to Sass and ready to drop into Rails, Compass, or
|