gallerize-cli 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/gallerize_cli.rb +1 -1
- data/lib/gallerize_cli/directory.rb +4 -0
- data/readme.md +7 -3
- 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: a33eda70468d16d346bab2e9401554e2304b9dbd
|
4
|
+
data.tar.gz: b22386181abe954459aef102df861c98218c895d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec135876d2bb346165ecae1244920d947d9d7fa4f793d34ac0d8daed94f6ce2eeb4290e29d3fa4a5687c61a830071b89b1c2250b995145932980826265bd800a
|
7
|
+
data.tar.gz: 8a7b5445b040ab2acb5c5c55101f82c4fc2ad76401728e817788e85d95663f2ae9bc098b1d6a837bd934ce75caa1e0f3943ea2683461224e7b8a224250120479
|
data/.gitignore
CHANGED
data/lib/gallerize_cli.rb
CHANGED
@@ -66,6 +66,8 @@ module GallerizeCli
|
|
66
66
|
output = Dir.glob(File.join(load_path, '**/*.js')).collect do |js_file|
|
67
67
|
Uglifier.new.compile(File.read(js_file))
|
68
68
|
end.join
|
69
|
+
# delete previous payload(s)
|
70
|
+
Dir.glob(File.join(assets_path, "gallerize_cli-*.min.js")){|f| rm(f) }
|
69
71
|
# write minified file
|
70
72
|
output_file = File.join(assets_path, "gallerize_cli-#{Digest::MD5.hexdigest(output)}.min.js")
|
71
73
|
GallerizeCli.logger.debug("generated #{output_file}")
|
@@ -82,6 +84,8 @@ module GallerizeCli
|
|
82
84
|
scss_file = File.join(load_path, 'styles.scss')
|
83
85
|
source = File.read(scss_file)
|
84
86
|
output = Sass::Engine.new(source, style: :compressed, syntax: :scss).render
|
87
|
+
# delete previous payload(s)
|
88
|
+
Dir.glob(File.join(assets_path, "gallerize_cli-*.min.css")){|f| rm(f) }
|
85
89
|
# write new file
|
86
90
|
output_file = File.join(assets_path, "gallerize_cli-#{Digest::MD5.hexdigest(output)}.min.css")
|
87
91
|
GallerizeCli.logger.debug("generated #{output_file}")
|
data/readme.md
CHANGED
@@ -23,13 +23,17 @@ gem install gallerize-cli
|
|
23
23
|
|
24
24
|
```
|
25
25
|
$ cd folder-with-pictures
|
26
|
-
$
|
26
|
+
$ gallerize_cli
|
27
27
|
$ open gallerize/index.html
|
28
28
|
```
|
29
29
|
|
30
30
|
|
31
31
|
### Configuration
|
32
32
|
|
33
|
-
|
33
|
+
```
|
34
|
+
open .gallerize_cli
|
35
|
+
```
|
36
|
+
|
37
|
+
After you run 'gallerize_cli' it generates a .gallerize_cli folder. You can modify the contents to alter how your gallery is generated.
|
34
38
|
|
35
|
-
This folder contains scss, js, images, and haml templates.
|
39
|
+
This folder contains configuration, scss, js, images, and haml templates.
|