Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #24 from JoeSouthan/deprecation
Browse files Browse the repository at this point in the history
Deprecate gem
  • Loading branch information
JoeSouthan committed Apr 8, 2021
2 parents 23938d6 + e2e01c4 commit 64aaf3f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions README.md
@@ -1,14 +1,11 @@
# Citywrapper
[![Build Status](https://travis-ci.org/JoeSouthan/citywrapper.svg?branch=master)](https://travis-ci.org/JoeSouthan/citywrapper)
[![Code Climate](https://codeclimate.com/github/JoeSouthan/citywrapper/badges/gpa.svg)](https://codeclimate.com/github/JoeSouthan/citywrapper)
#### WIP

TODO:
- Better documentation

A very light wrapper around the [Citymapper API](https://citymapper.3scale.net/).
# 🚨 Deprecation/Archival 🚨

This is in very early development, the Ruby API may change drastically.
Citymapper have [deprecated](https://citymapper.3scale.net/docs) this API. There will be no further updates to this gem.

## Installation

Expand Down
4 changes: 3 additions & 1 deletion citywrapper.gemspec
Expand Up @@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
spec.name = 'citywrapper'
spec.version = Citywrapper::VERSION
spec.authors = ['Joseph Southan']
spec.email = ['joe+github@sthn.io']
spec.email = ['gems@sthn.io']

spec.summary = 'Wraps the Citymapper API'
spec.description = 'Simple wrapper around the Citymapper API'
Expand All @@ -33,4 +33,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'simplecov', '~> 0.15'
spec.add_development_dependency 'vcr', '~> 6'
spec.add_development_dependency 'webmock', '~> 3.1'

spec.post_install_message = "The Citymaper APIs are now deprecated and will likely not work in the future"
end
1 change: 1 addition & 0 deletions lib/citywrapper.rb
Expand Up @@ -20,6 +20,7 @@ class << self
end

def self.configuration
warn "NOTE: Citymaper APIs are now deprecated and will likely not work in the future"
@configuration ||= Configuration.new
end

Expand Down
1 change: 1 addition & 0 deletions lib/citywrapper/api_base.rb
Expand Up @@ -11,6 +11,7 @@ class ApiBase

def initialize
@config = Citywrapper.configuration
warn "NOTE: #{self.class} is deprecated and will likely not work in the future"
end

def request(params: {}, method: :get)
Expand Down
2 changes: 1 addition & 1 deletion lib/citywrapper/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Citywrapper
VERSION = "0.1.0"
VERSION = "1.0.0"
end

0 comments on commit 64aaf3f

Please sign in to comment.