flex-source-inspector 0.0.2 → 0.0.3

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.
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <report>
3
+ <scripts>
4
+ <script name="/SomeFolder/bin/SomeLib.swc(com.one.model:ModelOne)" mod="1209919189000" size="1187" optimizedsize="1025"></script>
5
+ </scripts>
6
+
7
+ </report>
@@ -1,10 +1,7 @@
1
1
  require 'flex-source-inspector'
2
2
 
3
3
  describe FlexSourceInspector::Inspector do
4
- it "can ping" do
5
- FlexSourceInspector::Inspector.ping.should eql("pong")
6
- end
7
-
4
+
8
5
  it "will return an array of unused classes" do
9
6
  link_report = "spec/data/ApplicationOne_link-report.xml"
10
7
  src = "spec/data/LinkReportTestProject/flex-src"
@@ -12,7 +9,7 @@ describe FlexSourceInspector::Inspector do
12
9
  puts "result: #{result}"
13
10
  result.should( include "NotUsedOne.as")
14
11
  end
15
-
12
+
16
13
  it "will return an array of unused classes for multiple link reports" do
17
14
  link_report = "spec/data/ApplicationOne_link-report.xml"
18
15
  link_report_two = "spec/data/ApplicationTwo_link-report.xml"
@@ -20,7 +17,16 @@ describe FlexSourceInspector::Inspector do
20
17
  result = FlexSourceInspector::Inspector.inspect(src, link_report, link_report_two)
21
18
  puts "result: #{result}"
22
19
  result.should( include "NotUsedOne.as" )
23
- result.should_not( include "ModelTwo.as")
20
+ result.should_not( include "ModelOne.as")
21
+ end
24
22
 
23
+ it "will find classes declared within swcs" do
24
+ link_report = "spec/data/swc_link_report.xml"
25
+ src = "spec/data/LinkReportTestProject/flex-src"
26
+ result = FlexSourceInspector::Inspector.inspect(src, link_report)
27
+ puts "result: #{result}"
28
+ result.should( include "NotUsedOne.as" )
29
+ result.should_not( include "ModelOne.as")
25
30
  end
31
+
26
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flex-source-inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-02 00:00:00.000000000Z
12
+ date: 2012-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70201812003540 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70201812003540
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.6'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: cucumber
27
- requirement: &70201812003080 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70201812003080
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: aruba
38
- requirement: &70201812002500 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70201812002500
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: thor
49
- requirement: &70201812001980 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70201812001980
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  description: inspects the source folder of a flex project using 1 or more link-reports
59
79
  and outputs a list of files that aren't in use
60
80
  email:
@@ -77,10 +97,6 @@ files:
77
97
  - lib/flex-source-inspector/version.rb
78
98
  - spec/data/ApplicationOne_link-report.xml
79
99
  - 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
100
  - spec/data/LinkReportTestProject/flex-src/ApplicationOne.mxml
85
101
  - spec/data/LinkReportTestProject/flex-src/ApplicationToManuallyAdd.mxml
86
102
  - spec/data/LinkReportTestProject/flex-src/ApplicationTwo.mxml
@@ -89,8 +105,7 @@ files:
89
105
  - spec/data/LinkReportTestProject/flex-src/com/shared/model/ModelShared.as
90
106
  - spec/data/LinkReportTestProject/flex-src/com/two/model/ImportedNotUsedTwo.as
91
107
  - 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
108
+ - spec/data/swc_link_report.xml
94
109
  - spec/flex-source-inspector_spec.rb
95
110
  homepage: https://github.com/edeustace/flex-source-inspector
96
111
  licenses: []
@@ -112,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
127
  version: '0'
113
128
  requirements: []
114
129
  rubyforge_project:
115
- rubygems_version: 1.8.6
130
+ rubygems_version: 1.8.19
116
131
  signing_key:
117
132
  specification_version: 3
118
133
  summary: inspects the source folder of a flex project using 1 or more link-reports
@@ -122,10 +137,6 @@ test_files:
122
137
  - features/support/setup.rb
123
138
  - spec/data/ApplicationOne_link-report.xml
124
139
  - 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
140
  - spec/data/LinkReportTestProject/flex-src/ApplicationOne.mxml
130
141
  - spec/data/LinkReportTestProject/flex-src/ApplicationToManuallyAdd.mxml
131
142
  - spec/data/LinkReportTestProject/flex-src/ApplicationTwo.mxml
@@ -134,6 +145,5 @@ test_files:
134
145
  - spec/data/LinkReportTestProject/flex-src/com/shared/model/ModelShared.as
135
146
  - spec/data/LinkReportTestProject/flex-src/com/two/model/ImportedNotUsedTwo.as
136
147
  - 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
148
+ - spec/data/swc_link_report.xml
139
149
  - spec/flex-source-inspector_spec.rb
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <actionScriptProperties mainApplicationPath="ApplicationOne.mxml" version="3">
3
- <compiler additionalCompilerArguments="-locale en_US -link-report=/Applications/TestProject_LinkReport1.xml" copyDependentFiles="true" enableModuleDebug="true" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" outputFolderPath="bin-debug" sourceFolderPath="flex-src" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
4
- <compilerSourcePath/>
5
- <libraryPath defaultLinkType="1">
6
- <libraryPathEntry kind="4" path=""/>
7
- <libraryPathEntry kind="1" linkType="1" path="libs"/>
8
- </libraryPath>
9
- <sourceAttachmentPath/>
10
- </compiler>
11
- <applications>
12
- <application path="ApplicationOne.mxml"/>
13
- <application path="ApplicationTwo.mxml"/>
14
- </applications>
15
- <modules/>
16
- <buildCSSFiles/>
17
- </actionScriptProperties>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <flexProperties flexServerType="0" toolCompile="true" useServerFlexSDK="false" version="1"/>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>LinkReportTestProject</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>com.adobe.flexbuilder.project.flexbuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>com.adobe.flexbuilder.project.flexnature</nature>
16
- <nature>com.adobe.flexbuilder.project.actionscriptnature</nature>
17
- </natures>
18
- </projectDescription>
@@ -1,4 +0,0 @@
1
- #Sun May 04 17:54:51 IST 2008
2
- eclipse.preferences.version=1
3
- encoding/<project>=utf-8
4
- instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true