less-rails-semantic_ui 1.5.0.0 → 1.5.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af4aa2caff4de2c9e63d1da32b3d1e023d719a56
4
- data.tar.gz: f43d19955b19bcd7a5d98ca8b8a83cdca1b26b28
3
+ metadata.gz: 94a049167c78aad6547605eec2ebd22cf4a702d9
4
+ data.tar.gz: b076520136fee7744043358ff3c64d880fe565d7
5
5
  SHA512:
6
- metadata.gz: 5a9878d1f53c308f5235600a9dde8f1a1718e362e40d9eb20356d7e3fdffdd2acbe92bc63479e2fc546d60c89667861a2b0d339b08dc0b6135a112b302843d04
7
- data.tar.gz: cbebfeac146cb047096ade77a5cc81a92c5d41cb26080be21f317b7a5c790dd6eaa55e0c6c0840b541323bbfaa0657b93c68d33cafdf3600a8af934bc02ecaef
6
+ metadata.gz: 661ff59486c0778755a4ccf2412ce14f481623917c6d72692c8c86f25395dd2841b5859283110f13f199df0b7497dbf2719cf4067d103c61ad2144f250a9a2f3
7
+ data.tar.gz: 1cfcfbb9fff641e991997765bcc1832d66ca0267b0047049e06d17d4f50c67136eea5d52904769bf8a71d1ee0d7bdddef4767e00b1d4f238595e10bac9582d57
@@ -305,7 +305,7 @@ $.fn.search = function(parameters) {
305
305
  if( content[field].match(searchRegExp) ) {
306
306
  results.push(content);
307
307
  }
308
- else if( settings.searchFullText && content[field].match(content[field]) ) {
308
+ else if( settings.searchFullText && content[field].match(fullTextRegExp) ) {
309
309
  fullTextResults.push(content);
310
310
  }
311
311
  }
@@ -83,7 +83,7 @@ $.fn.sidebar = function(parameters) {
83
83
  transitionEvent = module.get.transitionEvent();
84
84
 
85
85
  // cache on initialize
86
- if( module.is.legacy() || settings.legacy) {
86
+ if( (module.useLegacy == 'auto' && module.is.legacy()) || settings.useLegacy) {
87
87
  settings.transition = 'overlay';
88
88
  settings.useLegacy = true;
89
89
  }
@@ -991,7 +991,7 @@ $.fn.sidebar.settings = {
991
991
  scrollLock : false,
992
992
  returnScroll : false,
993
993
 
994
- useLegacy : false,
994
+ useLegacy : 'auto',
995
995
  duration : 500,
996
996
  easing : 'easeInOutQuint',
997
997
 
@@ -228,6 +228,7 @@
228
228
  .ui.animated.button {
229
229
  position: relative;
230
230
  overflow: hidden;
231
+ vertical-align: @animatedVerticalAlign;
231
232
  padding-right: 0em !important;
232
233
  }
233
234
 
@@ -258,6 +258,7 @@
258
258
  @floatedMargin: 0.25em;
259
259
 
260
260
  /* Animated */
261
+ @animatedVerticalAlign: middle;
261
262
  @animationDuration: 0.3s;
262
263
  @animationEasing: ease;
263
264
  @fadeScaleHigh: 1.5;
@@ -1,9 +1,11 @@
1
1
  lib = File.expand_path('../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
+ require 'less/rails/semantic_ui/version'
5
+
4
6
  Gem::Specification.new do |spec|
5
7
  spec.name = 'less-rails-semantic_ui'
6
- spec.version = '1.5.0.0'
8
+ spec.version = Less::Rails::SemanticUI::VERSION
7
9
  spec.authors = ['Maxim Dobryakov']
8
10
  spec.email = ['maxim.dobryakov@gmail.com']
9
11
  spec.summary = %q{Semantic UI assets for Rails}
@@ -1,2 +1,3 @@
1
1
  require 'less-rails'
2
2
  require 'less/rails/semantic_ui/engine'
3
+ require 'less/rails/semantic_ui/version'
@@ -0,0 +1,7 @@
1
+ module Less
2
+ module Rails
3
+ module SemanticUI
4
+ VERSION = '1.5.1.0'
5
+ end
6
+ end
7
+ end
data/tasks/update.rake CHANGED
@@ -12,6 +12,8 @@ namespace :update do
12
12
  choose_version(version)
13
13
 
14
14
  transform_sources
15
+
16
+ bump_gem_version(version)
15
17
  end
16
18
 
17
19
  def paths
@@ -165,6 +167,11 @@ namespace :update do
165
167
  relative_paths.compact
166
168
  end
167
169
 
170
+ def bump_gem_version(version)
171
+ version_file = File.join(paths.lib_semantic_ui, 'version.rb')
172
+ File.write(version_file, File.read(version_file).gsub(/\d+\.\d+\.\d+\.\d+/, "#{version}.0"))
173
+ end
174
+
168
175
  private
169
176
 
170
177
  def copy_tree(src, src_dir, dest_dir)
@@ -207,6 +214,8 @@ namespace :update do
207
214
 
208
215
  attr_reader :generator_templates
209
216
 
217
+ attr_reader :lib_semantic_ui
218
+
210
219
  def initialize
211
220
  @root = File.expand_path('..', __dir__)
212
221
  @config = File.join(@root, 'config')
@@ -224,6 +233,8 @@ namespace :update do
224
233
  @stylesheets = File.join(@root, 'assets', 'stylesheets', 'semantic_ui')
225
234
 
226
235
  @generator_templates = File.join(@root, 'lib', 'generators', 'semantic_ui', 'install', 'templates')
236
+
237
+ @lib_semantic_ui = File.join(@root, 'lib', 'less', 'rails', 'semantic_ui')
227
238
  end
228
239
  end
229
240
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-semantic_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.0
4
+ version: 1.5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Dobryakov
@@ -505,6 +505,7 @@ files:
505
505
  - lib/generators/semantic_ui/install/templates/theme.config
506
506
  - lib/less/rails/semantic_ui.rb
507
507
  - lib/less/rails/semantic_ui/engine.rb
508
+ - lib/less/rails/semantic_ui/version.rb
508
509
  - spec/dummy_app/.gitignore
509
510
  - spec/dummy_app/app/assets/javascripts/application.js
510
511
  - spec/dummy_app/app/assets/stylesheets/application.css