custom-motorcycle-helmet-styles 1.0.0
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 +7 -0
- data/LICENSE +21 -0
- data/README.md +25 -0
- data/data/styles.json +44 -0
- data/lib/custom_motorcycle_helmet_styles.rb +19 -0
- metadata +52 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0f0fe385c8fea86a974294f40afdd632cb7748abbe03e7f98ddf195296fa7ff2
|
|
4
|
+
data.tar.gz: b681793900bc230ee9fa8b3d3bcbe04c13e3d78855fcf23cf0aca1a81612a6fc
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ff42451f17a520a2ebc696c7e4acfad4cf3cc525c37648e2530640e62b535b35ca7cbd00b2bd62d038c497f8d614daa8eebc60d72a531782ccd195bae504f82c
|
|
7
|
+
data.tar.gz: 6eebf563349ca326b27ec09288dee74b7be266099bec77596353ef7d9c99e05a78e7f01d2191abafe058156a222a1cb5f429cfd59a6e41706dfc8a3a9cff7f32
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Custom Graphics Reference Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# custom-motorcycle-helmet-styles
|
|
2
|
+
|
|
3
|
+
Zero-dependency Ruby reference catalog covering 33 motorcycle helmet shell silhouettes across 5 rider categories, hardware traits, 6 paintable zone keys and 5 finish presets.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
gem install custom-motorcycle-helmet-styles
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Quick Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'custom_motorcycle_helmet_styles'
|
|
17
|
+
|
|
18
|
+
puts CustomMotorcycleHelmetStyles.all.size
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Data Source and Live Studio
|
|
22
|
+
|
|
23
|
+
Maintained by [Custom Motorcycle Helmet](https://custommotorcyclehelmet.com) and its interactive [3D motorcycle helmet designer](https://custommotorcyclehelmet.com/design?utm_source=rubygems&utm_medium=referral&utm_campaign=rubygems).
|
|
24
|
+
|
|
25
|
+
Companion repository and interactive table: [GitHub](https://github.com/dirt-bike-graphics/custom-motorcycle-helmet) | [dirt-bike-graphics.github.io/custom-motorcycle-helmet/](https://dirt-bike-graphics.github.io/custom-motorcycle-helmet/)
|
data/data/styles.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Custom Motorcycle Helmet Shell Styles",
|
|
3
|
+
"source": "https://custommotorcyclehelmet.com",
|
|
4
|
+
"designer": "https://custommotorcyclehelmet.com/design",
|
|
5
|
+
"updated": "2026-11-15",
|
|
6
|
+
"total": 33,
|
|
7
|
+
"finishes": ["gloss", "matte", "chrome", "pearl", "carbon-fiber"],
|
|
8
|
+
"zones": ["crown", "forehead", "chin", "sides", "back", "neck"],
|
|
9
|
+
"styles": [
|
|
10
|
+
{ "id": "t1_peak", "category": "Full face", "model": "Retro full face", "hasPeak": true, "hasChinBar": true },
|
|
11
|
+
{ "id": "elementza", "category": "Full face", "model": "Modern full face", "hasPeak": false, "hasChinBar": true },
|
|
12
|
+
{ "id": "race_motor", "category": "Full face", "model": "Street full face", "hasPeak": false, "hasChinBar": true },
|
|
13
|
+
{ "id": "race_tail", "category": "Full face", "model": "Race with tail wing", "hasPeak": false, "hasChinBar": true },
|
|
14
|
+
{ "id": "elementza_tail", "category": "Full face", "model": "Sport with tail wing", "hasPeak": false, "hasChinBar": true },
|
|
15
|
+
{ "id": "b_vintage", "category": "Full face", "model": "Vintage full face", "hasPeak": false, "hasChinBar": true },
|
|
16
|
+
{ "id": "b_motoopen", "category": "Full face", "model": "Retro with goggles", "hasPeak": false, "hasChinBar": true },
|
|
17
|
+
{ "id": "b_boi", "category": "Full face", "model": "Rally full face", "hasPeak": true, "hasChinBar": true },
|
|
18
|
+
{ "id": "b_racelp", "category": "Full face", "model": "Slim full face", "hasPeak": false, "hasChinBar": true },
|
|
19
|
+
{ "id": "b_f1", "category": "Full face", "model": "Car racing style", "hasPeak": false, "hasChinBar": true },
|
|
20
|
+
{ "id": "b_colourful", "category": "Full face", "model": "Race with chin spoiler", "hasPeak": false, "hasChinBar": true },
|
|
21
|
+
{ "id": "b_garg", "category": "Full face", "model": "Rounded full face", "hasPeak": false, "hasChinBar": true },
|
|
22
|
+
{ "id": "elementza_adv", "category": "Adventure", "model": "Adventure dual sport", "hasPeak": true, "hasChinBar": true },
|
|
23
|
+
{ "id": "race_adv", "category": "Adventure", "model": "Street dual sport", "hasPeak": true, "hasChinBar": true },
|
|
24
|
+
{ "id": "moto3", "category": "Motocross", "model": "Retro motocross", "hasPeak": true, "hasChinBar": true },
|
|
25
|
+
{ "id": "moto3_nopeak", "category": "Motocross", "model": "Retro scrambler, no peak", "hasPeak": false, "hasChinBar": true },
|
|
26
|
+
{ "id": "b_dirt", "category": "Motocross", "model": "Enduro shell", "hasPeak": true, "hasChinBar": true },
|
|
27
|
+
{ "id": "b_mtb", "category": "Motocross", "model": "Downhill full face", "hasPeak": true, "hasChinBar": true },
|
|
28
|
+
{ "id": "mx_sharp", "category": "Motocross", "model": "Sharp motocross", "hasPeak": true, "hasChinBar": true },
|
|
29
|
+
{ "id": "mx_atdesign", "category": "Motocross", "model": "Motocross", "hasPeak": true, "hasChinBar": true },
|
|
30
|
+
{ "id": "mx_goggles", "category": "Motocross", "model": "Motocross with goggles", "hasPeak": true, "hasChinBar": true },
|
|
31
|
+
{ "id": "t1_open", "category": "Open face", "model": "Retro open face", "hasPeak": false, "hasChinBar": false },
|
|
32
|
+
{ "id": "t1_jet", "category": "Open face", "model": "Jet with long shield", "hasPeak": false, "hasChinBar": false },
|
|
33
|
+
{ "id": "t1_open_peak", "category": "Open face", "model": "Retro open with peak", "hasPeak": true, "hasChinBar": false },
|
|
34
|
+
{ "id": "vertigo", "category": "Open face", "model": "Open face", "hasPeak": false, "hasChinBar": false },
|
|
35
|
+
{ "id": "half_classic", "category": "Open face", "model": "Classic open face", "hasPeak": false, "hasChinBar": false },
|
|
36
|
+
{ "id": "open_peak", "category": "Open face", "model": "Open face with peak", "hasPeak": true, "hasChinBar": false },
|
|
37
|
+
{ "id": "t1_half", "category": "Half helmet", "model": "Half helmet", "hasPeak": false, "hasChinBar": false },
|
|
38
|
+
{ "id": "t1_half_peak", "category": "Half helmet", "model": "Half with peak", "hasPeak": true, "hasChinBar": false },
|
|
39
|
+
{ "id": "t1_shorty", "category": "Half helmet", "model": "Shorty half", "hasPeak": false, "hasChinBar": false },
|
|
40
|
+
{ "id": "t1_beanie", "category": "Half helmet", "model": "Beanie", "hasPeak": false, "hasChinBar": false },
|
|
41
|
+
{ "id": "half_vintage", "category": "Half helmet", "model": "Vintage half", "hasPeak": false, "hasChinBar": false },
|
|
42
|
+
{ "id": "half_german", "category": "Half helmet", "model": "German half", "hasPeak": false, "hasChinBar": false }
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'json'
|
|
4
|
+
|
|
5
|
+
# Zero-dependency Ruby reference catalog covering 33 motorcycle helmet shell silhouettes across 5 rider categories, hardware traits, 6 paintable zone keys and 5 finish presets.
|
|
6
|
+
# Data source: {Custom Motorcycle Helmet}[https://custommotorcyclehelmet.com] and {3D motorcycle helmet designer}[https://custommotorcyclehelmet.com/design?utm_source=rubygems&utm_medium=referral&utm_campaign=rubygems].
|
|
7
|
+
module CustomMotorcycleHelmetStyles
|
|
8
|
+
VERSION = '1.0.0'
|
|
9
|
+
|
|
10
|
+
# Loads the parsed reference catalog hash from the bundled JSON dataset.
|
|
11
|
+
def self.catalog
|
|
12
|
+
@catalog ||= JSON.parse(File.read(File.expand_path('../data/styles.json', __dir__)))
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Returns the primary array of catalog items (`styles`).
|
|
16
|
+
def self.all
|
|
17
|
+
catalog.fetch('styles')
|
|
18
|
+
end
|
|
19
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: custom-motorcycle-helmet-styles
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Custom Motorcycle Helmet Contributors
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Zero-dependency Ruby reference catalog covering 33 motorcycle helmet
|
|
14
|
+
shell silhouettes across 5 rider categories, hardware traits, 6 paintable zone keys
|
|
15
|
+
and 5 finish presets.
|
|
16
|
+
email:
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- LICENSE
|
|
22
|
+
- README.md
|
|
23
|
+
- data/styles.json
|
|
24
|
+
- lib/custom_motorcycle_helmet_styles.rb
|
|
25
|
+
homepage: https://custommotorcyclehelmet.com
|
|
26
|
+
licenses:
|
|
27
|
+
- MIT
|
|
28
|
+
metadata:
|
|
29
|
+
homepage_uri: https://custommotorcyclehelmet.com
|
|
30
|
+
source_code_uri: https://github.com/dirt-bike-graphics/custom-motorcycle-helmet
|
|
31
|
+
documentation_uri: https://dirt-bike-graphics.github.io/custom-motorcycle-helmet/
|
|
32
|
+
bug_tracker_uri: https://github.com/dirt-bike-graphics/custom-motorcycle-helmet/issues
|
|
33
|
+
post_install_message:
|
|
34
|
+
rdoc_options: []
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 2.7.0
|
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
requirements: []
|
|
48
|
+
rubygems_version: 3.4.10
|
|
49
|
+
signing_key:
|
|
50
|
+
specification_version: 4
|
|
51
|
+
summary: 33 motorcycle helmet shell silhouettes, UV wrap zones and 5 finish presets.
|
|
52
|
+
test_files: []
|