minecraft_items 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minecraft_items.rb +4 -1
- data/minecraft_items.gemspec +1 -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: 403571ef2b33e0bc1d5ffc04b3221b19120b23d776ad24cd62bfb9ba939b7968
|
4
|
+
data.tar.gz: 7d7fd4a61c1c52f10bff4994681150746d9d9e3d36a0c77c94c32f6c777a5fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b9e8cdefdcb74b4d75dcb4ed8273c8992c23a96a638bfe26274f7cc99546157d7b96211532d416fd0474fbbf4426eb16e382fd6d973906a4d8c2a2de1b14e7
|
7
|
+
data.tar.gz: 4c9f5a3e12cb7a0d4613447e4abae9996e92a50dc9ab0303dec678dd7d4b62355fc6fc723f4c3f191ca215deacbd618d598e41e510575a34dfd85d196ca49194
|
data/lib/minecraft_items.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'active_support/core_ext/hash/indifferent_access'
|
2
|
+
require 'active_support/core_ext/string/inflections'
|
2
3
|
require 'block_types'
|
3
4
|
|
4
5
|
class MinecraftItems
|
@@ -6,7 +7,9 @@ class MinecraftItems
|
|
6
7
|
include BlockTypes
|
7
8
|
|
8
9
|
def method_missing(method_name)
|
9
|
-
if method_name.to_s.include?("
|
10
|
+
if method_name.to_s.include?("all_variants_and_types")
|
11
|
+
(minecraft_variants.values + minecraft_types.values).flatten.map { |type_or_variant| type_or_variant.titleize}.sort
|
12
|
+
elsif method_name.to_s.include?("all_types")
|
10
13
|
minecraft_types
|
11
14
|
elsif method_name.to_s.include?("all_variants")
|
12
15
|
minecraft_variants
|
data/minecraft_items.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'minecraft_items'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.5'
|
4
4
|
s.licenses = ['MIT']
|
5
5
|
s.summary = "A list of most minecraft items"
|
6
6
|
s.description = "With a few simple commands return all the types of blocks as well as each types variant."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minecraft_items
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximilian Alexander
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-03-
|
12
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: With a few simple commands return all the types of blocks as well as
|
15
15
|
each types variant.
|