magic_test 0.0.7 → 0.0.9

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
  SHA256:
3
- metadata.gz: 8157f3ad45a33023af27727450bb43a7a54ef4f390bd21a1d5419f81bfd173d2
4
- data.tar.gz: 40eab3d8bfe379bc346f294ed3d881521ddf8defcf7d53a1e60c994050a54b5c
3
+ metadata.gz: b0ffac8b1015f704b56aa6252c24c42941392409b9837edaf55f61273d9bc82c
4
+ data.tar.gz: c4fb61ebdc6472fdb658d3f42024d8af532a6640df07ecb37022d1122a8344d0
5
5
  SHA512:
6
- metadata.gz: 91e84e80faf56d07bf8df3540c09c8324f12e85fe395bf75876d3316ec76d810f19436ceb1773d7848d52cc039c95e853aeac8222af3c9da1042c5ab50ea6d99
7
- data.tar.gz: 13fad9265f6b3cf86a2d26760628680dc59c6aeeab896963e18d037effe0c8444e2449a48d2adcabdec937c628d1060ab8328e90565c7c6a772c75395226c106
6
+ metadata.gz: b1565a8fd24aa3ed2715d9430606ba59a3cdfb6c21768611a0751845348c69ef8cccd5acd0084c606de5c28145fbc1a6af583453272702b089f1817a5835371d
7
+ data.tar.gz: 31012eea31b3fe12994fe44017f284affc46927a3ee462f499942ef64132e0c636fde601e4dcc500a86b13c90c1ddba5db53f95bebc05b6f00edde7db1f628c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- magic_test (0.0.6)
4
+ magic_test (0.0.9)
5
5
  capybara (>= 3.0)
6
6
  pry
7
7
  pry-stack_explorer
@@ -10,61 +10,67 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.0.0)
14
- actionpack (= 7.0.0)
15
- activesupport (= 7.0.0)
13
+ actioncable (7.0.2.2)
14
+ actionpack (= 7.0.2.2)
15
+ activesupport (= 7.0.2.2)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (7.0.0)
19
- actionpack (= 7.0.0)
20
- activejob (= 7.0.0)
21
- activerecord (= 7.0.0)
22
- activestorage (= 7.0.0)
23
- activesupport (= 7.0.0)
18
+ actionmailbox (7.0.2.2)
19
+ actionpack (= 7.0.2.2)
20
+ activejob (= 7.0.2.2)
21
+ activerecord (= 7.0.2.2)
22
+ activestorage (= 7.0.2.2)
23
+ activesupport (= 7.0.2.2)
24
24
  mail (>= 2.7.1)
25
- actionmailer (7.0.0)
26
- actionpack (= 7.0.0)
27
- actionview (= 7.0.0)
28
- activejob (= 7.0.0)
29
- activesupport (= 7.0.0)
25
+ net-imap
26
+ net-pop
27
+ net-smtp
28
+ actionmailer (7.0.2.2)
29
+ actionpack (= 7.0.2.2)
30
+ actionview (= 7.0.2.2)
31
+ activejob (= 7.0.2.2)
32
+ activesupport (= 7.0.2.2)
30
33
  mail (~> 2.5, >= 2.5.4)
34
+ net-imap
35
+ net-pop
36
+ net-smtp
31
37
  rails-dom-testing (~> 2.0)
32
- actionpack (7.0.0)
33
- actionview (= 7.0.0)
34
- activesupport (= 7.0.0)
38
+ actionpack (7.0.2.2)
39
+ actionview (= 7.0.2.2)
40
+ activesupport (= 7.0.2.2)
35
41
  rack (~> 2.0, >= 2.2.0)
36
42
  rack-test (>= 0.6.3)
37
43
  rails-dom-testing (~> 2.0)
38
44
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
39
- actiontext (7.0.0)
40
- actionpack (= 7.0.0)
41
- activerecord (= 7.0.0)
42
- activestorage (= 7.0.0)
43
- activesupport (= 7.0.0)
45
+ actiontext (7.0.2.2)
46
+ actionpack (= 7.0.2.2)
47
+ activerecord (= 7.0.2.2)
48
+ activestorage (= 7.0.2.2)
49
+ activesupport (= 7.0.2.2)
44
50
  globalid (>= 0.6.0)
45
51
  nokogiri (>= 1.8.5)
