hyper-trace 0.99.6 → 1.0.alpha1

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: d0adc45faa64b2e6009c13a40ba098b95fd73dfce91f1b54e268b15f99cfb092
4
- data.tar.gz: 439d95ca93a598b2bffc5f03900a885a29acc5f5f4a7c98d3d90dbbd08de9e8a
3
+ metadata.gz: c7d6f775ed1f3c5079af0bf4dd75119a39a06f089040bcdd799e470f8cda44ca
4
+ data.tar.gz: 56085cc7330b2f88d6c65fda76a3e5420010815852007f729b1fe15c9b19403b
5
5
  SHA512:
6
- metadata.gz: 2bd574954bd44f6e80b611d2abff4d3b9fae23b0310dec224e6b99b78eb8aa5a090e9d36da7fdc48e7847ad3b0c84c62fb88179876ae46772312b6e7e83055ce
7
- data.tar.gz: ee1151c5a81b8963f910b5b113269358bc5f6f0a89fe378b604b5d387c6cc7da212349c6599ea1768e0a625a2996b3377b24990bf3f26700e0c2e2d23792dcde
6
+ metadata.gz: 100a4729479eaa5920796fd7dcaffa41bb365a699596855f0c534d31f571b1fdc6dec4f701178bd4bec7797048d8f09723f49d477a3ef9ecf70fc250c325b9a6
7
+ data.tar.gz: 91d11b362f9938d45e91b9a2954d46cb582b55cf2c2c655ae4f7fe09794974faa6dfcf58e14831b8378e5dc8cacc746b8992dec0da5813ba58dad9533d576038
data/DOCS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # HyperTrace
2
2
 
