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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 067b5ea0c1a83ccf46f021605b65efa6f5dda686
4
- data.tar.gz: b3618dc31f564539516ba239749bef49e2388552
3
+ metadata.gz: 7cf70f0e31e11fca22459e7960f5c953561b73dc
4
+ data.tar.gz: 781941ac1db3d9b076deb59960a4e86e0face783
5
5
  SHA512:
6
- metadata.gz: 62c24027cd193f12ebebc585dccca7807a0e4afa9e3443d0e4feb01957459e3c88cf12dae2fbe4aac80bd1ac4d04cdaefd1db6ebfb6cc1bc7fa3bfe850c9c2f0
7
- data.tar.gz: 6a38283c523bd1c7532c164068bdb24ef7ca46c9fdbf756aa46f876a08d5fecee93fa43cb86d7d03be485f4692ae6dbef845aa79165ab6343d0ee6d04f44501f
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
- - did I kill the irb/ pry checks in trtl?
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
- - When booting Trtl... faye starts, but the server won't send messages to Faye
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.1 **
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
@@ -6,5 +6,6 @@ module MagicMirror
6
6
  MagicMirror.mirror.speak_into(value)
7
7
  super
8
8
  end
9
+
9
10
  end
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module MagicMirror
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
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
- @sinatra_root = File.expand_path('../..', __FILE__) if sinatra_root.nil?
19
- @@mirror = @@mirror || Mirror.new
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_mirror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TheNotary