[rubygem-clockwork/f21] Initial commit

Josef Stribny jstribny at fedoraproject.org
Wed Aug 27 07:14:43 UTC 2014


commit 23a08e5553e612deed5f178dacff57866a487f89
Author: Josef Stribny <jstribny at redhat.com>
Date:   Wed Aug 27 08:25:05 2014 +0200

    Initial commit

 .gitignore             |    1 +
 LICENSE                |   21 +++++++++
 clockworkd.1           |   62 +++++++++++++++++++++++++++
 rubygem-clockwork.spec |  108 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 5 files changed, 193 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..87c758d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/clockwork-0.7.7.gem
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..4915153
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2010-2014 Adam Wiggins, tomykaira <tomykaira at gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/clockworkd.1 b/clockworkd.1
new file mode 100644
index 0000000..461b3b7
--- /dev/null
+++ b/clockworkd.1
@@ -0,0 +1,62 @@
+.TH CLOCKWORKD 1 "August 2014" "Ruby Gem" "clockwork"
+
+.SH NAME
+clockworkd - daemon executing clockwork scripts
+
+.SH SYNOPSIS
+\fBclockworkd\fR [-c \fIFILE\fR] [\fIOPTIONS\fR] {start|stop|restart|run}
+
+.SH DESCRIPTION
+\fBclockworkd\fR executes clockwork script as a daemon.
+
+You will need the \fBdaemons\fR gem to use \fBclockworkd\fR. It is not automatically installed, please install by yourself.
+
+.SH OPTIONS
+.TP
+\fB--pid-dir\fR=\fIDIR\fR
+Alternate directory in which to store the process ids. Default is \fIGEM_LOCATION\fR/tmp.
+
+.TP
+\fB-i\fR, \fB--identifier\fR=\fISTR\fR
+An identifier for the process. Default is clock file name.
+
+.TP
+\fB-l\fR, \fB--log\fR
+Redirect both STDOUT and STDERR to a logfile named clockworkd[.\fIidentifier\fR].output in the pid-file directory.
+
+.TP
+\fB--log-dir\fR=\fIDIR\fR
+A specific directory to put the log files into. Default location is pid directory.
+
+.TP
+\fB-m\fR, \fB--monitor\fR
+Start monitor process.
+
+.TP
+\fB-c\fR, \fB--clock\fR=\fIFILE\fR
+Clock .rb file. Default is \fIGEM_LOCATION\fR/clock.rb.
+
+.TP
+\fB-d\fR, \fB--dir\fR=\fIDIR\fR
+Directory to change to once the process starts
+
+.TP
+\fB-h\fR, \fB--help\fR
+Show help message.
+
+.SH BUGS
+If you find a bug, please create an issue \fIhttps://github.com/tomykaira/clockwork/issues\fR.
+
+For a bug fix or a feature request, please send a pull-request. Do not forget to add tests to show how your feature works, or what bug is fixed. All existing tests and new tests must pass (TravisCI is watching).
+
+.SH AUTHORS
+Created by Adam Wiggins.
+
+Inspired by rufus-scheduler and resque-scheduler.
+
+Design assistance from Peter van Hardenberg and Matthew Soldo.
+
+Patches contributed by Mark McGranaghan and Lukáš Konarovský.
+
+.SH SEE ALSO
+\fIhttps://github.com/tomykaira/clockwork\fR.
diff --git a/rubygem-clockwork.spec b/rubygem-clockwork.spec
new file mode 100644
index 0000000..52c987f
--- /dev/null
+++ b/rubygem-clockwork.spec
@@ -0,0 +1,108 @@
+# Generated from clockwork-0.7.7.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name clockwork
+
+Name: rubygem-%{gem_name}
+Version: 0.7.7
+Release: 3%{?dist}
+Summary: A scheduler process to replace cron
+Group: Development/Languages
+License: MIT
+URL: http://github.com/tomykaira/clockwork
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# wget https://raw.githubusercontent.com/tomykaira/clockwork/master/clockworkd.1
+Source1: clockworkd.1
+# wget https://raw.githubusercontent.com/tomykaira/clockwork/master/LICENSE
+Source2: LICENSE
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel 
+BuildRequires: ruby 
+# contest is for test/unit and not in Fedora
+# BuildRequires: rubygem(daemons) 
+# BuildRequires: rubygem(contest)
+# BuildRequires: rubygem(minitest) => 4.0
+# BuildRequires: rubygem(minitest) < 5
+# BuildRequires: rubygem(mocha)
+BuildArch: noarch
+
+%description
+A scheduler process to replace cron, using a more flexible Ruby syntax running
+as a single long-running process.  Inspired by rufus-scheduler and
+resque-scheduler.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n  %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+
+mkdir -p %{buildroot}%{_bindir}
+cp -a .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+# Install man pages into appropriate place
+mkdir -p %{buildroot}%{_mandir}/man1
+install -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1
+
+# License
+install -m 0644 %{SOURCE2} %{buildroot}%{gem_instdir}/
+
+# contest is for test/unit and not in Fedora
+#%%check
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/clockwork
+%{_bindir}/clockworkd
+%{gem_instdir}/bin
+%doc %{gem_instdir}/LICENSE
+%{gem_libdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.travis.yml
+%doc %{_mandir}/man1/clockworkd.1*
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/test
+%{gem_instdir}/Gemfile
+%{gem_instdir}/Rakefile
+%{gem_instdir}/gemfiles
+%{gem_instdir}/%{gem_name}.gemspec
+%{gem_instdir}/example.rb
+
+%changelog
+* Mon Aug 25 2014 Josef Stribny <jstribny at redhat.com> - 0.7.7-3
+- Include LICENSE file
+- Drop support for f20
+
+* Fri Aug 22 2014 Josef Stribny <jstribny at redhat.com> - 0.7.7-2
+- Add man page
+
+* Tue Jul 15 2014 Josef Stribny <jstribny at redhat.com> - 0.7.7-1
+- Initial package
diff --git a/sources b/sources
index e69de29..38f5f5d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+18b2cbecd385ddf187bbdcdce414fc6e  clockwork-0.7.7.gem


More information about the scm-commits mailing list