Project

sicily

0.0
No commit activity in last 3 years
No release in over 3 years
A rule-based photo organizer written in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

~> 1.3.3
~> 2.1.1
~> 0.13.7
~> 3.1.5
~> 4.8.0
~> 0.10.0
 Project Readme

Gem Version Build Status

Sicily

A rule-based photo organizer written in Ruby

Installation

Add this line to your application's Gemfile:

gem 'sicily'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sicily

Install dependencies

Install a node package as:

$ npm install -g upload-gphotos

Install ImageMagick

$ brew install imagemagick

Usage

Generate config files

Go to your project path, and then execute:

$ mkdir my-project
$ cd my-project
$ sicily generate

Modify the generated files

./config/rules.rb

Sicily.on '~/your_folder' do
  fit_if_photo 2000, 2000
  google_photo
  mv '~/your_another_folder/%Y/%m/%d'
end

Sicily.on '~/your_folder2' do
  fit_if_photo 1000, 1000
  cp '~/your_another_folder/%Y/%m/%d'
end

Sicily.on '~/your_folder3' do
  google_photo
  rm
end

./config/google_photo.rb (optional)

Sicily.configure_google do |config|
  config.id = 'your id'
  config.pw = 'your pw'
end

Start & Stop

If you want to monitor just during the current terminal session, then execute:

$ sicily monitor

If you want to run a background job which runs forever, then execute:

$ sicily start

If you want to stop that background job, then execute:

$ sicily stop

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Adding a New Task

Refer to lib/sicily/task/ and spec/sicily/task/.

You create any task as you want.

TaskLoader(lib/sicily/task_loader.rb) will load it automatically.

TODO

  • error handling
  • logging

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/eunjae-lee/sicily. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Sicily project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.