3
- Method tracing and conditional break points for [Opal](http://opalrb.org/) and [Hyperloop](http://ruby-hyperloop.io) debug.
3
+ Method tracing and conditional break points for [Opal](http://opalrb.org/) and [Hyperstack](http://hyperstack.org) debug.
4
4
 
5
5
  Typically you are going to use this in Capybara or Opal-RSpec examples that you are debugging.
6
6
 
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- gem 'hyperloop-config', path: '../hyperloop-config'
2
+ gem 'hyperstack-config', path: '../hyperstack-config'
3
3
  # Specify your gem's dependencies in hyper-trace.gemspec
4
4
  gemspec
@@ -1,18 +1,20 @@
1
1
  PATH
2
- remote: ../hyperloop-config
2
+ remote: ../hyperstack-config
3
3
  specs:
4
- hyperloop-config (0.99.6)
5
- libv8 (~> 6.7.0)
6
- mini_racer (~> 0.2.4)
4
+ hyperstack-config (0.1)
5
+ libv8 (~> 6.3.0)
6
+ listen (~> 3.0)
7
+ mini_racer (~> 0.1.15)
7
8
  opal (>= 0.11.0, < 0.12.0)
8
9
  opal-browser (~> 0.2.0)
9
10
  uglifier
11
+ websocket
10
12
 
11
13
  PATH
12
14
  remote: .
13
15
  specs:
14
- hyper-trace (0.99.6)
15
- hyperloop-config (= 0.99.6)
16
+ hyper-trace (0.1.0)
17
+ hyperstack-config (= 0.1.0)
16
18
 
17
19
  GEM
18
20
  remote: https://rubygems.org/
@@ -24,15 +26,20 @@ GEM
24
26
  archive-zip (~> 0.10)
25
27
  nokogiri (~> 1.8)
26
28
  execjs (2.7.0)
29
+ ffi (1.9.25)
27
30
  hike (1.2.3)
28
31
  io-like (0.3.0)
29
- libv8 (6.7.288.46.1)
30
- mini_portile2 (2.4.0)
31
- mini_racer (0.2.4)
32
- libv8 (>= 6.3)
33
- nokogiri (1.10.0)
34
- mini_portile2 (~> 2.4.0)
35
- opal (0.11.4)
32
+ libv8 (6.3.292.48.1-x86_64-darwin-15)
33
+ listen (3.1.5)
34
+ rb-fsevent (~> 0.9, >= 0.9.4)
35
+ rb-inotify (~> 0.9, >= 0.9.7)
36
+ ruby_dep (~> 1.2)
37
+ mini_portile2 (2.3.0)
38
+ mini_racer (0.1.15)
39
+ libv8 (~> 6.3)
40
+ nokogiri (1.8.5)
41
+ mini_portile2 (~> 2.3.0)
42
+ opal (0.11.3)
36
43
  ast (>= 2.3.0)
37
44
  hike (~> 1.2)
38
45
  parser (= 2.3.3.1)
@@ -44,9 +51,14 @@ GEM
44
51
  parser (2.3.3.1)
45
52
  ast (~> 2.2)
46
53
  rake (10.5.0)
54
+ rb-fsevent (0.10.3)
55
+ rb-inotify (0.9.10)
56
+ ffi (>= 0.5.0, < 2)
57
+ ruby_dep (1.5.0)
47
58
  sourcemap (0.1.1)
48
- uglifier (4.1.20)
59
+ uglifier (4.1.19)
49
60
  execjs (>= 0.3.0, < 3)
61
+ websocket (1.2.8)
50
62
 
51
63
  PLATFORMS
52
64
  ruby
@@ -55,8 +67,8 @@ DEPENDENCIES
55
67
  bundler (~> 1.12)
56
68
  chromedriver-helper
57
69
  hyper-trace!
58
- hyperloop-config!
70
+ hyperstack-config!
59
71
  rake (~> 10.0)
60
72
 
61
73
  BUNDLED WITH
62
- 1.17.3
74
+ 1.16.1
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'hyperloop-config', HyperTrace::VERSION
21
+ spec.add_dependency 'hyperstack-config', HyperTrace::VERSION
22
22
  spec.add_development_dependency "bundler", "~> 1.12"
23
23
  spec.add_development_dependency 'chromedriver-helper'
24
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,4 +1,4 @@
1
- Hyperloop.import 'hyper-trace'
1
+ Hyperstack.import 'hyper-trace'
2
2
  if RUBY_ENGINE=='opal'
3
3
  require 'hyper_trace/hyper_trace.rb'
4
4
  require 'hyper_trace/react_trace.rb'
@@ -1,6 +1,6 @@
1
1
  class Class
2
2
  def hyper_trace(*args, &block)
3
- return unless React::IsomorphicHelpers.on_opal_client?
3
+ return self unless Hyperstack::Component::IsomorphicHelpers.on_opal_client?
4
4
  HyperTrace.hyper_trace(self, *args, &block)
5
5
  end
6
6
  alias hypertrace hyper_trace
@@ -106,6 +106,7 @@ module HyperTrace
106
106
  end
107
107
  selected_methods.each { |method| instrument_method(method, config) }
108
108
  end
109
+ klass
109
110
  end
110
111
 
111
112
  def exclusions
@@ -254,7 +255,7 @@ module HyperTrace
254
255
  filtered_instance_variables = if filter
255
256
  filter
256
257
  else
257
- instance.instance_variables
258
+ instance.instance_variables.reject { |var| var =~ /@__hyperstack_/ }
258
259
  end
259
260
  return if filtered_instance_variables.empty? && block.nil?
260
261
  group "self:#{instance_tag(instance,' ')}", collapsed: true do
@@ -1,44 +1,32 @@
1
1
 
2
- module React
3
- module Component
4
- module ClassMethods
5
- def hypertrace_exclusions
6
- @@hypertrace_exclusions ||=
7
- Tags::HTML_TAGS +
8
- Tags::HTML_TAGS.collect { |t| t.upcase } +
9
- [
10
- :_render_wrapper, :params, :find_component, :lookup_const,
11
- :update_react_js_state, :props_changed?,
12
- :update_react_js_state2, :set_state, :original_component_did_mount,
13
- :props, :reactive_record_link_to_enclosing_while_loading_container,
14
- :reactive_record_link_set_while_loading_container_class,
15
- :dom_node, :state, :run_callback, :initial_state, :set_state!,
16
- :set_or_replace_state_or_prop, :original_component_did_update
17
- ]
2
+ module Hyperstack
3
+ module Internal
4
+ module Component
5
+ module ClassMethods
6
+ def hypertrace_exclusions
7
+ @@hypertrace_exclusions ||=
8
+ Tags::HTML_TAGS +
9
+ Tags::HTML_TAGS.collect { |t| t.upcase } +
10
+ [
11
+ :_render_wrapper, :params, :find_component, :lookup_const,
12
+ :update_react_js_state, :props_changed?,
13
+ :update_react_js_state2, :set_state, :original_component_did_mount,
14
+ :props, :reactive_record_link_to_enclosing_while_loading_container,
15
+ :reactive_record_link_set_while_loading_container_class,
16
+ :dom_node, :state, :run_callback, :initial_state, :set_state!,
17
+ :set_or_replace_state_or_prop, :original_component_did_update, :observing,
18
+ :update_objects_to_observe, :remove, :set, :mutations
19
+ ]
20
+ end
18
21
  end
19
- end
20
- module DslInstanceMethods
21
- def hypertrace_format_instance(h)
22
- filtered_vars =
23
- instance_variables -
24
- ['@native', '@props_wrapper', '@state_wrapper', '@waiting_on_resources']
25
- h.format_instance(self, filtered_vars) do
26
- @props_wrapper.props.each do |param, value|
27
- val = h.safe_i value
28
- h.group("params.#{param}: #{val[0..10]}", collapsed: true) do
29
- puts val
30
- h.log value
31
- end
32
- end if @props_wrapper
33
- hash = Hash.new(`#{@native}.state`)
34
- updated_at = hash.delete('***_state_updated_at-***')
35
- h.group("state last updated at: #{Time.at(updated_at)}") if updated_at
36
- hash.each do |state, value|
37
- val = h.safe_i(value)
38
- h.group("state.#{state}: #{val[0..10]}", collapsed: true) do
39
- puts val
40
- h.log value
41
- end
22
+ module InstanceMethods
23
+ def hypertrace_format_instance(h)
24
+ filtered_vars = instance_variables.reject { |var| var =~ /@__hyperstack_/ }
25
+ filtered_vars = filtered_vars.select { |var| var =~ /@[A-Z]/ } +
26
+ filtered_vars.reject { |var| var =~ /@[A-Z]/ }
27
+ h.format_instance(self, filtered_vars) do
28
+ updated_at = `#{@__hyperstack_component_native}.state['***_state_updated_at-***']`
29
+ h.group("state last updated at: #{Time.at(updated_at)}") if updated_at
42
30
  end
43
31
  end
44
32
  end
@@ -1,3 +1,3 @@
1
1
  module HyperTrace
2
- VERSION = '0.99.6'
2
+ VERSION = '1.0.alpha1'
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper-trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.6
4
+ version: 1.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - catmando
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-30 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: hyperloop-config
14
+ name: hyperstack-config
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.99.6
19
+ version: 1.0.alpha1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.99.6
26
+ version: 1.0.alpha1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,11 +78,7 @@ files:
78
78
  - DOCS.md
79
79
  - Gemfile
80
80
  - Gemfile.lock
81
- - LICENSE.txt
82
- - README.md
83
81
  - Rakefile
84
- - bin/console
85
- - bin/setup
86
82
  - hyper-trace.gemspec
87
83
  - lib/hyper-trace.rb
88
84
  - lib/hyper_trace/hyper_trace.rb
@@ -103,11 +99,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
99
  version: '0'
104
100
  required_rubygems_version: !ruby/object:Gem::Requirement
105
101
  requirements:
106
- - - ">="
102
+ - - ">"
107
103
  - !ruby/object:Gem::Version
108
- version: '0'
104
+ version: 1.3.1
109
105
  requirements: []
110
- rubygems_version: 3.0.2
106
+ rubyforge_project:
107
+ rubygems_version: 2.7.8
111
108
  signing_key:
112
109
  specification_version: 4
113
110
  summary: Method tracing and conditional breakpoints for Opal Ruby
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 catmando
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,83 +0,0 @@
1
- <div class="githubhyperloopheader">
2
-
3
- <p align="center">
4
-
5
- <a href="http://ruby-hyperloop.org/" alt="Hyperloop" title="Hyperloop">
6
- <img width="350px" src="http://ruby-hyperloop.org/images/hyperloop-github-logo.png">
7
- </a>
8
-
9
- </p>
10
-
11
- <h2 align="center">The Complete Isomorphic Ruby Framework</h2>
12
-
13
- <br>
14
-
15
- <a href="http://ruby-hyperloop.org/" alt="Hyperloop" title="Hyperloop">
16
- <img src="http://ruby-hyperloop.org/images/githubhyperloopbadge.png">
17
- </a>
18
-
19
- <a href="https://gitter.im/ruby-hyperloop/chat" alt="Gitter chat" title="Gitter chat">
20
- <img src="http://ruby-hyperloop.org/images/githubgitterbadge.png">
21
- </a>
22
-
23
- [![Gem Version](https://badge.fury.io/rb/hyper-trace.svg)](https://badge.fury.io/rb/hyper-trace)
24
-
25
- <p align="center">
26
- <img src="http://ruby-hyperloop.org/images/HyperTracer.png" width="100" alt="Hyper-trace">
27
- </p>
28
-
29
- </div>
30
-
31
- ## Hyper-Trace GEM is part of Hyperloop GEMS family
32
-
33
- Build interactive Web applications quickly. Hyperloop encourages rapid development with clean, pragmatic design. With developer productivity as our highest goal, Hyperloop takes care of much of the hassle of Web development, so you can focus on innovation and delivering end-user value.
34
-
35
- One language. One model. One set of tests. The same business logic and domain models running on the clients and the server. Hyperloop is fully integrated with Rails and also gives you unfettered access to the complete universe of JavaScript libraries (including React) from within your Ruby code. Hyperloop lets you build beautiful interactive user interfaces in Ruby.
36
-
37
- Everything has a place in our architecture. Components deliver interactive user experiences, Operations encapsulate business logic, Models magically synchronize data between clients and servers, Policies govern authorization and Stores hold local state.
38
-
39
- **Hyper-Trace** brings a method tracing and conditional break points for [Opal](http://opalrb.org/) and [Hyperloop](http://ruby-hyperloop.org) debug.
40
-
41
- Typically you are going to use this in Capybara or Opal-RSpec examples that you are debugging.
42
-
43
- HyperTrace adds a `hypertrace` method to all classes that you will use to switch on tracing and break points.
44
-
45
- ## Getting Started
46
-
47
- 1. Update your Gemfile:
48
-
49
- ```ruby
50
- #Gemfile
51
-
52
- gem 'hyper-trace'
53
- ```
54
-
55
- 2. At the command prompt, update your bundle :
56
-
57
- $ bundle update
58
-
59
- 3. Run the gem install generator:
60
-
61
- $ gem install hyper-trace
62
-
63
- 4. Add `require 'hyper-trace'` to your application or component manifest file.
64
-
65
- 5. Follow the Hyper-trace documentation:
66
-
67
- * [Hyper-trace documentation](http://ruby-hyperloop.org/tools/hypertrace/)
68
- * [Hyperloop Guides](http://ruby-hyperloop.org/docs/architecture)
69
- * [Hyperloop Tutorial](http://ruby-hyperloop.org/tutorials)
70
-
71
- ## Community
72
-
73
- #### Getting Help
74
- Please **do not post** usage questions to GitHub Issues. For these types of questions use our [Gitter chatroom](https://gitter.im/ruby-hyperloop/chat) or [StackOverflow](http://stackoverflow.com/questions/tagged/hyperloop).
75
-
76
- #### Submitting Bugs and Enhancements
77
- [GitHub Issues](https://github.com/ruby-hyperloop/hyperloop/issues) is for suggesting enhancements and reporting bugs. Before submiting a bug make sure you do the following:
78
- * Check out our [contributing guide](https://github.com/ruby-hyperloop/hyperloop/blob/master/CONTRIBUTING.md) for info on our release cycle.
79
-
80
- ## License
81
-
82
- Hyperloop is released under the [MIT License](http://www.opensource.org/licenses/MIT).
83
-
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "hyper/trace"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here