mlb_rb 0.0.4 → 0.0.7

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: 9425c40e4217cb73a792654e606c3bf7f2433f666a4ce3d07a0f30a10429f073
4
- data.tar.gz: 5a9442a40f8e4a6b5b01545f31253159fce41a937b9922918e0fdfbf27020e12
3
+ metadata.gz: f04c90dd85847de2e3855ba6e0b86fb34ea705ca161476f9769a17219b3f2a72
4
+ data.tar.gz: dd9b289883845b78ff6d1a1e982a0ad0e358cbfdc1fa87df63d1518472c904c4
5
5
  SHA512:
6
- metadata.gz: cb2cb494634507cf491832e7b6a2133e933c25867f034388c7b4617eca2fc1999a297109b5dc13a8b277f8537c59b0051041ed0b9f3a244d806e9d614ae46f9e
7
- data.tar.gz: fff2f9342f928a7df737e8b3b21d6c25ab5cf4a8a19d8b2d78e247e0ea9f8ffe309e42ddb3a23fbc07f16041c68e250b1c36163a5eb01c85e0bfc244b1c97526
6
+ metadata.gz: c7f50d0a9ea39116a14ff1d22af1873f2e90c4353507c76a61a00a5357f8a9bec068fe25c0f30a4c498cd31314b3b82ac7f3ef689a6883cff086da53ae7ce1ac
7
+ data.tar.gz: 23f870ff859aa70500d0b9d4c258a119bc701ae99f39cbf2650608988db0f637c74ada152140c300aa71cbfa0564f41fed44f28eb5eb05ec526d4ffd073d6cd9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.0.7] - 2022-04-27
4
+
5
+ - Trying to fix things
6
+
7
+ ## [0.0.6] - 2022-04-26
8
+
9
+ - Fix gemspec spec.files
10
+
11
+ ## [0.0.5] - 2022-04-09
12
+
13
+ - Change to only pull games that are final
14
+
3
15
  ## [0.0.4] - 2022-03-26
4
16
 
5
17
  - Clean up main class and extract games methods to MlbRb::Games class
data/Gemfile CHANGED
@@ -6,7 +6,5 @@ source "https://rubygems.org"
6
6
  gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
9
-
10
9
  gem "rspec", "~> 3.0"
11
-
12
10
  gem "standard", "~> 1.3"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mlb_rb (0.0.4)
4
+ mlb_rb (0.0.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/mlb_rb/client.rb CHANGED
@@ -13,8 +13,11 @@ module MlbRb
13
13
 
14
14
  def parse_games_by_date_response
15
15
  JSON.parse(json_response)["dates"].map do |date_hash|
16
- date_hash["games"].map { |game| Game.new(game) }
17
- end.flatten
16
+ date_hash["games"].map do |game|
17
+ final_state = game["status"]["detailedState"] == "Final"
18
+ Game.new(game) if final_state
19
+ end
20
+ end.flatten.compact
18
21
  end
19
22
 
20
23
  class << self
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MlbRb
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.7"
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlb_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Miranda
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-26 00:00:00.000000000 Z
11
+ date: 2022-04-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description:
14
14
  email:
15
15
  - mmiranda@doximity.com
16
16
  executables: []
@@ -35,7 +35,6 @@ files:
35
35
  - lib/mlb_rb/games.rb
36
36
  - lib/mlb_rb/team.rb
37
37
  - lib/mlb_rb/version.rb
38
- - mlb_rb.gemspec
39
38
  - sig/mlb_rb.rbs
40
39
  homepage: https://www.github.com/notmarkmiranda/mlb_rb
41
40
  licenses:
@@ -44,7 +43,7 @@ metadata:
44
43
  homepage_uri: https://www.github.com/notmarkmiranda/mlb_rb
45
44
  source_code_uri: https://www.github.com/notmarkmiranda/mlb_rb
46
45
  changelog_uri: https://www.github.com/notmarkmiranda/mlb_rb/blob/main/CHANGELOG.md
47
- post_install_message:
46
+ post_install_message:
48
47
  rdoc_options: []
49
48
  require_paths:
50
49
  - lib
@@ -59,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
58
  - !ruby/object:Gem::Version
60
59
  version: '0'
61
60
  requirements: []
62
- rubygems_version: 3.2.32
63
- signing_key:
61
+ rubygems_version: 3.0.3
62
+ signing_key:
64
63
  specification_version: 4
65
64
  summary: MLB API Wrapper for Ruby
66
65
  test_files: []
data/mlb_rb.gemspec DELETED
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/mlb_rb/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "mlb_rb"
7
- spec.version = MlbRb::VERSION
8
- spec.authors = ["Mark Miranda"]
9
- spec.email = ["mmiranda@doximity.com"]
10
-
11
- spec.summary = "MLB API Wrapper for Ruby"
12
- spec.homepage = "https://www.github.com/notmarkmiranda/mlb_rb"
13
- spec.license = "MIT"
14
- spec.required_ruby_version = ">= 2.6.0"
15
-
16
- spec.metadata["homepage_uri"] = spec.homepage
17
- spec.metadata["source_code_uri"] = spec.homepage
18
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
19
-
20
- # Specify which files should be added to the gem when it is released.
21
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
- `git ls-files -z`.split("\x0").reject do |f|
24
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
- end
26
- end
27
- spec.bindir = "exe"
28
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
- spec.require_paths = ["lib"]
30
-
31
- # Uncomment to register a new dependency of your gem
32
- # spec.add_dependency "example-gem", "~> 1.0"
33
-
34
- # For more information and examples about making a new gem, check out our
35
- # guide at: https://bundler.io/guides/creating_gem.html
36
- end