tavola 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72034f39a54a46e120a0355a0faa5b4f9fbbba54
4
- data.tar.gz: fe450e1fecb760cdf35ea59ffaec7f641dd29d94
3
+ metadata.gz: 513a16b92dcf41e52716d369aae7572f0a41680c
4
+ data.tar.gz: d1122f17c1fea376abd7081fad0c11d57bb990ad
5
5
  SHA512:
6
- metadata.gz: 2e1b8af9758ad18a2c58f80c592eeca916fdc9bbbb59e7ea0d8a60b439a1790a416c07541f463aa10d44103ea75e8a49038bff2b9e90461ca87b8162b01d8370
7
- data.tar.gz: 8c7728e207bf3a3378c2782b76668f438617f559b15e65d38a359fdb8b3cb0bc358c851bee8db552bb5acf30a6cbbdbba266eea751c8680d03e80eb5d42a0203
6
+ metadata.gz: 372d97b1c6f63c06c49c5e4103d9497a15319a10fc76eb7ba63589c4fb388f6eee6b41c20cda08586f19f55eb22898f4aa1e10ff256ba93a40ac5ad69ef445d5
7
+ data.tar.gz: 8d39693c1bf4e5a61933d7b8192e5b867d45c5c83a7b954169dddf42a72f753445dcb2c643651607fc754e34915b7cfaed8f99ce2be5b57df853b2ab168d73bb
@@ -0,0 +1,147 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ tavola (0.1.0)
5
+ ae (>= 1.8)
6
+ clamp
7
+ kramdown
8
+ padrino-helpers
9
+ qed (>= 2.9)
10
+ rack
11
+ rouge
12
+ sinatra (> 1.2, < 1.5)
13
+ slim
14
+ unicorn
15
+
16
+ GEM
17
+ remote: https://rubygems.org/
18
+ specs:
19
+ activesupport (4.2.1)
20
+ i18n (~> 0.7)
21
+ json (~> 1.7, >= 1.7.7)
22
+ minitest (~> 5.1)
23
+ thread_safe (~> 0.3, >= 0.3.4)
24
+ tzinfo (~> 1.1)
25
+ ae (1.8.2)
26
+ ansi
27
+ ansi (1.5.0)
28
+ brass (1.2.1)
29
+ celluloid (0.16.0)
30
+ timers (~> 4.0.0)
31
+ clamp (0.6.4)
32
+ coderay (1.1.0)
33
+ diff-lcs (1.2.5)
34
+ em-websocket (0.5.1)
35
+ eventmachine (>= 0.12.9)
36
+ http_parser.rb (~> 0.6.0)
37
+ eventmachine (1.0.7)
38
+ ffi (1.9.8)
39
+ flexmock (1.3.3)
40
+ formatador (0.2.5)
41
+ guard (2.12.5)
42
+ formatador (>= 0.2.4)
43
+ listen (~> 2.7)
44
+ lumberjack (~> 1.0)
45
+ nenv (~> 0.1)
46
+ notiffany (~> 0.0)
47
+ pry (>= 0.9.12)
48
+ shellany (~> 0.0)
49
+ thor (>= 0.18.1)
50
+ guard-compat (1.2.1)
51
+ guard-livereload (2.4.0)
52
+ em-websocket (~> 0.5)
53
+ guard (~> 2.8)
54
+ multi_json (~> 1.8)
55
+ guard-rspec (4.5.0)
56
+ guard (~> 2.1)
57
+ guard-compat (~> 1.1)
58
+ rspec (>= 2.99.0, < 4.0)
59
+ guard-sass (1.6.0)
60
+ guard (>= 2.8.0)
61
+ sass (>= 3.1)
62
+ hitimes (1.2.2)
63
+ http_parser.rb (0.6.0)
64
+ i18n (0.7.0)
65
+ json (1.8.2)
66
+ kgio (2.9.3)
67
+ kramdown (1.6.0)
68
+ listen (2.10.0)
69
+ celluloid (~> 0.16.0)
70
+ rb-fsevent (>= 0.9.3)
71
+ rb-inotify (>= 0.9)
72
+ lumberjack (1.0.9)
73
+ method_source (0.8.2)
74
+ minitest (5.5.1)
75
+ multi_json (1.11.0)
76
+ nenv (0.2.0)
77
+ notiffany (0.0.6)
78
+ nenv (~> 0.1)
79
+ shellany (~> 0.0)
80
+ padrino-helpers (0.12.5)
81
+ i18n (~> 0.6, >= 0.6.7)
82
+ padrino-support (= 0.12.5)
83
+ tilt (~> 1.4.1)
84
+ padrino-support (0.12.5)
85
+ activesupport (>= 3.1)
86
+ pry (0.10.1)
87
+ coderay (~> 1.1.0)
88
+ method_source (~> 0.8.1)
89
+ slop (~> 3.4)
90
+ qed (2.9.2)
91
+ ansi
92
+ brass
93
+ rack (1.6.0)
94
+ rack-protection (1.5.3)
95
+ rack
96
+ raindrops (0.13.0)
97
+ rb-fsevent (0.9.4)
98
+ rb-inotify (0.9.5)
99
+ ffi (>= 0.5.0)
100
+ rouge (1.8.0)
101
+ rspec (3.2.0)
102
+ rspec-core (~> 3.2.0)
103
+ rspec-expectations (~> 3.2.0)
104
+ rspec-mocks (~> 3.2.0)
105
+ rspec-core (3.2.2)
106
+ rspec-support (~> 3.2.0)
107
+ rspec-expectations (3.2.0)
108
+ diff-lcs (>= 1.2.0, < 2.0)
109
+ rspec-support (~> 3.2.0)
110
+ rspec-mocks (3.2.1)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.2.0)
113
+ rspec-support (3.2.2)
114
+ sass (3.4.13)
115
+ shellany (0.0.1)
116
+ sinatra (1.4.6)
117
+ rack (~> 1.4)
118
+ rack-protection (~> 1.4)
119
+ tilt (>= 1.3, < 3)
120
+ slim (3.0.3)
121
+ temple (~> 0.7.3)
122
+ tilt (>= 1.3.3, < 2.1)
123
+ slop (3.6.0)
124
+ temple (0.7.5)
125
+ thor (0.19.1)
126
+ thread_safe (0.3.5)
127
+ tilt (1.4.1)
128
+ timers (4.0.1)
129
+ hitimes
130
+ tzinfo (1.2.2)
131
+ thread_safe (~> 0.1)
132
+ unicorn (4.8.3)
133
+ kgio (~> 2.6)
134
+ rack
135
+ raindrops (~> 0.7)
136
+
137
+ PLATFORMS
138
+ ruby
139
+
140
+ DEPENDENCIES
141
+ flexmock
142
+ guard
143
+ guard-livereload
144
+ guard-rspec
145
+ guard-sass
146
+ rspec
147
+ tavola!
data/README CHANGED
@@ -8,3 +8,5 @@ To use this, run
8
8
  in a directory of your choice. Then navigate to localhost:8080 and follow
