Skip to content

Commit

Permalink
Depricates old gem name
Browse files Browse the repository at this point in the history
  • Loading branch information
sfroehler committed Apr 6, 2018
1 parent ea0ba8a commit 93d52ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

### Security

## [0.3.0] - 2018-04-??
This gem has been renamed to billwerk and the pactas_itero gem release has been deprecated.

## [0.3.0] - 2017-09-04
### Added
- get a self service token for a given contract
Expand Down
2 changes: 2 additions & 0 deletions lib/pactas_itero/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Client
attr_accessor :bearer_token

def initialize(options = {})
warn "[DEPRECATION] This gem has been renamed to billwerk and will no longer be supported. " \
"Please switch to the bew gem as soon as possible."
PactasItero::Configurable.keys.each do |key|
instance_variable_set(:"@#{key}", options[key] || PactasItero.instance_variable_get(:"@#{key}"))
end
Expand Down
2 changes: 1 addition & 1 deletion lib/pactas_itero/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PactasItero
VERSION = "0.3.0".freeze
VERSION = "0.4.0".freeze
end
6 changes: 6 additions & 0 deletions pactas_itero.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec", '~> 3.6.0'
spec.add_development_dependency("simplecov", "~> 0.15.0")
spec.add_development_dependency("webmock", "~> 2.3")

spec.post_install_message = <<-MESSAGE
! The 'pactas_itero' gem has been deprecated and has been renamed to 'billwerk'.
! See: https://rubygems.org/gems/billwerk
! And: https://github.com/shipcloud/billwerk
MESSAGE
end

0 comments on commit 93d52ad

Please sign in to comment.