magic_mirror 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/changelog +16 -5
- data/lib/magic_mirror/command_cache.rb +1 -0
- data/lib/magic_mirror/version.rb +1 -1
- data/lib/magic_mirror.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cf70f0e31e11fca22459e7960f5c953561b73dc
|
|
4
|
+
data.tar.gz: 781941ac1db3d9b076deb59960a4e86e0face783
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b595cd0b4776e3181fb7bfd68c9d65b00b8e814928de0dd30c56b0bd5b9ac8e92141bcb40f5ab6782114ba68ecfae39a432931a54916304b638d68765d7e2665
|
|
7
|
+
data.tar.gz: ea30cb839bc94c180e75d882759b934a9950c67ab99178b30d31a88d53e4559c5dd9d6b453be500a0fb12b889e8fd94a8ae40489343ed70f54e2965a67f11104
|
data/changelog
CHANGED
|
@@ -2,23 +2,34 @@
|
|
|
2
2
|
TODO: List off what features you'll be including at some point in the
|
|
3
3
|
future.
|
|
4
4
|
|
|
5
|
+
- Bug: If faye server goes offline for a second, and misses commands, then comes back online,
|
|
6
|
+
the command_cache variable will be out of sync with that of the server
|
|
7
|
+
> Solutions: Javascript Function periodically checks in to see the
|
|
8
|
+
md5 checksum of server's command_cache and if the browser's is out of date
|
|
9
|
+
it performs a reset
|
|
10
|
+
|
|
5
11
|
- Think of other popular uses for rendering...
|
|
6
12
|
- secure by making servers listen only on localhost
|
|
7
13
|
|
|
8
|
-
-
|
|
14
|
+
- Hide the STDOUT from starting the servers and print the
|
|
15
|
+
address of the listening http server in a pretty manor that links
|
|
16
|
+
|
|
9
17
|
- Write wrapper for TkcOval, btw...
|
|
10
18
|
|
|
11
19
|
Currently:
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
> In what manor is the http post failing?
|
|
15
|
-
* Needed to require 'net/http'
|
|
21
|
+
|
|
16
22
|
|
|
17
23
|
Finished:
|
|
18
24
|
|
|
25
|
+
** 0.1.0 **
|
|
19
26
|
|
|
27
|
+
- Changed API to Minimizing magic_mirror commands needed on the host gem
|
|
20
28
|
|
|
21
|
-
** 0.0.
|
|
29
|
+
** 0.0.2 **
|
|
22
30
|
- got websockets online
|
|
23
31
|
- Setup command_cache
|
|
24
32
|
- Setup javascript for drawing to canvas
|
|
33
|
+
|
|
34
|
+
** 0.0.1 **
|
|
35
|
+
- Release failed because the Trtl was missing dependencies
|
data/lib/magic_mirror/version.rb
CHANGED
data/lib/magic_mirror.rb
CHANGED
|
@@ -14,9 +14,12 @@ module MagicMirror
|
|
|
14
14
|
@@mirror = nil
|
|
15
15
|
@@command_cache = CommandCache.new # unless @@command_cache
|
|
16
16
|
|
|
17
|
-
def self.new
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
def self.new(options = {})
|
|
18
|
+
return @@mirror unless @@mirror.nil?
|
|
19
|
+
@sinatra_root = options[:sinatra_root] ? options[:sinatra_root] : File.expand_path('../..', __FILE__)
|
|
20
|
+
@@mirror = Mirror.new
|
|
21
|
+
@@mirror.init_servers! if options[:init_servers]
|
|
22
|
+
@@mirror
|
|
20
23
|
end
|
|
21
24
|
|
|
22
25
|
def self.mirror
|