minecraft-data 0.1.1 → 0.1.2

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: b01f69a3a7d15f06f46d81c2d7651e084c9cfe91ccf85e380c77ec40f450ffd3
4
- data.tar.gz: 48a2b7bb4b91de47a30de0221e7de149e575dabf27a7ccc74a2e97db09f69d3b
3
+ metadata.gz: ea3560f24a206a8bc2892ee58b13dc6fa81feb55bcf07ebe10b4d86f8371c4a4
4
+ data.tar.gz: 313ffea36aa3078b5ba39d86b44843e931d03eb424ebcda037608979231ac7f4
5
5
  SHA512:
6
- metadata.gz: b03970aafc4c51525d46d02ec7af3f0de7c3556a8a03939974609bd8d3eb4ee16a8937950e98576f6be82f52225090787d94cd8d9156efa33607d6bd0af6a90b
7
- data.tar.gz: b33cb1306820313e5763e2c5475be0222ee7b03685e89c0d5cc8bee1d5be63c8d5a93f08e50644f83af82e000f21fca60963152116af959fe856e410ef34f6f2
6
+ metadata.gz: 8d99f0522fd38efc5688096e3472010adec925bf465948f85ab36b21411371023b6acd8093de96a89e5aeacc969ed9ed0910a672ce60bb0fee5df2c2f7f97722
7
+ data.tar.gz: f4f7098f4ba6cf388fe94c6db4a29bdb138b646d6a934d224a8948ae9cd9cc4a30ec2d7218ab1089c20fc50398e222d6f137ab127d4e0d36a0cd4a51bcab99cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minecraft-data (0.1.0)
4
+ minecraft-data (0.1.1)
5
5
  json (~> 2.3)
6
6
  uuidtools (~> 2.1, >= 2.1.5)
7
7
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Minecraft Data is a dead simple ruby gem to gather different pieces of information related to Minecraft player profiles.
4
4
 
5
- Services:
5
+ Services used:
6
6
  * https://github.com/Electroid/mojang-api - User data.
7
7
  * https://api.ashcon.app/mojang/v1/user/Notch
8
8
  * https://crafatar.com - Skin heads.
@@ -61,14 +61,14 @@ Output:
61
61
  Retrieves a link pointing to an image of the given user's skin head. `true` or `false` depending on whether you want the skin's overlay to be present or not.
62
62
 
63
63
  ```ruby
64
- Minecraft::Data.head_url_of('069a79f4-44e9-4726-a5be-fca90e38aaf5', true)
65
- Minecraft::Data.head_url_of('069a79f4-44e9-4726-a5be-fca90e38aaf5', false)
64
+ Minecraft::Data.head_url_of('069a79f4-44e9-4726-a5be-fca90e38aaf5', true, 90)
65
+ Minecraft::Data.head_url_of('069a79f4-44e9-4726-a5be-fca90e38aaf5', false, 180)
66
66
  ```
67
67
 
68
68
  Output:
69
69
  ```
70
- https://crafatar.com/avatars/2cef6d05-ec9a-44b3-bedc-53359c68ae65?overlay
71
- https://crafatar.com/avatars/2cef6d05-ec9a-44b3-bedc-53359c68ae65
70
+ https://crafatar.com/avatars/2cef6d05-ec9a-44b3-bedc-53359c68ae65?overlay&size=90
71
+ https://crafatar.com/avatars/2cef6d05-ec9a-44b3-bedc-53359c68ae65?size=180
72
72
  ```
73
73
 
74
74
  ## Development
@@ -1,5 +1,5 @@
1
1
  module Minecraft
2
2
  module Data
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.1.2'.freeze
4
4
  end
5
5
  end
@@ -72,11 +72,11 @@ module Minecraft
72
72
  end
73
73
  end
74
74
 
75
- def head_url_of(uuid, overlay)
75
+ def head_url_of(uuid, overlay, size)
76
76
  if overlay
77
- "#{HEADS_API}/#{uuid}?overlay"
77
+ "#{HEADS_API}/#{uuid}?overlay&size=#{size}"
78
78
  else
79
- "#{HEADS_API}/#{uuid}"
79
+ "#{HEADS_API}/#{uuid}&size=#{size}"
80
80
  end
81
81
  end
82
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minecraft-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Benavente
@@ -54,8 +54,6 @@ files:
54
54
  - ".github/CODEOWNERS"
55
55
  - ".gitignore"
56
56
  - ".rspec"
57
- - ".travis.yml"
58
- - CODE_OF_CONDUCT.md
59
57
  - Gemfile
60
58
  - Gemfile.lock
61
59
  - LICENCE.txt
@@ -65,7 +63,6 @@ files:
65
63
  - bin/setup
66
64
  - lib/minecraft/data.rb
67
65
  - lib/minecraft/data/version.rb
68
- - minecraft-data-0.1.0.gem
69
66
  - minecraft-data.gemspec
70
67
  homepage: https://github.com/BGMP/minecraft-data
71
68
  licenses:
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.5
6
- before_install: gem install bundler -v 2.1.4
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at bgmp00@protonmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [https://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: https://contributor-covenant.org
74
- [version]: https://contributor-covenant.org/version/1/4/
Binary file