hyperlayer 0.1 → 0.2
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/README.md +63 -14
- data/lib/hyperlayer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a517e9e7a4093676fea42abcfdd9a0b1f97d8002d4a617c6f5c8b4dd96ba8f
|
4
|
+
data.tar.gz: d3370b78ff431d8e380e75408d313e1aabdb9e2ec2b69178ff37aa376a4206d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64775eb1ea054ad987384f2abd0ca50a60e674e564b1c5c607ec99fad2895a75a9e1a786585b54545344532e50547263874cf96b370aea4f5307c62da250a81e
|
7
|
+
data.tar.gz: 3b5a9b652bf2ca677abd0d1858b3527128d7912452156d8e33990d6c0f03059ed55c5406635c3f186eab3038fb0e5831875cbcf455da4fe58775046a8ebe2b53
|
data/README.md
CHANGED
@@ -20,19 +20,68 @@ This is just the beginning.
|
|
20
20
|
## Watch the video
|
21
21
|
[](http://www.youtube.com/watch?v=9iZkE8ZrFMU "Introduction to Hyperlayer")
|
22
22
|
|
23
|
-
* [What is Hyperlayer?](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=00m08s)
|
24
|
-
* [Why Hyperlayer?](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=04m40s)
|
25
|
-
* [Meet the demo app](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=05m31s)
|
26
|
-
* [Debugging with Hyperlayer - Viewing spec runs](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=09m34s)
|
27
|
-
* [Debugging with Hyperlayer - Application flow & state](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=10m39s)
|
28
|
-
* [Debugging with Hyperlayer - Code view](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=17m56s)
|
29
|
-
* [We’ve fixed our bug](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=25m37s)
|
30
|
-
* [Closing notes](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=27m47s)
|
31
|
-
|
32
|
-
##
|
33
|
-
|
34
|
-
|
23
|
+
* [What is Hyperlayer? (00:08)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=00m08s)
|
24
|
+
* [Why Hyperlayer? (04:40)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=04m40s)
|
25
|
+
* [Meet the demo app (05:31)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=05m31s)
|
26
|
+
* [Debugging with Hyperlayer - Viewing spec runs (09:34)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=09m34s)
|
27
|
+
* [Debugging with Hyperlayer - Application flow & state (10:39)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=10m39s)
|
28
|
+
* [Debugging with Hyperlayer - Code view (17:56)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=17m56s)
|
29
|
+
* [We’ve fixed our bug (25:37)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=25m37s)
|
30
|
+
* [Closing notes (27:47)](https://www.youtube.com/watch?v=9iZkE8ZrFMU&t=27m47s)
|
31
|
+
|
32
|
+
## Getting setup
|
33
|
+
|
34
|
+
### Installation
|
35
|
+
|
36
|
+
Add the gem to your Gemfile
|
37
|
+
|
38
|
+
```
|
39
|
+
gem 'hyperlayer'
|
40
|
+
```
|
41
|
+
|
42
|
+
A few tables are added to handle Hyperlayer objects so `bundle exec rake db:migrate`
|
43
|
+
|
44
|
+
Add in your `spec_helper.rb` please add:
|
45
|
+
|
46
|
+
```
|
47
|
+
RSpec.configure do |config|
|
48
|
+
# Add this block
|
49
|
+
config.around(:each) do |example|
|
50
|
+
trace = Hyperlayer::Tracer.setup_trace
|
51
|
+
trace.enable
|
52
|
+
|
53
|
+
example.run
|
54
|
+
|
55
|
+
trace.disable
|
56
|
+
end
|
57
|
+
|
58
|
+
...
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
62
|
+
Finally mount the UI by adding this to your `routes.rb`:
|
63
|
+
|
64
|
+
```
|
65
|
+
mount Hyperlayer::Engine => '/hyperlayer'
|
66
|
+
```
|
67
|
+
|
68
|
+
Note: You must have Redis installed and running locally.
|
69
|
+
|
70
|
+
### Using the app
|
71
|
+
|
72
|
+
Once you have completed the above, running a spec will cause the emits to be emitted to Redis.
|
73
|
+
|
74
|
+
In order to listen to/process the events you must run:
|
75
|
+
```
|
76
|
+
rake hyperlayer:listen
|
77
|
+
```
|
78
|
+
You should see events coming in as they are processed.
|
79
|
+
|
80
|
+
Now simply load `http://localhost:3000/hyperlayer`.
|
81
|
+
|
82
|
+
For better instructions I recommend you watch the video - choose one of the "Debugging with Hyperlayer" chapters above!
|
35
83
|
## Author
|
36
84
|
|
37
|
-
|
38
|
-
|
85
|
+
I'm [Geoff Wright](https://www.github.com/geoffw8) - Co-Founder & Chief Technology Officer at [Tembo Money](https://tembomoney.com) - the only place in the UK you can view your true house buying budget.
|
86
|
+
|
87
|
+
This is a PoC - so I'm super keen for any feedback. Please feel free to reach out!
|
data/lib/hyperlayer/version.rb
CHANGED