arosa 0.1.1 → 0.1.2

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: 35f28ac507aed0a001301603188128a173c4136f70e17073bc5616ce09a9ae06
4
- data.tar.gz: 558a643ba9b5791a52b0261923cc4e36bbb9938d8e5af4267069a80b462e6afb
3
+ metadata.gz: c555ecabcec62d73bcd5ee867d159f9d252c060768162c04d030ee60e8dffdb3
4
+ data.tar.gz: 5c44999e566598db01ba4466201f227f0c73d097c51f6f90b1326d81e2c513a1
5
5
  SHA512:
6
- metadata.gz: 7fece26c0f93ff317797ce437a922b4ce071f620ca45a78d6a3d871fadb4857cf3eb54e95a5df38ff2690858c9fa247e94374be7e96e3d38cc6bd734546388aa
7
- data.tar.gz: 48e224a93526e8f8076873956d5d8a3b76fbc949fe3b2b901ae4e8d008f3b7663dea751a9586a8aed96ea909402113e5fc79fdab21656eb3581e39d54b7e6ef0
6
+ metadata.gz: d74aa331bfbc5526f2bd5cafe7ba5cc971a205cdaec8a48b83b1c8b72b684f32dae6f4f7202332bced79f043682d2964d385cbb469e96ecc902bd5c9ee5d70b7
7
+ data.tar.gz: de9ce485b436df0a360ce9dcb75fdb98e07c91abd01815454e76afffc6cccaed414d044532c05e32802ec45ada79496a0583597e054bdfb92fad6cfad4b25f31
data/README.md CHANGED
@@ -24,6 +24,7 @@ Then `bundle install`.
24
24
  | [BreadcrumbList](#breadcrumblist) | [schema.org/BreadcrumbList](https://schema.org/BreadcrumbList) |
25
25
  | [ListItem](#listitem) | [schema.org/ListItem](https://schema.org/ListItem) |
26
26
  | [Language](#language) | [schema.org/Language](https://schema.org/Language) |
27
+ | [WebApplication](#webapplication) | [schema.org/WebApplication](https://schema.org/WebApplication) |
27
28
 
28
29
  More types coming.
29
30
 
@@ -213,6 +214,48 @@ Arosa::Schemas::Language.new(
213
214
  )
214
215
  ```
215
216
 
217
+ ### WebApplication
218
+
219
+ | Property | Type |
220
+ |----------|------|
221
+ | name | String |
222
+ | description | String |
223
+ | url | String |
224
+ | image | String |
225
+ | application_category | String |
226
+ | application_sub_category | String |
227
+ | browser_requirements | String |
228
+ | operating_system | String |
229
+ | software_version | String |
230
+ | download_url | String |
231
+ | install_url | String |
232
+ | screenshot | Array of String |
233
+ | feature_list | Array of String |
234
+ | release_notes | String |
235
+ | permissions | String |
236
+ | software_requirements | String |
237
+ | same_as | Array of String |
238
+
239
+ ```ruby
240
+ Arosa::Schemas::WebApplication.new(
241
+ name: "Acme Task Manager",
242
+ description: "A web-based task management application",
243
+ url: "https://tasks.acme.com",
244
+ application_category: "BusinessApplication",
245
+ browser_requirements: "Requires JavaScript and HTML5 support",
246
+ software_version: "2.1.0",
247
+ feature_list: [
248
+ "Real-time collaboration",
249
+ "Calendar integration",
250
+ "Mobile-friendly interface"
251
+ ],
252
+ screenshot: [
253
+ "https://tasks.acme.com/screenshots/dashboard.png",
254
+ "https://tasks.acme.com/screenshots/calendar.png"
255
+ ]
256
+ )
257
+ ```
258
+
216
259
  ## Validation
217
260
 
218
261
  Wrong types and unknown properties raise errors immediately:
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Arosa
4
+ module Schemas
5
+ # Schema.org WebApplication type
6
+ #
7
+ # https://schema.org/WebApplication
8
+ class WebApplication < Schema
9
+ schema_type "WebApplication"
10
+
11
+ property :name, type: String
12
+ property :description, type: String
13
+ property :url, type: String
14
+ property :image, type: String
15
+ property :application_category, type: String
16
+ property :application_sub_category, type: String
17
+ property :browser_requirements, type: String
18
+ property :operating_system, type: String
19
+ property :software_version, type: String
20
+ property :download_url, type: String
21
+ property :install_url, type: String
22
+ property :screenshot, type: [String]
23
+ property :feature_list, type: [String]
24
+ property :release_notes, type: String
25
+ property :permissions, type: String
26
+ property :software_requirements, type: String
27
+ property :same_as, type: [String]
28
+ end
29
+ end
30
+ end
data/lib/arosa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Arosa
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/arosa.rb CHANGED
@@ -12,6 +12,7 @@ require_relative "arosa/schemas/contact_point"
12
12
  require_relative "arosa/schemas/organization"
13
13
  require_relative "arosa/schemas/list_item"
14
14
  require_relative "arosa/schemas/breadcrumb_list"
15
+ require_relative "arosa/schemas/web_application"
15
16
 
16
17
  module Arosa
17
18
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arosa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuenti
@@ -28,6 +28,7 @@ files:
28
28
  - lib/arosa/schemas/list_item.rb
29
29
  - lib/arosa/schemas/organization.rb
30
30
  - lib/arosa/schemas/postal_address.rb
31
+ - lib/arosa/schemas/web_application.rb
31
32
  - lib/arosa/version.rb
32
33
  - sig/arosa.rbs
33
34
  homepage: https://github.com/samuenti/arosa