46
- actionview (7.0.0)
47
- activesupport (= 7.0.0)
52
+ actionview (7.0.2.2)
53
+ activesupport (= 7.0.2.2)
48
54
  builder (~> 3.1)
49
55
  erubi (~> 1.4)
50
56
  rails-dom-testing (~> 2.0)
51
57
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
52
- activejob (7.0.0)
53
- activesupport (= 7.0.0)
58
+ activejob (7.0.2.2)
59
+ activesupport (= 7.0.2.2)
54
60
  globalid (>= 0.3.6)
55
- activemodel (7.0.0)
56
- activesupport (= 7.0.0)
57
- activerecord (7.0.0)
58
- activemodel (= 7.0.0)
59
- activesupport (= 7.0.0)
60
- activestorage (7.0.0)
61
- actionpack (= 7.0.0)
62
- activejob (= 7.0.0)
63
- activerecord (= 7.0.0)
64
- activesupport (= 7.0.0)
61
+ activemodel (7.0.2.2)
62
+ activesupport (= 7.0.2.2)
63
+ activerecord (7.0.2.2)
64
+ activemodel (= 7.0.2.2)
65
+ activesupport (= 7.0.2.2)
66
+ activestorage (7.0.2.2)
67
+ actionpack (= 7.0.2.2)
68
+ activejob (= 7.0.2.2)
69
+ activerecord (= 7.0.2.2)
70
+ activesupport (= 7.0.2.2)
65
71
  marcel (~> 1.0)
66
72
  mini_mime (>= 1.1.0)
67
- activesupport (7.0.0)
73
+ activesupport (7.0.2.2)
68
74
  concurrent-ruby (~> 1.0, >= 1.0.2)
69
75
  i18n (>= 1.6, < 2)
70
76
  minitest (>= 5.1)
@@ -88,12 +94,14 @@ GEM
88
94
  concurrent-ruby (1.1.9)
89
95
  crass (1.0.6)
90
96
  debug_inspector (1.1.0)
97
+ digest (3.1.0)
91
98
  erubi (1.10.0)
92
99
  globalid (1.0.0)
93
100
  activesupport (>= 5.0)
94
- i18n (1.8.11)
101
+ i18n (1.10.0)
95
102
  concurrent-ruby (~> 1.0)
96
- loofah (2.13.0)
103
+ io-wait (0.2.1)
104
+ loofah (2.14.0)
97
105
  crass (~> 1.0.2)
98
106
  nokogiri (>= 1.5.9)
99
107
  mail (2.7.1)
@@ -102,13 +110,28 @@ GEM
102
110
  matrix (0.4.2)
103
111
  method_source (1.0.0)
104
112
  mini_mime (1.1.2)
105
- mini_portile2 (2.6.1)
113
+ mini_portile2 (2.8.0)
106
114
  minitest (5.15.0)
115
+ net-imap (0.2.3)
116
+ digest
117
+ net-protocol
118
+ strscan
119
+ net-pop (0.1.1)
120
+ digest
121
+ net-protocol
122
+ timeout
123
+ net-protocol (0.1.2)
124
+ io-wait
125
+ timeout
126
+ net-smtp (0.3.1)
127
+ digest
128
+ net-protocol
129
+ timeout
107
130
  nio4r (2.5.8)
108
- nokogiri (1.12.5)
109
- mini_portile2 (~> 2.6.1)
131
+ nokogiri (1.13.3)
132
+ mini_portile2 (~> 2.8.0)
110
133
  racc (~> 1.4)
111
- nokogiri (1.12.5-x86_64-darwin)
134
+ nokogiri (1.13.3-x86_64-darwin)
112
135
  racc (~> 1.4)
113
136
  parallel (1.21.0)
114
137
  parser (3.0.3.2)
@@ -124,28 +147,28 @@ GEM
124
147
  rack (2.2.3)
125
148
  rack-test (1.1.0)
126
149
  rack (>= 1.0, < 3)
