Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Commit

Permalink
rename & move package: cvrebert/mq4-hover-hover-shim => twbs/mq4-hove…
Browse files Browse the repository at this point in the history
…r-shim
  • Loading branch information
cvrebert committed Feb 5, 2015
1 parent b527c5b commit 9cceebc
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Assuming that you don't see any red, you're ready to go. Just be sure to run `gr
6. Push to your fork and submit a pull request.

## Licensing
By contributing your code, you agree to license your contribution under [the MIT License](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE.txt).
By contributing your code, you agree to license your contribution under [the MIT License](https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE.txt).
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: (
"/*!\n * mq4-hover-hover-shim v<%= pkg.version %>\n" +
"/*!\n * mq4-hover-shim v<%= pkg.version %>\n" +
" * <%= pkg.homepage %>\n" +
" * Copyright (c) 2014-2015 Christopher Rebert\n" +
" * Licensed under the MIT License (https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE).\n" +
" * Licensed under the MIT License (https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE).\n" +
" */\n"
),

Expand Down Expand Up @@ -61,7 +61,7 @@ module.exports = function (grunt) {
src: '<%= jshint.gruntfile.src %>'
},
lib: {
src: ['src/**/*.js', '!src/browser/mq4-hover-hover-shim.js']
src: ['src/**/*.js', '!src/browser/mq4-hover-shim.js']
},
test: {
src: '<%= jshint.test.src %>'
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# mq4-hover-hover-shim
[![NPM version](https://badge.fury.io/js/mq4-hover-hover-shim.svg)](http://badge.fury.io/js/mq4-hover-hover-shim)
[![Build Status](https://img.shields.io/travis/cvrebert/mq4-hover-hover-shim/master.svg)](https://travis-ci.org/cvrebert/mq4-hover-hover-shim)
[![Dependency Status](https://david-dm.org/cvrebert/mq4-hover-hover-shim.svg)](https://david-dm.org/cvrebert/mq4-hover-hover-shim)
[![devDependency Status](https://david-dm.org/cvrebert/mq4-hover-hover-shim/dev-status.svg)](https://david-dm.org/cvrebert/mq4-hover-hover-shim#info=devDependencies)
# mq4-hover-shim
[![NPM version](https://badge.fury.io/js/mq4-hover-shim.svg)](http://badge.fury.io/js/mq4-hover-shim)
[![Build Status](https://img.shields.io/travis/twbs/mq4-hover-shim/master.svg)](https://travis-ci.org/twbs/mq4-hover-shim)
[![Dependency Status](https://david-dm.org/twbs/mq4-hover-shim.svg)](https://david-dm.org/twbs/mq4-hover-shim)
[![devDependency Status](https://david-dm.org/twbs/mq4-hover-shim/dev-status.svg)](https://david-dm.org/twbs/mq4-hover-shim#info=devDependencies)

A shim for the [Media Queries Level 4 `hover` @media feature](http://drafts.csswg.org/mediaqueries/#hover).

Expand Down Expand Up @@ -40,8 +40,8 @@ Obviously, this requires JavaScript to be enabled in the browser, and would defa

## Installation

* Via npm: `npm install mq4-hover-hover-shim`
* Via jspm: `jspm install mq4-hover-hover-shim`
* Via npm: `npm install mq4-hover-shim`
* Via jspm: `jspm install mq4-hover-shim`

## Client-side dependencies

Expand All @@ -54,10 +54,10 @@ The browser-side portion of the shim depends on jQuery for firing events.
The following is a summary of the results of testing the library in various browsers. [Try out the Live Testcase](http://jsbin.com/xekahi/1).

Legend:
* True positive - Browser supports real hovering, and mq4-hover-hover-shim reports that it supports real hovering
* True negative - Browser does NOT support real hovering, and mq4-hover-hover-shim reports that it does NOT support real hovering
* False negative - Browser supports real hovering, and mq4-hover-hover-shim reports that it does NOT support real hovering
* False positive - Browser does NOT supports real hovering, and mq4-hover-hover-shim reports that it supports real hovering
* True positive - Browser supports real hovering, and mq4-hover-shim reports that it supports real hovering
* True negative - Browser does NOT support real hovering, and mq4-hover-shim reports that it does NOT support real hovering
* False negative - Browser supports real hovering, and mq4-hover-shim reports that it does NOT support real hovering
* False positive - Browser does NOT supports real hovering, and mq4-hover-shim reports that it supports real hovering
* ??? - This case has yet to be tested.
* Desktop - has a pointing device that supports true hovering (e.g. mouse, trackball, trackpad, joystick, http://xkcd.com/243/); lacks a touch-based pointing input device
* [Laplet](http://en.wikipedia.org/wiki/Laplet) - has both a pointing device that supports true hovering and a touch-based pointing input device
Expand Down Expand Up @@ -115,9 +115,9 @@ The npm module has the following properties:

### Browser-side feature detector
The browser-side feature detector is available in the following module formats:
* [ECMAScript 6](https://github.com/lukehoban/es6features#modules): [`/src/browser/mq4-hover-hover-shim.js`](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/src/browser/mq4-hover-hover-shim.js)
* Raw [CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1): [`/dist/cjs/mq4-hover-hover-shim.js`](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/dist/cjs/mq4-hover-hover-shim.js)
* [UMD (Universal Module Definition)](https://github.com/umdjs/umd) with global fallback: [`/dist/browser/mq4-hover-hover-shim.js`](https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/dist/browser/mq4-hover-hover-shim.js)
* [ECMAScript 6](https://github.com/lukehoban/es6features#modules): [`/src/browser/mq4-hover-shim.js`](https://github.com/twbs/mq4-hover-shim/blob/master/src/browser/mq4-hover-shim.js)
* Raw [CommonJS](http://wiki.commonjs.org/wiki/Modules/1.1): [`/dist/cjs/mq4-hover-shim.js`](https://github.com/twbs/mq4-hover-shim/blob/master/dist/cjs/mq4-hover-shim.js)
* [UMD (Universal Module Definition)](https://github.com/umdjs/umd) with global fallback: [`/dist/browser/mq4-hover-shim.js`](https://github.com/twbs/mq4-hover-shim/blob/master/dist/browser/mq4-hover-shim.js)
* When this is used in a non-AMD non-CommonJS context, the module will be exported as a `mq4HoverShim` property on the global `window` object.

The module exports one public function:
Expand All @@ -141,15 +141,15 @@ The module has one public event:
* Value: Same as `supportsTrueHover()`'s return value at the time of firing the event

## Grunt
Use [grunt-postcss](https://github.com/nDmitry/grunt-postcss) to invoke the mq4-hover-hover-shim CSS postprocessor via [Grunt](http://gruntjs.com/) task.
Use [grunt-postcss](https://github.com/nDmitry/grunt-postcss) to invoke the mq4-hover-shim CSS postprocessor via [Grunt](http://gruntjs.com/) task.

## Contributing
The project's coding style is laid out in the JSHint, ESLint, and JSCS configurations. Add unit tests when changing the CSS postprocessor. Lint and test your code using [Grunt](http://gruntjs.com/). Manually test any changes to the browser-side portion of the shim.

_Also, please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory!_

## Release History
See the [GitHub Releases page](https://github.com/cvrebert/mq4-hover-hover-shim/releases) for detailed changelogs.
See the [GitHub Releases page](https://github.com/twbs/mq4-hover-shim/releases) for detailed changelogs.
* (next release) - `master`
* 2015-01-18 - v0.0.4: Fix crash when CSS contains a media-type-only media query. Replaced `postprocessor` with `postprocessorFor()`.
* 2015-01-14 - v0.0.3: Add jspm metadata. Improve docs.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* mq4-hover-hover-shim v0.0.4
* https://github.com/cvrebert/mq4-hover-hover-shim
* Copyright (c) 2014 Christopher Rebert
* Licensed under the MIT License (https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE).
* mq4-hover-shim v0.1.0
* https://github.com/twbs/mq4-hover-shim
* Copyright (c) 2014-2015 Christopher Rebert
* Licensed under the MIT License (https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE).
*/

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.mq4HoverShim=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "mq4-hover-hover-shim",
"version": "0.0.4",
"name": "mq4-hover-shim",
"version": "0.1.0",
"description": "A shim for the Media Queries Level 4 `hover` @media feature",
"scripts": {
"test": "grunt test"
},
"repository": {
"type": "git",
"url": "https://github.com/cvrebert/mq4-hover-hover-shim.git"
"url": "https://github.com/twbs/mq4-hover-shim.git"
},
"keywords": [
"media",
Expand All @@ -28,9 +28,9 @@
},
"license": "MIT",
"bugs": {
"url": "https://github.com/cvrebert/mq4-hover-hover-shim/issues"
"url": "https://github.com/twbs/mq4-hover-shim/issues"
},
"homepage": "https://github.com/cvrebert/mq4-hover-hover-shim",
"homepage": "https://github.com/twbs/mq4-hover-shim",
"dependencies": {
"css-mediaquery": "^0.1.2",
"postcss": "^4.0.0"
Expand All @@ -57,6 +57,6 @@
"dependencies": {
"jquery": ">=1.11.2"
},
"main": "dist/cjs/mq4-hover-hover-shim"
"main": "dist/cjs/mq4-hover-shim"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion src/nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

var path = require('path');
var CLIENT_SIDE_FEATURE_DETECTOR_FILENAME = 'mq4-hover-hover-shim.js';
var CLIENT_SIDE_FEATURE_DETECTOR_FILENAME = 'mq4-hover-shim.js';


module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions src/nodejs/postprocessor.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*eslint-env node */
/*!
* Postprocessor for shimming @media (hover: hover) from Media Queries Level 4
* https://github.com/cvrebert/mq4-hover-hover-shim
* https://github.com/twbs/mq4-hover-shim
* Copyright 2014-2015 Christopher Rebert
* Licensed under MIT (https://github.com/cvrebert/mq4-hover-hover-shim/blob/master/LICENSE.txt)
* Licensed under MIT (https://github.com/twbs/mq4-hover-shim/blob/master/LICENSE.txt)
*/

'use strict';
Expand Down

0 comments on commit 9cceebc

Please sign in to comment.