Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

middleman-diff

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleman-diff

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

middleman-diff

Gem Version Build Status

Preview what's changed in your Middleman build.

Installation

Add the extension to your Gemfile,

gem 'middleman-diff'

run bundle install, and activate it in config.rb:

activate :diff

Usage

Preview what's changed since the last build, and optionally use it as the current build:

$ middleman diff
      create  tmp/preview/index.html
 {build => tmp/preview}/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/index.html b/tmp/preview/index.html
index 68c37b9..218e4ff 100644
--- a/build/index.html
+++ b/tmp/preview/index.html
@@ -5,6 +5,6 @@
   </head>
   <body>
     <h1>Hello there!</h1>
-    <p>This site is kind of alright.</p>
+    <p>This site is awesome.</p>
   </body>
 </html>
Would you like to apply these changes to the build? [y/N] y
Build has been updated.

Configuration

The following configuration options are available:

NameDefaultDescription
build_hookstrueWhether to run build hooks when previewing the build
keep:promptWhether to :always, :never, or :prompt to keep the preview as the build
temp_dir'tmp'Directory in which to build when previewing

FAQs

Package last updated on 12 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc