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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41511a9b8e715a1cf1e4fdb1892bc5a46696eeb9323fb315843bbd5b113f32c1
4
- data.tar.gz: 14f194c56b4e37b08814e6032d52a00c9089f2d5eb4a4cf1adf0cf747e759fd8
3
+ metadata.gz: 403571ef2b33e0bc1d5ffc04b3221b19120b23d776ad24cd62bfb9ba939b7968
4
+ data.tar.gz: 7d7fd4a61c1c52f10bff4994681150746d9d9e3d36a0c77c94c32f6c777a5fd2
5
5
  SHA512:
6
- metadata.gz: d1257c21053b9fe531f73b587f7d6276700114851f64fe17a08bf5fcd6b957d883fc940fc570e3f94c5cbcd7016d142b66af141e44260aae26e192e867c41f8f
7
- data.tar.gz: 0f2c08f7dc3bf386fad3eb04015f8fc2ddf68f6a9c04ecfd2e50e45e6ac9a3cd6214aa06f30c38f21409ef5c819211725d0806beff9315ebed29ab5ecd5574ae
6
+ metadata.gz: d3b9e8cdefdcb74b4d75dcb4ed8273c8992c23a96a638bfe26274f7cc99546157d7b96211532d416fd0474fbbf4426eb16e382fd6d973906a4d8c2a2de1b14e7
7
+ data.tar.gz: 4c9f5a3e12cb7a0d4613447e4abae9996e92a50dc9ab0303dec678dd7d4b62355fc6fc723f4c3f191ca215deacbd618d598e41e510575a34dfd85d196ca49194
@@ -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?("all_types")
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'minecraft_items'
3
- s.version = '0.1.4'
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
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-20 00:00:00.000000000 Z
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.