flex-source-inspector 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/README.md +8 -0
- data/Rakefile +2 -0
- data/bin/flex-source-inspector +5 -0
- data/features/FlexSourceInspector.feature +12 -0
- data/features/support/setup.rb +1 -0
- data/flex-source-inspector.gemspec +22 -0
- data/lib/flex-source-inspector/cli.rb +16 -0
- data/lib/flex-source-inspector/version.rb +7 -0
- data/lib/flex-source-inspector.rb +49 -0
- data/spec/data/ApplicationOne_link-report.xml +2672 -0
- data/spec/data/ApplicationTwo_link-report.xml +2671 -0
- data/spec/data/LinkReportTestProject/.actionScriptProperties +17 -0
- data/spec/data/LinkReportTestProject/.flexProperties +2 -0
- data/spec/data/LinkReportTestProject/.project +18 -0
- data/spec/data/LinkReportTestProject/.settings/org.eclipse.core.resources.prefs +4 -0
- data/spec/data/LinkReportTestProject/flex-src/ApplicationOne.mxml +14 -0
- data/spec/data/LinkReportTestProject/flex-src/ApplicationToManuallyAdd.mxml +4 -0
- data/spec/data/LinkReportTestProject/flex-src/ApplicationTwo.mxml +13 -0
- data/spec/data/LinkReportTestProject/flex-src/com/one/model/ImportedNotUsedOne.as +10 -0
- data/spec/data/LinkReportTestProject/flex-src/com/one/model/ModelOne.as +10 -0
- data/spec/data/LinkReportTestProject/flex-src/com/shared/model/ModelShared.as +10 -0
- data/spec/data/LinkReportTestProject/flex-src/com/two/model/ImportedNotUsedTwo.as +10 -0
- data/spec/data/LinkReportTestProject/flex-src/com/two/model/ModelTwo.as +10 -0
- data/spec/data/LinkReportTestProject/link-reports/ApplicationOne_link-report.xml +2671 -0
- data/spec/data/LinkReportTestProject/link-reports/ApplicationTwo_link-report.xml +2671 -0
- data/spec/flex-source-inspector_spec.rb +23 -0
- metadata +139 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'flex-source-inspector'
|
2
|
+
|
3
|
+
describe FlexSourceInspector::Inspector do
|
4
|
+
it "can ping" do
|
5
|
+
FlexSourceInspector::Inspector.ping.should eql("pong")
|
6
|
+
end
|
7
|
+
|
8
|
+
it "will return an array of unused classes" do
|
9
|
+
link_report = "spec/data/ApplicationOne_link-report.xml"
|
10
|
+
src = "spec/data/LinkReportTestProject/flex-src"
|
11
|
+
result = FlexSourceInspector::Inspector.inspect(src, link_report)
|
12
|
+
result.length.should == 5
|
13
|
+
end
|
14
|
+
|
15
|
+
it "will return an array of unused classes for multiple link reports" do
|
16
|
+
link_report = "spec/data/ApplicationOne_link-report.xml"
|
17
|
+
link_report_two = "spec/data/ApplicationTwo_link-report.xml"
|
18
|
+
src = "spec/data/LinkReportTestProject/flex-src"
|
19
|
+
result = FlexSourceInspector::Inspector.inspect(src, link_report, link_report_two)
|
20
|
+
result.length.should == 3
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flex-source-inspector
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- ed eustace
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-11-01 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &70192396101220 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.6'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70192396101220
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: cucumber
|
27
|
+
requirement: &70192396100680 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70192396100680
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: aruba
|
38
|
+
requirement: &70192396100100 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70192396100100
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: thor
|
49
|
+
requirement: &70192396099560 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70192396099560
|
58
|
+
description: inspects the source folder of a flex project using 1 or more link-reports
|
59
|
+
and outputs a list of files that aren't in use
|
60
|
+
email:
|
61
|
+
- ed.eustace@gmail.com
|
62
|
+
executables:
|
63
|
+
- flex-source-inspector
|
64
|
+
extensions: []
|
65
|
+
extra_rdoc_files: []
|
66
|
+
files:
|
67
|
+
- .gitignore
|
68
|
+
- Gemfile
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- bin/flex-source-inspector
|
72
|
+
- features/FlexSourceInspector.feature
|
73
|
+
- features/support/setup.rb
|
74
|
+
- flex-source-inspector.gemspec
|
75
|
+
- lib/flex-source-inspector.rb
|
76
|
+
- lib/flex-source-inspector/cli.rb
|
77
|
+
- lib/flex-source-inspector/version.rb
|
78
|
+
- spec/data/ApplicationOne_link-report.xml
|
79
|
+
- spec/data/ApplicationTwo_link-report.xml
|
80
|
+
- spec/data/LinkReportTestProject/.actionScriptProperties
|
81
|
+
- spec/data/LinkReportTestProject/.flexProperties
|
82
|
+
- spec/data/LinkReportTestProject/.project
|
83
|
+
- spec/data/LinkReportTestProject/.settings/org.eclipse.core.resources.prefs
|
84
|
+
- spec/data/LinkReportTestProject/flex-src/ApplicationOne.mxml
|
85
|
+
- spec/data/LinkReportTestProject/flex-src/ApplicationToManuallyAdd.mxml
|
86
|
+
- spec/data/LinkReportTestProject/flex-src/ApplicationTwo.mxml
|
87
|
+
- spec/data/LinkReportTestProject/flex-src/com/one/model/ImportedNotUsedOne.as
|
88
|
+
- spec/data/LinkReportTestProject/flex-src/com/one/model/ModelOne.as
|
89
|
+
- spec/data/LinkReportTestProject/flex-src/com/shared/model/ModelShared.as
|
90
|
+
- spec/data/LinkReportTestProject/flex-src/com/two/model/ImportedNotUsedTwo.as
|
91
|
+
- spec/data/LinkReportTestProject/flex-src/com/two/model/ModelTwo.as
|
92
|
+
- spec/data/LinkReportTestProject/link-reports/ApplicationOne_link-report.xml
|
93
|
+
- spec/data/LinkReportTestProject/link-reports/ApplicationTwo_link-report.xml
|
94
|
+
- spec/flex-source-inspector_spec.rb
|
95
|
+
homepage: https://github.com/edeustace/flex-source-inspector
|
96
|
+
licenses: []
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
requirements: []
|
114
|
+
rubyforge_project:
|
115
|
+
rubygems_version: 1.8.6
|
116
|
+
signing_key:
|
117
|
+
specification_version: 3
|
118
|
+
summary: inspects the source folder of a flex project using 1 or more link-reports
|
119
|
+
and outputs a list of files that aren't in use
|
120
|
+
test_files:
|
121
|
+
- features/FlexSourceInspector.feature
|
122
|
+
- features/support/setup.rb
|
123
|
+
- spec/data/ApplicationOne_link-report.xml
|
124
|
+
- spec/data/ApplicationTwo_link-report.xml
|
125
|
+
- spec/data/LinkReportTestProject/.actionScriptProperties
|
126
|
+
- spec/data/LinkReportTestProject/.flexProperties
|
127
|
+
- spec/data/LinkReportTestProject/.project
|
128
|
+
- spec/data/LinkReportTestProject/.settings/org.eclipse.core.resources.prefs
|
129
|
+
- spec/data/LinkReportTestProject/flex-src/ApplicationOne.mxml
|
130
|
+
- spec/data/LinkReportTestProject/flex-src/ApplicationToManuallyAdd.mxml
|
131
|
+
- spec/data/LinkReportTestProject/flex-src/ApplicationTwo.mxml
|
132
|
+
- spec/data/LinkReportTestProject/flex-src/com/one/model/ImportedNotUsedOne.as
|
133
|
+
- spec/data/LinkReportTestProject/flex-src/com/one/model/ModelOne.as
|
134
|
+
- spec/data/LinkReportTestProject/flex-src/com/shared/model/ModelShared.as
|
135
|
+
- spec/data/LinkReportTestProject/flex-src/com/two/model/ImportedNotUsedTwo.as
|
136
|
+
- spec/data/LinkReportTestProject/flex-src/com/two/model/ModelTwo.as
|
137
|
+
- spec/data/LinkReportTestProject/link-reports/ApplicationOne_link-report.xml
|
138
|
+
- spec/data/LinkReportTestProject/link-reports/ApplicationTwo_link-report.xml
|
139
|
+
- spec/flex-source-inspector_spec.rb
|