eivu_video_game_info 1.1.1 → 1.1.3

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: 636de9437f1f1daff2e6856a5b36b824c1c9d1acd85e20b675b0421d96d5ec98
4
- data.tar.gz: 0072a5f8d1159542d8aba84f1a121973575e8b63d3268ead7192dd8b00cb9f38
3
+ metadata.gz: 7c8db20f9ae11f3b563d7c37b936856213561a7529c2e53455914f04f2d7ee8e
4
+ data.tar.gz: 905ec1b74a66bb69303a1c0ec13d0e249110b2a864ba16502186e0f0aad0c44c
5
5
  SHA512:
6
- metadata.gz: 5a9c9f14c11820f064387fbacdc61acc8e01f810a71f6d7cf43d1ad4aa919b329aca3010cc07bcc72c5456f0f3466ebebad4adb6446c6a6da277be4675a8d652
7
- data.tar.gz: 35da7663c5ad268b9cd3ac09d98f655e4f808a4d3f6cb85c759e24112eab33a12adce8be7dfb626fb5481ff565d49bf8b63238168e8cd32a0c38518a7481ceb1
6
+ metadata.gz: 5c0ae618b4bf1d7227b9a617e41da70e01ca4eb935b708d0a8ea193b73b0f4bd7396425ef59c6c61fe4226e71d36847930f6bc8790380a2de2f9c042d5a7f530
7
+ data.tar.gz: 0d1519b8a42873cdc9eb36ccd334387b3f1e2b380b3fede522930fe2911f4ec81fc1cb3ab80a9bdbde7a30ee4a505d536968e1b34298c25fbf740f7606bf76d5
data/.rubocop.yml CHANGED
@@ -1,5 +1,17 @@
1
- require:
2
- - rubocop
1
+ AllCops:
2
+ TargetRubyVersion: 3.2.5
3
+
4
+ NewCops: enable
5
+ SuggestExtensions: false
6
+ Exclude:
7
+ - notes/**/*
8
+ - spec/support/vcr_helper.rb
9
+ - spec/spec_helper.rb
10
+ Style/StringLiterals:
11
+ EnforcedStyle: double_quotes
12
+
13
+ Style/StringLiteralsInInterpolation:
14
+ EnforcedStyle: double_quotes
3
15
 
4
16
  # We want some defaults merged instead of overwriting them.
5
17
  inherit_mode:
@@ -8,14 +20,6 @@ inherit_mode:
8
20
  - AllowedNames # for Naming/Uncommunicative* cops
9
21
  - IgnoredMethods # for Style/SymbolProc
10
22
 
11
- AllCops:
12
- TargetRubyVersion: 3.1
13
- NewCops: enable
14
- SuggestExtensions: false
15
- Exclude:
16
- - notes/**/*
17
- - spec/support/vcr_helper.rb
18
- - spec/spec_helper.rb
19
23
 
20
24
  Style/Documentation:
21
25
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.0] - 2025-03-23
3
+ ## [1.1.1] - 2025-03-23
4
4
 
