thematic 0.1.4 → 0.1.5

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: 309d0b7b0db7a88b303c326eb67d1400aecbc36a
4
- data.tar.gz: 2ccf54ecc8fe90c1f2c709245ced7d0bb694cdc4
3
+ metadata.gz: db3b15e9ac911e792a3e1f621fb3fb7c048ad245
4
+ data.tar.gz: e11186834ec26237618775a038eb4bc67667695a
5
5
  SHA512:
6
- metadata.gz: 126a52b86a10fc99e0325b22c7d7b5707406555bda92a8a985cbce223fe42c7070aa9e47d9aca04e8347c36ceb2e8439b91ec3f769efcd98c8f127d605e9ae7b
7
- data.tar.gz: e313694cca0a25486181d2e008b713b04f092a00dea602c0a9cc29433e041a444a9b4e7ec7bf7cfdcc46a575af25e3de1fe6d9d9543411f49c202cd1f558ec66
6
+ metadata.gz: 4088c4f6c119a7b10e1731bed1d700120fd18b7218af7874614d86c5a16d24c35bf15b9389f5386083b8091652c5c6e32f807c4a2c2856420bc204f3cafb1468
7
+ data.tar.gz: da3bbdbabc587e8ddd859a28519e1619544d3d8da6ddf334f051447883221cd87fb30fd02690bd050678285ce55cf31f1330f390346e03032adab7b2fc1e9f12
@@ -151,11 +151,12 @@ namespace :thematic do
151
151
  assets_initializer.close
152
152
 
153
153
  # REWRITING URLS REFERENCED IN CSS ##########
154
- if File.exist?("vendor/assets/stylesheets/#{theme_subfolder}/style.css")
155
- puts "Configuring images referenced in CSS..."
156
- FileUtils.mv("vendor/assets/stylesheets/#{theme_subfolder}/style.css", "vendor/assets/stylesheets/#{theme_subfolder}/style.css.erb")
154
+ puts "Configuring images referenced in CSS..."
155
+ Dir.open("vendor/assets/stylesheets/#{theme_subfolder}").each do |filename|
156
+ next if filename[0] == "."
157
+ FileUtils.mv("vendor/assets/stylesheets/#{theme_subfolder}/#{filename}", "vendor/assets/stylesheets/#{theme_subfolder}/#{filename}.erb")
157
158
 
158
- file_to_edit = "vendor/assets/stylesheets/#{theme_subfolder}/style.css.erb"
159
+ file_to_edit = "vendor/assets/stylesheets/#{theme_subfolder}/#{filename}.erb"
159
160
  f = File.new(file_to_edit)
160
161
  tempfile = File.open("file.tmp", 'w')
161
162
 
@@ -174,6 +175,7 @@ namespace :thematic do
174
175
  f.close
175
176
  tempfile.close
176
177
  end
178
+
177
179
  puts "Theme installed! Please restart your Rails server."
178
180
  end
179
181
 
@@ -1,3 +1,3 @@
1
1
  module Thematic
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thematic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Wengrow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler