cocoapods-dependsay 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 +7 -0
- data/.gitignore +3 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +116 -0
- data/LICENSE.txt +22 -0
- data/README.md +11 -0
- data/Rakefile +13 -0
- data/cocoapods-dependsay.gemspec +27 -0
- data/lib/cocoapods-dependsay.rb +1 -0
- data/lib/cocoapods-dependsay/command.rb +1 -0
- data/lib/cocoapods-dependsay/command/dependsay.rb +214 -0
- data/lib/cocoapods-dependsay/gem_version.rb +3 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/public/css/application.css +113 -0
- data/public/javascript/application.js +205 -0
- data/public/javascript/toolbox.js +223 -0
- data/public/javascript/websocket.js +613 -0
- data/spec/command/dependsay_spec.rb +12 -0
- data/spec/spec_helper.rb +50 -0
- data/views/index.erb +30 -0
- data/views/toolbox.erb +67 -0
- metadata +128 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
describe Command::Dependsay do
|
5
|
+
describe 'CLAide' do
|
6
|
+
it 'registers it self' do
|
7
|
+
Command.parse(%w{ dependsay }).should.be.instance_of Command::Dependsay
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
|
3
|
+
$:.unshift((ROOT + 'lib').to_s)
|
4
|
+
$:.unshift((ROOT + 'spec').to_s)
|
5
|
+
|
6
|
+
require 'bundler/setup'
|
7
|
+
require 'bacon'
|
8
|
+
require 'mocha-on-bacon'
|
9
|
+
require 'pretty_bacon'
|
10
|
+
require 'pathname'
|
11
|
+
require 'cocoapods'
|
12
|
+
|
13
|
+
Mocha::Configuration.prevent(:stubbing_non_existent_method)
|
14
|
+
|
15
|
+
require 'cocoapods_plugin'
|
16
|
+
|
17
|
+
#-----------------------------------------------------------------------------#
|
18
|
+
|
19
|
+
module Pod
|
20
|
+
|
21
|
+
# Disable the wrapping so the output is deterministic in the tests.
|
22
|
+
#
|
23
|
+
UI.disable_wrap = true
|
24
|
+
|
25
|
+
# Redirects the messages to an internal store.
|
26
|
+
#
|
27
|
+
module UI
|
28
|
+
@output = ''
|
29
|
+
@warnings = ''
|
30
|
+
|
31
|
+
class << self
|
32
|
+
attr_accessor :output
|
33
|
+
attr_accessor :warnings
|
34
|
+
|
35
|
+
def puts(message = '')
|
36
|
+
@output << "#{message}\n"
|
37
|
+
end
|
38
|
+
|
39
|
+
def warn(message = '', actions = [])
|
40
|
+
@warnings << "#{message}\n"
|
41
|
+
end
|
42
|
+
|
43
|
+
def print(message)
|
44
|
+
@output << message
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
#-----------------------------------------------------------------------------#
|
data/views/index.erb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
|
5
|
+
<title>Rubrowser</title>
|
6
|
+
<link media='all' rel='stylesheet'>
|
7
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
8
|
+
<style><%= file('css/application.css') %></style>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div class='dependency_graph'>
|
12
|
+
<svg></svg>
|
13
|
+
</div>
|
14
|
+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
15
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
16
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
17
|
+
<script src='https://unpkg.com/lodash@4.17.4/lodash.min.js' type='text/javascript'></script>
|
18
|
+
<script src='https://unpkg.com/d3@4.13.0/build/d3.min.js' type='text/javascript'></script>
|
19
|
+
<script type='text/javascript'>
|
20
|
+
var data = <%= data %>;
|
21
|
+
var layout = <%= layout %>;
|
22
|
+
</script>
|
23
|
+
<script type='text/javascript'><%= file('javascript/application.js') %></script>
|
24
|
+
|
25
|
+
<% if toolbox? %>
|
26
|
+
<%= erb :toolbox %>
|
27
|
+
<script type='text/javascript'><%= file('javascript/toolbox.js') %></script>
|
28
|
+
<% end %>
|
29
|
+
</body>
|
30
|
+
</html>
|
data/views/toolbox.erb
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
<div class="toolbox">
|
2
|
+
<div class="card ml-2 mt-2">
|
3
|
+
<div class="card-header">Search</div>
|
4
|
+
<div class="card-body">
|
5
|
+
<label class="form-label">Namespace</label>
|
6
|
+
<textarea id="highlight_by_namespace" class="form-control" rows="5"></textarea>
|
7
|
+
</div>
|
8
|
+
<div class="card-body">
|
9
|
+
<label class="form-label">File Path</label>
|
10
|
+
<textarea id="highlight_by_file_path" class="form-control" rows="5"></textarea>
|
11
|
+
</div>
|
12
|
+
<div class="card-body">
|
13
|
+
<div class="form-check">
|
14
|
+
<input type="checkbox" class="form-check-input" id="highlight_modules"/>
|
15
|
+
<label class="form-check-label">Modules</label>
|
16
|
+
</div>
|
17
|
+
<div class="form-check">
|
18
|
+
<input type="checkbox" class="form-check-input" id="highlight_classes"/>
|
19
|
+
<label class="form-check-label">Classes</label>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div class="card ml-2 mt-2">
|
24
|
+
<div class="card-header">Ignore</div>
|
25
|
+
<div class="card-body">
|
26
|
+
<label>Namespace</label>
|
27
|
+
<textarea id="ignore_by_namespace" class="form-control" rows="5"></textarea>
|
28
|
+
</div>
|
29
|
+
<div class="card-body">
|
30
|
+
<label>File Path</label>
|
31
|
+
<textarea id="ignore_by_file_path" class="form-control" rows="5"></textarea>
|
32
|
+
</div>
|
33
|
+
<div class="card-body">
|
34
|
+
<div class="form-check">
|
35
|
+
<input type="checkbox" class="form-check-input" id="ignore_modules"/>
|
36
|
+
<label class="form-check-label">Modules</label>
|
37
|
+
</div>
|
38
|
+
<div class="form-check">
|
39
|
+
<input type="checkbox" class="form-check-input" id="ignore_classes"/>
|
40
|
+
<label class="form-check-label">Classes</label>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
<div class="card ml-2 mt-2">
|
45
|
+
<div class="card-header">Display</div>
|
46
|
+
<div class="card-body">
|
47
|
+
<button type="button" id="download_layout" class="btn btn-secondary btn-block">Download layout</button>
|
48
|
+
<button type="button" id="pause_simulation" class="btn btn-secondary btn-block">Pause animation</button>
|
49
|
+
<button type="button" id="fix_all" class="btn btn-secondary btn-block">Fix all</button>
|
50
|
+
<button type="button" id="release_all" class="btn btn-secondary btn-block">Release all</button>
|
51
|
+
</div>
|
52
|
+
<div class="card-body">
|
53
|
+
<label class="form-label">Force Collide</label>
|
54
|
+
<input id="force_collide" class="form-control" type="range" value="80" min="0" max="500"/>
|
55
|
+
<div class="form-check">
|
56
|
+
<input type="checkbox" class="form-check-input" id="hide_namespaces"/>
|
57
|
+
<label class="form-check-label">Hide namespaces</label>
|
58
|
+
</div>
|
59
|
+
<div class="form-check">
|
60
|
+
<input type="checkbox" class="form-check-input" id="hide_relations"/>
|
61
|
+
<label class="form-check-label">Hide relations</label>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<div id="information_panel" class="card"></div>
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-dependsay
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ddhjy
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-07-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: parser
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.3.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.3'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.3.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rubocop
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.57.2
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.57.2
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.3'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
description: A short description of cocoapods-dependsay.
|
76
|
+
email:
|
77
|
+
- 510893492@qq.com
|
78
|
+
executables: []
|
79
|
+
extensions: []
|
80
|
+
extra_rdoc_files: []
|
81
|
+
files:
|
82
|
+
- ".gitignore"
|
83
|
+
- Gemfile
|
84
|
+
- Gemfile.lock
|
85
|
+
- LICENSE.txt
|
86
|
+
- README.md
|
87
|
+
- Rakefile
|
88
|
+
- cocoapods-dependsay.gemspec
|
89
|
+
- lib/cocoapods-dependsay.rb
|
90
|
+
- lib/cocoapods-dependsay/command.rb
|
91
|
+
- lib/cocoapods-dependsay/command/dependsay.rb
|
92
|
+
- lib/cocoapods-dependsay/gem_version.rb
|
93
|
+
- lib/cocoapods_plugin.rb
|
94
|
+
- public/css/application.css
|
95
|
+
- public/javascript/application.js
|
96
|
+
- public/javascript/toolbox.js
|
97
|
+
- public/javascript/websocket.js
|
98
|
+
- spec/command/dependsay_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
100
|
+
- views/index.erb
|
101
|
+
- views/toolbox.erb
|
102
|
+
homepage: https://github.com/EXAMPLE/cocoapods-dependsay
|
103
|
+
licenses:
|
104
|
+
- MIT
|
105
|
+
metadata: {}
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options: []
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
requirements: []
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 2.5.2
|
123
|
+
signing_key:
|
124
|
+
specification_version: 4
|
125
|
+
summary: A longer description of cocoapods-dependsay.
|
126
|
+
test_files:
|
127
|
+
- spec/command/dependsay_spec.rb
|
128
|
+
- spec/spec_helper.rb
|