photish 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +6 -2
- data/Rakefile +1 -0
- data/TODO.md +3 -9
- data/lib/photish/config/default_config.rb +8 -1
- data/lib/photish/gallery/album.rb +1 -0
- data/lib/photish/gallery/image.rb +6 -2
- data/lib/photish/gallery/page.rb +1 -0
- data/lib/photish/gallery/photo.rb +1 -0
- data/lib/photish/plugin/core/exifable.rb +7 -1
- data/lib/photish/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTYwNTBmNGZkNTJlNDIxZDFlYWE2MzlmMGQzODlmYjI3YzE5Zjc3Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2JhODU3NzAwMTNmMzQ3ZmUxNmUzYWI3ZDBjNjMxNjJlYmRiNWUyOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjFhZWY5ZmNiZmE1MzE4Yjk2NmYzMDNkZTVlNTcxMWYyNTU5ZTY5NzNlMWU0
|
10
|
+
NjIwNjJjMjM5NGUzM2MxMGNkNDEzNTRmNzFmMThhNTY5ZmU4NzViM2UxZWI2
|
11
|
+
ZjkxYzFlYWQwMjUxZDljMDUwNGEwMjQwMDI4YmZiZTVjY2IyMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWI1ZjJiMDkwZjQ3MzRlOWRhMTlhZjdlN2M1Yjg0NGFlYmI1N2E4MWU4NjJl
|
14
|
+
ZmY1NzUyOWUwYWVmNjNlOTg0NGYxN2M0NDBhNmEwZTYxYTk0ZDRjNzJhZGNm
|
15
|
+
MGVlNWI4N2JmMWVlNjg1MjA0ZjA2ZDI5NTJlNzZkMjk5YmNlYjc=
|
data/README.md
CHANGED
@@ -364,8 +364,10 @@ page_extension: 'slim'
|
|
364
364
|
dependencies:
|
365
365
|
minimagick:
|
366
366
|
cli: 'imagemagick'
|
367
|
-
cli_path:
|
367
|
+
cli_path: '/usr/bin/convert'
|
368
368
|
timeout: 3600
|
369
|
+
miniexiftool:
|
370
|
+
command: '/usr/bin/'
|
369
371
|
```
|
370
372
|
|
371
373
|
The meanings and purpose of each field is defined below:
|
@@ -398,8 +400,10 @@ Field | Purpose
|
|
398
400
|
`dependencies` | this section is for the configuration of third party tools
|
399
401
|
`dependencies/minimagick` | configuration for [minimagick](https://github.com/minimagick/minimagick), the wrapping library around [ImageMagick](http://www.imagemagick.org/) or [GraphicsMagick](http://www.graphicsmagick.org/)
|
400
402
|
`dependencies/minimagick/cli` | provide `imagemagick`, or `graphicsmagick` depending on your chosen library
|
401
|
-
`dependencies/minimagick/cli_path` | if the above executables are not in your PATH, you can provide
|
403
|
+
`dependencies/minimagick/cli_path` | if the above executables are not in your PATH, you can provide the location explicitly here
|
402
404
|
`dependencies/minimagick/timeout` | terminate a command after the provided number of seconds
|
405
|
+
`dependencies/miniexiftool` | configuration for [mini_exiftool](https://github.com/janfri/mini_exiftool), the wrapping library around [Exif Tool](http://www.sno.phy.queensu.ca/~phil/exiftool/)
|
406
|
+
`dependencies/miniexiftool/command` | if exiftool is not in your PATH, you can provide the location explicitly here
|
403
407
|
|
404
408
|
#### Customizing Templates
|
405
409
|
|
data/Rakefile
CHANGED
data/TODO.md
CHANGED
@@ -2,23 +2,17 @@
|
|
2
2
|
|
3
3
|
## In Progress
|
4
4
|
|
5
|
-
1.
|
6
|
-
|
7
|
-
1. Consider adding after release step of bumping and pushing other projects
|
8
|
-
(https://docs.travis-ci.com/user/deployment/custom/)
|
5
|
+
1. An example Asset Page that is a `sitemap.xml`
|
6
|
+
1. Get url by smart key
|
9
7
|
|
10
8
|
## Backlog
|
11
9
|
|
12
|
-
1. Add a photish-montage travis release workflow
|
13
|
-
1. An example Asset Page that is a `sitemap.xml`
|
14
|
-
1. Get url by smart key
|
15
10
|
1. Video transcoding and template rendering for videos
|
16
11
|
(https://github.com/streamio/streamio-ffmpeg)
|
17
|
-
1. Performance of image, video and page generation
|
18
12
|
1. Improve the `--example` template of Photish
|
19
|
-
1. Allow deploy engine to be specified in config, not requiring on CLI
|
20
13
|
1. AWS CLI tool deploy engine
|
21
14
|
1. Github pages deploy engine
|
15
|
+
1. Performance of image, video and page generation
|
22
16
|
1. Stabilize full tests for JRuby and Rubinius
|
23
17
|
1. Add unit tests to classes relying on feature tests
|
24
18
|
1. Improve metric scores from `rake stats`
|
@@ -21,13 +21,20 @@ module Photish
|
|
21
21
|
page_extension: 'slim',
|
22
22
|
soft_failure: false,
|
23
23
|
dependencies: {
|
24
|
-
minimagick: minimagick
|
24
|
+
minimagick: minimagick,
|
25
|
+
miniexiftool: miniexiftool
|
25
26
|
}
|
26
27
|
}
|
27
28
|
end
|
28
29
|
|
29
30
|
private
|
30
31
|
|
32
|
+
def miniexiftool
|
33
|
+
{
|
34
|
+
command: nil
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
31
38
|
def minimagick
|
32
39
|
{
|
33
40
|
cli: 'imagemagick',
|
@@ -7,10 +7,14 @@ module Photish
|
|
7
7
|
|
8
8
|
delegate :name,
|
9
9
|
:params,
|
10
|
-
to: :quality,
|
10
|
+
to: :quality,
|
11
|
+
prefix: true,
|
12
|
+
allow_nil: true
|
11
13
|
|
12
14
|
delegate :url_info,
|
13
|
-
|
15
|
+
:config,
|
16
|
+
to: :parent,
|
17
|
+
allow_nil: true
|
14
18
|
|
15
19
|
attr_reader :path
|
16
20
|
|
data/lib/photish/gallery/page.rb
CHANGED
@@ -7,7 +7,13 @@ module Photish
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def exif
|
10
|
-
@exif
|
10
|
+
return @exif if @exif
|
11
|
+
MiniExifTool.command = exiftool_path if exiftool_path
|
12
|
+
@exif = MiniExiftool.new(path)
|
13
|
+
end
|
14
|
+
|
15
|
+
def exiftool_path
|
16
|
+
config.dependencies.miniexiftool.command
|
11
17
|
end
|
12
18
|
end
|
13
19
|
end
|
data/lib/photish/version.rb
CHANGED