photish 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -2
- data/README.md +13 -11
- data/Rakefile +9 -0
- data/TODO.md +16 -4
- data/lib/photish/version.rb +1 -1
- data/photish.gemspec +4 -3
- metadata +28 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5b10a8eb80b0ccda3a376cd20081adfee487fb
|
4
|
+
data.tar.gz: a0c53e368b1e04cfba463fa42ccb5efe4362d5d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b0c807cc4d45ce76a7e648f889fade0e5d33a8bed501bd65b65e2ec294deeeaa7d6d3c1bc184fbfc6ca0f725e8209d5daf96048f704692e78847dd65a547f5
|
7
|
+
data.tar.gz: a5724e6808ceeaeb2254e49286a5132911750f9b1e369d3f8b73700fdf8a6f6ed7abb124ac23209d14273c96e8b12f1de6bd64abab177b19259502702728d5ba
|
data/.travis.yml
CHANGED
@@ -15,7 +15,7 @@ matrix:
|
|
15
15
|
include:
|
16
16
|
- rvm: ruby-head
|
17
17
|
- rvm: 2.3.0
|
18
|
-
env: COVERAGE=1
|
18
|
+
env: COVERAGE=1 DEPLOY=1
|
19
19
|
- rvm: 2.2
|
20
20
|
- rvm: 2.1
|
21
21
|
- rvm: 2.0
|
@@ -27,10 +27,19 @@ matrix:
|
|
27
27
|
- rvm: rbx
|
28
28
|
- rvm: rbx-3.2
|
29
29
|
env: SMOKE_TEST_ONLY=1
|
30
|
-
- rvm: rbx-2
|
30
|
+
- rvm: rbx-2.7
|
31
31
|
env: SMOKE_TEST_ONLY=1
|
32
32
|
fast_finish: true
|
33
33
|
allow_failures:
|
34
34
|
- rvm: ruby-head
|
35
35
|
- rvm: jruby-head
|
36
36
|
- rvm: rbx
|
37
|
+
deploy:
|
38
|
+
provider: rubygems
|
39
|
+
on:
|
40
|
+
repo: henrylawson/photish
|
41
|
+
condition: "$DEPLOY = 1"
|
42
|
+
branch: master
|
43
|
+
tags: true
|
44
|
+
api_key:
|
45
|
+
secure: nFNY85dNmvdhc8H2t/tIiv0xTeWctitZSs2WtlVzOFpbNFac9rqd4ZhNQb/l2QiukquMdbWVzSr2uPZ+gJwhV/yWtX+xNbnPHdW/u5upX5PO9SNZImx8iVS95bViW+zygp3rZvVS6oVeIg4xAzuBMlviomYhp8lGRISWAM5efznK+NkLw16BiiDVQQ3KKLst0Ydo2TIzjkpfeFyNK9qj0Joxqllojo+QVBFUN+vHQcC2VgOQIJjCKshlRKDtMwvvt5+qjBPs5IsTwWkySkkum3WRLxwUXHoMqKqxbYfgXtr2A7KUKiGkK9L2zVYOYCErKDuS+YgQ3AgxnFsToOR8hp6SRv1WhR8Vix67u3A7dRmJ1hdyt0Re5+LyvHAuKXuUB6gJ8rbWpf56i4fbGCjl9IVE4YB+PfwRDwBAttXQTtYZE7AuseH+qdUYPRq3zLlYIcFxEliyNhh5Ud8aBh+ciM2R7ql0wA2Fu8tOK/2beoBWjifZc0z/B/hDHO4JGsphJaz59wPk/3DV6sCmaS4iMPAKtoyRdTyUN/hnzpq99LOEoQLCWUteWet5saV0svOQ3THRTZYO2mUX18Yb1Xjrm6iGhpjOMueBn+X12WLSXgHLuWV07/30cFdUOuhrGGu68weoMUY060PIdslUFtygSWIVVtvDpX1W52MLZyINeaA=
|
data/README.md
CHANGED
@@ -16,8 +16,9 @@ the information in your website templates. Photish supports all template
|
|
16
16
|
engines implemented by [Tilt](https://github.com/rtomayko/tilt) (currently over
|
17
17
|
30 formats). It will also read your configuration and automatically convert
|
18
18
|
your images to your configured size, dimensions, colourscheme, etc using
|
19
|
-
[ImageMagick](http://www.imagemagick.org/
|
20
|
-
|
19
|
+
[ImageMagick](http://www.imagemagick.org/) or
|
20
|
+
[GraphicsMagick](http://www.graphicsmagick.org/). Using this information,
|
21
|
+
Photish creates a complete static website that can be hosted on an
|
21
22
|
[NGINX](http://nginx.org/), [Apache HTTP Server](https://httpd.apache.org/), or
|
22
23
|
even on [Github Pages](https://pages.github.com/).
|
23
24
|
|
@@ -40,9 +41,10 @@ It is strongly recommended to read through the [Installation](#installation)
|
|
40
41
|
and [Usage](#usage) sections before seriously using Photish, however to get up
|
41
42
|
and running:
|
42
43
|
|
43
|
-
1. Ensure [ImageMagick](http://www.imagemagick.org/
|
44
|
-
[
|
45
|
-
installed (see
|
44
|
+
1. Ensure [ImageMagick](http://www.imagemagick.org/) (or
|
45
|
+
[GraphicsMagick](http://www.graphicsmagick.org/)) and
|
46
|
+
[Exiftool](http://www.sno.phy.queensu.ca/~phil/exiftool/) are installed (see
|
47
|
+
[Dependencies](#dependencies))
|
46
48
|
1. Install Photish `gem install photish`
|
47
49
|
1. Create a base project with `photish init --example`
|
48
50
|
1. Generate the HTML using `photish generate`
|
@@ -208,8 +210,8 @@ Photish has dependencies on certain software:
|
|
208
210
|
is a [Gem](https://www.ruby-lang.org/en/libraries/)
|
209
211
|
- [Bundler](http://bundler.io/) is not required but recommended to manage the
|
210
212
|
version, installations and updates of the Photish gem
|
211
|
-
- [ImageMagick](http://www.imagemagick.org/
|
212
|
-
conversion
|
213
|
+
- [ImageMagick](http://www.imagemagick.org/) or
|
214
|
+
[GraphicsMagick](http://www.graphicsmagick.org/) for Image conversion
|
213
215
|
- [Exiftool](http://www.sno.phy.queensu.ca/~phil/exiftool/) for image metadata
|
214
216
|
retrieval
|
215
217
|
|
@@ -221,7 +223,7 @@ Target OS dependencies:
|
|
221
223
|
**On MacOSX, using [Brew](http://brew.sh/)**
|
222
224
|
|
223
225
|
$ brew install ruby
|
224
|
-
$ brew install imagemagick
|
226
|
+
$ brew install imagemagick # or brew install graphicsmagick
|
225
227
|
$ brew install exiftool
|
226
228
|
$ gem install bundler
|
227
229
|
|
@@ -231,7 +233,7 @@ Target OS dependencies:
|
|
231
233
|
$ sudo apt-get update
|
232
234
|
$ sudo apt-get install ruby2.2
|
233
235
|
$
|
234
|
-
$ sudo apt-get install imagemagick
|
236
|
+
$ sudo apt-get install imagemagick # or sudo apt-get install graphicsmagick
|
235
237
|
$ sudo apt-get install libimage-exiftool-perl
|
236
238
|
|
237
239
|
### Ruby Versions
|
@@ -367,7 +369,7 @@ Field | Purpose
|
|
367
369
|
`port` | the port number that the `photish host` command will bind to, default is `9876`
|
368
370
|
`qualities` | an array of `name` and `params` fields for **Images**
|
369
371
|
`qualities[]/name` | the name of the **Image** quality
|
370
|
-
`qualities[]/params` | the parameters to be provided to the ImageMagick `convert` utility for the **Image** file quality
|
372
|
+
`qualities[]/params` | the parameters to be provided to the ImageMagick or GraphicsMagick `convert` utility for the **Image** file quality
|
371
373
|
`templates` | a listing of the various template files
|
372
374
|
`templates/layout` | the layout template file in the `site/_templates` folder, must be overridden if using a different template engine
|
373
375
|
`templates/collection` | the collection template file in the `site/_templates` folder, must be overridden if using a different template engine
|
@@ -385,7 +387,7 @@ Field | Purpose
|
|
385
387
|
`threads` | the number of threads each worker should create to handle image magick transcoding
|
386
388
|
`force` | this should always be false, if true, all content will be regenerated and nothing cached
|
387
389
|
`plugins` | an array of plugin names that have been included in your Gemfile and that Photish should require into it's runtime
|
388
|
-
`image_extensions` | by default, Photish
|
390
|
+
`image_extensions` | by default, Photish has a complete list of image extensions, however if you choose too, you can explicitly list the extensions that Photish should use to find images
|
389
391
|
`page_extension` | the extension of **Pages** files that will live amongst the photo collection
|
390
392
|
|
391
393
|
#### Customizing Templates
|
data/Rakefile
CHANGED
@@ -27,6 +27,15 @@ task :clean do
|
|
27
27
|
FileUtils.rm_rf('coverage')
|
28
28
|
end
|
29
29
|
|
30
|
+
desc 'Release a new version'
|
31
|
+
task :bump do
|
32
|
+
system("mvim -f lib/photish/version.rb") || abort('Error updating version'.red)
|
33
|
+
system("git add lib/photish/version.rb") || abort('Error adding verison'.red)
|
34
|
+
system("git commit") || abort("Error creating commit".red)
|
35
|
+
system("git diff-index --quiet HEAD") || abort("Uncommited changes".red)
|
36
|
+
system("rake release:source_control_push") || abort("Creating tag failed".red)
|
37
|
+
end
|
38
|
+
|
30
39
|
task :default => [:clean,
|
31
40
|
:spec,
|
32
41
|
:features,
|
data/TODO.md
CHANGED
@@ -2,16 +2,28 @@
|
|
2
2
|
|
3
3
|
## In Progress
|
4
4
|
|
5
|
-
1.
|
6
|
-
|
5
|
+
1. Create config to configure mini magick
|
6
|
+
(http://www.rubydoc.info/github/minimagick/minimagick/MiniMagick/Configuration)
|
7
|
+
1. Create config to configure mini exiftool, also invalid chars
|
8
|
+
(https://github.com/janfri/mini_exiftool#configuration)
|
9
|
+
1. Configure releases from travis-ci
|
10
|
+
(https://docs.travis-ci.com/user/deployment/rubygems)
|
11
|
+
1. Consider adding after release step of bumping and pushing other projects
|
12
|
+
(https://docs.travis-ci.com/user/deployment/custom/)
|
7
13
|
|
8
14
|
## Backlog
|
9
15
|
|
16
|
+
1. Add a photish-montage travis release workflow
|
17
|
+
1. An example Asset Page that is a `sitemap.xml`
|
10
18
|
1. Get url by smart key
|
11
19
|
1. Video transcoding and template rendering for videos
|
12
|
-
|
13
|
-
1.
|
20
|
+
(https://github.com/streamio/streamio-ffmpeg)
|
21
|
+
1. Performance of image, video and page generation
|
14
22
|
1. Improve the `--example` template of Photish
|
23
|
+
1. Allow deploy engine to be specified in config, not requiring on CLI
|
24
|
+
1. AWS CLI tool deploy engine
|
25
|
+
1. Github pages deploy engine
|
15
26
|
1. Stabilize full tests for JRuby and Rubinius
|
16
27
|
1. Add unit tests to classes relying on feature tests
|
17
28
|
1. Improve metric scores from `rake stats`
|
29
|
+
1. Travelling Ruby binaries
|
data/lib/photish/version.rb
CHANGED
data/photish.gemspec
CHANGED
@@ -33,9 +33,9 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency "facter", "~> 2.4"
|
34
34
|
spec.add_dependency "colorize", "~> 0.7.7"
|
35
35
|
|
36
|
-
spec.add_development_dependency "anemone"
|
37
|
-
spec.add_development_dependency "bundler"
|
38
|
-
spec.add_development_dependency "rake"
|
36
|
+
spec.add_development_dependency "anemone"
|
37
|
+
spec.add_development_dependency "bundler"
|
38
|
+
spec.add_development_dependency "rake"
|
39
39
|
spec.add_development_dependency "aruba"
|
40
40
|
spec.add_development_dependency "rspec"
|
41
41
|
spec.add_development_dependency "cucumber"
|
@@ -46,4 +46,5 @@ Gem::Specification.new do |spec|
|
|
46
46
|
spec.add_development_dependency "metric_fu"
|
47
47
|
spec.add_development_dependency "photish-plugin-sshdeploy"
|
48
48
|
spec.add_development_dependency "awesome_print"
|
49
|
+
spec.add_development_dependency "travis"
|
49
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Lawson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -154,44 +154,44 @@ dependencies:
|
|
154
154
|
name: anemone
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0
|
159
|
+
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: bundler
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rake
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: aruba
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -332,6 +332,20 @@ dependencies:
|
|
332
332
|
- - ">="
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '0'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: travis
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
335
349
|
description: |-
|
336
350
|
Photish is a simple, convention based (but
|
337
351
|
configurable) static photo site generator.
|