127
- rails (7.0.0)
128
- actioncable (= 7.0.0)
129
- actionmailbox (= 7.0.0)
130
- actionmailer (= 7.0.0)
131
- actionpack (= 7.0.0)
132
- actiontext (= 7.0.0)
133
- actionview (= 7.0.0)
134
- activejob (= 7.0.0)
135
- activemodel (= 7.0.0)
136
- activerecord (= 7.0.0)
137
- activestorage (= 7.0.0)
138
- activesupport (= 7.0.0)
150
+ rails (7.0.2.2)
151
+ actioncable (= 7.0.2.2)
152
+ actionmailbox (= 7.0.2.2)
153
+ actionmailer (= 7.0.2.2)
154
+ actionpack (= 7.0.2.2)
155
+ actiontext (= 7.0.2.2)
156
+ actionview (= 7.0.2.2)
157
+ activejob (= 7.0.2.2)
158
+ activemodel (= 7.0.2.2)
159
+ activerecord (= 7.0.2.2)
160
+ activestorage (= 7.0.2.2)
161
+ activesupport (= 7.0.2.2)
139
162
  bundler (>= 1.15.0)
140
- railties (= 7.0.0)
163
+ railties (= 7.0.2.2)
141
164
  rails-dom-testing (2.0.3)
142
165
  activesupport (>= 4.2.0)
143
166
  nokogiri (>= 1.6)
144
167
  rails-html-sanitizer (1.4.2)
145
168
  loofah (~> 2.3)
146
- railties (7.0.0)
147
- actionpack (= 7.0.0)
148
- activesupport (= 7.0.0)
169
+ railties (7.0.2.2)
170
+ actionpack (= 7.0.2.2)
171
+ activesupport (= 7.0.2.2)
149
172
  method_source
150
173
  rake (>= 12.2)
151
174
  thor (~> 1.0)
@@ -172,7 +195,9 @@ GEM
172
195
  standard (1.5.0)
173
196
  rubocop (= 1.23.0)
174
197
  rubocop-performance (= 1.12.0)
175
- thor (1.1.0)
198
+ strscan (3.0.1)
199
+ thor (1.2.1)
200
+ timeout (0.2.0)
176
201
  tzinfo (2.0.4)
177
202
  concurrent-ruby (~> 1.0)
178
203
  unicode-display_width (2.1.0)
@@ -181,7 +206,7 @@ GEM
181
206
  websocket-extensions (0.1.5)
182
207
  xpath (3.2.0)
183
208
  nokogiri (~> 1.8)
184
- zeitwerk (2.5.1)
209
+ zeitwerk (2.5.4)
185
210
 
186
211
  PLATFORMS
187
212
  ruby
@@ -76,10 +76,11 @@ module MagicTest
76
76
  end
77
77
 
78
78
  def magic_test
79
+ return unless ENV["MAGIC_TEST"].present?
79
80
  empty_cache
80
81
  @test_lines_written = 0
81
82
  begin
82
- # 👋 This isn't helpful context. Type `up` and hit enter to see where you really are.
83
+ magic_test_pry_hook
83
84
  binding.pry
84
85
  rescue
85
86
  retry
@@ -88,6 +89,17 @@ module MagicTest
88
89
 
89
90
  private
90
91
 
92
+ def magic_test_pry_hook
93
+ Pry.hooks.add_hook(:before_session, "magic_test") do |output, binding, pry|
94
+ Pry.hooks.delete_hook(:before_session, 'magic_test')
95
+ magic_test_file_index = pry.backtrace.index{|line| line.include?(__FILE__)}
96
+ # walk up backtrace until finding the original caller
97
+ until pry.backtrace[magic_test_file_index + 1].include?(pry.last_file) do
98
+ pry.run_command('up')
99
+ end
100
+ end
101
+ end
102
+
91
103
  def get_last
92
104
  history_lines = Readline::HISTORY.to_a.last(20)
93
105
  i = 2
@@ -1,3 +1,3 @@
1
1
  module MagicTest
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.9"
3
3
  end
data/magic_test.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["andrew.culver@gmail.com", "adampallozzi@gmail.com"]
10
10
 
11
11
  spec.summary = "Create system tests interactively."
12
- spec.homepage = "https://github.com/bullet-train/magic_test"
12
+ spec.homepage = "https://github.com/bullet-train-co/magic_test"
13
13
  spec.license = "MIT"
14
14
 
15
15
  # Specify which files should be added to the gem when it is released.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-12-16 00:00:00.000000000 Z
12
+ date: 2022-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -158,7 +158,7 @@ files:
158
158
  - lib/magic_test/version.rb
159
159
  - lib/tasks/magic_test.rake
160
160
  - magic_test.gemspec
161
- homepage: https://github.com/bullet-train/magic_test
161
+ homepage: https://github.com/bullet-train-co/magic_test
162
162
  licenses:
163
163
  - MIT
164
164
  metadata: {}