pubspec_version 0.2.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 68

pubver

CLI tool to set/bump the version key in pubspec.yaml. Semver-compliant*.

Installing

You can install the package from the command line:

pub global activate pubspec_version

This will add the pubver binary to your ~/.pub-cache/bin.

Usage

Bumping the version

pubver bump <part>

where <part> can be either breaking, major, minor or patch.

Examples

BeforeCommandAfter
1.2.3pubver bump breaking2.0.0
0.2.1pubver bump breaking0.3.0
0.2.1pubver bump major1.0.0
0.2.1pubver bump minor0.3.0
0.2.1pubver bump patch0.2.1

Setting the version

pubver set <version>

where <version> can be any arbitrary version.

Output

The tool prints the new version to stdout. This allows post processing, e.g. making a git commit.

git ci . -m "Release $(pubver bump breaking)"

*almost. It uses pub_semver which is a bit different.

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

0.2.2 - 2018-11-16

Changed

  • Minor documentation changes.

0.2.1 - 2018-11-16

Changed

  • Minor documentation changes.

0.2.0 - 2018-11-16

Breaking change

  • This is now a standalone cli app.

0.1.0 - 2018-10-05

Changed

  • Binary names

0.0.2 - 2018-10-04

Fixed

  • Removed double await statement (#1)

0.0.1 - 2018-10-03

Added

  • Initial version

example/readme.md

Examples

BeforeCommandAfter
1.2.3pubver bump breaking2.0.0
0.2.1pubver bump breaking0.3.0
0.2.1pubver bump major1.0.0
0.2.1pubver bump minor0.3.0
0.2.1pubver bump patch0.2.1
0.2.1pubver set 5.4.3-dev5.4.3-dev

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate pubspec_version

2. Use it

The package has the following executables:


$ pubver

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  pubspec_version: ^0.2.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:pubspec_version/pubspec_version.dart';
  
Version Uploaded Documentation Archive
0.2.2 Nov 17, 2018 Go to the documentation of pubspec_version 0.2.2 Download pubspec_version 0.2.2 archive
0.2.1 Nov 17, 2018 Go to the documentation of pubspec_version 0.2.1 Download pubspec_version 0.2.1 archive
0.2.0 Nov 17, 2018 Go to the documentation of pubspec_version 0.2.0 Download pubspec_version 0.2.0 archive
0.1.0 Oct 6, 2018 Go to the documentation of pubspec_version 0.1.0 Download pubspec_version 0.1.0 archive
0.0.2 Oct 4, 2018 Go to the documentation of pubspec_version 0.0.2 Download pubspec_version 0.0.2 archive
0.0.1 Oct 4, 2018 Go to the documentation of pubspec_version 0.0.1 Download pubspec_version 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
35
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
68
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: other

Primary library: package:pubspec_version/pubspec_version.dart with components: io, mirrors.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
args ^1.5.0 1.5.1
pub_semver ^1.4.2 1.4.2
pubspec ^0.1.0 0.1.1
Transitive dependencies
charcode 1.1.2
collection 1.14.11
matcher 0.12.4
meta 1.1.6
path 1.6.2
quiver 2.0.1
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
stuff 0.1.0
uri 0.11.3+1
utf 0.9.0+5
yaml 2.1.15
yamlicious 0.1.0
Dev dependencies
mockito ^3.0.0
test ^1.0.0