Permalink
Browse files

jskata is now OBSOLETE

  • Loading branch information...
1 parent 9b587a6 commit 3c94fdf25c866732435f5da01fb554ea34fcfa27 @dsimard committed Dec 29, 2012
Showing with 25 additions and 67 deletions.
  1. +19 −0 README.md
  2. +1 −1 minified/jskata.js
  3. +1 −1 minified/jskata.undo.min.js
  4. +4 −0 src/jskata.undo.js
  5. +0 −65 test/undo.coffee
View
@@ -1,7 +1,26 @@
# jskata
+[![Build Status](https://travis-ci.org/dsimard/jskata.png?branch=master)](https://travis-ci.org/dsimard/jskata)
## OBSOLETE
+jskata is now __obsolete__. All the parts have been moved to other projects.
+### _jskata.timezone_ is now timezonedetect
+Detect the standard time, the daylight saving time for the current time zone at <https://github.com/dsimard/timezonedetect>
+### _jskata.undo is now undone
+
+Do, undo and redo library for javascript at <https://github.com/dsimard/undone>
+
+__jskata.nofreeze__ is still in jskata but is not a really interesting project anyway.
+
+## Why obsolete?
+
+I wanted _jskata_ to be a suite of javascript libraries but I finally tear them apart because :
+
+- The libraries had no link together
+- It was hard to write a clear documentation
+- It was hard to understand for the users
+- It was hard to contribute
+- I didn't know which project was interesting for the users and which I should improve
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,3 +1,7 @@
+if (confirm('jskata.undo is OBSOLETE - Use undone instead. \n\n Redirect to undone?')) {
+ window.location = 'https://github.com/dsimard/undone';
+}
+
(function() {
var jsk = {
///// PROPERTIES
View
@@ -1,65 +0,0 @@
-should = require 'should'
-undo = require '../src/jskata.undo.js'
-{equal, ok} = require 'assert'
-
-jsk = {u:undo, undo:undo}
-_ = jsk
-
-
-describe 'Undo', ->
- it "basic test", ->
- executed = false
- undone = false
- jsk.undo.execute (->
- executed = true
- ), ->
- undone = true
-
- ok executed, "it was executed"
- equal _.u.dids.length, 1
- ok not undone, "it was not undone"
- equal _.u.undids.length, 0
-
- # Undo
- jsk.undo.undo()
- ok undone, "it was undone"
- equal _.u.dids.length, 0
- equal _.u.undids.length, 1
-
- # Redo
- jsk.undo.redo()
- ok undone, "it was redone"
- equal _.u.dids.length, 1
- equal _.u.undids.length, 0
-
- it "onChange", ->
- called = 0
- jsk.undo.onChange = ->
- called++
-
- jsk.undo.execute (->
- ), ->
-
- equal 1, called, "called 1 time"
- jsk.undo.undo()
- equal 2, called, "called 2 times"
- jsk.undo.redo()
- equal 3, called, "called 3 times"
- jsk.undo.onChange = null
- jsk.undo.undo()
- equal 3, called, "called 3 times (the event is now null)"
-
- it "data from execution is passed to undo", ->
- rnd = 0
- jsk.u.execute (->
- rnd = Math.round(Math.random() * 9999999)
- rnd
- ), (data) ->
- equal data, rnd, "randoms are the same"
-
- oldRnd = rnd
- jsk.u.undo()
- jsk.u.redo()
- ok oldRnd isnt rnd, "rnd has changed"
- jsk.u.undo()
-

0 comments on commit 3c94fdf

Please sign in to comment.