tkd-grid 1.0.5 → 1.0.6

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: c1a9ec9a239753d480ba849e67ebe5d00a03800a
4
- data.tar.gz: 0072ad329675aff575ac9511fe5e7008e27f241b
3
+ metadata.gz: 67f1126da5fddca314612066cbb1db751b9528e0
4
+ data.tar.gz: 4f75826a83de3758438ab4462605618385a4012d
5
5
  SHA512:
6
- metadata.gz: a49a19a3ea0f323ddefc84f32360fe15b6f45a43cf2e1fee3279cea3d26b832cd5afe72b021286cdd46d222af35f409e05e6233c1fa835e54d260a35155865e2
7
- data.tar.gz: 3f3534cb935509cb8a05d21a72581348292c946fd2d01dbe335401a99053628c97ef19f1bab1c6255e1045068adeef861f971c2bb99f7e49887ab487c4d1b21f
6
+ metadata.gz: d650e5cbd526d079c718dd925009f7bbad55eb3cbd0801c02c4fa8b729ee4abad4b2eb0b572c2ee1a31d342babdd8869ecfa03bb6dee69dc98cc132a72791a08
7
+ data.tar.gz: 944b361995071e2c4025eadcab844048374a9c6fa22ca42fde62f66c864fd14cadc438ab6f833b6afe210d55764f7724c4b874ff833b8a71dc0b6c8eb1cc156b
@@ -0,0 +1,22 @@
1
+ require 'rails/generators'
2
+ require 'rails'
3
+
4
+ module TkdGrid
5
+ class InstallGenerator < Rails::Generators::Base
6
+
7
+ def add_assets
8
+ css_inject = " *= require normalize\n *= require grid\n"
9
+ app_scss = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.scss')
10
+ app_css = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.css')
11
+
12
+ if File.exist?(app_scss)
13
+ insert_into_file app_scss, css_inject, after: "require_self\n"
14
+ elsif File.exist?(app_css)
15
+ insert_into_file app_css, css_inject, after: "require_self\n"
16
+ else
17
+ say_status("", "Cannot find application.scss or application.css")
18
+ end
19
+ end
20
+
21
+ end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module TkdGrid
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkd-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barnaby Taylor
@@ -22,7 +22,7 @@ files:
22
22
  - LICENSE
23
23
  - README.md
24
24
  - Rakefile
25
- - lib/generators/tkd-grid/install/install_generator.rb
25
+ - lib/generators/tkd-grid.rb
26
26
  - lib/tkd-grid.rb
27
27
  - lib/tkd-grid/engine.rb
28
28
  - lib/tkd-grid/rails/engine.rb
@@ -1,24 +0,0 @@
1
- require 'rails/generators'
2
- require 'rails'
3
-
4
- module TkdGrid
5
- module Generators
6
- class InstallGenerator < Rails::Generators::Base
7
-
8
- def add_assets
9
- css_inject = " *= require normalize\n *= require grid\n"
10
- app_scss = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.scss')
11
- app_css = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.css')
12
-
13
- if File.exist?(app_scss)
14
- insert_into_file app_scss, css_inject, after: "require_self\n"
15
- elsif File.exist?(app_css)
16
- insert_into_file app_css, css_inject, after: "require_self\n"
17
- else
18
- say_status("", "Cannot find application.scss or application.css")
19
- end
20
- end
21
-
22
- end
23
- end
24
- end