Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: colored-rs/colored
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: colored-rs/colored
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.0
Choose a head ref
  • 20 commits
  • 20 files changed
  • 8 contributors

Commits on Dec 11, 2023

  1. fix clippy

    kurtlawrence committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    58fc5de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9aa7d8 View commit details
    Browse the repository at this point in the history
  3. feat: impl From<(r, g, b)> to CustomColor (#153)

    * feat: impl From<tuple> for CustomColor
    
    * chore: update .gitignore
    
    * feat: use Into<CustomColor>
    
    * feat: doc and test
    
    * Update .gitignore
    caojen authored Dec 11, 2023
    Configuration menu
    Copy the full SHA
    c5f7e00 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1c53b27 View commit details
    Browse the repository at this point in the history
  5. Get closest color if TrueColor not supported (#90)

    * Add failing tests for closest color
    
    * Get closest color to TrueColor
    
    * Use closest color if TrueColor not supported
    spenserblack authored Dec 11, 2023
    Configuration menu
    Copy the full SHA
    682adf8 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Add and Expose Methods of easily Creating and Mutating `ColoredString…

    …`'s and `Style`'s for Users (#154)
    
    * Initial change (Deref<Target = String> + DerefMut for ColoredString).
    
    * Add an example of modifying a ColoredString's text content with DerefMut<Target = String>.
    
    * Add methods copy_fgcolor, copy_bgcolor, and copy_style to ColoredString.
    
    * Create traits Colorized and CopyColorize, moved style copying functions from ColoredString into CopyColorize, and add StyleTemplate struct to assist with CopyColorize.
    
    * Create, implement, and expose methods of creating and modifying Style values for the user.
    
    * Fmt + add new_from method to StyleTemplate.
    
    * Since Style now implements default, move Default impls for ColoredString and StyleTemplate to derive.
    
    * Improve docs for StyleTemplate and espeically Style to be more helpful.
    
    * Add builder pattern methods to Style to make them easier to construct and modify.
    
    * Add ColorizedMut trait for univeral direct color and style setting.
    
    * Impl FromIterator<Styles> for Style and update docs to mention and use that.
    
    * Fix docs (remove mention in docs for Style of CLEAR which is private).
    
    * Move tests for Style bitwise operations into their own testing submodule.
    
    * Fix typos introduced in this branch.
    
    * Add big docs for ColoredString in light of all the new implementations as a guide for rustling users.
    
    * Make doc examples for Style more readable.
    
    * Add impls of bitwise logic ops for Styles for quick creation of Style's. Also, add doc for Styles and improve tests.
    
    * Remove StyleTemplate as it didn't really serve enough purpose to justify it existing.
    
    * Add clearing methods to ColorizedMut, updated docs to not use 'set to None' and generally improve ColorizedMut docs.
    
    * Change section headers for Style docs to be h2's because they look nicer and change the wording on the first section (renamed to "Creation")
    
    * Touch up doc for CopyColorize.
    
    * Touch up ColorizedMut doc and fix some typos.
    
    * Expose fields of ColoredString, remove Colored, ColoredMut, and CopyColorize as they are now unnesecary, and modify docs to reflect the new idioms.
    
    * Add note in crate root docs about ColoredString and to see its docs for more info.
    
    * Remove modifying_colored_strings example as it was perfectly well explained in the ColoredString docs.
    
    * Update CHANGELOG.md
    
    * Remove ColoredString.input.[str method] antipattern from docs.
    
    * Oops. diff.txt was temp and not supposed to be in there
    
    * Add missing assign ops involving Styles and add missing tests for ops.
    
    * Add with_style and with_color_and_style methods to Colorize (I can't wait for another PR tbh).
    
    * Reset <ColoredString as Deref>::Target to str and change docs and changelog to reflect this. Also, mark ColoredString as non_exhaustive.
    
    * Remove with_style and with_color_and_style from Colorize (they might be back in some form in the future).
    
    * Somehow the merge messed some formatting up.
    JustAnotherCodemonkey authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    949f601 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    933b254 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3dcd33 View commit details
    Browse the repository at this point in the history
  4. Replace println! calls with snapshot tests (#158)

    * Add `insta` as a dependency
    
    * Replace `println!` tests with snapshot tests
    
    * `cargo fmt`
    
    * Support true color in CI
    
    ---------
    
    Co-authored-by: Kurt Lawrence <[email protected]>
    spenserblack and kurtlawrence authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    d4da0f4 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2023

  1. Configuration menu
    Copy the full SHA
    749ff4e View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. Configuration menu
    Copy the full SHA
    bbe16cb View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Configuration menu
    Copy the full SHA
    775ec9f View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Update rspec (#177)

    atezet authored Oct 9, 2024
    Configuration menu
    Copy the full SHA
    e55e26c View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Apply some (pedantic) clippy lints

    atezet authored and spenserblack committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    58a06a4 View commit details
    Browse the repository at this point in the history
  2. Fix deprecation warnings

    atezet authored and spenserblack committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    981cfe4 View commit details
    Browse the repository at this point in the history
  3. Differentiate between ansi_term style and colored style due to deprec…

    …ation of reverse
    atezet authored and spenserblack committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    05b0f57 View commit details
    Browse the repository at this point in the history
  4. Ignore blame for clippy fix

    These changes are pedantic and can clutter the blame.
    spenserblack authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0ddacef View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Configuration menu
    Copy the full SHA
    a7e464f View commit details
    Browse the repository at this point in the history
  2. cargo: supported range for windows-sys (#184)

    this will allow downstream users to choose windows-sys version as per
    their compatibility
    
    Signed-off-by: Lakshya Singh <[email protected]>
    king-11 authored Nov 2, 2024
    Configuration menu
    Copy the full SHA
    1bb63e4 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2024

  1. 2.2.0 (#186)

    * Update to 2.2.0
    
    * Resolve clippy warnings
    
    Warnings added in a later version of clippy.
    spenserblack authored Dec 15, 2024
    Configuration menu
    Copy the full SHA
    ef1484c View commit details
    Browse the repository at this point in the history
Loading