5
- - Initial release
5
+ - Code has been refacorted so it can be a gem
data/README.md CHANGED
@@ -1,34 +1,50 @@
1
1
  # EivuVideoGameInfo
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ ruby client for parsing data sourced from [https://www.launchbox-app.com/](https://www.launchbox-app.com/)
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/eivu_video_game_info`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Only Supporting Cartridges for Rom format matching, Disc based system are all .bin, .cue, and .iso.
6
+ Not only impossible to distinguish but is not supported on the browser rom emulator
6
7
 
7
- ## Installation
8
+ Dependendicies
9
+ sqlite
10
+ unar - https://theunarchiver.com/
8
11
 
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
12
+ ## Installation
10
13
 
11
- Install the gem and add to the application's Gemfile by executing:
14
+ TODO: Replace You can install it as a gem:
12
15
 
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
16
+ ```
17
+ gem install eivu_video_game_info
18
+ ```
14
19
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
20
+ or add it into a Gemfile (Bundler):
16
21
 
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
22
+ ```ruby
23
+ gem 'eivu_video_game_info'
24
+ ```
18
25
 
19
26
  ## Usage
20
27
 
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+ ```ruby
29
+ path_to_rom = "spec/fixtures/roms/gba/butano-fighter.gba"
30
+ EivuVideoGameInfo::Loader.setup # placed for historical purposes only
31
+ # create a list of all matched and unmatched roms in folder & subfolders
32
+ EivuVideoGameInfo::Utils.inspect_library(path_to_roms)
33
+ # extract all archives in folder & subfolders
34
+ EivuVideoGameInfo::Utils.extract_all(path_to_roms)
35
+ # retrieve info for a rom
36
+ EivuVideoGameInfo::Models::Game.fetch_rom_info(path_to_rom)
37
+ # retrieve info for a rom, in json format
38
+ EivuVideoGameInfo::Models::Game.fetch_rom_info_as_json(path_to_rom_file)
39
+ # (used internally) create unique slug from rom filename
40
+ EivuVideoGameInfo::Models::Game.slugify_rom(path_to_rom_file)
41
+ # (used internally) create unique slug from string
42
+ EivuVideoGameInfo::Models::Game.slugify_string(path_to_rom_file)
43
+ ```
28
44
 
29
45
  ## Contributing
30
46
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/eivu_video_game_info. 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/[USERNAME]/eivu_video_game_info/blob/master/CODE_OF_CONDUCT.md).
47
+ Bug reports and pull requests are welcome on GitHub at https://github.com/eivu/eivu_video_game_info. 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/eivu/video-game-info-ruby/blob/main/CODE_OF_CONDUCT.md).
32
48
 
33
49
  ## License
34
50
 
@@ -36,4 +52,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
36
52
 
37
53
  ## Code of Conduct
38
54
 
39
- Everyone interacting in the EivuVideoGameInfo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/eivu_video_game_info/blob/master/CODE_OF_CONDUCT.md).
55
+ Everyone interacting in the EivuVideoGameInfo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/eivu/blob/main/CODE_OF_CONDUCT.md).
@@ -1,4 +1,4 @@
1
- require 'active_record'
1
+ require "active_record"
2
2
 
3
3
  module EivuVideoGameInfo
4
4
  module Models
@@ -7,14 +7,9 @@ module EivuVideoGameInfo
7
7
  extend ActiveSupport::Concern
8
8
 
9
9
  included do
10
- ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: 'lib/eivu_video_game_info/db/db.sqlite3')
10
+ ActiveRecord::Base.establish_connection(adapter: "sqlite3",
11
+ database: "lib/eivu_video_game_info/db/db.sqlite3")
11
12
  end
12
-
13
- # module InstanceMethods
14
- # def save
15
- # # save the record
16
- # end
17
- # end
18
13
  end
19
14
  end
20
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EivuVideoGameInfo
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.3"
5
5
  end
@@ -2,16 +2,10 @@
2
2
 
3
3
  require_relative "eivu_video_game_info/version"
4
4
 
5
- require 'zeitwerk'
5
+ require "zeitwerk"
6
6
  loader = Zeitwerk::Loader.for_gem
7
7
  loader.setup # ready!
8
8
 
9
-
10
-
11
9
  module EivuVideoGameInfo
12
10
  class Error < StandardError; end
13
-
14
- # def self.greeting
15
- # "Hello from EivuVideoGameInfo!"
16
- # end
17
11
  end
metadata CHANGED
@@ -1,14 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eivu_video_game_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Jenkins
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
10
+ date: 2025-04-07 00:00:00.000000000 Z
11
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: activerecord
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 6.1.4
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '8.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 6.1.4
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '8.0'
12
32
  - !ruby/object:Gem::Dependency
13
33
  name: activesupport
14
34
  requirement: !ruby/object:Gem::Requirement
@@ -87,22 +107,16 @@ dependencies:
87
107
  name: sqlite3
88
108
  requirement: !ruby/object:Gem::Requirement
89
109
  requirements:
90
- - - "~>"
91
- - !ruby/object:Gem::Version
92
- version: '2.0'
93
110
  - - ">="
94
111
  - !ruby/object:Gem::Version
95
- version: 2.0.2
112
+ version: '1.4'
96
113
  type: :runtime
97
114
  prerelease: false
98
115
  version_requirements: !ruby/object:Gem::Requirement
99
116
  requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '2.0'
103
117
  - - ">="
104
118
  - !ruby/object:Gem::Version
105
- version: 2.0.2
119
+ version: '1.4'
106
120
  - !ruby/object:Gem::Dependency
107
121
  name: zeitwerk
108
122
  requirement: !ruby/object:Gem::Requirement
@@ -158,6 +172,7 @@ licenses:
158
172
  metadata:
159
173
  homepage_uri: https://github.com/eivu/video-game-info-ruby
160
174
  source_code_uri: https://github.com/eivu/video-game-info-ruby
175
+ changelog_uri: https://github.com/eivu/video-game-info-ruby/blob/main/CHANGELOG.md
161
176
  rubygems_mfa_required: 'true'
162
177
  rdoc_options: []
163
178
  require_paths: