Browse Source

auracle: add page, gem,bundle: update (#4572)

gem: add SemVer spec install example
bundle: fix update example, add patch-update, group-update, and outdated examples
Hermann Mayer 4 years ago
parent
commit
dd955ca693
3 changed files with 38 additions and 6 deletions
  1. 14 2
      pages/common/bundle.md
  2. 4 4
      pages/common/gem.md
  3. 20 0
      pages/linux/auracle.md

+ 14 - 2
pages/common/bundle.md

@@ -11,9 +11,21 @@
 
 `bundle update`
 
-- Update one specific gem defined in the `Gemfile`:
+- Update one or more specific gem(s) defined in the `Gemfile`:
 
-`bundle update --source {{gemname}}`
+`bundle update {{gemname}} {{gemname}}`
+
+- Update one or more specific gems(s) defined in the `Gemfile` but only to the next patch version:
+
+`bundle update --patch {{gemname}} {{gemname}}`
+
+- Update update all gems within the given group in the `Gemfile`:
+
+`bundle update --group {{development}}`
+
+- List installed gems in the `Gemfile` with newer versions available:
+
+`bundle outdated`
 
 - Create a new gem skeleton:
 

+ 4 - 4
pages/common/gem.md

@@ -3,10 +3,6 @@
 > Interact with the package manager for the Ruby programming language.
 > More information: <https://rubygems.org>.
 
-- Search for remote gem(s):
-
-`gem search {{regexp}}`
-
 - Search for remote gem(s) and show all available versions:
 
 `gem search {{regexp}} --all`
@@ -19,6 +15,10 @@
 
 `gem install {{gemname}} --version {{1.0.0}}`
 
+- Install the latest matching (SemVer) version of a gem:
+
+`gem install {{gemname}} --version '~> {{1.0}}'`
+
 - Update a gem:
 
 `gem update {{gemname}}`

+ 20 - 0
pages/linux/auracle.md

@@ -0,0 +1,20 @@
+# auracle
+
+> Command line tool used to interact with Arch Linux's User Repository, commonly referred to as the AUR.
+> More information: <https://github.com/falconindy/auracle>.
+
+- Display AUR packages that match a regular expression:
+
+`auracle search '{{regex}}'`
+
+- Display package information for a space-separated list of AUR packages:
+
+`auracle info {{package1}} {{package2}}`
+
+- Display the `PKGBUILD` file (build information) for a space-separated list of AUR packages:
+
+`auracle show {{package1}} {{package2}}`
+
+- Display updates for installed AUR packages:
+
+`auracle outdated`