warframe 0.3.2 → 0.4.0
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 +7 -0
- data/lib/warframe/models/vallis_cycle.rb +35 -0
- data/lib/warframe/rest/api/vallis_cycle.rb +23 -0
- data/lib/warframe/rest/api.rb +3 -1
- data/lib/warframe/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78748576f24eb1184699a2140bc9fefefd272db2ca66d34368e0654915b68e3e
|
4
|
+
data.tar.gz: 8b5f568ff6cae893642de84e623e4e042eb533a8aba61b6f818967423b192d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 932ca17b0a6a573edb25624b2be3c951cb1d84416c32cde4c91ac4a3cf319fb4a1579ddd076a0e2add9fe8306a018878912ea4debd45fce452fe6da94f2de8d9
|
7
|
+
data.tar.gz: b26454fb1d3f0e0b32c01bce42b66e79d930038018d8f5a6d9de02a2c8da036adcc6aa7e61b6226f864645ecb7e7d29130487f0653fde5b34eaa3dce2b94d04b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.4.0](https://www.github.com/WFCD/warframe-ruby/compare/v0.3.2...v0.4.0) (2022-01-02)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* **REST:** add `vallisCycle` route. ([#61](https://www.github.com/WFCD/warframe-ruby/issues/61)) ([f81577f](https://www.github.com/WFCD/warframe-ruby/commit/f81577fc6af0ec45948cfd57cc1d67de684ce03c))
|
9
|
+
|
3
10
|
### [0.3.2](https://www.github.com/WFCD/warframe-ruby/compare/v0.3.1...v0.3.2) (2021-12-29)
|
4
11
|
|
5
12
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative './base'
|
4
|
+
require_relative './attributes/id'
|
5
|
+
require_relative './attributes/active'
|
6
|
+
require_relative './attributes/expiry'
|
7
|
+
|
8
|
+
module Warframe
|
9
|
+
module Models
|
10
|
+
# Model for VallisCycle data.
|
11
|
+
# {https://api.warframestat.us/pc/vallisCycle /:platform/vallisCycle}
|
12
|
+
class VallisCycle < Warframe::Models::Base
|
13
|
+
include Warframe::Models::Attributes::ID
|
14
|
+
include Warframe::Models::Attributes::Expiry
|
15
|
+
include Warframe::Models::Attributes::Activation
|
16
|
+
|
17
|
+
# @!attribute time_left
|
18
|
+
# @return [String] time left until next cycle.
|
19
|
+
attr_reader :time_left
|
20
|
+
|
21
|
+
# @!attribute is_warm?
|
22
|
+
# @return [Boolean] whether or not it currently is warm.
|
23
|
+
attr_reader :is_warm
|
24
|
+
alias is_warm? is_warm
|
25
|
+
|
26
|
+
# @!attribute state
|
27
|
+
# @return [String] the current world state (Cold or Warm)
|
28
|
+
attr_reader :state
|
29
|
+
|
30
|
+
# @!attribute short_string
|
31
|
+
# @return [String] the time remaining until state change. Ex: `5m to Warm`.
|
32
|
+
attr_reader :short_string
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'warframe/models/vallis_cycle'
|
4
|
+
require_relative '../utils'
|
5
|
+
|
6
|
+
module Warframe
|
7
|
+
module REST
|
8
|
+
module API
|
9
|
+
# API endpoint for getting information on current VallisCycle data.
|
10
|
+
#
|
11
|
+
# {https://api.warframestat.us/pc/vallisCycle Example Response}
|
12
|
+
module VallisCycle
|
13
|
+
include Warframe::REST::Utils
|
14
|
+
|
15
|
+
# Gets the current vallisCycle Data.
|
16
|
+
# @return [Warframe::Models::VallisCycle]
|
17
|
+
def vallis_cycle
|
18
|
+
get('/vallisCycle', Warframe::Models::VallisCycle)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/warframe/rest/api.rb
CHANGED
@@ -11,9 +11,10 @@ require_relative 'api/nightwave'
|
|
11
11
|
require_relative 'api/sortie'
|
12
12
|
require_relative 'api/steel_path'
|
13
13
|
require_relative 'api/syndicate_missions'
|
14
|
+
require_relative 'api/vallis_cycle'
|
14
15
|
|
15
16
|
module Warframe
|
16
|
-
# A REST-ful API service, provided by https://api.warframestat.us
|
17
|
+
# A REST-ful API service, provided by https://api.warframestat.us
|
17
18
|
module REST
|
18
19
|
# The API Router for getting live data.
|
19
20
|
#
|
@@ -32,6 +33,7 @@ module Warframe
|
|
32
33
|
include Warframe::REST::API::Sortie
|
33
34
|
include Warframe::REST::API::SteelPath
|
34
35
|
include Warframe::REST::API::SyndicateMissions
|
36
|
+
include Warframe::REST::API::VallisCycle
|
35
37
|
end
|
36
38
|
end
|
37
39
|
end
|
data/lib/warframe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warframe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Romaniello
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fast_underscore
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- lib/warframe/models/sortie.rb
|
157
157
|
- lib/warframe/models/steel_path.rb
|
158
158
|
- lib/warframe/models/syndicate_mission.rb
|
159
|
+
- lib/warframe/models/vallis_cycle.rb
|
159
160
|
- lib/warframe/rest/api.rb
|
160
161
|
- lib/warframe/rest/api/alerts.rb
|
161
162
|
- lib/warframe/rest/api/cambion_drift.rb
|
@@ -168,6 +169,7 @@ files:
|
|
168
169
|
- lib/warframe/rest/api/sortie.rb
|
169
170
|
- lib/warframe/rest/api/steel_path.rb
|
170
171
|
- lib/warframe/rest/api/syndicate_missions.rb
|
172
|
+
- lib/warframe/rest/api/vallis_cycle.rb
|
171
173
|
- lib/warframe/rest/client.rb
|
172
174
|
- lib/warframe/rest/request.rb
|
173
175
|
- lib/warframe/rest/utils.rb
|