Skip to content

Commit

Permalink
Prepare moor 4.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Oct 12, 2021
1 parent 3cc17b0 commit 7d41e42
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug report
about: Create a report to help improve moor
about: Create a report to help improve drift and moor
title: ''
labels: ''
assignees: ''
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
contact_links:
- name: Discussions
url: https://github.com/simolus3/moor/discussions
about: "For questions on how to use moor, prefer a Q&A discussion over issues"
about: "For questions on how to use drift and moor, prefer a Q&A discussion over issues"
- name: Gitter community
url: https://gitter.im/moor-dart/community
about: "Chat room for quick questions"
4 changes: 2 additions & 2 deletions docs/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ environments:
base_url: "http://localhost:8080/"
preview:
minify: true
base_url: "https://moor.simonbinder.eu/"
base_url: "https://drift.simonbinder.eu/"
prod:
minify: true
base_url: "https://moor.simonbinder.eu/"
base_url: "https://drift.simonbinder.eu/"
2 changes: 1 addition & 1 deletion drift_dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.0.0
## 1.0.1

This is the initial release of the `drift_dev` package (formally known as `moor_generator`).
For an overview of old `moor` releases, see its [changelog](https://pub.dev/packages/moor_generator/changelog).
3 changes: 2 additions & 1 deletion drift_dev/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# moor Generator
# Drift Generator

This library contains the generator that turns your `Table` classes from drift
into database code.
It should be used as a development dependency when using the `drift` package.

Please see the homepage of [drift](https://drift.simonbinder.eu/) for details on how to use this package.
9 changes: 7 additions & 2 deletions drift_dev/lib/src/cli/commands/migrate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MigrateCommand extends MoorCommand {
await _applyToFile(file);
}

final isRunningFlutter = argResults.arguments.contains('flutter');
final isRunningFlutter = Platform.executable == 'flutter';
final formatCommand =
isRunningFlutter ? 'flutter format .' : 'dart format .';
final pubGetCommand = isRunningFlutter ? 'flutter pub get' : 'dart pub get';
Expand All @@ -55,7 +55,12 @@ class MigrateCommand extends MoorCommand {
print(' - Changed files might need formatting - run `$formatCommand`');
print(' - Download drift with `$pubGetCommand`');
print(' - Re-run the build with `$buildCommand`');
print('Thanks for using ${styleCrossedOut.wrap('moor')} drift');

if (ansiOutputEnabled) {
print('Thanks for using ${styleCrossedOut.wrap('moor')} drift');
} else {
print('Thanks for using drift');
}
}

Future<void> _applyToFile(File file) async {
Expand Down
2 changes: 1 addition & 1 deletion drift_dev/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: drift_dev
description: Dev-dependency for users of drift. Contains a the generator and development tools.
version: 1.0.0
version: 1.0.1
repository: https://github.com/simolus3/moor
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
Expand Down
4 changes: 2 additions & 2 deletions moor/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: moor
description: Moor is a safe and reactive persistence library for Dart applications
version: 4.6.0-dev
version: 4.6.0
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
Expand All @@ -12,7 +12,7 @@ dependencies:
async: ^2.5.0
convert: ^3.0.0
collection: ^1.15.0
drift: ^4.6.0
drift: ^1.0.0
meta: ^1.3.0
stream_channel: ^2.1.0
sqlite3: ^1.0.0
Expand Down
5 changes: 4 additions & 1 deletion moor_generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: moor_generator
description: Dev-dependency to generate table and dataclasses together with the moor package.
version: 4.5.1
version: 4.6.0
repository: https://github.com/simolus3/moor
homepage: https://moor.simonbinder.eu/
issue_tracker: https://github.com/simolus3/moor/issues
Expand All @@ -10,6 +10,9 @@ environment:

dependencies:
drift_dev: ^1.0.0
# When users depend on the latest moor_generator, they should also get the latest moor for
# the migration to work
moor: ^4.6.0

executables:
moor_generator:
Expand Down
8 changes: 7 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@

[[redirects]]
from = "https://moor.netlify.app/*"
to = "https://moor.simonbinder.eu/:splat"
to = "https://drift.simonbinder.eu/:splat"
status = 301
force = true

[[redirects]]
from = "https://moor.simonbinder.eu/*"
to = "https://drift.simonbinder.eu/:splat"
status = 301
force = true

Expand Down

0 comments on commit 7d41e42

Please sign in to comment.