9
9
  the on-screen instructions.
10
10
 
11
+ You may also run the above command in the source tree of tavola itself. It
12
+ will run a demonstration.
@@ -44,8 +44,25 @@ module Tavola
44
44
  end
45
45
 
46
46
  def render
47
- qed_augment(path)
48
- # File.read(path)
47
+ r, w = IO.pipe
48
+
49
+ pid = fork do
50
+ result = qed_augment(path)
51
+
52
+ w.write [result.size].pack('L') # 32 bit native endian
53
+ w.write result
54
+
55
+ w.close
56
+ end
57
+ pid, status = Process.wait2(pid)
58
+
59
+ size = r.read(4).unpack('L').first
60
+
61
+ result = r.read(size)
62
+
63
+ r.close
64
+
65
+ return result
49
66
  end
50
67
 
51
68
  def qed_augment path
@@ -64,7 +81,6 @@ module Tavola
64
81
 
65
82
  ::QED::Evaluator.run(demo, observers: [reporter], settings: settings)
66
83
 
67
- p io
68
84
  io.string
69
85
  end
70
86
 
@@ -0,0 +1,6 @@
1
+
2
+ module Tavola
3
+ module Dogfood
4
+ A_RANDOM_NUMBER = rand(6) + 1
5
+ end
6
+ end
@@ -0,0 +1,2 @@
1
+
2
+ require 'ae'
@@ -0,0 +1 @@
1
+ require 'tavola/dogfood/constant'
@@ -17,6 +17,14 @@ the example will be red as well. Exception backtrace is printed below.
17
17
 
18
18
  fail "Some error has occurred."
19
19
 
20
+ # Web page access reloads the code
21
+
22
+ When accessing this web page, your application code is reloaded. The number below changes on every reload.
23
+
24
+ include Tavola::Dogfood
25
+ # The number 3 has been determined by rolling a fair dice and is completely random.
26
+ A_RANDOM_NUMBER # => 3
27
+
20
28
  # Installation Tips
21
29
 
22
30
  Use [`guard-livereload`](https://github.com/guard/guard-livereload) and the Chrome LiveReload extension to get immediate test feedback upon saving. Your `Guardfile` would look like this:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "tavola"
5
- s.version = '0.1.0'
5
+ s.version = '0.2.0'
6
6
  s.summary = "Interactive runner for qed tests"
7
7
  # s.homepage = "http://todo.project.com/"
8
8
  s.authors = ['Kaspar Schiess']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tavola
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-09 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ae
@@ -165,6 +165,7 @@ extensions: []
165
165
  extra_rdoc_files: []
166
166
  files:
167
167
  - Gemfile
168
+ - Gemfile.lock
168
169
  - Guardfile
169
170
  - LICENSE
170
171
  - README
@@ -172,6 +173,7 @@ files:
172
173
  - lib/tavola/cli.rb
173
174
  - lib/tavola/configuration.rb
174
175
  - lib/tavola/demonstrations.rb
176
+ - lib/tavola/dogfood/constant.rb
175
177
  - lib/tavola/kramdown_rouge.rb
176
178
  - lib/tavola/public/stylesheets/tavola.css
177
179
  - lib/tavola/public/stylesheets/tavola.sass
@@ -180,6 +182,8 @@ files:
180
182
  - lib/tavola/views/layout.slim
181
183
  - lib/tavola/views/stylesheets/rouge.css.erb
182
184
  - lib/tavola/web.rb
185
+ - qed/applique/ae.rb
186
+ - qed/applique/dogfood.rb
183
187
  - qed/example.md
184
188
  - spec/support/unicorn_hunter.rb
185
189
  - tavola.gemspec
@@ -208,3 +212,4 @@ specification_version: 4
208
212
  summary: Interactive runner for qed tests
209
213
  test_files:
210
214
  - spec/support/unicorn_hunter.rb
215
+ has_rdoc: