gallerize-cli 0.3.0 → 0.3.1

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: e985a3a6392bccc8851bfc82b93d491479ed29a4
4
- data.tar.gz: 639aedbe16625a2a06e4985966f4dbe06fe63e19
3
+ metadata.gz: a33eda70468d16d346bab2e9401554e2304b9dbd
4
+ data.tar.gz: b22386181abe954459aef102df861c98218c895d
5
5
  SHA512:
6
- metadata.gz: 74d05535c3e892c6349599791d85c286e615e935b300ddda7adba99551a96863f5c5bae064b4bcd28ad74baab8128639320d02327eb93d3edb604ae5bba90028
7
- data.tar.gz: 895e90cca2d3d1cb9fe2068b5edce30f4ca41bb82a3bfd546b4164a3c66d0c9746b88cc31aa365bedc80e10ce88c95e5fb6deeb424f4dbb763818579d2826dad
6
+ metadata.gz: ec135876d2bb346165ecae1244920d947d9d7fa4f793d34ac0d8daed94f6ce2eeb4290e29d3fa4a5687c61a830071b89b1c2250b995145932980826265bd800a
7
+ data.tar.gz: 8a7b5445b040ab2acb5c5c55101f82c4fc2ad76401728e817788e85d95663f2ae9bc098b1d6a837bd934ce75caa1e0f3943ea2683461224e7b8a224250120479
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .idea
2
2
  .DS_Store
3
- Gemfile.lock
3
+ Gemfile.lock
4
+ *.gem
data/lib/gallerize_cli.rb CHANGED
@@ -6,7 +6,7 @@ require 'logger'
6
6
 
7
7
  module GallerizeCli
8
8
 
9
- VERSION='0.3.0'
9
+ VERSION='0.3.1'
10
10
 
11
11
  class << self
12
12
  def perform
@@ -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
- $ gallerize
26
+ $ gallerize_cli
27
27
  $ open gallerize/index.html
28
28
  ```
29
29
 
30
30
 
31
31
  ### Configuration
32
32
 
33
- After you run 'gallerize' it generates a .gallerize-cli folder. You can modify the contents to alter how your gallery is generated.
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gallerize-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher