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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjhjN2EzYzNmNjVkNGI0YjVlYmU5OWUxYjJmYjBkZDgzODY5NWMzMg==
4
+ MTYwNTBmNGZkNTJlNDIxZDFlYWE2MzlmMGQzODlmYjI3YzE5Zjc3Mg==
5
5
  data.tar.gz: !binary |-
6
- NzEwNmIxNzdjNDkwOTkzMTYyOGZlMDJlYjViMjUyNTlkYTdlOWZhNw==
6
+ M2JhODU3NzAwMTNmMzQ3ZmUxNmUzYWI3ZDBjNjMxNjJlYmRiNWUyOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGRjOGY1Nzg4Mjk3OThjOWQ2MTEwNzVkZjk3MzQ3MDkwMTJlYjdhMTFmYWQw
10
- ZmMzZTU3NjJiMmYzYzNiZDk5NWNmNmFkOTRmN2I5ZTNjNDg0YWZiZDNjOGFm
11
- YTQ4NmUzYzUwN2UyYTc1YmQxOWU0OWFkY2MxOTRkNzJmODhkZjE=
9
+ ZjFhZWY5ZmNiZmE1MzE4Yjk2NmYzMDNkZTVlNTcxMWYyNTU5ZTY5NzNlMWU0
10
+ NjIwNjJjMjM5NGUzM2MxMGNkNDEzNTRmNzFmMThhNTY5ZmU4NzViM2UxZWI2
11
+ ZjkxYzFlYWQwMjUxZDljMDUwNGEwMjQwMDI4YmZiZTVjY2IyMDI=
12
12
  data.tar.gz: !binary |-
13
- YTk3NTM5ZTE1MjY5ZDYyYzFiZGI0ZjM5NzUyZTcyNGM0YTU1NmVhODY0NzE1
14
- OWU5Yjg1NzE5ZjQ2YWJjNTJmYjNjNmU3ZTMxM2M3YjExZmZhMzE4YTg5OTA0
15
- ZGQ4MzFjZjBiYWI0MWUxZmU0OTk1YmY4ZmU4OWUyZGI0N2U2YzY=
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 it explicitly here
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
@@ -4,6 +4,7 @@ require 'cucumber'
4
4
  require 'cucumber/rake/task'
5
5
  require 'photish/rake/task'
6
6
  require 'metric_fu'
7
+ require 'colorize'
7
8
 
8
9
  RSpec::Core::RakeTask.new(:spec)
9
10
 
data/TODO.md CHANGED
@@ -2,23 +2,17 @@
2
2
 
3
3
  ## In Progress
4
4
 
5
- 1. Create config to configure mini exiftool, also invalid chars
6
- (https://github.com/janfri/mini_exiftool#configuration)
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',
@@ -10,6 +10,7 @@ module Photish
10
10
  :image_extensions,
11
11
  :page_extension,
12
12
  :url_info,
13
+ :config,
13
14
  to: :parent,
14
15
  allow_nil: true
15
16
 
@@ -7,10 +7,14 @@ module Photish
7
7
 
8
8
  delegate :name,
9
9
  :params,
10
- to: :quality, prefix: true, allow_nil: true
10
+ to: :quality,
11
+ prefix: true,
12
+ allow_nil: true
11
13
 
12
14
  delegate :url_info,
13
- to: :parent, allow_nil: true
15
+ :config,
16
+ to: :parent,
17
+ allow_nil: true
14
18
 
15
19
  attr_reader :path
16
20
 
@@ -9,6 +9,7 @@ module Photish
9
9
  attr_reader :path
10
10
 
11
11
  delegate :url_info,
12
+ :config,
12
13
  to: :parent,
13
14
  allow_nil: true
14
15
 
@@ -7,6 +7,7 @@ module Photish
7
7
 
8
8
  delegate :qualities,
9
9
  :url_info,
10
+ :config,
10
11
  to: :parent,
11
12
  allow_nil: true
12
13
 
@@ -7,7 +7,13 @@ module Photish
7
7
  end
8
8
 
9
9
  def exif
10
- @exif ||= MiniExiftool.new(path)
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
@@ -1,5 +1,5 @@
1
1
  module Photish
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  AUTHOR_NAME = "Henry Lawson"
4
4
  AUTHOR_EMAIL = "henry.lawson@foinq.com"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: photish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Lawson