tkd-grid 1.0.6 → 1.0.7

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: 67f1126da5fddca314612066cbb1db751b9528e0
4
- data.tar.gz: 4f75826a83de3758438ab4462605618385a4012d
3
+ metadata.gz: 6798aef3dd91109dc978dc89ea7c1b0d332bfb8e
4
+ data.tar.gz: 84c0db61ce9050247c26f0b20aec3007bb9a1b6c
5
5
  SHA512:
6
- metadata.gz: d650e5cbd526d079c718dd925009f7bbad55eb3cbd0801c02c4fa8b729ee4abad4b2eb0b572c2ee1a31d342babdd8869ecfa03bb6dee69dc98cc132a72791a08
7
- data.tar.gz: 944b361995071e2c4025eadcab844048374a9c6fa22ca42fde62f66c864fd14cadc438ab6f833b6afe210d55764f7724c4b874ff833b8a71dc0b6c8eb1cc156b
6
+ metadata.gz: 9a35a656f51557659c7c1000052217a7abc8a9f81b3981eb3209fdde52abb1f2f58815e5f32f9cc2e875edde1f520c87ed2ae74a7d65cd670a0b385b1cc188e7
7
+ data.tar.gz: b23df525d24fd8bae9160e269f635d9a7c7ca495b52f637c768f96d0917458d14f40e58b5ad746bc84b2cfb0be7985bf3deee3a958faa3da426f8bf24e9e4c62
@@ -0,0 +1,25 @@
1
+ require 'rails/generators'
2
+ require 'rails'
3
+
4
+ module TkdGrid
5
+ module Generators
6
+ class InstallGenerator < Rails::Generators::Base
7
+ desc "generator to include tkd-grid assets into your project"
8
+
9
+ def add_assets
10
+ css_inject = " *= require normalize\n *= require grid\n"
11
+ app_scss = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.scss')
12
+ app_css = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.css')
13
+
14
+ if File.exist?(app_scss)
15
+ insert_into_file app_scss, css_inject, after: "require_self\n"
16
+ elsif File.exist?(app_css)
17
+ insert_into_file app_css, css_inject, after: "require_self\n"
18
+ else
19
+ say_status("", "Cannot find application.scss or application.css")
20
+ end
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module TkdGrid
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barnaby Taylor
@@ -22,9 +22,9 @@ files:
22
22
  - LICENSE
23
23
  - README.md
24
24
  - Rakefile
25
- - lib/generators/tkd-grid.rb
26
25
  - lib/tkd-grid.rb
27
26
  - lib/tkd-grid/engine.rb
27
+ - lib/tkd-grid/generators/install_generator.rb
28
28
  - lib/tkd-grid/rails/engine.rb
29
29
  - lib/tkd-grid/version.rb
30
30
  - tkd-grid.gemspec
@@ -1,22 +0,0 @@
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