-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gemspec): Update gem details, add Rakefile
- Loading branch information
Showing
8 changed files
with
31 additions
and
16 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
--color | ||
--require spec/spec_helper | ||
--default-path . | ||
--exclude-pattern vendor/**/* |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ AllCops: | |
TargetRubyVersion: 2.3 | ||
Exclude: | ||
- !ruby/regexp /_spec\.rb\z/ | ||
- vendor/**/* | ||
|
||
Documentation: | ||
Enabled: false |
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
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,8 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task default: :spec |
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 |
---|---|---|
|
@@ -10,36 +10,37 @@ Gem::Specification.new do |spec| | |
spec.authors = ['Advanon Team'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = 'Write a short summary, because RubyGems requires one.' | ||
spec.description = 'Write a longer description or delete this line.' | ||
spec.homepage = 'https://advanon.com' | ||
spec.summary = <<-HEREDOC | ||
Stream ActiveRecord events via HTTP, AWS SNS or Kinesis streams | ||
HEREDOC | ||
|
||
spec.description = <<-HEREDOC | ||
Publish events about changes to your ActiveRecord models to different | ||
targets, like HTTP endpoints, AWS SNS topics or Kinesis streams | ||
HEREDOC | ||
|
||
spec.homepage = 'https://advanon.com' | ||
spec.required_ruby_version = '>= 2.3.3' | ||
|
||
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the | ||
# 'allowed_push_host' to allow pushing to a single host or delete this section | ||
# to allow pushing to any host. | ||
if spec.respond_to?(:metadata) | ||
spec.metadata['allowed_push_host'] = 'http://mygemserver.com' | ||
spec.metadata['allowed_push_host'] = 'https://rubygems.org' | ||
|
||
spec.metadata['homepage_uri'] = spec.homepage | ||
|
||
spec.metadata['source_code_uri'] = | ||
'https://github.com/Advanon/active_record_streams' | ||
|
||
spec.metadata['changelog_uri'] = 'Put your gem\'s CHANGELOG.md URL here.' | ||
spec.metadata['changelog_uri'] = | ||
'https://github.com/Advanon/active_record_streams/blob/master/CHANGELOG.md' | ||
else | ||
raise 'RubyGems 2.0 or newer is required to protect against ' \ | ||
'public gem pushes.' | ||
end | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been | ||
# added into git. | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) } | ||
end | ||
|
||
# spec.bindir = 'exe' | ||
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency 'activerecord', '~> 4.2.10' | ||
|
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