Skip to content

Commit

Permalink
Fix typos (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala authored Jun 7, 2024
1 parent aeb0887 commit 9d852bf
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ If you upgrade from version `< 8.0.0` see the following:
- The `rel="prev"` and `rel="next"` attributes have been dropped (they are obsolete)
- The `<label>`/`</label>` and `<b>`/`</b>` wrappers in the dictionary files have been removed
- The `pagy_link_proc` method (only used internally or in your custom overriding) has been renamed to `pagy_anchor` and it works
slighty differently:
slightly differently:
- The `link_extra:` key argument has been removed
- The `extra` positional argument of the returned lambda has been removed
- The `classes:` and `aria_label:` keyword arguments have been added to the returned lambda
Expand Down
16 changes: 8 additions & 8 deletions CHANGELOG_LEGACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ visibility: hidden

## Version 7.0.7

- Fix for retype exluding linked files and showing category images
- Fix for retype excluding linked files and showing category images
- Fix for first *nav_js page not active with trim (introduced with the #656 fix 7e2f118)
- Normalize pagy apps; implement pagy_styles.ru

## Version 7.0.6

- Internal renaming of frontend constants
- Fix for disabled links and missing or extra ARIA attributes in frontend extras
- Boostrap fix for current page link; pagy.js fix for trim of current page (closes #656)
- Bootstrap fix for current page link; pagy.js fix for trim of current page (closes #656)

## Version 7.0.5

Expand Down Expand Up @@ -430,7 +430,7 @@ Removed support for the deprecation of `5.0`:

- Reorganized TypeScript/JavaScript with npm workspaces and better script naming
- Fix typo in gemspec
- Better typescript configuration with source maps and declrations
- Better typescript configuration with source maps and declarations

## Version 5.6.7

Expand Down Expand Up @@ -602,7 +602,7 @@ Removed support for the deprecation of `5.0`:
## Version 5.1.1

- This reverts commit 1d77e672d5b7813108b40c13ca93fdec045f4c03.
Generating the URL by using the application params method breakes rails apps because it requires manual changes in the apps.
Generating the URL by using the application params method breaks rails apps because it requires manual changes in the apps.

## Version 5.1.0

Expand Down Expand Up @@ -1605,7 +1605,7 @@ Dropped `pagy_serialized`, `pagy_apply_init_tag` and `PagyInit` javascript names
- [6fa1d03](http://github.com/ddnexus/pagy/commit/6fa1d03): comments and docs updates
- [9f057e6](http://github.com/ddnexus/pagy/commit/9f057e6): small improvement for the headers extra doc
- [2c53e76](http://github.com/ddnexus/pagy/commit/2c53e76): a few docs changes for the migration guide
- [2a90e6a](http://github.com/ddnexus/pagy/commit/2a90e6a): stop following the GitFlow conventions (extra comlexity for no advantage for this project; too many merge commits; history difficult to follow)
- [2a90e6a](http://github.com/ddnexus/pagy/commit/2a90e6a): stop following the GitFlow conventions (extra complexity for no advantage for this project; too many merge commits; history difficult to follow)
- [198883c](http://github.com/ddnexus/pagy/commit/198883c): Fix legacy changelog url (#144)


Expand Down Expand Up @@ -1679,7 +1679,7 @@ Dropped `pagy_serialized`, `pagy_apply_init_tag` and `PagyInit` javascript names

#### Renamed methods and files (already deprecated)

The following methods have been renamed. You only need to search and replace, because the funtionality has not been changed.
The following methods have been renamed. You only need to search and replace, because the functionality has not been changed.

#### Bootstrap Extra

Expand Down Expand Up @@ -1848,7 +1848,7 @@ The pagy initializer has changed: please replace/update it: [pagy.rb](https://gi
- [6cf86af](http://github.com/ddnexus/pagy/commit/6cf86af): added docs notes
- [b05db4e](http://github.com/ddnexus/pagy/commit/b05db4e): added optional target element to Pagy.init for AJAX support
- [e35a9ae](http://github.com/ddnexus/pagy/commit/e35a9ae): refactoring of default element ids for helpers and deprecation:
- default ids are now constant also in different processes and compliant also with oder HTML versions
- default ids are now constant also in different processes and compliant also with older HTML versions
- simpler deprecation code
- [cef823c](http://github.com/ddnexus/pagy/commit/cef823c): pagy.js responsive refactoring (#115):
- moved handling of window event listeners into the responsive function
Expand Down Expand Up @@ -2109,7 +2109,7 @@ The pagy initializer has changed: please replace/update it: [pagy.rb](https://gi
### Commits

- [6143f5f](https://github.com/ddnexus/pagy/commit/6143f5f): docs fixes
- [5227bd1](https://github.com/ddnexus/pagy/commit/5227bd1): added searchkick references in docs, README and inititalizer example (#75)
- [5227bd1](https://github.com/ddnexus/pagy/commit/5227bd1): added searchkick references in docs, README and initializer example (#75)
- [b9acf0c](https://github.com/ddnexus/pagy/commit/b9acf0c): Searchkick extra (#75)

## Version 0.15.1
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### How documenation works
### How documentation works

The docs are written in [markdown format](https://en.wikipedia.org/wiki/Markdown) and [retype](https://retype.com/) converts it
into styled HTML.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/javascript/navs.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ or pass it to the helper
<%== pagy_nav_js(@pagy, steps: {...}) %>
```

The above statement means that from `0` to `540` pixels width, Pagy will use the `5` size (orginating a simple nav without gaps),
The above statement means that from `0` to `540` pixels width, Pagy will use the `5` size (originating a simple nav without gaps),
from `540` to `720` it will use the `[3,5,5,3]` size and over `720` it will use the `[5,7,7,5]` size. (Read more about the `:size`
variable in the [How to control the page links](/docs/how-to#control-the-page-links) section).

Expand Down
2 changes: 1 addition & 1 deletion docs/api/javascript/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Prepend the `NODE_PATH` environment variable to the `scripts.build` command:
}
```

```js webpack.confg.js
```js webpack.config.js
module.exports = {
..., // your original config
resolve: { // add resolve.modules
Expand Down
2 changes: 1 addition & 1 deletion docs/extras/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Pagy::DEFAULT[:max_items] = 50
For a single instance (overriding the global default):

```ruby Controller
pagy(collecton, items_param: :custom_param, max_items: 50)
pagy(collection, items_param: :custom_param, max_items: 50)
Pagy.new(count: 100, items_param: :custom_param, max_items: 50)
```

Expand Down
6 changes: 3 additions & 3 deletions docs/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ for [bootstrap](extras/bootstrap.md), [bulma](extras/bulma.md) and [tailwind](ap
If you need to further customize the styles provided by the extras, you don't necessary need to override the helpers in most of
them: here are a few alternatives:

- Check wether the specific extra offers customization (e.g. [bulma](extras/bulma.md))
- Check whether the specific extra offers customization (e.g. [bulma](extras/bulma.md))
- Define the CSS styles to apply to the pagy CSS classes
- If sass/scss is available: extend the pagy CSS classes with some framework defined class, using the `@extend` sass/scss
directive
Expand Down Expand Up @@ -402,7 +402,7 @@ q = Person.ransack(params[:q])

==- PostgreSQL Collections

[Always order your colections!](troubleshooting.md#records-may-randomly-repeat-in-different-pages-or-be-missing)
[Always order your collections!](troubleshooting.md#records-may-randomly-repeat-in-different-pages-or-be-missing)

===

Expand Down Expand Up @@ -604,7 +604,7 @@ That works at the `Pagy`/`Pagy::Countless` level, so it works with any combinati
`gearbox` and search extras, however it makes no sense in `Pagy::Calendar` unit objects (which ignore it).

!!! Notice
The `items` and `gearbox` extras serve a variabe number of items per page. If your goal is limiting the pagination to a max number of records (instead of pages), you have to keep into account how you configure the `items` range.
The `items` and `gearbox` extras serve a variable number of items per page. If your goal is limiting the pagination to a max number of records (instead of pages), you have to keep into account how you configure the `items` range.
!!!

## Paginate pre-offset and pre-limited collections
Expand Down
2 changes: 1 addition & 1 deletion gem/lib/optimist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def initialize(*a, &b)
## There's one ambiguous case to be aware of: when +:multi+: is true and a
## +:default+ is set to an array (of something), it's ambiguous whether this
## is a multi-value argument as well as a multi-occurrence argument.
## In thise case, Optimist assumes that it's not a multi-value argument.
## In this case, Optimist assumes that it's not a multi-value argument.
## If you want a multi-value, multi-occurrence argument with a default
## value, you must specify +:type+ as well.

Expand Down
2 changes: 1 addition & 1 deletion gem/lib/pagy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.root
@root ||= Pathname.new(__dir__).parent.freeze
end

# Core defult: constant for easy access, but mutable for customizable defaults
# Core default: constant for easy access, but mutable for customizable defaults
DEFAULT = { page: 1, # rubocop:disable Style/MutableConstant
items: 20,
outset: 0,
Expand Down

0 comments on commit 9d852bf

Please sign in to comment.