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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -2
- data/lib/trend/version.rb +1 -1
- data/lib/trend.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45555f23668c7c5b0c4b6852d117feb7ceadc27ef14bf036fb9e3d71ab8ead4
|
4
|
+
data.tar.gz: edcd7f8e0aead518dcb4e159c0fd3a0b0aa7037aaeca74791f922e321182b3d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 860677a520c3ae9a6c997f3c046f94f798c42aac76cfe3e6d688eb0a8b32f25c0d54765d92d78f46fa81f2d34e452b5412dc78743ee555931bcde7c1b7b89f2c
|
7
|
+
data.tar.gz: 1636b2b82f27332f93eeaccaad3dcdcf62abd363e753390af1c822efbd35db9927ee215885cbbc2147fc8d167829ab099b7d2473e8053e00500507e1b5fa24ba
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Trend Ruby
|
2
2
|
|
3
|
-
Ruby client for [Trend](https://
|
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
|
[](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
|
-
|
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
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"] ||
|
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.
|
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-
|
11
|
+
date: 2023-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: andrew@ankane.org
|