thematic 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 20d3831020ae50fe7a0c770df9af882292784bb5
4
- data.tar.gz: b78bfc5b91e179e16678b7bd4b9869353afcd0ce
3
+ metadata.gz: 1f0c470227b3fb52c913bc97789493465a2d5fd9
4
+ data.tar.gz: 19c1b6dd8ccad6feb4ab6945c9e4386baee47cd1
5
5
  SHA512:
6
- metadata.gz: ab42c49b65dc9e55e6751c390db13d031c43ccd638f20607d7891f60aed513075331f3b3470d3224f0c8791900bb0b88ea185713aa5d63bb43d86cb8df296717
7
- data.tar.gz: fa2f9da6136dcbf84000fc27e4a7ce12327cdac05aa9994e98b34278c5ea633165850c789d728f641fb9b624aa85ceee7094662a074825b3fb13c101cf43be79
6
+ metadata.gz: 74d9d14fdbbe779fdf834ee1c704e1de8ef8365b8962eaf515bd100b600db7b140d4b8bdf389a85bbb19f86ca51202019279972dbf8b3fa9c1dcbd9e3f94b928
7
+ data.tar.gz: 9cfceeefc0664c4e5bcce87a964097d927bfc227570943cc1bfb02786b4c6ae88cd9896062dc92463adc222fdc18b51abd7473c7272c28f6d3c58ee96dd6e654
@@ -9,7 +9,6 @@ namespace :thematic do
9
9
 
10
10
  puts "Installing CSS..."
11
11
 
12
- # it is assumed that the theme comes with a folder called 'css'
13
12
  copy_from_path = "#{args[:filepath]}/css"
14
13
  theme_subfolder = "theme"
15
14
 
@@ -42,7 +41,6 @@ namespace :thematic do
42
41
 
43
42
  puts "Installing JS..."
44
43
 
45
- # it is assumed that the theme comes with a folder called 'js'
46
44
  copy_from_path = "#{args[:filepath]}/js"
47
45
 
48
46
  FileUtils.remove_dir "vendor/assets/javascripts/#{theme_subfolder}" if File.exist?("vendor/assets/javascripts/#{theme_subfolder}")
@@ -71,5 +69,17 @@ namespace :thematic do
71
69
  f.close
72
70
  tempfile.close
73
71
 
72
+ puts "Copying images..."
73
+
74
+ FileUtils.remove_dir "app/assets/images/#{theme_subfolder}" if File.exist?("app/assets/images/#{theme_subfolder}")
75
+ FileUtils.mkdir "app/assets/images/#{theme_subfolder}"
76
+
77
+ copy_from_path = "#{args[:filepath]}/img"
78
+ files_to_copy = Dir[ File.join(copy_from_path, '**', '*') ]
79
+
80
+ files_to_copy.each do |filepath|
81
+ copy(filepath, "app/assets/images/#{theme_subfolder}/") unless File.directory?(filepath)
82
+ end
83
+
74
84
  end
75
85
  end
@@ -1,3 +1,3 @@
1
1
  module Thematic
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thematic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Wengrow