photish 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/README.md +24 -11
- data/Rakefile +17 -8
- data/TODO.md +15 -3
- data/appveyor.yml +11 -0
- data/bin/setup +3 -0
- data/bin/snap-ci/pack.sh +18 -0
- data/bin/snap-ci/release.sh +5 -3
- data/bin/snap-ci/test.sh +1 -2
- data/boxes/all.sh +9 -0
- data/boxes/centos_i386/Vagrantfile +5 -0
- data/boxes/centos_i386/test-install.sh +7 -0
- data/boxes/centos_x86_64/Vagrantfile +5 -0
- data/boxes/centos_x86_64/test-install.sh +7 -0
- data/boxes/test.sh +9 -0
- data/boxes/ubuntu_amd64/Vagrantfile +5 -0
- data/boxes/ubuntu_amd64/test-install.sh +7 -0
- data/boxes/ubuntu_i386/Vagrantfile +5 -0
- data/boxes/ubuntu_i386/test-install.sh +7 -0
- data/exe/.jrubyrc +7 -0
- data/exe/photish +2 -0
- data/lib/photish/cli/interface.rb +2 -2
- data/lib/photish/command/credits.rb +9 -0
- data/lib/photish/command/version.rb +14 -0
- data/lib/photish/config/default_config.rb +1 -1
- data/lib/photish/rake/task.rb +2 -0
- data/lib/photish/version.rb +9 -1
- data/lib/photish.rb +2 -1
- data/packaging/after-install.sh +5 -0
- data/packaging/bundler-config +3 -0
- data/packaging/wrapper.bat +8 -0
- data/packaging/wrapper.sh +15 -0
- data/photish.gemspec +6 -7
- data/tasks/build.rake +154 -0
- data/tasks/dev.rake +20 -0
- data/tasks/lib/task_config.rb +11 -0
- data/tasks/metrics.rake +17 -8
- data/tasks/package.rake +62 -0
- data/tasks/photish.rake +8 -0
- data/tasks/release.rake +78 -25
- data/tasks/test.rake +23 -0
- metadata +42 -21
- data/exe/.jrubyrc +0 -1
- data/tasks/tests.rake +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb99245ada78036f7935c06f8ed802d2a05ce9a7
|
4
|
+
data.tar.gz: 5edffbbb83da0bdc2cf0978b64a0c8501bc9e497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31d61f0c21fd73fa5325ea93099adfe72f91339081932be88a182cb4c3813478b42e42cdb900ec85d65af492aad3ca5391e763315e8d38f42e8284ec2ae4e285
|
7
|
+
data.tar.gz: 91cd52b5e6cefed8d6a558faf7f92b49d9d4fc7362cd238aeaa2ecacdb35d7d637ab8314145d2b9a1898be14da2ae38e3c19f0d9940e1efc8e0c91c70cdcb412
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
[![Gem Version](https://badge.fury.io/rb/photish.svg)](https://badge.fury.io/rb/photish)
|
2
|
-
[![Build Status](https://travis-ci.org/henrylawson/photish.svg)](https://travis-ci.org/henrylawson/photish)
|
3
|
-
[![Build Status](https://snap-ci.com/henrylawson/photish/branch/master/build_image)](https://snap-ci.com/henrylawson/photish/branch/master)
|
4
|
-
[![Dependency Status](https://gemnasium.com/henrylawson/photish.svg)](https://gemnasium.com/henrylawson/photish)
|
5
|
-
[![Code Climate](https://codeclimate.com/github/henrylawson/photish/badges/gpa.svg)](https://codeclimate.com/github/henrylawson/photish)
|
6
|
-
[![Test Coverage](https://codeclimate.com/github/henrylawson/photish/badges/coverage.svg)](https://codeclimate.com/github/henrylawson/photish/coverage)
|
7
|
-
[![Issue Count](https://codeclimate.com/github/henrylawson/photish/badges/issue_count.svg)](https://codeclimate.com/github/henrylawson/photish/issues)
|
8
1
|
# Photish
|
9
2
|
|
10
3
|
Photish is a simple, convention based (but configurable) static photo site
|
@@ -52,9 +45,23 @@ and running:
|
|
52
45
|
1. Run a local HTTP server to view the site with `photish host`
|
53
46
|
1. View your photo site at [http://localhost:9876](http://localhost:9876/)
|
54
47
|
|
48
|
+
## Project Health
|
49
|
+
|
50
|
+
Category | Purpose | Badge
|
51
|
+
---------|---------|------
|
52
|
+
**Package** | RubyGems Status | [![Gem Version](https://badge.fury.io/rb/photish.svg)](https://badge.fury.io/rb/photish)
|
53
|
+
**CI/CD Pipeline** | Main Build, Package and Release | [![Build Status](https://snap-ci.com/henrylawson/photish/branch/master/build_image)](https://snap-ci.com/henrylawson/photish/branch/master)
|
54
|
+
| JRuby & Rubinius Builds | [![Build Status](https://travis-ci.org/henrylawson/photish.svg)](https://travis-ci.org/henrylawson/photish)
|
55
|
+
| Windows Build | [![Build status](https://ci.appveyor.com/api/projects/status/b2pj9985aeylx0mi?svg=true)](https://ci.appveyor.com/project/HenryLawson/photish)
|
56
|
+
**Code Quality** | Dependency Versions | [![Dependency Status](https://gemnasium.com/henrylawson/photish.svg)](https://gemnasium.com/henrylawson/photish)
|
57
|
+
| Code Climate GPA | [![Code Climate](https://codeclimate.com/github/henrylawson/photish/badges/gpa.svg)](https://codeclimate.com/github/henrylawson/photish)
|
58
|
+
| Test Coverage | [![Test Coverage](https://codeclimate.com/github/henrylawson/photish/badges/coverage.svg)](https://codeclimate.com/github/henrylawson/photish/coverage)
|
59
|
+
| Quality Metrics | [![Issue Count](https://codeclimate.com/github/henrylawson/photish/badges/issue_count.svg)](https://codeclimate.com/github/henrylawson/photish/issues)
|
60
|
+
|
55
61
|
# Documentation
|
56
62
|
|
57
63
|
- [Overview](#overview)
|
64
|
+
- [Latest Version](#latest-version)
|
58
65
|
- [Installation](#installation)
|
59
66
|
- [Dependencies](#dependencies)
|
60
67
|
- [Ruby Versions](#ruby-versions)
|
@@ -189,6 +196,16 @@ the templating language of your choice you can easily generate a Photo
|
|
189
196
|
collection driven website with all of your photos available in various
|
190
197
|
qualities and formats.
|
191
198
|
|
199
|
+
## Latest Version
|
200
|
+
|
201
|
+
Photish follows [Semantic Versioning 2.0.0](http://semver.org/).
|
202
|
+
|
203
|
+
Releases happen regularly and automatically from
|
204
|
+
[Snap-CI](https://snap-ci.com/henrylawson/photish/branch/master).
|
205
|
+
|
206
|
+
The [latest version](https://github.com/henrylawson/photish/releases/latest) is
|
207
|
+
published with artifacts on GitHub.
|
208
|
+
|
192
209
|
## Installation
|
193
210
|
|
194
211
|
Install the gem locally by running:
|
@@ -1055,10 +1072,6 @@ https://github.com/henrylawson/photish. This project is intended to be a safe,
|
|
1055
1072
|
welcoming space for collaboration, and contributors are expected to adhere to
|
1056
1073
|
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
1057
1074
|
|
1058
|
-
## Versioning
|
1059
|
-
|
1060
|
-
This project follows [Semantic Versioning 2.0.0](http://semver.org/).
|
1061
|
-
|
1062
1075
|
## License
|
1063
1076
|
|
1064
1077
|
The gem is available as open source under the terms of the [MIT
|
data/Rakefile
CHANGED
@@ -1,11 +1,20 @@
|
|
1
|
-
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
FileUtils.rm_rf('coverage')
|
6
|
-
end
|
4
|
+
Dir.glob('tasks/lib/**/*.rb').each { |r| import r }
|
5
|
+
Dir.glob('tasks/*.rake').each { |r| import r }
|
7
6
|
|
7
|
+
desc 'Test and gather metrics'
|
8
8
|
task :default => [:clean,
|
9
|
-
:
|
10
|
-
|
11
|
-
|
9
|
+
:test]
|
10
|
+
|
11
|
+
desc 'Create the various build files and packages'
|
12
|
+
task :pack => [:clean,
|
13
|
+
:build,
|
14
|
+
:package]
|
15
|
+
|
16
|
+
desc 'Clean everything'
|
17
|
+
task :clean => ['test:clean',
|
18
|
+
'build:clean',
|
19
|
+
'package:clean',
|
20
|
+
'metrics:clean']
|
data/TODO.md
CHANGED
@@ -2,11 +2,23 @@
|
|
2
2
|
|
3
3
|
## In Progress
|
4
4
|
|
5
|
-
1.
|
6
|
-
1.
|
5
|
+
1. Publish DEB on PPA
|
6
|
+
1. Publish RPM on COPR
|
7
7
|
|
8
8
|
## Backlog
|
9
9
|
|
10
|
+
1. Create BREW package, publish to TAP
|
11
|
+
1. Create ArchLinux package, publish to AUR
|
12
|
+
1. Create choco package with appveyor, maybe git submodule
|
13
|
+
1. Update installation instructions with new packages and platforms
|
14
|
+
1. Track the associated project pages - travi, snap-ci etc.
|
15
|
+
1. Update development instructions
|
16
|
+
1. Improve CLI help commands and documentation
|
17
|
+
1. Full features do not work in packaged version, i.e. host command, feature
|
18
|
+
flag them
|
19
|
+
1. Update development dependencies versions, remove warnings from gem creation
|
20
|
+
1. Tweak FPM to allow homepage field override in DEB
|
21
|
+
1. Determine if other metadata can be set in packages
|
10
22
|
1. Video transcoding and template rendering for videos
|
11
23
|
(https://github.com/streamio/streamio-ffmpeg)
|
12
24
|
1. Improve the `--example` template of Photish
|
@@ -16,6 +28,6 @@
|
|
16
28
|
1. Stabilize full tests for JRuby and Rubinius
|
17
29
|
1. Add unit tests to classes relying on feature tests
|
18
30
|
1. Improve metric scores from `rake stats`
|
19
|
-
1. Travelling Ruby binaries
|
20
31
|
1. Fix jruby tests on snap-ci
|
21
32
|
1. Setup rbx builds on snap-ci
|
33
|
+
1. Work out way to determine processes without facter
|
data/appveyor.yml
ADDED
data/bin/setup
CHANGED
@@ -4,5 +4,8 @@ IFS=$'\n\t'
|
|
4
4
|
|
5
5
|
command -v convert >/dev/null 2>&1 || { echo >&2 "imagemagick required. run \"brew install imagemagick\""; exit 1; }
|
6
6
|
command -v exiftool >/dev/null 2>&1 || { echo >&2 "exiftool required. run \"brew install exiftool\""; exit 1; }
|
7
|
+
# gnu tar
|
8
|
+
# rpm
|
9
|
+
# ruby 2.2.2 for travelling ruby
|
7
10
|
|
8
11
|
bundle install
|
data/bin/snap-ci/pack.sh
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -xeuo pipefail
|
3
|
+
|
4
|
+
# map values from snap-ci
|
5
|
+
export CACHE_DIR=$SNAP_CACHE_DIR
|
6
|
+
export WORKING_DIR=$SNAP_WORKING_DIR
|
7
|
+
|
8
|
+
# determine script dir
|
9
|
+
DIR="$(dirname "$(readlink -f "$0")")"
|
10
|
+
|
11
|
+
# setup dependencies and ruby
|
12
|
+
source "$DIR/setup.sh"
|
13
|
+
|
14
|
+
# build and package
|
15
|
+
bundle exec rake clean pack
|
16
|
+
|
17
|
+
# ls the artifact dir
|
18
|
+
ls -larth ./pkg
|
data/bin/snap-ci/release.sh
CHANGED
@@ -6,16 +6,18 @@ export COMMIT=$SNAP_COMMIT
|
|
6
6
|
export BRANCH=$SNAP_BRANCH
|
7
7
|
|
8
8
|
# determine script dir
|
9
|
-
DIR="$
|
10
|
-
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
|
9
|
+
DIR="$(dirname "$(readlink -f "$0")")"
|
11
10
|
|
12
11
|
# setup dependencies and ruby
|
13
12
|
source "$DIR/setup.sh"
|
14
13
|
|
14
|
+
# ls the artifact dir
|
15
|
+
ls -larth ./pkg
|
16
|
+
|
15
17
|
# conditionally release app
|
16
18
|
if git describe --exact-match $COMMIT && [ $BRANCH = 'master' ]
|
17
19
|
then
|
18
|
-
bundle exec rake
|
20
|
+
bundle exec rake release
|
19
21
|
else
|
20
22
|
echo "This is not a tagged commit on master, skipping release."
|
21
23
|
fi
|
data/bin/snap-ci/test.sh
CHANGED
data/boxes/all.sh
ADDED
data/boxes/test.sh
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -xeuo pipefail
|
3
|
+
|
4
|
+
DIR=$( cd $(dirname $0) ; pwd -P )
|
5
|
+
|
6
|
+
cd $DIR/centos_i386 && vagrant up && vagrant provision
|
7
|
+
cd $DIR/centos_x86_64 && vagrant up && vagrant provision
|
8
|
+
cd $DIR/ubuntu_amd64 && vagrant up && vagrant provision
|
9
|
+
cd $DIR/ubuntu_i386 && vagrant up && vagrant provision
|
data/exe/.jrubyrc
ADDED
data/exe/photish
CHANGED
@@ -7,12 +7,12 @@ module Photish
|
|
7
7
|
|
8
8
|
desc "version", "Current version"
|
9
9
|
def version
|
10
|
-
|
10
|
+
Photish::Command::Version.new(options).execute
|
11
11
|
end
|
12
12
|
|
13
13
|
desc "credits", "Major conritbutors"
|
14
14
|
def credits
|
15
|
-
|
15
|
+
Photish::Command::Credits.new(options).execute
|
16
16
|
end
|
17
17
|
|
18
18
|
desc "generate", "Generates the gallery static site"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Photish
|
2
|
+
module Command
|
3
|
+
class Version < Base
|
4
|
+
def run
|
5
|
+
puts "#{Photish::NAME_AND_VERSION}"
|
6
|
+
puts ''
|
7
|
+
puts "#{RUBY_DESCRIPTION}"
|
8
|
+
puts ''
|
9
|
+
puts "RubyGems:"
|
10
|
+
Gem.loaded_specs.values.each {|x| puts "- #{x.name} #{x.version}" }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/photish/rake/task.rb
CHANGED
data/lib/photish/version.rb
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
module Photish
|
2
|
-
VERSION = "0.7.
|
2
|
+
VERSION = "0.7.5"
|
3
|
+
|
4
|
+
NAME = 'photish'
|
5
|
+
NAME_AND_VERSION = "#{NAME} v#{VERSION}"
|
3
6
|
AUTHOR_NAME = "Henry Lawson"
|
4
7
|
AUTHOR_EMAIL = "henry.lawson@foinq.com"
|
8
|
+
CONTACT = "#{Photish::AUTHOR_NAME} <#{Photish::AUTHOR_EMAIL}>"
|
9
|
+
SUMMARY = "A static photo site generator"
|
10
|
+
DESCRIPTION = "Photish is a simple, convention based (but configurable) static photo site generator."
|
11
|
+
LICENSE = "MIT"
|
12
|
+
HOMEPAGE = "https://github.com/henrylawson/photish"
|
5
13
|
end
|
data/lib/photish.rb
CHANGED
@@ -11,7 +11,6 @@ require 'yaml'
|
|
11
11
|
require 'thor'
|
12
12
|
require 'recursive_open_struct'
|
13
13
|
require 'cgi'
|
14
|
-
require 'facter'
|
15
14
|
require 'thread'
|
16
15
|
require 'thwait'
|
17
16
|
require 'slim'
|
@@ -33,6 +32,8 @@ require 'photish/command/generate'
|
|
33
32
|
require 'photish/command/host'
|
34
33
|
require 'photish/command/init'
|
35
34
|
require 'photish/command/deploy'
|
35
|
+
require 'photish/command/version'
|
36
|
+
require 'photish/command/credits'
|
36
37
|
require 'photish/cli/interface'
|
37
38
|
require 'photish/config/default_config'
|
38
39
|
require 'photish/config/file_config'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
@echo off
|
2
|
+
|
3
|
+
:: Tell Bundler where the Gemfile and gems are.
|
4
|
+
set "BUNDLE_GEMFILE=%~dp0\lib\vendor\Gemfile"
|
5
|
+
set BUNDLE_IGNORE_CONFIG=
|
6
|
+
|
7
|
+
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
|
8
|
+
@"%~dp0\lib\ruby\bin\ruby.bat" -rbundler/setup "%~dp0\lib\app\hello.rb"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
# figure out where this script is located
|
5
|
+
SELFDIR="$(dirname "$(readlink -f "$0")")"
|
6
|
+
|
7
|
+
# tell Bundler where the Gemfile and gems are
|
8
|
+
export BUNDLE_GEMFILE="$SELFDIR/lib/vendor/Gemfile"
|
9
|
+
unset BUNDLE_IGNORE_CONFIG
|
10
|
+
|
11
|
+
# run the actual app using the bundled Ruby interpreter
|
12
|
+
exec "$SELFDIR/lib/ruby/bin/ruby" \
|
13
|
+
-rbundler/setup \
|
14
|
+
"$SELFDIR/lib/app/exe/photish" \
|
15
|
+
"$@"
|
data/photish.gemspec
CHANGED
@@ -4,16 +4,15 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'photish/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = Photish::NAME
|
8
8
|
spec.version = Photish::VERSION
|
9
9
|
spec.authors = [Photish::AUTHOR_NAME]
|
10
10
|
spec.email = [Photish::AUTHOR_EMAIL]
|
11
11
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
|
15
|
-
spec.
|
16
|
-
spec.license = "MIT"
|
12
|
+
spec.summary = Photish::SUMMARY
|
13
|
+
spec.description = Photish::DESCRIPTION
|
14
|
+
spec.homepage = Photish::HOMEPAGE
|
15
|
+
spec.license = Photish::LICENSE
|
17
16
|
|
18
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
18
|
spec.bindir = "exe"
|
@@ -30,7 +29,6 @@ Gem::Specification.new do |spec|
|
|
30
29
|
spec.add_dependency "mini_exiftool", "~> 2.5"
|
31
30
|
spec.add_dependency "recursive-open-struct", "~> 1.0"
|
32
31
|
spec.add_dependency "listen", "~> 3.0"
|
33
|
-
spec.add_dependency "facter", "~> 2.4"
|
34
32
|
spec.add_dependency "colorize", "~> 0.7.7"
|
35
33
|
|
36
34
|
spec.add_development_dependency "anemone"
|
@@ -47,4 +45,5 @@ Gem::Specification.new do |spec|
|
|
47
45
|
spec.add_development_dependency "photish-plugin-sshdeploy"
|
48
46
|
spec.add_development_dependency "awesome_print"
|
49
47
|
spec.add_development_dependency "travis"
|
48
|
+
spec.add_development_dependency "fpm"
|
50
49
|
end
|
data/tasks/build.rake
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
require 'photish/version'
|
3
|
+
|
4
|
+
desc "Build all"
|
5
|
+
task :build => ['build:gem',
|
6
|
+
'build:linux:x86',
|
7
|
+
'build:linux:x86_64',
|
8
|
+
'build:osx',
|
9
|
+
'build:win32']
|
10
|
+
|
11
|
+
namespace :build do
|
12
|
+
desc "Clean up install files"
|
13
|
+
task :clean do
|
14
|
+
sh "rm -rf #{TaskConfig::BINARY_DIR}/*tar"
|
15
|
+
sh "rm -rf #{TaskConfig::BINARY_DIR}/*zip"
|
16
|
+
sh "rm -rf #{TaskConfig::BINARY_DIR}/*gem"
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Create GEM file"
|
20
|
+
task :gem do
|
21
|
+
sh "mkdir -p #{TaskConfig::BINARY_DIR}"
|
22
|
+
sh "gem build photish.gemspec"
|
23
|
+
sh "mv photish*.gem #{TaskConfig::BINARY_DIR}"
|
24
|
+
end
|
25
|
+
|
26
|
+
namespace :linux do
|
27
|
+
desc "Package your app for Linux x86"
|
28
|
+
task :x86 => [:bundle_install, "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-linux-x86.tar.gz"] do
|
29
|
+
create_package("linux-x86", :unix)
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Package your app for Linux x86_64"
|
33
|
+
task :x86_64 => [:bundle_install, "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-linux-x86_64.tar.gz"] do
|
34
|
+
create_package("linux-x86_64", :unix)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
desc "Package your app for OS X"
|
39
|
+
task :osx => [:bundle_install, "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-osx.tar.gz"] do
|
40
|
+
create_package("osx", :unix)
|
41
|
+
end
|
42
|
+
|
43
|
+
desc "Package your app for Windows x86"
|
44
|
+
task :win32 => [:bundle_install, "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-win32.tar.gz"] do
|
45
|
+
create_package("win32", :windows)
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Install gems to local directory"
|
49
|
+
task :bundle_install do
|
50
|
+
if RUBY_VERSION !~ /^#{TaskConfig::EXPECTED_RUBY_VERSION.sub('.', '\.')}/
|
51
|
+
abort "You can only 'bundle install' using Ruby 2.1, because that's what Traveling Ruby uses."
|
52
|
+
end
|
53
|
+
sh "rm -rf #{TaskConfig::SCRATCH_DIR}"
|
54
|
+
sh "mkdir -p #{TaskConfig::SCRATCH_DIR}"
|
55
|
+
sh "cp Gemfile Gemfile.lock #{TaskConfig::SCRATCH_DIR}"
|
56
|
+
new_contents = File.read("#{TaskConfig::SCRATCH_DIR}/Gemfile").gsub(/^gemspec.*$/, "gemspec path: '#{TaskConfig::WORKING_DIR || '../../../'}'")
|
57
|
+
File.open("#{TaskConfig::SCRATCH_DIR}/Gemfile", "w") {|file| file.puts(new_contents) }
|
58
|
+
Bundler.with_clean_env do
|
59
|
+
sh "cd #{TaskConfig::SCRATCH_DIR} && env BUNDLE_IGNORE_CONFIG=1 bundle install --path ../vendor --without development"
|
60
|
+
end
|
61
|
+
sh "rm -f #{TaskConfig::CACHE_DIR}/vendor/*/*/cache/*"
|
62
|
+
|
63
|
+
sh "rm -rf #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/test"
|
64
|
+
sh "rm -rf #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/tests"
|
65
|
+
sh "rm -rf #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/spec"
|
66
|
+
sh "rm -rf #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/features"
|
67
|
+
sh "rm -rf #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/benchmark"
|
68
|
+
|
69
|
+
sh "rm -f #{TaskConfig::CACHE_DIR}/vendor/ruby/*/rdoc*"
|
70
|
+
sh "rm -f #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/ext/Makefile"
|
71
|
+
sh "rm -f #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/ext/*/Makefile"
|
72
|
+
sh "rm -f #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/ext/*/tmp"
|
73
|
+
sh "rm -f #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems/*/ext/*/tmp"
|
74
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name '*.c' | xargs rm -f"
|
75
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name '*.cpp' | xargs rm -f"
|
76
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name '*.h' | xargs rm -f"
|
77
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name '*.rl' | xargs rm -f"
|
78
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name 'extconf.rb' | xargs rm -f"
|
79
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems -name '*.o' | xargs rm -f"
|
80
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems -name '*.so' | xargs rm -f"
|
81
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby/*/gems -name '*.bundle' | xargs rm -f"
|
82
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name '*.java' | xargs rm -f"
|
83
|
+
sh "find #{TaskConfig::CACHE_DIR}/vendor/ruby -name '*.class' | xargs rm -f"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
file "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-win32.tar.gz" do
|
88
|
+
download_runtime("win32")
|
89
|
+
end
|
90
|
+
|
91
|
+
file "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-linux-x86.tar.gz" do
|
92
|
+
download_runtime("linux-x86")
|
93
|
+
end
|
94
|
+
|
95
|
+
file "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-linux-x86_64.tar.gz" do
|
96
|
+
download_runtime("linux-x86_64")
|
97
|
+
end
|
98
|
+
|
99
|
+
file "#{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-osx.tar.gz" do
|
100
|
+
download_runtime("osx")
|
101
|
+
end
|
102
|
+
|
103
|
+
def package_dir_of(target)
|
104
|
+
"#{Photish::NAME}-#{Photish::VERSION}-#{target}"
|
105
|
+
end
|
106
|
+
|
107
|
+
def create_package(target, os_type)
|
108
|
+
package_dir = package_dir_of(target)
|
109
|
+
sh "rm -rf #{package_dir}"
|
110
|
+
sh "mkdir -p #{package_dir}/lib/app"
|
111
|
+
sh "cp -rf lib #{package_dir}/lib/app/"
|
112
|
+
sh "cp -rf exe #{package_dir}/lib/app/"
|
113
|
+
sh "mkdir #{package_dir}/lib/ruby"
|
114
|
+
sh "tar -xzf #{TaskConfig::RELEASES_DIR}/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-#{target}.tar.gz -C #{package_dir}/lib/ruby"
|
115
|
+
if os_type == :unix
|
116
|
+
sh "cp packaging/wrapper.sh #{package_dir}/photish"
|
117
|
+
sh "chmod +x #{package_dir}/photish"
|
118
|
+
else
|
119
|
+
sh "cp packaging/wrapper.bat #{package_dir}/photish.bat"
|
120
|
+
end
|
121
|
+
sh "cp -pR #{TaskConfig::CACHE_DIR}/vendor #{package_dir}/lib/"
|
122
|
+
|
123
|
+
sh "cp photish.gemspec #{package_dir}/lib/app"
|
124
|
+
new_contents = File.read("#{package_dir}/lib/app/photish.gemspec").gsub(/spec\.files.*$/, "spec.files = ''")
|
125
|
+
File.open("#{package_dir}/lib/app/photish.gemspec", "w") {|file| file.puts(new_contents) }
|
126
|
+
|
127
|
+
new_contents = File.read("#{TaskConfig::SCRATCH_DIR}/Gemfile").gsub(/^gemspec.*$/, "gemspec path: '../app'")
|
128
|
+
File.open("#{TaskConfig::SCRATCH_DIR}/Gemfile", "w") {|file| file.puts(new_contents) }
|
129
|
+
sh "cp #{TaskConfig::SCRATCH_DIR}/Gemfile #{TaskConfig::SCRATCH_DIR}/Gemfile.lock #{package_dir}/lib/vendor/"
|
130
|
+
sh "mkdir #{package_dir}/lib/vendor/.bundle"
|
131
|
+
sh "cp #{TaskConfig::PACKAGING_DIR}/bundler-config #{package_dir}/lib/vendor/.bundle/config"
|
132
|
+
if !ENV['DIR_ONLY']
|
133
|
+
sh "mkdir -p #{TaskConfig::BINARY_DIR}"
|
134
|
+
if os_type == :unix
|
135
|
+
sh "tar -czf #{TaskConfig::BINARY_DIR}/#{package_dir}.tar.gz #{package_dir}"
|
136
|
+
else
|
137
|
+
sh "zip -9r #{TaskConfig::BINARY_DIR}/#{package_dir}.zip #{package_dir}"
|
138
|
+
end
|
139
|
+
sh "rm -rf #{package_dir}"
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
def download_runtime(target)
|
144
|
+
sh "mkdir -p #{TaskConfig::RELEASES_DIR}"
|
145
|
+
sh "cd #{TaskConfig::RELEASES_DIR} && curl -L -O --fail " +
|
146
|
+
"http://d6r77u77i8pq3.cloudfront.net/releases/traveling-ruby-#{TaskConfig::TRAVELING_RUBY_VERSION}-#{target}.tar.gz"
|
147
|
+
end
|
148
|
+
|
149
|
+
def update_after_install_script(package_dir)
|
150
|
+
new_contents = File.read("#{TaskConfig::PACKAGING_DIR}/after-install.sh").gsub(/PACKAGE_PLACEHOLDER/, package_dir)
|
151
|
+
sh "mkdir -p #{TaskConfig::CACHE_DIR}"
|
152
|
+
File.open("#{TaskConfig::CACHE_DIR}/after-install.sh", "w") {|file| file.puts(new_contents) }
|
153
|
+
"#{TaskConfig::CACHE_DIR}/after-install.sh"
|
154
|
+
end
|
data/tasks/dev.rake
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'colorize'
|
2
|
+
|
3
|
+
namespace :dev do
|
4
|
+
desc 'Release a new version'
|
5
|
+
task :bump do
|
6
|
+
sh("mvim -f lib/photish/version.rb") || abort('Error updating version'.red)
|
7
|
+
sh("git add lib/photish/version.rb") || abort('Error adding verison'.red)
|
8
|
+
sh("git commit") || abort("Error creating commit".red)
|
9
|
+
sh("git diff-index --quiet HEAD") || abort("Uncommited changes".red)
|
10
|
+
load 'lib/photish/version.rb'
|
11
|
+
begin
|
12
|
+
sh "git tag -a -m \"Version #{Photish::VERSION}\" v#{Photish::VERSION}"
|
13
|
+
rescue
|
14
|
+
sh "git tag -d v#{Photish::VERSION}"
|
15
|
+
"Creating tag failed".red
|
16
|
+
raise
|
17
|
+
end
|
18
|
+
sh("git push --tags") || abort("Push failed".red)
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module TaskConfig
|
2
|
+
EXPECTED_RUBY_VERSION = '2.2.2'
|
3
|
+
TRAVELING_RUBY_VERSION = "20150715-#{EXPECTED_RUBY_VERSION}"
|
4
|
+
|
5
|
+
PACKAGING_DIR = 'packaging'
|
6
|
+
WORKING_DIR = ENV['WORKING_DIR']
|
7
|
+
BINARY_DIR = ENV['BINARY_DIR'] || 'pkg'
|
8
|
+
CACHE_DIR = ENV['CACHE_DIR'] || 'tmp/packaging'
|
9
|
+
RELEASES_DIR = "#{CACHE_DIR}/releases"
|
10
|
+
SCRATCH_DIR = "#{CACHE_DIR}/scratch"
|
11
|
+
end
|
data/tasks/metrics.rake
CHANGED
@@ -1,11 +1,20 @@
|
|
1
1
|
require 'metric_fu'
|
2
2
|
|
3
|
-
desc '
|
4
|
-
task :
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
desc 'Static code metrics'
|
4
|
+
task :metrics => ['metrics:all',
|
5
|
+
'metrics:gather_coverage']
|
6
|
+
|
7
|
+
namespace :metrics do
|
8
|
+
desc 'Clean output folders'
|
9
|
+
task :clean do
|
10
|
+
FileUtils.rm_rf('coverage')
|
11
|
+
end
|
10
12
|
|
11
|
-
|
13
|
+
desc 'Gather code climate results'
|
14
|
+
task :gather_coverage do
|
15
|
+
next unless ENV['COVERAGE']
|
16
|
+
require 'simplecov'
|
17
|
+
require 'codeclimate-test-reporter'
|
18
|
+
CodeClimate::TestReporter::Formatter.new.format(SimpleCov.result)
|
19
|
+
end
|
20
|
+
end
|
data/tasks/package.rake
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
desc "Package all"
|
2
|
+
task :package => ['package:deb',
|
3
|
+
'package:rpm']
|
4
|
+
|
5
|
+
namespace :package do
|
6
|
+
desc "Clean up package files"
|
7
|
+
task :clean do
|
8
|
+
sh "rm -rf #{TaskConfig::BINARY_DIR}/*deb"
|
9
|
+
sh "rm -rf #{TaskConfig::BINARY_DIR}/*rpm"
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Create a DEB package"
|
13
|
+
task :deb do
|
14
|
+
create_deb("#{TaskConfig::BINARY_DIR}", 'i386', 'linux-x86')
|
15
|
+
create_deb("#{TaskConfig::BINARY_DIR}", 'amd64', 'linux-x86_64')
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Create a RPM package"
|
19
|
+
task :rpm do
|
20
|
+
create_rpm("#{TaskConfig::BINARY_DIR}", 'i386', 'linux-x86')
|
21
|
+
create_rpm("#{TaskConfig::BINARY_DIR}", 'x86_64', 'linux-x86_64')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def create_deb(binary_dir, architecture, package_architecture)
|
26
|
+
package_dir = package_dir_of(package_architecture)
|
27
|
+
sh "fpm " + "-s tar " +
|
28
|
+
"-t deb " +
|
29
|
+
"--deb-no-default-config-files " +
|
30
|
+
"--architecture #{architecture} " +
|
31
|
+
"--name #{Photish::NAME} " +
|
32
|
+
"--vendor \"Foinq\" " +
|
33
|
+
"--maintainer \"#{Photish::CONTACT}>\" " +
|
34
|
+
"--version #{Photish::VERSION} " +
|
35
|
+
"--description \"#{Photish::DESCRIPTION}\" " +
|
36
|
+
"--license \"#{Photish::LICENSE}\" " +
|
37
|
+
"--prefix \"/usr/local/lib\" " +
|
38
|
+
"--after-install #{update_after_install_script(package_dir)} " +
|
39
|
+
"--package '#{TaskConfig::BINARY_DIR}' " +
|
40
|
+
"--force " +
|
41
|
+
"#{binary_dir}/#{package_dir}.tar.gz"
|
42
|
+
end
|
43
|
+
|
44
|
+
def create_rpm(binary_dir, architecture, package_architecture)
|
45
|
+
package_dir = package_dir_of(package_architecture)
|
46
|
+
sh "fpm " + "-s tar " +
|
47
|
+
"-t rpm " +
|
48
|
+
"--rpm-os linux " +
|
49
|
+
"--architecture #{architecture} " +
|
50
|
+
"--name #{Photish::NAME} " +
|
51
|
+
"--vendor \"Foinq\" " +
|
52
|
+
"--maintainer \"#{Photish::CONTACT}>\" " +
|
53
|
+
"--version #{Photish::VERSION} " +
|
54
|
+
"--description \"#{Photish::DESCRIPTION}\" " +
|
55
|
+
"--license \"#{Photish::LICENSE}\" " +
|
56
|
+
"--prefix \"/usr/local/lib\" " +
|
57
|
+
"--epoch \"#{Time.now.to_i}\" " +
|
58
|
+
"--after-install #{update_after_install_script(package_dir)} " +
|
59
|
+
"--package '#{TaskConfig::BINARY_DIR}' " +
|
60
|
+
"--force " +
|
61
|
+
"#{binary_dir}/#{package_dir}.tar.gz"
|
62
|
+
end
|
data/tasks/photish.rake
CHANGED
@@ -13,5 +13,13 @@ namespace :photish do
|
|
13
13
|
t.options = "host"
|
14
14
|
end
|
15
15
|
|
16
|
+
Photish::Rake::Task.new(:version, 'Version information') do |t|
|
17
|
+
t.options = "version"
|
18
|
+
end
|
19
|
+
|
20
|
+
Photish::Rake::Task.new(:credits, 'Credits information') do |t|
|
21
|
+
t.options = "credits"
|
22
|
+
end
|
23
|
+
|
16
24
|
task :all => [:init, :generate, :host]
|
17
25
|
end
|
data/tasks/release.rake
CHANGED
@@ -1,38 +1,91 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
desc 'Release to all repositories'
|
2
|
+
task :release => ['release:rubygems',
|
3
|
+
'release:github']
|
4
|
+
|
5
|
+
namespace :release do
|
6
|
+
desc 'Release to RubyGems'
|
7
|
+
task :rubygems do
|
8
|
+
if Pathname.new("~/.gem/credentials").expand_path.exist?
|
9
|
+
allowed_push_host = nil
|
10
|
+
sh "gem push '#{TaskConfig::BINARY_DIR}/photish-#{Photish::VERSION}.gem'"
|
11
|
+
else
|
12
|
+
raise "Your rubygems.org credentials aren't set. Run `gem push` to set them."
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Release information to gtihub'
|
17
|
+
task :github => ['release:github:tagged_release',
|
18
|
+
'release:github:upload_gem',
|
19
|
+
'release:github:upload_rpm',
|
20
|
+
'release:github:upload_deb',
|
21
|
+
'release:github:upload_build']
|
22
|
+
|
23
|
+
namespace :github do
|
24
|
+
task :ensure_token_set do
|
25
|
+
raise "Please provide a GITHUB_TOKEN" unless ENV['GITHUB_TOKEN']
|
26
|
+
end
|
27
|
+
|
28
|
+
task :tagged_release => [:ensure_token_set] do
|
29
|
+
puts create_github_release
|
30
|
+
end
|
31
|
+
|
32
|
+
task :upload_gem => [:ensure_token_set] do
|
33
|
+
upload_file_to_github("RubyGem", "photish*.gem")
|
34
|
+
end
|
35
|
+
|
36
|
+
task :upload_rpm => [:ensure_token_set] do
|
37
|
+
upload_file_to_github("RPM i386", "photish*.i386.rpm")
|
38
|
+
upload_file_to_github("RPM x86_64", "photish*.x86_64.rpm")
|
39
|
+
end
|
40
|
+
|
41
|
+
task :upload_deb => [:ensure_token_set] do
|
42
|
+
upload_file_to_github("DEB i386", "photish*.i386.deb")
|
43
|
+
upload_file_to_github("DEB amd64", "photish*.amd64.deb")
|
44
|
+
end
|
45
|
+
|
46
|
+
task :upload_build => [:ensure_token_set] do
|
47
|
+
upload_file_to_github("Linux x86", "photish*-x86.tar.gz")
|
48
|
+
upload_file_to_github("Linux x86_64", "photish*-x86_64.tar.gz")
|
49
|
+
upload_file_to_github("MacOSX", "photish*-osx.tar.gz")
|
50
|
+
upload_file_to_github("Win32", "photish*-win32.tar.gz")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def fuzzy_file(fuzzy_name)
|
56
|
+
Dir.glob(fuzzy_name).max_by { |f| File.mtime(f) }
|
11
57
|
end
|
12
58
|
|
13
|
-
|
14
|
-
task 'release:github' do
|
15
|
-
raise "Please provide a GITHUB_TOKEN" unless ENV['GITHUB_TOKEN']
|
59
|
+
def create_github_release
|
16
60
|
payload = {
|
17
61
|
tag_name: "v#{Photish::VERSION}",
|
18
62
|
target_commiish: "master",
|
19
|
-
name: "
|
20
|
-
body: `git log -1 --pretty=%B`.strip
|
63
|
+
name: "#{Photish::NAME_AND_VERSION}",
|
64
|
+
body: `git log -1 v#{Photish::VERSION} --pretty=%B`.strip
|
21
65
|
}
|
22
|
-
|
66
|
+
JSON.parse(`curl -sS -H "Content-Type: application/json" \
|
23
67
|
-u henrylawson:#{ENV['GITHUB_TOKEN']} \
|
24
68
|
--request POST \
|
25
69
|
--data '#{payload.to_json}' \
|
26
70
|
https://api.github.com/repos/henrylawson/photish/releases`)
|
71
|
+
end
|
27
72
|
|
28
|
-
|
29
|
-
|
30
|
-
name: "photish-#{Photish::VERSION}.gem",
|
31
|
-
label: 'Ruby Gem' }].each do |file|
|
32
|
-
puts JSON.parse(`curl -sS -H "Content-Type: application/octet-stream" \
|
73
|
+
def get_upload_url
|
74
|
+
response = JSON.parse(`curl -sS \
|
33
75
|
-u henrylawson:#{ENV['GITHUB_TOKEN']} \
|
34
|
-
--request
|
35
|
-
|
36
|
-
|
37
|
-
|
76
|
+
--request GET \
|
77
|
+
https://api.github.com/repos/henrylawson/photish/releases/tags/v#{Photish::VERSION}`)
|
78
|
+
puts url = response.fetch('upload_url').gsub(/\{.*\}/, '')
|
79
|
+
url
|
80
|
+
end
|
81
|
+
|
82
|
+
def upload_file_to_github(label, fuzzy_name)
|
83
|
+
puts path = fuzzy_file("#{TaskConfig::BINARY_DIR}/#{fuzzy_name}")
|
84
|
+
name = File.basename(path)
|
85
|
+
puts JSON.parse(`curl -sS -H "Content-Type: application/octet-stream" \
|
86
|
+
-u henrylawson:#{ENV['GITHUB_TOKEN']} \
|
87
|
+
--request POST \
|
88
|
+
--data-binary @"#{path}" \
|
89
|
+
#{get_upload_url}?name=#{URI.escape(name)}&label=#{URI.escape(label)}`)
|
90
|
+
|
38
91
|
end
|
data/tasks/test.rake
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require "rspec/core/rake_task"
|
2
|
+
require 'cucumber'
|
3
|
+
require 'cucumber/rake/task'
|
4
|
+
|
5
|
+
desc 'Run all tests'
|
6
|
+
task :test => ['test:spec',
|
7
|
+
'test:features']
|
8
|
+
|
9
|
+
namespace :test do
|
10
|
+
desc 'Clean up test fodlers'
|
11
|
+
task :clean do
|
12
|
+
sh "rm -rf tmp/aruba"
|
13
|
+
end
|
14
|
+
|
15
|
+
RSpec::Core::RakeTask.new(:spec)
|
16
|
+
|
17
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
18
|
+
tags = ['']
|
19
|
+
tags << '--tags ~@wip'
|
20
|
+
tags << '--tags @smoke' if ENV['SMOKE_TEST_ONLY']
|
21
|
+
t.cucumber_opts = "features --format pretty #{tags.join(' ')}"
|
22
|
+
end
|
23
|
+
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.7.
|
4
|
+
version: 0.7.5
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: facter
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '2.4'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '2.4'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: colorize
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,9 +332,22 @@ dependencies:
|
|
346
332
|
- - ">="
|
347
333
|
- !ruby/object:Gem::Version
|
348
334
|
version: '0'
|
349
|
-
|
350
|
-
|
351
|
-
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: fpm
|
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'
|
349
|
+
description: Photish is a simple, convention based (but configurable) static photo
|
350
|
+
site generator.
|
352
351
|
email:
|
353
352
|
- henry.lawson@foinq.com
|
354
353
|
executables:
|
@@ -371,11 +370,23 @@ files:
|
|
371
370
|
- README.md
|
372
371
|
- Rakefile
|
373
372
|
- TODO.md
|
373
|
+
- appveyor.yml
|
374
374
|
- bin/console
|
375
375
|
- bin/setup
|
376
|
+
- bin/snap-ci/pack.sh
|
376
377
|
- bin/snap-ci/release.sh
|
377
378
|
- bin/snap-ci/setup.sh
|
378
379
|
- bin/snap-ci/test.sh
|
380
|
+
- boxes/all.sh
|
381
|
+
- boxes/centos_i386/Vagrantfile
|
382
|
+
- boxes/centos_i386/test-install.sh
|
383
|
+
- boxes/centos_x86_64/Vagrantfile
|
384
|
+
- boxes/centos_x86_64/test-install.sh
|
385
|
+
- boxes/test.sh
|
386
|
+
- boxes/ubuntu_amd64/Vagrantfile
|
387
|
+
- boxes/ubuntu_amd64/test-install.sh
|
388
|
+
- boxes/ubuntu_i386/Vagrantfile
|
389
|
+
- boxes/ubuntu_i386/test-install.sh
|
379
390
|
- exe/.jrubyrc
|
380
391
|
- exe/photish
|
381
392
|
- lib/photish.rb
|
@@ -412,10 +423,12 @@ files:
|
|
412
423
|
- lib/photish/cache/repository.rb
|
413
424
|
- lib/photish/cli/interface.rb
|
414
425
|
- lib/photish/command/base.rb
|
426
|
+
- lib/photish/command/credits.rb
|
415
427
|
- lib/photish/command/deploy.rb
|
416
428
|
- lib/photish/command/generate.rb
|
417
429
|
- lib/photish/command/host.rb
|
418
430
|
- lib/photish/command/init.rb
|
431
|
+
- lib/photish/command/version.rb
|
419
432
|
- lib/photish/command/worker.rb
|
420
433
|
- lib/photish/config/default_config.rb
|
421
434
|
- lib/photish/config/file_config.rb
|
@@ -448,11 +461,19 @@ files:
|
|
448
461
|
- lib/photish/render/site.rb
|
449
462
|
- lib/photish/render/template.rb
|
450
463
|
- lib/photish/version.rb
|
464
|
+
- packaging/after-install.sh
|
465
|
+
- packaging/bundler-config
|
466
|
+
- packaging/wrapper.bat
|
467
|
+
- packaging/wrapper.sh
|
451
468
|
- photish.gemspec
|
469
|
+
- tasks/build.rake
|
470
|
+
- tasks/dev.rake
|
471
|
+
- tasks/lib/task_config.rb
|
452
472
|
- tasks/metrics.rake
|
473
|
+
- tasks/package.rake
|
453
474
|
- tasks/photish.rake
|
454
475
|
- tasks/release.rake
|
455
|
-
- tasks/
|
476
|
+
- tasks/test.rake
|
456
477
|
homepage: https://github.com/henrylawson/photish
|
457
478
|
licenses:
|
458
479
|
- MIT
|
@@ -473,7 +494,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
473
494
|
version: '0'
|
474
495
|
requirements: []
|
475
496
|
rubyforge_project:
|
476
|
-
rubygems_version: 2.5
|
497
|
+
rubygems_version: 2.4.5
|
477
498
|
signing_key:
|
478
499
|
specification_version: 4
|
479
500
|
summary: A static photo site generator
|
data/exe/.jrubyrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
../.jrubyrc
|
data/tasks/tests.rake
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require "rspec/core/rake_task"
|
2
|
-
require 'cucumber'
|
3
|
-
require 'cucumber/rake/task'
|
4
|
-
|
5
|
-
RSpec::Core::RakeTask.new(:spec)
|
6
|
-
|
7
|
-
Cucumber::Rake::Task.new(:features) do |t|
|
8
|
-
tags = ['']
|
9
|
-
tags << '--tags ~@wip'
|
10
|
-
tags << '--tags @smoke' if ENV['SMOKE_TEST_ONLY']
|
11
|
-
t.cucumber_opts = "features --format pretty #{tags.join(' ')}"
|
12
|
-
end
|