Skip to content

Commit

Permalink
build: release v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Sep 4, 2023
1 parent a4219b6 commit 31c50fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.2.1
- Update dependencies

## 0.2.0
* Adapt to emoji API changes
* Improve documentation and code style
Expand Down
4 changes: 0 additions & 4 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,10 @@ linter:
#- flutter_style_todos # Flutter todos are to verbose for our requirements.
- hash_and_equals
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
# - join_return_with_assignment # leads to less readable code IMHO
- library_names
- library_prefixes
- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- no_duplicate_case_values
Expand All @@ -95,7 +92,6 @@ linter:
- prefer_const_literals_to_create_immutables
- prefer_constructors_over_static_methods
- prefer_contains
- prefer_equal_for_default_values
- prefer_expression_function_bodies
- prefer_final_fields
- prefer_final_in_for_each
Expand Down
8 changes: 6 additions & 2 deletions lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:convert';

import 'package:http/http.dart' as http;

import 'models/models.dart';

/// A client for GIPHY
Expand Down Expand Up @@ -414,8 +415,11 @@ class GiphySource {
}
if (!hasElementAt(index)) {
final total = nextCursor != null ? nextCursor : totalCount;
throw IndexError(index, null, null,
'Invalid index $index in source with total $total', total);
throw IndexError.withLength(
index,
_cache.length,
message: 'Invalid index $index in source with total $total',
);
}
final page = index ~/ _pageLength;
var pageRequest = _requestedPages[page];
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: enough_giphy
description: A GIPHY client in pure Dart without depending on Flutter.
version: 0.2.0
version: 0.2.1
homepage: https://github.com/Enough-Software/enough_giphy

environment:
sdk: ">=2.15.0 <3.0.0"
sdk: ">=2.19.0 <4.0.0"

dependencies:
http: ^1.1.0
Expand Down

0 comments on commit 31c50fb

Please sign in to comment.