trend 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be4aa1b64d52a9185046f567b304af2e75dfada027d6bc971325081b0b741c61
4
- data.tar.gz: e5bcc34a35292c55f94d32959a54b7db3ad6ab8a450793bf8ae87a8e17cff9f3
3
+ metadata.gz: c45555f23668c7c5b0c4b6852d117feb7ceadc27ef14bf036fb9e3d71ab8ead4
4
+ data.tar.gz: edcd7f8e0aead518dcb4e159c0fd3a0b0aa7037aaeca74791f922e321182b3d8
5
5
  SHA512:
6
- metadata.gz: c1771a5627ff3f99764f953c243052192d7d461d039553e559fdf49a57e30ec7fc52138e5d5ab37dd670d17916db300573c84045531233e3e64d1c4be3d2f658
7
- data.tar.gz: c1618e0b0db4a942f161f6ba4b46de0e1efb64b85699d59bc54d77036dc0e02aff215f0863cfc19c2e1498880e629601d228d019612d38053c2d109fa37cc28d
6
+ metadata.gz: 860677a520c3ae9a6c997f3c046f94f798c42aac76cfe3e6d688eb0a8b32f25c0d54765d92d78f46fa81f2d34e452b5412dc78743ee555931bcde7c1b7b89f2c
7
+ data.tar.gz: 1636b2b82f27332f93eeaccaad3dcdcf62abd363e753390af1c822efbd35db9927ee215885cbbc2147fc8d167829ab099b7d2473e8053e00500507e1b5fa24ba
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.1 (2023-10-08)
2
+
3
+ - Added warning about hosted version shutdown
4
+
1
5
  ## 0.2.0 (2023-05-03)
2
6
 
3
7
  - Dropped support for Ruby < 3
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Trend Ruby
2
2
 
3
- Ruby client for [Trend](https://trendapi.org), the anomaly detection and forecasting API
3
+ Ruby client for [Trend](https://github.com/ankane/trend-api), the anomaly detection and forecasting API
4
+
5
+ **Note: The [hosted version](https://trendapi.org/) is shutting down on May 1, 2024. [See how to run the API on your own infrastructure.](https://github.com/ankane/trend-api)**
4
6
 
5
7
  [![Build Status](https://github.com/ankane/trend-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/trend-ruby/actions)
6
8
 
@@ -12,7 +14,7 @@ Add this line to your application’s Gemfile:
12
14
  gem "trend"
13
15
  ```
14
16
 
15
- For the [self-hosted API](https://github.com/ankane/trend-api), create an initializer with:
17
+ And set the URL to the API:
16
18
 
17
19
  ```ruby
18
20
  Trend.url = "http://localhost:8000"
data/lib/trend/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Trend
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/trend.rb CHANGED
@@ -24,7 +24,7 @@ module Trend
24
24
  end
25
25
 
26
26
  def self.url
27
- @url ||= ENV["TREND_URL"] || "https://trendapi.org"
27
+ @url ||= ENV["TREND_URL"] || hosted_url
28
28
  end
29
29
 
30
30
  def self.url=(url)
@@ -45,4 +45,10 @@ module Trend
45
45
  def self.client
46
46
  @client ||= Client.new
47
47
  end
48
+
49
+ # private
50
+ def self.hosted_url
51
+ warn "[trend] WARNING: The hosted version is shutting down on May 1, 2024. See https://github.com/ankane/trend-api for how to run the API on your own infrastructure."
52
+ "https://trendapi.org"
53
+ end
48
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org