adminlte-rails4 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adminlte-rails/source_file.rb +4 -4
- data/lib/adminlte-rails/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce00ab064f9901d354e7cdcfd37c4fa8fb4eeb7
|
4
|
+
data.tar.gz: e5e117a5297843c5ba917dd5492b1109c5968477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58d06e7b7d5f27c2c7f8b4ff744512d6d9997364a53e344dab7b37a21c4737050501760f356d4de953b969aa45486784ec99932257155a1c6dfb03f6fcb29c2c
|
7
|
+
data.tar.gz: 4d51cb56f2310ec7189b02103ab28495ad301d06b71c73c98cc371799bfa6ff7cd28ea633050d1db92507adec8e6c5501a5796267f8e03956d76a350ad810fbb
|
@@ -9,7 +9,7 @@ class SourceFile < Thor
|
|
9
9
|
desc 'clean up assets folders', ' delete fonts, stylesheets, javascripts, images'
|
10
10
|
|
11
11
|
def cleanup
|
12
|
-
FileUtils.rm_rf %w(
|
12
|
+
FileUtils.rm_rf %w(app/assets/fonts app/assets/images app/assets/stylesheets app/assets/javascripts)
|
13
13
|
end
|
14
14
|
|
15
15
|
desc 'fetch source files', 'fetch source files from GitHub'
|
@@ -17,7 +17,7 @@ class SourceFile < Thor
|
|
17
17
|
def fetch
|
18
18
|
filtered_tags = fetch_tags
|
19
19
|
tag = select('Which tag do you want to fetch?', filtered_tags)
|
20
|
-
self.destination_root = '
|
20
|
+
self.destination_root = 'app/assets'
|
21
21
|
remote = 'https://github.com/almasaeed2010/AdminLTE'
|
22
22
|
|
23
23
|
# Fetch javascripts
|
@@ -37,7 +37,7 @@ class SourceFile < Thor
|
|
37
37
|
desc 'convert css to use rails paths', 'make css use rails paths'
|
38
38
|
|
39
39
|
def convert
|
40
|
-
self.destination_root = '
|
40
|
+
self.destination_root = 'app/assets'
|
41
41
|
inside destination_root do
|
42
42
|
#gsub_file 'stylesheets/bootstrap.scss', %r/url\(([^\)]*)\)/, 'image-url(\1)'
|
43
43
|
gsub_file 'stylesheets/bootstrap.scss', %r/url\('(\.\.\/fonts\/)([^\)]*)'\)/, 'url(font-path(\'\2\'))'
|
@@ -143,4 +143,4 @@ class SourceFile < Thor
|
|
143
143
|
get "#{icheck_path}/flat/yellow@2x.png", 'stylesheets/iCheck/flat/yellow@2x.png'
|
144
144
|
|
145
145
|
end
|
146
|
-
end
|
146
|
+
end
|