From ab9285ce0be733b0228d93805aad1a716a092db8 Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Sun, 1 Mar 2015 14:30:40 +0200 Subject: [PATCH] Add Rspec --- .rspec | 2 ++ Gemfile.lock | 50 +++++++++++++++++++++++++++++++++++++++++++++ Rakefile | 6 ++++++ periodicity.gemspec | 5 +++-- spec/spec_helper.rb | 7 +++++++ 5 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 .rspec create mode 100644 Gemfile.lock create mode 100644 spec/spec_helper.rb diff --git a/.rspec b/.rspec new file mode 100644 index 0000000..16f9cdb --- /dev/null +++ b/.rspec @@ -0,0 +1,2 @@ +--color +--format documentation diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..41b403f --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,50 @@ +PATH + remote: . + specs: + periodicity (0.0.1) + activejob + +GEM + remote: https://rubygems.org/ + specs: + activejob (4.2.0) + activesupport (= 4.2.0) + globalid (>= 0.3.0) + activesupport (4.2.0) + i18n (~> 0.7) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + diff-lcs (1.2.5) + globalid (0.3.3) + activesupport (>= 4.1.0) + i18n (0.7.0) + json (1.8.2) + minitest (5.5.1) + rake (10.4.2) + rspec (3.2.0) + rspec-core (~> 3.2.0) + rspec-expectations (~> 3.2.0) + rspec-mocks (~> 3.2.0) + rspec-core (3.2.1) + rspec-support (~> 3.2.0) + rspec-expectations (3.2.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.2.0) + rspec-mocks (3.2.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.2.0) + rspec-support (3.2.2) + thread_safe (0.3.4) + tzinfo (1.2.2) + thread_safe (~> 0.1) + +PLATFORMS + ruby + +DEPENDENCIES + bundler (>= 1.0.0) + periodicity! + rake + rspec (~> 3.0) diff --git a/Rakefile b/Rakefile index 14cfe0b..6104634 100644 --- a/Rakefile +++ b/Rakefile @@ -1,2 +1,8 @@ require 'bundler' Bundler::GemHelper.install_tasks + +require 'rspec/core/rake_task' + +RSpec::Core::RakeTask.new('spec') + +task default: :spec diff --git a/periodicity.gemspec b/periodicity.gemspec index bf67b3b..49a7a2b 100644 --- a/periodicity.gemspec +++ b/periodicity.gemspec @@ -7,14 +7,15 @@ Gem::Specification.new do |s| s.authors = ["Dzmitry Plashchynski"] s.email = ["plashchynski@gmail.com"] s.homepage = "https://github.com/plashchynski/periodicity" - gem.description = gem.summary = "Job scheduler for Rails" + s.description = s.summary = "Job scheduler for Rails" s.required_rubygems_version = ">= 1.3.6" s.rubyforge_project = "periodicity" s.add_runtime_dependency "activejob" + s.add_development_dependency "rake" s.add_development_dependency "bundler", ">= 1.0.0" - s.add_development_dependency "rspec" + s.add_development_dependency "rspec", "~> 3.0" s.files = `git ls-files`.split("\n") s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..5bfdf44 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,7 @@ +require 'bundler/setup' +Bundler.setup + +require 'periodicity' + +RSpec.configure do |config| +end