From cffd756c4764e7a43fa39a4da20de4ff61d75709 Mon Sep 17 00:00:00 2001
From: Berkeley Martinez <Berkeley@robotie.com>
Date: Tue, 7 Jul 2015 22:33:54 -0700
Subject: [PATCH] update license change video to vimeo

---
 LICENSE             |  7 -------
 LICENSE.md          | 18 ++++++++++++++++++
 src/Play-Button.jsx |  2 +-
 src/Spinner.jsx     |  4 +++-
 src/Vimeo.jsx       | 14 +++++++++-----
 5 files changed, 31 insertions(+), 14 deletions(-)
 delete mode 100644 LICENSE
 create mode 100644 LICENSE.md

diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 5078b43..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,7 +0,0 @@
-(The MIT License)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..e9c1608
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,18 @@
+Copyright (c) 2015 Berkeley Martinez
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</copyright></year>
diff --git a/src/Play-Button.jsx b/src/Play-Button.jsx
index 19f3232..3fd9bec 100644
--- a/src/Play-Button.jsx
+++ b/src/Play-Button.jsx
@@ -11,7 +11,7 @@ export default React.createClass({
   render() {
     return (
       <button
-        className='video-play-button'
+        className='vimeo-play-button'
         onClick={ this.props.onClick }
         type='button'>
         <svg
diff --git a/src/Spinner.jsx b/src/Spinner.jsx
index 67a7337..ff5b243 100644
--- a/src/Spinner.jsx
+++ b/src/Spinner.jsx
@@ -2,9 +2,11 @@
 import React from 'react';
 
 export default React.createClass({
+  displayName: 'Spinner',
+
   render() {
     return (
-      <div className='video-loading'>
+      <div className='vimeo-loading'>
         <svg
           height='32'
           viewBox='0 0 32 32'
diff --git a/src/Vimeo.jsx b/src/Vimeo.jsx
index 593b129..1fc099e 100644
--- a/src/Vimeo.jsx
+++ b/src/Vimeo.jsx
@@ -1,9 +1,12 @@
 import React, { PropTypes } from 'react';
+import debugFactory from 'debug';
 
 import PlayButton from './Play-Button.jsx';
 import Spinner from './Spinner.jsx';
 
-import ajax from './ajax';
+import { get } from './ajax';
+
+const debug = debugFactory('vimeo:player');
 
 export default React.createClass({
   displayName: 'Vimeo',
@@ -18,7 +21,7 @@ export default React.createClass({
 
   getDefaultProps() {
     return {
-      className: 'video'
+      className: 'vimeo'
     };
   },
 
@@ -66,9 +69,10 @@ export default React.createClass({
     }
     const id = this.props.videoId;
 
-    ajax.get({
+    get({
       url: `//vimeo.com/api/v2/video/${id}.json`,
       onSuccess: (res) => {
+        debug('ajax response', res);
         this.setState({
           thumb: res[0].thumbnail_large,
           imageLoaded: true
@@ -91,7 +95,7 @@ export default React.createClass({
     };
 
     return (
-      <div className='video-image' style={ style }>
+      <div className='vimeo-image' style={ style }>
         <PlayButton onClick={ this.playVideo } />
       </div>
     );
@@ -109,7 +113,7 @@ export default React.createClass({
     };
 
     return (
-      <div className='video-embed' style={ embedVideoStyle }>
+      <div className='vimeo-embed' style={ embedVideoStyle }>
         <iframe frameBorder='0' src={ this.getIframeUrl() }></iframe>
       </div>
     );
