Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Releases: testdouble/fetcher

0.2.0

11 Jun 22:01

Choose a tag to compare

file type steps in recipes may now prepend & append text as needed. An example:

steps: [
  type: "file"
  url: "http://www.google-analytics.com/analytics.js"
  dest: "vendor/js/google-analytics.js"
  prepend: """
           (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
             (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();
             // Don't need to create the script tag, since we'll be bundling it in the JS build:
             // a=s.createElement(o),
             // m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
           })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

           """
]
message: """
         After Google Analytics is loaded, any variables must be set by your scripts, like so:

         ga('create', 'UA-12345678-09');
         ga('set', 'dimension1', 'someIdWeCareAbout');

         """

0.1.1

26 May 19:46

Choose a tag to compare

  • Fix: 0.1.0 erroneously stopped deleting the tmp directory

0.1.0

26 May 19:31

Choose a tag to compare

  • Adds support for "archive" type recipes (downloads a zip or tar, unpacks it, iterates copies over a set of src/dest objects). Here's an example of the format:
steps: [
  type: "archive"
  url: "https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip"
  stripRootDir: true
  files: [
    {
      src: ["css/bootstrap.css", "css/bootstrap-theme.css"]
      dest: "vendor/css"
    }, {
      src: "fonts"
      dest: "vendor/static"
    }, {
      src: "js/bootstrap.js",
      dest: "vendor/js"
    }
  ]
]

(from lineman's recipes)

0.0.5

26 May 13:47

Choose a tag to compare

  • Supports multiple recipe installs in one invocation fetcher(['backbone', 'ember'])
  • Allow an installation to occur at most one time. (Prevents infinite recursion when there's a circular dependency)

0.0.4

26 May 03:29

Choose a tag to compare

Ensures the recipe repo is only fetched once per invocation of fetcher

0.0.3

26 May 02:39

Choose a tag to compare

Adds support for recipe steps of type "recipe" (meaning recipes that declare hard dependency pre-requisites). Example: Backbone requires underscore:

steps: [
  {
    type: "recipe"
    name: "underscore"
  },
  {
    type: "file"
    url: "http://backbonejs.org/backbone.js"
    dest: "vendor/js/backbone.js"
  }
]

0.0.2

26 May 02:38

Choose a tag to compare

  • Fixes download failures by using request

0.0.1

25 May 23:49

Choose a tag to compare

  • Initial release. Only supports #4