tabler-rubygem 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cba06fc2d38b581803b2672261a86a1bc5e690ac541170e159958178b23055d5
4
- data.tar.gz: 347d840f5e4d5c84809be92ea35479ff33c9c5863c555b678c4a459c8d7e5e90
3
+ metadata.gz: 60166d212ee7839763c9884d6ead9ed4c79562ad3b710b180969e543373e9f1a
4
+ data.tar.gz: 7d77b2c1698b0855462aa525a39fc38139a509d29047dd28d59a4222c92db7e5
5
5
  SHA512:
6
- metadata.gz: 49da37b2ebc5d1ff0f4c168479ca37375689db7a27e1f35e44677352f878a99eeca6047312a798db85354f50304af7bdb61d32db3f9955ef92be851b519eb4d7
7
- data.tar.gz: 786d13889199be07f14c27b99637e8c43bbe96c59ced98925f6b74dd3c35908fcd4b87d4398d7671a2481fd3a40118f3e7660b5e5d253b6ed37f88b8cc677757
6
+ metadata.gz: ed186a66c9dd925444f6615f7050d46ed7737d09b181ee5e9702f201c9127ec3f780e9940afce8bfa277d41bcf7bc8e910b37f7683a9da64f14b4c18b21a4cd3
7
+ data.tar.gz: dc35945981f81b4a231359582a88182ff0b03a6e647406689b2c8e18104e93161621afc97a4fb2c1d275763d3e5ad4febf90f10bf7a7b8e1695f0f49837fd3bb
data/README.md CHANGED
@@ -13,9 +13,10 @@ Please see the appropriate guide for your environment of choice:
13
13
 
14
14
  ### a. Ruby on Rails
15
15
 
16
- Add `tabler-rubygem` to your Gemfile:
16
+ Add `bootstrap` and `tabler-rubygem` to your Gemfile:
17
17
 
18
18
  ```ruby
19
+ gem 'bootstrap', '~> 4.1.1'
19
20
  gem 'tabler-rubygem'
20
21
  ```
21
22
 
@@ -26,9 +27,11 @@ Ensure that `sprockets-rails` is at least v2.3.2.
26
27
  Import Tabler styles and optionally Tabler Plugin styles in `app/assets/stylesheets/application.scss`:
27
28
 
28
29
  ```scss
29
- // Custom tabler variables must be set or imported *before* tabler.
30
+ // Custom tabler variables must be set or imported *before* bootstrap and tabler.
31
+ @import "tabler/variables";
32
+ @import "bootstrap";
30
33
  @import "tabler";
31
- @import "tabler.plugins"
34
+ @import "tabler.plugins";
32
35
  ```
33
36
 
34
37
  The available variables can be found [here][tabler-variables.scss].
@@ -38,8 +41,10 @@ You can also choose to include plugin css on a per-plugin basis, for example:
38
41
 
39
42
  ```scss
40
43
  // Custom tabler variables must be set or imported *before* tabler.
44
+ @import "tabler/variables";
45
+ @import "bootstrap";
41
46
  @import "tabler";
42
- @import "tabler/plugins/charts-c3/plugin.css";
47
+ @import "tabler/plugins/charts-c3/plugin.scss";
43
48
  ```
44
49
 
45
50
  Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you have just generated a new Rails app,
@@ -63,6 +68,16 @@ Add Tabler and optionally Tabler Plugins to your `application.js`:
63
68
  Tabler already includes jQuery and Bootstrap javascript.
64
69
  Tabler plugins includes the javascripts found [here][tabler-plugins].
65
70
 
71
+ If you already include jQuery in your project, you can include tabler's js on a per-file basis to avoid conflicts:
72
+
73
+ ```js
74
+ // = require tabler/tabler
75
+ // = require tabler/vendors/bootstrap.bundle.min
76
+ // = require tabler/vendors/circle-progress.min
77
+ // = require tabler/vendors/jquery.sparkline.min
78
+ // = require tabler/core
79
+ ```
80
+
66
81
  You can also choose to include plugin js on a per-plugin basis, for example:
67
82
 
68
83
  ```js
@@ -1,5 +1,5 @@
1
- @import "tabler/plugins/charts-c3/plugin.css";
2
- @import "tabler/plugins/fullcalendar/plugin.css";
3
- @import "tabler/plugins/iconfonts/plugin.css";
4
- @import "tabler/plugins/maps-google/plugin.css";
5
- @import "tabler/plugins/prismjs/plugin.css";
1
+ @import "tabler/plugins/charts-c3/plugin.scss";
2
+ @import "tabler/plugins/fullcalendar/plugin.scss";
3
+ @import "tabler/plugins/iconfonts/plugin.scss";
4
+ @import "tabler/plugins/maps-google/plugin.scss";
5
+ @import "tabler/plugins/prismjs/plugin.scss";
@@ -1,6 +1,6 @@
1
1
  module Tabler
2
2
  module Rubygem
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  TABLER_SHA = '748028000ba6603090c1f5a741e906b59ed934b2'
5
5
  end
6
6
  end
@@ -13,7 +13,7 @@ class Updater
13
13
 
14
14
  tabler_plugin_files = get_paths_by_type('dist/assets/plugins', /\.css$/)
15
15
  read_files('dist/assets/plugins', tabler_plugin_files).each do |name, content|
16
- save_file("#{save_to}/dashboard/plugins/#{name}", remove_source_mapping_url(content))
16
+ save_file("#{save_to}/dashboard/plugins/#{name.gsub('.css', '.scss')}", remove_source_mapping_url(content))
17
17
  end
18
18
  log_processed "#{tabler_plugin_files * ' '}"
19
19
 
@@ -62,7 +62,7 @@ class Updater
62
62
 
63
63
  def write_plugins_file(plugins_file, tabler_plugin_files)
64
64
  tabler_plugin_files.each do |line|
65
- plugins_file.puts "@import \"tabler/plugins/#{line}\";"
65
+ plugins_file.puts "@import \"tabler/plugins/#{line.gsub('.css', '.scss')}\";"
66
66
  end
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabler-rubygem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lightyrs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autoprefixer-rails
@@ -685,11 +685,11 @@ files:
685
685
  - assets/stylesheets/tabler/forms/_custom-range.scss
686
686
  - assets/stylesheets/tabler/forms/_custom-selectgroup.scss
687
687
  - assets/stylesheets/tabler/forms/_custom-switch.scss
688
- - assets/stylesheets/tabler/plugins/charts-c3/plugin.css
689
- - assets/stylesheets/tabler/plugins/fullcalendar/plugin.css
690
- - assets/stylesheets/tabler/plugins/iconfonts/plugin.css
691
- - assets/stylesheets/tabler/plugins/maps-google/plugin.css
692
- - assets/stylesheets/tabler/plugins/prismjs/plugin.css
688
+ - assets/stylesheets/tabler/plugins/charts-c3/plugin.scss
689
+ - assets/stylesheets/tabler/plugins/fullcalendar/plugin.scss
690
+ - assets/stylesheets/tabler/plugins/iconfonts/plugin.scss
691
+ - assets/stylesheets/tabler/plugins/maps-google/plugin.scss
692
+ - assets/stylesheets/tabler/plugins/prismjs/plugin.scss
693
693
  - lib/tabler/rubygem.rb
694
694
  - lib/tabler/rubygem/engine.rb
695
695
  - lib/tabler/rubygem/version.rb
@@ -757,7 +757,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
757
757
  version: '0'
758
758
  requirements: []
759
759
  rubyforge_project:
760
- rubygems_version: 2.7.3
760
+ rubygems_version: 2.7.6
761
761
  signing_key:
762
762
  specification_version: 4
763
763
  summary: Integrates Tabler Dashboard UI Kit (built on Bootstrap 4) into Rails Asset