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 +4 -4
- data/.rubocop.yml +14 -10
- data/CHANGELOG.md +2 -2
- data/README.md +33 -17
- data/lib/eivu_video_game_info/models/concerns/active_recordable.rb +3 -8
- data/lib/eivu_video_game_info/version.rb +1 -1
- data/lib/eivu_video_game_info.rb +1 -7
- metadata +25 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c8db20f9ae11f3b563d7c37b936856213561a7529c2e53455914f04f2d7ee8e
|
4
|
+
data.tar.gz: 905ec1b74a66bb69303a1c0ec13d0e249110b2a864ba16502186e0f0aad0c44c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c0ae618b4bf1d7227b9a617e41da70e01ca4eb935b708d0a8ea193b73b0f4bd7396425ef59c6c61fe4226e71d36847930f6bc8790380a2de2f9c042d5a7f530
|
7
|
+
data.tar.gz: 0d1519b8a42873cdc9eb36ccd334387b3f1e2b380b3fede522930fe2911f4ec81fc1cb3ab80a9bdbde7a30ee4a505d536968e1b34298c25fbf740f7606bf76d5
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,17 @@
|
|
1
|
-
|
2
|
-
|
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
data/README.md
CHANGED
@@ -1,34 +1,50 @@
|
|
1
1
|
# EivuVideoGameInfo
|
2
2
|
|
3
|
-
|
3
|
+
ruby client for parsing data sourced from [https://www.launchbox-app.com/](https://www.launchbox-app.com/)
|
4
4
|
|
5
|
-
|
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
|
-
|
8
|
+
Dependendicies
|
9
|
+
sqlite
|
10
|
+
unar - https://theunarchiver.com/
|
8
11
|
|
9
|
-
|
12
|
+
## Installation
|
10
13
|
|
11
|
-
|
14
|
+
TODO: Replace You can install it as a gem:
|
12
15
|
|
13
|
-
|
16
|
+
```
|
17
|
+
gem install eivu_video_game_info
|
18
|
+
```
|
14
19
|
|
15
|
-
|
20
|
+
or add it into a Gemfile (Bundler):
|
16
21
|
|
17
|
-
|
22
|
+
```ruby
|
23
|
+
gem 'eivu_video_game_info'
|
24
|
+
```
|
18
25
|
|
19
26
|
## Usage
|
20
27
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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/
|
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/
|
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
|
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:
|
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
|
data/lib/eivu_video_game_info.rb
CHANGED
@@ -2,16 +2,10 @@
|
|
2
2
|
|
3
3
|
require_relative "eivu_video_game_info/version"
|
4
4
|
|
5
|
-
require
|
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.
|
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-
|
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:
|
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:
|
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:
|