-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply bundler gem template recommendations
- Loading branch information
1 parent
a11a898
commit aaa8bc4
Showing
11 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
pkg/* | ||
*.gem | ||
.bundle | ||
tmp/*.sqlite3 | ||
/.bundle/ | ||
/.yardoc | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--color | ||
--format documentation | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in crono.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "bundler/setup" | ||
require "crono" | ||
|
||
# You can add fixtures and/or initialization code here to make experimenting | ||
# with your gem easier. You can also use a different console, if you like. | ||
|
||
# (If you use this, don't forget to add pry to your Gemfile!) | ||
# require "pry" | ||
# Pry.start | ||
|
||
require "irb" | ||
IRB.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
bundle install | ||
|
||
# Do any other automated setup that you need to do here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
# -*- encoding: utf-8 -*- | ||
require File.expand_path('../lib/crono/version', __FILE__) | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'crono/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'crono' | ||
s.version = Crono::VERSION | ||
s.authors = ['Dzmitry Plashchynski'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'https://github.com/plashchynski/crono' | ||
s.description = s.summary = 'Job scheduler for Rails' | ||
s.license = 'Apache-2.0' | ||
Gem::Specification.new do |spec| | ||
spec.name = 'crono' | ||
spec.version = Crono::VERSION | ||
spec.authors = ['Dzmitry Plashchynski'] | ||
spec.email = ['[email protected]'] | ||
|
||
s.required_rubygems_version = '>= 1.3.6' | ||
s.rubyforge_project = 'crono' | ||
spec.summary = 'Job scheduler for Rails' | ||
spec.description = 'A time-based background job scheduler daemon (just like Cron) for Rails' | ||
spec.homepage = 'https://github.com/plashchynski/crono' | ||
spec.license = 'Apache-2.0' | ||
|
||
s.add_runtime_dependency 'activejob', '~> 4.0' | ||
s.add_runtime_dependency 'activesupport', '~> 4.0' | ||
s.add_runtime_dependency 'activerecord', '~> 4.0' | ||
s.add_development_dependency 'rake', '~> 10.0' | ||
s.add_development_dependency 'bundler', '>= 1.0.0' | ||
s.add_development_dependency 'rspec', '~> 3.0' | ||
s.add_development_dependency 'timecop', '~> 0.7' | ||
s.add_development_dependency 'sqlite3' | ||
s.add_development_dependency 'byebug' | ||
s.add_development_dependency 'sinatra' | ||
s.add_development_dependency 'haml' | ||
s.add_development_dependency 'rack-test' | ||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = 'exe' # http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.executables = ['crono'] | ||
s.require_path = 'lib' | ||
spec.add_runtime_dependency 'activejob', '~> 4.0' | ||
spec.add_runtime_dependency 'activesupport', '~> 4.0' | ||
spec.add_runtime_dependency 'activerecord', '~> 4.0' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'bundler', '>= 1.0.0' | ||
spec.add_development_dependency 'rspec', '~> 3.0' | ||
spec.add_development_dependency 'timecop', '~> 0.7' | ||
spec.add_development_dependency 'sqlite3' | ||
spec.add_development_dependency 'byebug' | ||
spec.add_development_dependency 'sinatra' | ||
spec.add_development_dependency 'haml' | ||
spec.add_development_dependency 'rack-test' | ||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe Crono do | ||
it 'has a version number' do | ||
expect(Crono::VERSION).not_to be nil | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters