andromeda_cms 0.2.0-aarch64-linux → 0.3.0-aarch64-linux

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: 2f503f2e0323c9c9f1e60ec590e71a478e9c3b89165784228219ee59a72036df
4
- data.tar.gz: 6c68eb084c18fdc56ad761af82334d02658516dc70913d8b56fe4663287fc365
3
+ metadata.gz: 677562bc7462977105605d38e091fc631ea2608956fc2fab43caf18441a25863
4
+ data.tar.gz: 0e8862d4df8db2c2a834f23d3aaf393950a567fe0dbd33a085817e1fdad22ae0
5
5
  SHA512:
6
- metadata.gz: 4472d7d23beb4f422c2d2410b5643f31bceb44acd18156161d72e0aa293f39483c201390af7abd526f3b6ba5f13d25b724fc8f454fb72538b8c0ffd14f4ca913
7
- data.tar.gz: 1bc41d2dd539523d725129f7bd69942c5c2654395115fa1607df134a0778e8539666ec985575f1059df541e2519f19f210e1ade428d041877e790b567a0dbb15
6
+ metadata.gz: e7be7cf606159798d08db559fe87e99d908b79788bed441e3695c659acfdae5a037c5bdc9c676a43871fd2759d06e4012985dae9a9819daf41d8f90ec3bc0551
7
+ data.tar.gz: 8414dca14f9e05e50eb55019006f94dc814612d9774ab98e230650542cebdc1b395f1eee245a0bb49e9fa7797d735239af4df2d9f8d14253aaec65a4ca66e007
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.0] - 2026-09-29
9
+
10
+ ### Added
11
+
12
+ - `offset(count)` on `Andromeda::Relation` and on `Andromeda::Entry`
13
+ subclasses skips the first `count` entries, so `offset(10).limit(10)`
14
+ pages through a listing without leaving the relation.
15
+
8
16
  ## [0.2.0] - 2026-09-29
9
17
 
10
18
  ### Changed
@@ -85,6 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
85
93
  - Generators: `andromeda:install`, `andromeda:collection`,
86
94
  `andromeda:component` and `andromeda:import_astro`.
87
95
 
96
+ [0.3.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.3.0
88
97
  [0.2.0]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.2.0
89
98
  [0.1.2]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.1.2
90
99
  [0.1.1]: https://github.com/AndromedaCMS/andromeda_cms/releases/tag/v0.1.1
@@ -133,6 +133,10 @@ module Andromeda
133
133
  all.limit(count)
134
134
  end
135
135
 
136
+ def offset(count)
137
+ all.offset(count)
138
+ end
139
+
136
140
  def first(count = nil)
137
141
  all.first(count)
138
142
  end
@@ -78,6 +78,14 @@ module Andromeda
78
78
  self.class.new(@records.first(count), entry_class: entry_class)
79
79
  end
80
80
 
81
+ # Skips the first `count` entries, so `offset(10).limit(10)` is the
82
+ # second page of ten.
83
+ #
84
+ # @return [Andromeda::Relation]
85
+ def offset(count)
86
+ self.class.new(@records.drop(count), entry_class: entry_class)
87
+ end
88
+
81
89
  # @return [Andromeda::Entry, Array<Andromeda::Entry>, nil]
82
90
  def first(count = nil)
83
91
  count ? @records.first(count) : @records.first
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Andromeda
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andromeda_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - LIMHAUS Inc.