Sha256: 4dc9436b86bfb5e405e56c242c805c45917ab9d56eefd6358755feb3e85fea48

Contents?: true

Size: 464 Bytes

Versions: 8

Compression:

Stored size: 464 Bytes

Contents

require 'open-uri'
require 'zlib'
require 'fileutils'
require 'json'
require 'packr'

module Capucine
  class NPM
    @@noderoot = 'http://registry.npmjs.org/'

    def initialise(lib_name)
      infos = JSON.parse open("#{@@noderoot}#{file['name']}").read
      version = file['version'] || infos['dist-tags']['lastest']
      lib = infos['versions'][version]
      tarball_url = lib['dist']['tarball']

      # tarball = open(tarball_url).read

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capucine-0.2.10 lib/npm.rb
capucine-0.2.9 lib/npm.rb
capucine-0.2.5 lib/npm.rb
capucine-0.2.4 lib/npm.rb
capucine-0.2.3 lib/npm.rb
capucine-0.2.2 lib/npm.rb
capucine-0.2.1 lib/npm.rb
capucine-0.2.0 lib/npm.rb