warframe 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +0 -1
- data/README.md +97 -71
- data/lib/warframe/client_wrapper.rb +1 -0
- data/lib/warframe/models/attributes/description.rb +9 -2
- data/lib/warframe/models/conclave_challenge.rb +54 -0
- data/lib/warframe/models/global_upgrade.rb +1 -1
- data/lib/warframe/models/sortie.rb +35 -0
- data/lib/warframe/models/steel_path.rb +33 -0
- data/lib/warframe/models/syndicate_mission.rb +31 -0
- data/lib/warframe/rest/api/conclave_challenges.rb +23 -0
- data/lib/warframe/rest/api/sortie.rb +23 -0
- data/lib/warframe/rest/api/steel_path.rb +23 -0
- data/lib/warframe/rest/api/syndicate_missions.rb +23 -0
- data/lib/warframe/rest/api.rb +11 -3
- data/lib/warframe/version.rb +1 -1
- metadata +25 -12
- data/.rspec +0 -3
- data/.rubocop.yml +0 -5
- data/CODE_OF_CONDUCT.md +0 -84
- data/Gemfile +0 -5
- data/Gemfile.lock +0 -103
- data/Rakefile +0 -12
- data/warframe.gemspec +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fbb7e4ec10b0e0025f2a7270e2c29dd709999cba7658aaea54a21fd3be00947
|
4
|
+
data.tar.gz: 0477ac222872fc1409b196c25b570264b1a828fedf72590e9edf75bceca63464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3365b0ea6f6d4d24a5504a9ae3d9245b2dd7fe4aa25a9a8975fd3e93c82fd3e3401aa56968fa5590c3873f3ca0097748d62b8764b2d4f100aa2db8a2d37a501f
|
7
|
+
data.tar.gz: 140f505cae2155b0666d8335734818ed46a9becf42eafe77e6034dcb47d3f07311b6989e69bcd788764021855331030385225589792b655db6391e7dd43c68b2
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,71 +1,97 @@
|
|
1
|
-
# warframe-ruby
|
2
|
-
[![Ruby Gem Version](https://badgen.net/rubygems/v/warframe)](https://rubygems.org/gems/
|
3
|
-
[![Downloads](https://badgen.net/rubygems/dt/warframe)](https://rubygems.org/gems/
|
4
|
-
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
|
5
|
-
[![Platform](https://badgen.net/rubygems/p/warframe)](https://www.ruby-lang.org/en/)
|
6
|
-
|
7
|
-
A Ruby client for [Warframe Stat](https://warframestat.us) bringing you live modeled data from their API.
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
Add this line to your application's Gemfile:
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
gem 'warframe'
|
15
|
-
```
|
16
|
-
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle install
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
|
-
$ gem install warframe
|
24
|
-
|
25
|
-
## Usage
|
26
|
-
|
27
|
-
To get started accessing live data, you must instantiate a new `Warframe::REST::Client`
|
28
|
-
```ruby
|
29
|
-
require 'warframe'
|
30
|
-
|
31
|
-
client = Warframe::REST::Client.new # => <Warframe::REST::Client platform='pc' language='en'>
|
32
|
-
|
33
|
-
# You can supply a hash to set your preferred platform or language.
|
34
|
-
my_custom_options = { platform: 'ps4', language: 'de' }
|
35
|
-
german_ps4 = Warframe::REST:Client.new my_custom_options # => <Warframe::REST::Client platform='ps4' language='de'>
|
36
|
-
```
|
37
|
-
|
38
|
-
This gives us access to a plethora of methods, check out the [documentation](https://rubydoc.info/gems/warframe) for more info.
|
39
|
-
```ruby
|
40
|
-
|
41
|
-
client = Warframe::REST::Client.new
|
42
|
-
client.nightwave # => <Warframe::Models::Nightwave>
|
43
|
-
client.alerts # => [ <Warframe::Models::Alert>, <Warframe::Models::Alert> ]
|
44
|
-
```
|
45
|
-
|
46
|
-
## Documentation
|
47
|
-
|
48
|
-
Documentation is currently provided by [rubydoc.info](https://rubydoc.info), check out the current versions documentation at https://rubydoc.info/gems/warframe.
|
49
|
-
|
50
|
-
## Development
|
51
|
-
|
52
|
-
### Dependency Management
|
53
|
-
After checking out the repo, run `bundle install` to install required dependencies.
|
54
|
-
|
55
|
-
### Testing
|
56
|
-
To check if your changes are passing tests, run
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
1
|
+
# warframe-ruby
|
2
|
+
[![Ruby Gem Version](https://badgen.net/rubygems/v/warframe)](https://rubygems.org/gems/warframe)
|
3
|
+
[![Downloads](https://badgen.net/rubygems/dt/warframe)](https://rubygems.org/gems/warframe)
|
4
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
|
5
|
+
[![Platform](https://badgen.net/rubygems/p/warframe)](https://www.ruby-lang.org/en/)
|
6
|
+
|
7
|
+
A Ruby client for [Warframe Stat](https://warframestat.us) bringing you live modeled data from their API.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'warframe'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle install
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install warframe
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
To get started accessing live data, you must instantiate a new `Warframe::REST::Client`
|
28
|
+
```ruby
|
29
|
+
require 'warframe'
|
30
|
+
|
31
|
+
client = Warframe::REST::Client.new # => <Warframe::REST::Client platform='pc' language='en'>
|
32
|
+
|
33
|
+
# You can supply a hash to set your preferred platform or language.
|
34
|
+
my_custom_options = { platform: 'ps4', language: 'de' }
|
35
|
+
german_ps4 = Warframe::REST:Client.new my_custom_options # => <Warframe::REST::Client platform='ps4' language='de'>
|
36
|
+
```
|
37
|
+
|
38
|
+
This gives us access to a plethora of methods, check out the [documentation](https://rubydoc.info/gems/warframe) for more info.
|
39
|
+
```ruby
|
40
|
+
|
41
|
+
client = Warframe::REST::Client.new
|
42
|
+
client.nightwave # => <Warframe::Models::Nightwave>
|
43
|
+
client.alerts # => [ <Warframe::Models::Alert>, <Warframe::Models::Alert> ]
|
44
|
+
```
|
45
|
+
|
46
|
+
## Documentation
|
47
|
+
|
48
|
+
Documentation is currently provided by [rubydoc.info](https://rubydoc.info), check out the current versions documentation at https://rubydoc.info/gems/warframe.
|
49
|
+
|
50
|
+
## Development
|
51
|
+
|
52
|
+
### Dependency Management
|
53
|
+
After checking out the repo, run `bundle install` to install required dependencies.
|
54
|
+
|
55
|
+
### Testing
|
56
|
+
To check if your changes are passing tests, run:
|
57
|
+
|
58
|
+
$ rake test
|
59
|
+
|
60
|
+
> Testing framework provided by [RSpec](https://rspec.info/).
|
61
|
+
|
62
|
+
### Linting
|
63
|
+
To auto-correct styling offenses, run:
|
64
|
+
|
65
|
+
$ rake lint
|
66
|
+
|
67
|
+
> All linting is provided by [RuboCop](https://github.com/rubocop/rubocop).
|
68
|
+
|
69
|
+
### Generating New Routes / Models with Thor
|
70
|
+
Using Thor allows us to create new routes and models via the command line, making it very simple to add new elements.
|
71
|
+
|
72
|
+
For example if we wanted to add, [conclaveChallenges](https://docs.warframestat.us/#tag/Worldstate/paths/~1{platform}~1conclaveChallenges/get) we run:
|
73
|
+
|
74
|
+
$ thor generate conclaveChallenges
|
75
|
+
|
76
|
+
> create lib/warframe/models/conclave_challenge.rb
|
77
|
+
> create lib/warframe/rest/api/conclave_challenges.rb
|
78
|
+
> conflict lib/warframe/rest/api.rb
|
79
|
+
> Overwrite C:/Users/ajrom/RubymineProjects/warframe/lib/warframe/rest/api.rb? (enter "h" for help) [Ynaqdh]
|
80
|
+
|
81
|
+
$ Y
|
82
|
+
|
83
|
+
> force lib/warframe/rest/api.rb
|
84
|
+
|
85
|
+
This creates a blank [model](/lib/warframe/models) for the data and a [route](/lib/warframe/rest/api) with a name spaced method for it, and then adds this method to our [REST::API](/lib/warframe/rest/api). Add attributes to the corresponding model and then run:
|
86
|
+
|
87
|
+
$ rake test
|
88
|
+
|
89
|
+
To ensure the new model is able to be created and accessed correctly, feel free to create more tests in the [spec directory](/spec/models).
|
90
|
+
|
91
|
+
## Contributing
|
92
|
+
|
93
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/aj-rom/warframe-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/aj-rom/warframe-ruby/blob/master/CODE_OF_CONDUCT.md).
|
94
|
+
|
95
|
+
## License
|
96
|
+
|
97
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -3,11 +3,18 @@
|
|
3
3
|
module Warframe
|
4
4
|
module Models
|
5
5
|
module Attributes
|
6
|
-
# Includes the desc attribute
|
6
|
+
# Includes the desc attribute
|
7
|
+
module Desc
|
8
|
+
# The description of the data requested
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :desc
|
11
|
+
end
|
12
|
+
|
13
|
+
# Includes the description attribute.
|
7
14
|
module Description
|
8
15
|
# The description of the data requested.
|
9
16
|
# @return [String]
|
10
|
-
attr_reader :
|
17
|
+
attr_reader :description
|
11
18
|
end
|
12
19
|
end
|
13
20
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative './base'
|
4
|
+
require_relative 'attributes/expiry'
|
5
|
+
require_relative 'attributes/eta'
|
6
|
+
require_relative 'attributes/description'
|
7
|
+
require_relative 'attributes/id'
|
8
|
+
require_relative 'attributes/active'
|
9
|
+
|
10
|
+
module Warframe
|
11
|
+
module Models
|
12
|
+
# Model for ConclaveChallenge Data
|
13
|
+
# {https://api.warframestat.us/pc/conclaveChallenges /:platform/conclaveChallenges}
|
14
|
+
class ConclaveChallenge < Warframe::Models::Base
|
15
|
+
include Warframe::Models::Attributes::Expiration
|
16
|
+
include Warframe::Models::Attributes::ETA
|
17
|
+
include Warframe::Models::Attributes::Description
|
18
|
+
include Warframe::Models::Attributes::ID
|
19
|
+
include Warframe::Models::Attributes::Activation
|
20
|
+
|
21
|
+
# The mode of the conclave.
|
22
|
+
# @return [String]
|
23
|
+
attr_reader :mode
|
24
|
+
|
25
|
+
# The amount of challenges that must be completed.
|
26
|
+
# @return [Integer]
|
27
|
+
attr_reader :amount
|
28
|
+
|
29
|
+
# The amount of standing you will gain upon completion.
|
30
|
+
# @return [Integer]
|
31
|
+
attr_reader :standing
|
32
|
+
|
33
|
+
# The title of the challenge.
|
34
|
+
# @return [String]
|
35
|
+
attr_reader :title
|
36
|
+
|
37
|
+
# The category of mission, usually 'weekly' / 'daily'.
|
38
|
+
# @return [String]
|
39
|
+
attr_reader :category
|
40
|
+
|
41
|
+
# Whether or not this is a daily mission.
|
42
|
+
# @return [Boolean]
|
43
|
+
attr_reader :daily
|
44
|
+
|
45
|
+
# The challenge information in a one line string.
|
46
|
+
# @return [String]
|
47
|
+
attr_reader :as_string
|
48
|
+
|
49
|
+
# Whether or not this is a root challenge.
|
50
|
+
# @return [Boolean]
|
51
|
+
attr_reader :root_challenge
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -9,7 +9,7 @@ module Warframe
|
|
9
9
|
# Global Upgrades data model.
|
10
10
|
class GlobalUpgrade < Warframe::Models::Base
|
11
11
|
include Warframe::Models::Attributes::Expired
|
12
|
-
include Warframe::Models::Attributes::
|
12
|
+
include Warframe::Models::Attributes::Desc
|
13
13
|
include Warframe::Models::Attributes::ETA
|
14
14
|
|
15
15
|
# The start of the global upgrade.
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative './base'
|
4
|
+
require_relative 'attributes/id'
|
5
|
+
require_relative 'attributes/expiry'
|
6
|
+
require_relative 'attributes/active'
|
7
|
+
require_relative 'attributes/eta'
|
8
|
+
|
9
|
+
module Warframe
|
10
|
+
module Models
|
11
|
+
# Model for Sortie Data {https://api.warframestat.us/pc/sortie> /:platform/sortie}
|
12
|
+
class Sortie < Warframe::Models::Base
|
13
|
+
include Warframe::Models::Attributes::ID
|
14
|
+
include Warframe::Models::Attributes::Activation
|
15
|
+
include Warframe::Models::Attributes::Expiration
|
16
|
+
include Warframe::Models::Attributes::ETA
|
17
|
+
|
18
|
+
# The boss for this part of the sortie.
|
19
|
+
# @return [String]
|
20
|
+
attr_reader :boss
|
21
|
+
|
22
|
+
# The faction fighting you in this mission.
|
23
|
+
# @return [String]
|
24
|
+
attr_reader :faction
|
25
|
+
|
26
|
+
# Modifiers active for this challenge.
|
27
|
+
# @return [Array<OpenStruct>]
|
28
|
+
attr_reader :variants
|
29
|
+
|
30
|
+
# The reward pool which this is pulling from.
|
31
|
+
# @return [String]
|
32
|
+
attr_reader :reward_pool
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative './base'
|
4
|
+
|
5
|
+
module Warframe
|
6
|
+
module Models
|
7
|
+
# Model for SteelPath Data {https://api.warframestat.us/pc/steelPath> /:platform/steelPath}
|
8
|
+
class SteelPath < Warframe::Models::Base
|
9
|
+
include Warframe::Models::Attributes::Active
|
10
|
+
include Warframe::Models::Attributes::Expiry
|
11
|
+
|
12
|
+
# The currently available item from Teshin.
|
13
|
+
# @return [OpenStruct]
|
14
|
+
attr_reader :current_reward
|
15
|
+
|
16
|
+
# The time remaining of the current reward.
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :remaining
|
19
|
+
|
20
|
+
# Current rotation of items the Arbiters have to offer.
|
21
|
+
# @return [Array<OpenStruct>]
|
22
|
+
attr_reader :rotation
|
23
|
+
|
24
|
+
# Current rotation of items Teshin has to offer.
|
25
|
+
# @return [Array<OpenStruct>]
|
26
|
+
attr_reader :evergreens
|
27
|
+
|
28
|
+
# Current incursion data
|
29
|
+
# @return [OpenStruct]
|
30
|
+
attr_reader :incursions
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative './base'
|
4
|
+
require_relative 'attributes/eta'
|
5
|
+
require_relative 'attributes/id'
|
6
|
+
require_relative 'attributes/active'
|
7
|
+
require_relative 'attributes/start_string'
|
8
|
+
|
9
|
+
module Warframe
|
10
|
+
module Models
|
11
|
+
# Model for SyndicateMission Data {https://api.warframestat.us/pc/syndicateMissions> /:platform/syndicateMissions}
|
12
|
+
class SyndicateMission < Warframe::Models::Base
|
13
|
+
include Warframe::Models::Attributes::ETA
|
14
|
+
include Warframe::Models::Attributes::ID
|
15
|
+
include Warframe::Models::Attributes::ActiveBoth
|
16
|
+
include Warframe::Models::Attributes::StartString
|
17
|
+
|
18
|
+
# 'Jobs' or challenges currently available.
|
19
|
+
# @return [Array<OpenStruct>]
|
20
|
+
attr_reader :jobs
|
21
|
+
|
22
|
+
# The syndicate you will be fighting.
|
23
|
+
# @return [String]
|
24
|
+
attr_reader :syndicate
|
25
|
+
|
26
|
+
# The nodes that this mission is available on.
|
27
|
+
# @return [Array]
|
28
|
+
attr_reader :nodes
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'warframe/models/conclave_challenge'
|
4
|
+
require_relative '../utils'
|
5
|
+
|
6
|
+
module Warframe
|
7
|
+
module REST
|
8
|
+
module API
|
9
|
+
# API endpoint for getting information on current ConclaveChallenge data.
|
10
|
+
#
|
11
|
+
# {https://api.warframestat.us/pc/conclaveChallenges> Example Response}
|
12
|
+
module ConclaveChallenges
|
13
|
+
include Warframe::REST::Utils
|
14
|
+
|
15
|
+
# Gets the current conclave challenges.
|
16
|
+
# @return [Array<Warframe::Models::ConclaveChallenge>]
|
17
|
+
def conclave_challenges
|
18
|
+
get('/conclaveChallenges', Warframe::Models::ConclaveChallenge)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'warframe/models/sortie'
|
4
|
+
require_relative '../utils'
|
5
|
+
|
6
|
+
module Warframe
|
7
|
+
module REST
|
8
|
+
module API
|
9
|
+
# API endpoint for getting information on current Sortie data.
|
10
|
+
#
|
11
|
+
# {https://api.warframestat.us/pc/sortie> Example Response}
|
12
|
+
module Sortie
|
13
|
+
include Warframe::REST::Utils
|
14
|
+
|
15
|
+
# Gets the current sortie missions.
|
16
|
+
# @return [Array<Warframe::Models::Sortie>]
|
17
|
+
def sortie
|
18
|
+
get('/sortie', Warframe::Models::Sortie)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'warframe/models/steel_path'
|
4
|
+
require_relative '../utils'
|
5
|
+
|
6
|
+
module Warframe
|
7
|
+
module REST
|
8
|
+
module API
|
9
|
+
# API endpoint for getting information on current SteelPath data.
|
10
|
+
#
|
11
|
+
# {https://api.warframestat.us/pc/steelPath> Example Response}
|
12
|
+
module SteelPath
|
13
|
+
include Warframe::REST::Utils
|
14
|
+
|
15
|
+
# Steel Path data
|
16
|
+
# @return [Warframe::Models::SteelPath]
|
17
|
+
def steel_path
|
18
|
+
get('/steelPath', Warframe::Models::SteelPath)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'warframe/models/syndicate_mission'
|
4
|
+
require_relative '../utils'
|
5
|
+
|
6
|
+
module Warframe
|
7
|
+
module REST
|
8
|
+
module API
|
9
|
+
# API endpoint for getting information on current SyndicateMission data.
|
10
|
+
#
|
11
|
+
# {https://api.warframestat.us/pc/syndicateMissions> Example Response}
|
12
|
+
module SyndicateMissions
|
13
|
+
include Warframe::REST::Utils
|
14
|
+
|
15
|
+
# Gets the current syndicateMissions Data.
|
16
|
+
# @return [Array<Warframe::Models::SyndicateMission>]
|
17
|
+
def syndicate_missions
|
18
|
+
get('/syndicateMissions', Warframe::Models::SyndicateMission)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/warframe/rest/api.rb
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative 'api/nightwave'
|
4
|
-
require_relative 'api/news'
|
5
3
|
require_relative 'api/alerts'
|
6
|
-
require_relative 'api/
|
4
|
+
require_relative 'api/conclave_challenges'
|
7
5
|
require_relative 'api/global_upgrades'
|
6
|
+
require_relative 'api/invasions'
|
7
|
+
require_relative 'api/news'
|
8
|
+
require_relative 'api/nightwave'
|
9
|
+
require_relative 'api/sortie'
|
10
|
+
require_relative 'api/steel_path'
|
11
|
+
require_relative 'api/syndicate_missions'
|
8
12
|
|
9
13
|
module Warframe
|
10
14
|
# A REST-ful API service, provided by https://api.warframestat.us
|
@@ -16,10 +20,14 @@ module Warframe
|
|
16
20
|
# Module names are 'routes' to this API. See {Warframe::REST::API::Alerts Alerts} for example.
|
17
21
|
module API
|
18
22
|
include Warframe::REST::API::Alerts
|
23
|
+
include Warframe::REST::API::ConclaveChallenges
|
19
24
|
include Warframe::REST::API::GlobalUpgrades
|
20
25
|
include Warframe::REST::API::Invasions
|
21
26
|
include Warframe::REST::API::News
|
22
27
|
include Warframe::REST::API::Nightwave
|
28
|
+
include Warframe::REST::API::Sortie
|
29
|
+
include Warframe::REST::API::SteelPath
|
30
|
+
include Warframe::REST::API::SyndicateMissions
|
23
31
|
end
|
24
32
|
end
|
25
33
|
end
|
data/lib/warframe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warframe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.J. Romaniello
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_underscore
|
@@ -158,6 +158,20 @@ dependencies:
|
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: 1.22.3
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: thor
|
163
|
+
requirement: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - "~>"
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: 0.19.1
|
168
|
+
type: :development
|
169
|
+
prerelease: false
|
170
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - "~>"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: 0.19.1
|
161
175
|
- !ruby/object:Gem::Dependency
|
162
176
|
name: yard
|
163
177
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,15 +192,9 @@ executables: []
|
|
178
192
|
extensions: []
|
179
193
|
extra_rdoc_files: []
|
180
194
|
files:
|
181
|
-
- ".rspec"
|
182
|
-
- ".rubocop.yml"
|
183
195
|
- ".yardopts"
|
184
|
-
- CODE_OF_CONDUCT.md
|
185
|
-
- Gemfile
|
186
|
-
- Gemfile.lock
|
187
196
|
- LICENSE.txt
|
188
197
|
- README.md
|
189
|
-
- Rakefile
|
190
198
|
- lib/warframe.rb
|
191
199
|
- lib/warframe/client_wrapper.rb
|
192
200
|
- lib/warframe/models/alert.rb
|
@@ -199,28 +207,33 @@ files:
|
|
199
207
|
- lib/warframe/models/attributes/start_string.rb
|
200
208
|
- lib/warframe/models/attributes/translations.rb
|
201
209
|
- lib/warframe/models/base.rb
|
210
|
+
- lib/warframe/models/conclave_challenge.rb
|
202
211
|
- lib/warframe/models/global_upgrade.rb
|
203
212
|
- lib/warframe/models/invasion.rb
|
204
213
|
- lib/warframe/models/news.rb
|
205
214
|
- lib/warframe/models/nightwave.rb
|
215
|
+
- lib/warframe/models/sortie.rb
|
216
|
+
- lib/warframe/models/steel_path.rb
|
217
|
+
- lib/warframe/models/syndicate_mission.rb
|
206
218
|
- lib/warframe/rest/api.rb
|
207
219
|
- lib/warframe/rest/api/alerts.rb
|
220
|
+
- lib/warframe/rest/api/conclave_challenges.rb
|
208
221
|
- lib/warframe/rest/api/global_upgrades.rb
|
209
222
|
- lib/warframe/rest/api/invasions.rb
|
210
223
|
- lib/warframe/rest/api/news.rb
|
211
224
|
- lib/warframe/rest/api/nightwave.rb
|
225
|
+
- lib/warframe/rest/api/sortie.rb
|
226
|
+
- lib/warframe/rest/api/steel_path.rb
|
227
|
+
- lib/warframe/rest/api/syndicate_missions.rb
|
212
228
|
- lib/warframe/rest/client.rb
|
213
229
|
- lib/warframe/rest/request.rb
|
214
230
|
- lib/warframe/rest/utils.rb
|
215
231
|
- lib/warframe/version.rb
|
216
|
-
- warframe.gemspec
|
217
232
|
homepage: https://github.com/aj-rom/warframe-ruby
|
218
233
|
licenses:
|
219
234
|
- MIT
|
220
235
|
metadata:
|
221
|
-
|
222
|
-
bug_tracker_uri: https://github.com/aj-rom/warframe-ruby/issues
|
223
|
-
documentation_uri: https://rubydoc.info/gems/warframe/0.1.0
|
236
|
+
rubygems_mfa_required: 'true'
|
224
237
|
post_install_message:
|
225
238
|
rdoc_options: []
|
226
239
|
require_paths:
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
-
|
7
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
-
|
9
|
-
## Our Standards
|
10
|
-
|
11
|
-
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
-
|
13
|
-
* Demonstrating empathy and kindness toward other people
|
14
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
-
* Giving and gracefully accepting constructive feedback
|
16
|
-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
-
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
-
|
19
|
-
Examples of unacceptable behavior include:
|
20
|
-
|
21
|
-
* The use of sexualized language or imagery, and sexual attention or
|
22
|
-
advances of any kind
|
23
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
-
* Public or private harassment
|
25
|
-
* Publishing others' private information, such as a physical or email
|
26
|
-
address, without their explicit permission
|
27
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
-
professional setting
|
29
|
-
|
30
|
-
## Enforcement Responsibilities
|
31
|
-
|
32
|
-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
-
|
34
|
-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
-
|
36
|
-
## Scope
|
37
|
-
|
38
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
-
|
40
|
-
## Enforcement
|
41
|
-
|
42
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ajiellodev@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
-
|
44
|
-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
-
|
46
|
-
## Enforcement Guidelines
|
47
|
-
|
48
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
-
|
50
|
-
### 1. Correction
|
51
|
-
|
52
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
-
|
54
|
-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
-
|
56
|
-
### 2. Warning
|
57
|
-
|
58
|
-
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
-
|
60
|
-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
-
|
62
|
-
### 3. Temporary Ban
|
63
|
-
|
64
|
-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
-
|
66
|
-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
-
|
68
|
-
### 4. Permanent Ban
|
69
|
-
|
70
|
-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
-
|
72
|
-
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
-
|
74
|
-
## Attribution
|
75
|
-
|
76
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
-
|
79
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
-
|
81
|
-
[homepage]: https://www.contributor-covenant.org
|
82
|
-
|
83
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
warframe (0.1.0)
|
5
|
-
fast_underscore (~> 0.3.2)
|
6
|
-
http (~> 5.0, >= 5.0.4)
|
7
|
-
json (~> 2.6, >= 2.6.1)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
activesupport (5.2.6)
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
-
i18n (>= 0.7, < 2)
|
15
|
-
minitest (~> 5.1)
|
16
|
-
tzinfo (~> 1.1)
|
17
|
-
addressable (2.8.0)
|
18
|
-
public_suffix (>= 2.0.2, < 5.0)
|
19
|
-
ast (2.4.2)
|
20
|
-
concurrent-ruby (1.1.9)
|
21
|
-
diff-lcs (1.4.4)
|
22
|
-
domain_name (0.5.20190701)
|
23
|
-
unf (>= 0.0.5, < 1.0.0)
|
24
|
-
fast_underscore (0.3.2)
|
25
|
-
ffi (1.15.4)
|
26
|
-
ffi (1.15.4-x64-mingw32)
|
27
|
-
ffi-compiler (1.0.1)
|
28
|
-
ffi (>= 1.0.0)
|
29
|
-
rake
|
30
|
-
http (5.0.4)
|
31
|
-
addressable (~> 2.8)
|
32
|
-
http-cookie (~> 1.0)
|
33
|
-
http-form_data (~> 2.2)
|
34
|
-
llhttp-ffi (~> 0.4.0)
|
35
|
-
http-cookie (1.0.4)
|
36
|
-
domain_name (~> 0.5)
|
37
|
-
http-form_data (2.3.0)
|
38
|
-
i18n (1.8.11)
|
39
|
-
concurrent-ruby (~> 1.0)
|
40
|
-
json (2.6.1)
|
41
|
-
llhttp-ffi (0.4.0)
|
42
|
-
ffi-compiler (~> 1.0)
|
43
|
-
rake (~> 13.0)
|
44
|
-
minitest (5.14.4)
|
45
|
-
parallel (1.21.0)
|
46
|
-
parser (3.0.2.0)
|
47
|
-
ast (~> 2.4.1)
|
48
|
-
public_suffix (4.0.6)
|
49
|
-
rainbow (3.0.0)
|
50
|
-
rake (13.0.6)
|
51
|
-
regexp_parser (2.1.1)
|
52
|
-
rexml (3.2.5)
|
53
|
-
rspec (3.10.0)
|
54
|
-
rspec-core (~> 3.10.0)
|
55
|
-
rspec-expectations (~> 3.10.0)
|
56
|
-
rspec-mocks (~> 3.10.0)
|
57
|
-
rspec-core (3.10.1)
|
58
|
-
rspec-support (~> 3.10.0)
|
59
|
-
rspec-expectations (3.10.1)
|
60
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
61
|
-
rspec-support (~> 3.10.0)
|
62
|
-
rspec-mocks (3.10.2)
|
63
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
-
rspec-support (~> 3.10.0)
|
65
|
-
rspec-support (3.10.3)
|
66
|
-
rubocop (1.22.3)
|
67
|
-
parallel (~> 1.10)
|
68
|
-
parser (>= 3.0.0.0)
|
69
|
-
rainbow (>= 2.2.2, < 4.0)
|
70
|
-
regexp_parser (>= 1.8, < 3.0)
|
71
|
-
rexml
|
72
|
-
rubocop-ast (>= 1.12.0, < 2.0)
|
73
|
-
ruby-progressbar (~> 1.7)
|
74
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
75
|
-
rubocop-ast (1.13.0)
|
76
|
-
parser (>= 3.0.1.1)
|
77
|
-
ruby-progressbar (1.11.0)
|
78
|
-
thread_safe (0.3.6)
|
79
|
-
tzinfo (1.2.9)
|
80
|
-
thread_safe (~> 0.1)
|
81
|
-
unf (0.1.4)
|
82
|
-
unf_ext
|
83
|
-
unf_ext (0.0.8)
|
84
|
-
unf_ext (0.0.8-x64-mingw32)
|
85
|
-
unicode-display_width (2.1.0)
|
86
|
-
yard (0.9.26)
|
87
|
-
|
88
|
-
PLATFORMS
|
89
|
-
x64-mingw32
|
90
|
-
x86_64-darwin-19
|
91
|
-
x86_64-linux
|
92
|
-
|
93
|
-
DEPENDENCIES
|
94
|
-
activesupport (~> 5.0, >= 5.0.0.1)
|
95
|
-
bundler (~> 2.1, >= 2.2.31)
|
96
|
-
rake (~> 13.0, >= 13.0.6)
|
97
|
-
rspec (~> 3.10)
|
98
|
-
rubocop (~> 1.22, >= 1.22.3)
|
99
|
-
warframe!
|
100
|
-
yard (~> 0.9.26)
|
101
|
-
|
102
|
-
BUNDLED WITH
|
103
|
-
2.2.31
|
data/Rakefile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
require 'rubocop/rake_task'
|
6
|
-
|
7
|
-
RSpec::Core::RakeTask.new(:test)
|
8
|
-
RuboCop::RakeTask.new(:lint) do |t|
|
9
|
-
t.options = %w[-A --extra-details]
|
10
|
-
end
|
11
|
-
|
12
|
-
task default: :spec
|
data/warframe.gemspec
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/warframe/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
# Required
|
7
|
-
spec.name = 'warframe'
|
8
|
-
spec.version = Warframe::VERSION
|
9
|
-
spec.authors = ['A.J. Romaniello']
|
10
|
-
|
11
|
-
# Descriptive
|
12
|
-
spec.summary = 'A Ruby interface to the WarframeStat API.'
|
13
|
-
spec.description = spec.summary
|
14
|
-
spec.license = 'MIT'
|
15
|
-
spec.homepage = 'https://github.com/aj-rom/warframe-ruby'
|
16
|
-
|
17
|
-
# MetaData
|
18
|
-
spec.metadata['source_code_uri'] = 'https://github.com/aj-rom/warframe-ruby'
|
19
|
-
spec.metadata['bug_tracker_uri'] = "#{spec.metadata['source_code_uri']}/issues"
|
20
|
-
spec.metadata['documentation_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}"
|
21
|
-
|
22
|
-
# Executables / Files
|
23
|
-
spec.bindir = 'exe'
|
24
|
-
spec.require_paths = ['lib']
|
25
|
-
|
26
|
-
# Specify which files should be added to the gem when it is released.
|
27
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
28
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
29
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
30
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
|
35
|
-
# Dependencies
|
36
|
-
spec.required_ruby_version = '>= 2.5.0'
|
37
|
-
spec.add_dependency 'fast_underscore', '~> 0.3.2'
|
38
|
-
spec.add_dependency 'http', '~> 5.0', '>= 5.0.4'
|
39
|
-
spec.add_dependency 'json', '~> 2.6', '>= 2.6.1'
|
40
|
-
spec.add_development_dependency 'activesupport', '~> 5.0', '>= 5.0.0.1'
|
41
|
-
spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.2.31'
|
42
|
-
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
43
|
-
spec.add_development_dependency 'rspec', '~> 3.10'
|
44
|
-
spec.add_development_dependency 'rubocop', '~> 1.22', '>= 1.22.3'
|
45
|
-
spec.add_development_dependency 'yard', '~> 0.9.26'
|
46
|
-
end
|