jsmetric4java 0.1

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.
Files changed (45) hide show
  1. data/.gitignore +7 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +8 -0
  4. data/README +16 -0
  5. data/Rakefile +37 -0
  6. data/bin/jsmetric4java +20 -0
  7. data/boot.rb +5 -0
  8. data/build +1 -0
  9. data/features/cyclometric_complexity/boolean_complexity_counting.feature +46 -0
  10. data/features/cyclometric_complexity/case_complexity_counting.feature +117 -0
  11. data/features/cyclometric_complexity/exception_complexity_counting.feature +81 -0
  12. data/features/cyclometric_complexity/function_detection.feature +128 -0
  13. data/features/cyclometric_complexity/if_else_complexity_counting.feature +178 -0
  14. data/features/cyclometric_complexity/loop_complexity_counting.feature +81 -0
  15. data/features/graphing/draw_basic_graph.feature +14 -0
  16. data/features/reporting/report.feature +13 -0
  17. data/features/sample_js_files_for_test/foobar.js +30 -0
  18. data/features/step_definitions/cyclometric_complexity_steps.rb +31 -0
  19. data/features/step_definitions/graph_steps.rb +10 -0
  20. data/features/step_definitions/reporting_steps.rb +14 -0
  21. data/features/support/env.rb +1 -0
  22. data/jsgraphlib/Curry-1.0.1.js +29 -0
  23. data/jsgraphlib/dracula_algorithms.js +599 -0
  24. data/jsgraphlib/dracula_graffle.js +106 -0
  25. data/jsgraphlib/dracula_graph.js +534 -0
  26. data/jsgraphlib/graphtest.html +57 -0
  27. data/jsgraphlib/jquery-1.4.2.min.js +154 -0
  28. data/jsgraphlib/jsgraphsource.js +12 -0
  29. data/jsgraphlib/raphael-min.js +7 -0
  30. data/jsgraphlib/seedrandom.js +266 -0
  31. data/jsmetric.gemspec +23 -0
  32. data/lib/cc_report.rb +24 -0
  33. data/lib/complexity_analyser.rb +90 -0
  34. data/lib/fulljslint.js +6100 -0
  35. data/lib/graphing/graph_analyser.rb +19 -0
  36. data/lib/js_lint.rb +23 -0
  37. data/lib/json2.js +480 -0
  38. data/lib/options.js +24 -0
  39. data/lib/report.rb +26 -0
  40. data/lib/utils.rb +18 -0
  41. data/lib/version.rb +3 -0
  42. data/spec/spec_helper.rb +1 -0
  43. data/tasks/dev.rb +4 -0
  44. data/tasks/run.rb +55 -0
  45. metadata +129 -0
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jsmetric4java
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: "0.1"
6
+ platform: ruby
7
+ authors:
8
+ - Nigel Fernandes
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-10 00:00:00 +10:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: therubyrhino
18
+ version_requirements: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - "="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.72.7
24
+ requirement: *id001
25
+ prerelease: false
26
+ type: :runtime
27
+ description: Cyclometric complexity analyser for Javascript
28
+ email:
29
+ - jsmetric@nigel.in
30
+ executables:
31
+ - jsmetric4java
32
+ extensions: []
33
+
34
+ extra_rdoc_files: []
35
+
36
+ files:
37
+ - .gitignore
38
+ - .rvmrc
39
+ - Gemfile
40
+ - README
41
+ - Rakefile
42
+ - bin/jsmetric4java
43
+ - boot.rb
44
+ - build
45
+ - features/cyclometric_complexity/boolean_complexity_counting.feature
46
+ - features/cyclometric_complexity/case_complexity_counting.feature
47
+ - features/cyclometric_complexity/exception_complexity_counting.feature
48
+ - features/cyclometric_complexity/function_detection.feature
49
+ - features/cyclometric_complexity/if_else_complexity_counting.feature
50
+ - features/cyclometric_complexity/loop_complexity_counting.feature
51
+ - features/graphing/draw_basic_graph.feature
52
+ - features/reporting/report.feature
53
+ - features/sample_js_files_for_test/foobar.js
54
+ - features/step_definitions/cyclometric_complexity_steps.rb
55
+ - features/step_definitions/graph_steps.rb
56
+ - features/step_definitions/reporting_steps.rb
57
+ - features/support/env.rb
58
+ - jsgraphlib/Curry-1.0.1.js
59
+ - jsgraphlib/dracula_algorithms.js
60
+ - jsgraphlib/dracula_graffle.js
61
+ - jsgraphlib/dracula_graph.js
62
+ - jsgraphlib/graphtest.html
63
+ - jsgraphlib/jquery-1.4.2.min.js
64
+ - jsgraphlib/jsgraphsource.js
65
+ - jsgraphlib/raphael-min.js
66
+ - jsgraphlib/seedrandom.js
67
+ - jsmetric.gemspec
68
+ - lib/cc_report.rb
69
+ - lib/complexity_analyser.rb
70
+ - lib/fulljslint.js
71
+ - lib/graphing/graph_analyser.rb
72
+ - lib/js_lint.rb
73
+ - lib/json2.js
74
+ - lib/options.js
75
+ - lib/report.rb
76
+ - lib/utils.rb
77
+ - lib/version.rb
78
+ - spec/spec_helper.rb
79
+ - tasks/dev.rb
80
+ - tasks/run.rb
81
+ has_rdoc: true
82
+ homepage: ""
83
+ licenses: []
84
+
85
+ post_install_message:
86
+ rdoc_options: []
87
+
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ hash: 2
96
+ segments:
97
+ - 0
98
+ version: "0"
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 2
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ requirements: []
109
+
110
+ rubyforge_project: jsmetric
111
+ rubygems_version: 1.5.1
112
+ signing_key:
113
+ specification_version: 3
114
+ summary: Cyclometric complexity analyser for Javascript
115
+ test_files:
116
+ - features/cyclometric_complexity/boolean_complexity_counting.feature
117
+ - features/cyclometric_complexity/case_complexity_counting.feature
118
+ - features/cyclometric_complexity/exception_complexity_counting.feature
119
+ - features/cyclometric_complexity/function_detection.feature
120
+ - features/cyclometric_complexity/if_else_complexity_counting.feature
121
+ - features/cyclometric_complexity/loop_complexity_counting.feature
122
+ - features/graphing/draw_basic_graph.feature
123
+ - features/reporting/report.feature
124
+ - features/sample_js_files_for_test/foobar.js
125
+ - features/step_definitions/cyclometric_complexity_steps.rb
126
+ - features/step_definitions/graph_steps.rb
127
+ - features/step_definitions/reporting_steps.rb
128
+ - features/support/env.rb
129
+ - spec/spec_helper.rb