Skip to content

Commit 9155c37

Browse files
authored
chore(mason_cli): v0.1.0 (#1473)
1 parent c744e19 commit 9155c37

File tree

5 files changed

+34
-13
lines changed

5 files changed

+34
-13
lines changed

packages/mason_cli/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.1.0
2+
3+
- chore: bump to stable v0.1.0 🎉
4+
15
# 0.1.0-dev.57
26

37
- feat: `mason add` prompt to overwrite on conflict ([#1435](https://github.com/felangel/mason/issues/1435))

packages/mason_cli/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mason_cli/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: mason_cli
22
description: >
33
Mason CLI allows developers to create and consume reusable templates called bricks.
4-
version: 0.1.0-dev.57
4+
version: 0.1.0
55
homepage: https://github.com/felangel/mason
66
repository: https://github.com/felangel/mason
77
issue_tracker: https://github.com/felangel/mason/issues
@@ -10,14 +10,14 @@ topics: [mason, cli, template, generator]
1010
funding: [https://github.com/sponsors/felangel]
1111

1212
environment:
13-
sdk: ">=3.5.0 <4.0.0"
13+
sdk: ^3.5.4
1414

1515
dependencies:
1616
args: ^2.5.0
1717
checked_yaml: ^2.0.3
1818
cli_completion: ^0.5.1
19-
mason: ^0.1.0-dev.58
20-
mason_api: ^0.1.0-dev.12
19+
mason: ^0.1.0
20+
mason_api: ^0.1.0
2121
meta: ^1.15.0
2222
path: ^1.9.0
2323
pub_updater: ^0.5.0

packages/mason_cli/test/commands/get_test.dart

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ void main() {
2727
late PubUpdater pubUpdater;
2828
late MasonCommandRunner commandRunner;
2929

30+
setUpAll(() async {
31+
registerFallbackValue(Object());
32+
logger = _MockLogger();
33+
pubUpdater = _MockPubUpdater();
34+
35+
when(
36+
() => logger.prompt(any(), defaultValue: any(named: 'defaultValue')),
37+
).thenReturn('');
38+
when(() => logger.progress(any())).thenReturn(_MockProgress());
39+
when(
40+
() => pubUpdater.getLatestVersion(any()),
41+
).thenAnswer((_) async => packageVersion);
42+
await MasonCommandRunner(logger: logger, pubUpdater: pubUpdater).run(
43+
['cache', 'clear'],
44+
);
45+
});
46+
3047
setUp(() {
3148
logger = _MockLogger();
3249
pubUpdater = _MockPubUpdater();
@@ -55,7 +72,7 @@ bricks:
5572
git:
5673
url: https://github.com/felangel/mason
5774
path: bricks/hooks
58-
ref: 997bc878c93534fad17d965be7cafe948a1dbb53
75+
ref: c744e19c23243453f568b539bb122767e6542929
5976
simple:
6077
path: ../../../../../bricks/simple
6178
todos:
@@ -64,7 +81,7 @@ bricks:
6481
git:
6582
url: https://github.com/felangel/mason
6683
path: bricks/widget
67-
ref: 997bc878c93534fad17d965be7cafe948a1dbb53
84+
ref: c744e19c23243453f568b539bb122767e6542929
6885
''',
6986
);
7087
});
@@ -114,7 +131,7 @@ bricks:
114131
path.join(
115132
BricksJson.rootDir.path,
116133
'git',
117-
'''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_997bc878c93534fad17d965be7cafe948a1dbb53''',
134+
'''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_c744e19c23243453f568b539bb122767e6542929''',
118135
'bricks',
119136
'hooks',
120137
),
@@ -129,7 +146,7 @@ bricks:
129146
path.join(
130147
BricksJson.rootDir.path,
131148
'git',
132-
'''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_997bc878c93534fad17d965be7cafe948a1dbb53''',
149+
'''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_c744e19c23243453f568b539bb122767e6542929''',
133150
'bricks',
134151
'widget',
135152
),
@@ -161,7 +178,7 @@ bricks:
161178
'git': {
162179
'url': 'https://github.com/felangel/mason',
163180
'path': 'bricks/hooks',
164-
'ref': '997bc878c93534fad17d965be7cafe948a1dbb53',
181+
'ref': 'c744e19c23243453f568b539bb122767e6542929',
165182
},
166183
},
167184
'simple': {'path': simplePath},
@@ -170,7 +187,7 @@ bricks:
170187
'git': {
171188
'url': 'https://github.com/felangel/mason',
172189
'path': 'bricks/widget',
173-
'ref': '997bc878c93534fad17d965be7cafe948a1dbb53',
190+
'ref': 'c744e19c23243453f568b539bb122767e6542929',
174191
},
175192
},
176193
},
@@ -217,7 +234,7 @@ bricks:
217234
File(path.join(Directory.current.path, 'mason.yaml')).writeAsStringSync(
218235
'''
219236
bricks:
220-
hello: ^0.1.0-dev
237+
greeting: ^0.1.0-dev
221238
widget:
222239
git:
223240
url: https://github.com/felangel/mason

packages/mason_cli/test/commands/make_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void main() {
326326
final brickYaml = File(path.join('example', 'brick.yaml'));
327327
brickYaml.writeAsStringSync(
328328
brickYaml.readAsStringSync().replaceFirst(
329-
'mason: ">=${mason.packageVersion} <0.1.0"',
329+
'mason: ^${mason.packageVersion}',
330330
'mason: ">=99.99.99 <100.0.0"',
331331
),
332332
);

0 commit comments

Comments
 (0)