ninjs 0.13.6 → 0.13.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. data/VERSION +1 -1
  2. data/ninjs.gemspec +5 -290
  3. metadata +52 -345
  4. data/.bundle/config +0 -2
  5. data/CNAME +0 -1
  6. data/Gemfile +0 -16
  7. data/Gemfile.lock +0 -36
  8. data/LICENSE +0 -29
  9. data/README.md +0 -348
  10. data/bin/ninjs +0 -218
  11. data/lib/ninjs.rb +0 -10
  12. data/lib/ninjs/command.rb +0 -91
  13. data/lib/ninjs/configuration.rb +0 -72
  14. data/lib/ninjs/dependencies.rb +0 -16
  15. data/lib/ninjs/generator.rb +0 -57
  16. data/lib/ninjs/helpers.rb +0 -17
  17. data/lib/ninjs/manifest.rb +0 -9
  18. data/lib/ninjs/notification.rb +0 -37
  19. data/lib/ninjs/project.rb +0 -233
  20. data/repository/jquery/1.1.4.js +0 -2508
  21. data/repository/jquery/1.2.6.js +0 -32
  22. data/repository/jquery/1.3.2.js +0 -19
  23. data/repository/jquery/1.4.2.js +0 -154
  24. data/repository/jquery/1.4.3.js +0 -166
  25. data/repository/jquery/1.4.4.js +0 -167
  26. data/repository/jquery/1.5.js +0 -16
  27. data/repository/jquery/fancybox/1.3.1.js +0 -1079
  28. data/repository/jquery/fancybox/assets/1.3.1/css/fancybox.css +0 -363
  29. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/blank.gif +0 -0
  30. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_close.png +0 -0
  31. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_loading.png +0 -0
  32. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_nav_left.png +0 -0
  33. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_nav_right.png +0 -0
  34. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_e.png +0 -0
  35. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_n.png +0 -0
  36. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_ne.png +0 -0
  37. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_nw.png +0 -0
  38. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_s.png +0 -0
  39. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_se.png +0 -0
  40. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_sw.png +0 -0
  41. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_shadow_w.png +0 -0
  42. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_left.png +0 -0
  43. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_main.png +0 -0
  44. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_over.png +0 -0
  45. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancy_title_right.png +0 -0
  46. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox-x.png +0 -0
  47. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox-y.png +0 -0
  48. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/fancybox.png +0 -0
  49. data/repository/jquery/fancybox/assets/1.3.1/images/fancybox/jquery.easing-1.3.pack.js +0 -72
  50. data/repository/jquery/fancybox/latest.js +0 -1
  51. data/repository/jquery/latest.js +0 -1
  52. data/repository/jquery/mobile/1.0a3.js +0 -123
  53. data/repository/jquery/mobile/1.0a3/assets/css/jquery.mobile.css +0 -1652
  54. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/ajax-loader.png +0 -0
  55. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-off.png +0 -0
  56. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-on.png +0 -0
  57. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-off.png +0 -0
  58. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-on.png +0 -0
  59. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icon-search-black.png +0 -0
  60. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-black.png +0 -0
  61. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-white.png +0 -0
  62. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-black.png +0 -0
  63. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-white.png +0 -0
  64. data/repository/jquery/mobile/latest.js +0 -1
  65. data/repository/jquery/mousewheel/3.0.2.js +0 -11
  66. data/repository/jquery/mousewheel/latest.js +0 -1
  67. data/repository/jquery/ui/1.8.7.js +0 -783
  68. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.accordion.css +0 -19
  69. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.all.css +0 -11
  70. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.autocomplete.css +0 -53
  71. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.base.css +0 -11
  72. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.button.css +0 -38
  73. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.core.css +0 -41
  74. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.datepicker.css +0 -68
  75. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.dialog.css +0 -21
  76. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.progressbar.css +0 -11
  77. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.resizable.css +0 -20
  78. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.selectable.css +0 -10
  79. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.slider.css +0 -24
  80. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.tabs.css +0 -18
  81. data/repository/jquery/ui/assets/1.8.7/css/jqueryui/jquery.ui.theme.css +0 -252
  82. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  83. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  84. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  85. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  86. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_dadada_1x400.png +0 -0
  87. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  88. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  89. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  90. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_222222_256x240.png +0 -0
  91. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_2e83ff_256x240.png +0 -0
  92. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_454545_256x240.png +0 -0
  93. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_888888_256x240.png +0 -0
  94. data/repository/jquery/ui/assets/1.8.7/images/jqueryui/ui-icons_cd0a0a_256x240.png +0 -0
  95. data/repository/jquery/ui/latest.js +0 -1
  96. data/repository/json2.js +0 -482
  97. data/repository/modernizr/1.5.js +0 -28
  98. data/repository/modernizr/latest.js +0 -1
  99. data/repository/ninjs/core/.core.pdoc.yaml +0 -0
  100. data/repository/ninjs/core/.existence.pdoc.yaml +0 -12
  101. data/repository/ninjs/core/.extend.pdoc.yaml +0 -0
  102. data/repository/ninjs/core/.nin.pdoc.yaml +0 -0
  103. data/repository/ninjs/core/application.js +0 -47
  104. data/repository/ninjs/core/existence.js +0 -277
  105. data/repository/ninjs/core/extend.js +0 -77
  106. data/repository/ninjs/core/module.js +0 -135
  107. data/repository/ninjs/core/nin.js +0 -4
  108. data/repository/ninjs/docs/Data/ClassHierarchy.nd +0 -0
  109. data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
  110. data/repository/ninjs/docs/Data/FileInfo.nd +0 -16
  111. data/repository/ninjs/docs/Data/ImageFileInfo.nd +0 -0
  112. data/repository/ninjs/docs/Data/ImageReferenceTable.nd +0 -0
  113. data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
  114. data/repository/ninjs/docs/Data/PreviousMenuState.nd +0 -0
  115. data/repository/ninjs/docs/Data/PreviousSettings.nd +0 -0
  116. data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
  117. data/repository/ninjs/docs/Languages.txt +0 -113
  118. data/repository/ninjs/docs/Menu.txt +0 -63
  119. data/repository/ninjs/docs/Topics.txt +0 -81
  120. data/repository/ninjs/docs/files/core/application-js.html +0 -44
  121. data/repository/ninjs/docs/files/core/existence-js.html +0 -60
  122. data/repository/ninjs/docs/files/core/extend-js.html +0 -55
  123. data/repository/ninjs/docs/files/core/module-js.html +0 -80
  124. data/repository/ninjs/docs/files/core/nin-js.html +0 -38
  125. data/repository/ninjs/docs/index.html +0 -1
  126. data/repository/ninjs/docs/index/Classes.html +0 -33
  127. data/repository/ninjs/docs/index/Files.html +0 -45
  128. data/repository/ninjs/docs/index/Functions.html +0 -65
  129. data/repository/ninjs/docs/index/General.html +0 -85
  130. data/repository/ninjs/docs/index/Variables.html +0 -45
  131. data/repository/ninjs/docs/javascript/main.js +0 -841
  132. data/repository/ninjs/docs/javascript/prettify.js +0 -1526
  133. data/repository/ninjs/docs/javascript/searchdata.js +0 -152
  134. data/repository/ninjs/docs/search/ClassesN.html +0 -20
  135. data/repository/ninjs/docs/search/FilesA.html +0 -20
  136. data/repository/ninjs/docs/search/FilesE.html +0 -20
  137. data/repository/ninjs/docs/search/FilesM.html +0 -20
  138. data/repository/ninjs/docs/search/FilesN.html +0 -20
  139. data/repository/ninjs/docs/search/FunctionsA.html +0 -20
  140. data/repository/ninjs/docs/search/FunctionsC.html +0 -20
  141. data/repository/ninjs/docs/search/FunctionsE.html +0 -20
  142. data/repository/ninjs/docs/search/FunctionsI.html +0 -20
  143. data/repository/ninjs/docs/search/FunctionsM.html +0 -20
  144. data/repository/ninjs/docs/search/FunctionsR.html +0 -20
  145. data/repository/ninjs/docs/search/FunctionsS.html +0 -20
  146. data/repository/ninjs/docs/search/FunctionsSymbols.html +0 -20
  147. data/repository/ninjs/docs/search/FunctionsU.html +0 -20
  148. data/repository/ninjs/docs/search/GeneralA.html +0 -20
  149. data/repository/ninjs/docs/search/GeneralC.html +0 -20
  150. data/repository/ninjs/docs/search/GeneralD.html +0 -20
  151. data/repository/ninjs/docs/search/GeneralE.html +0 -20
  152. data/repository/ninjs/docs/search/GeneralF.html +0 -20
  153. data/repository/ninjs/docs/search/GeneralI.html +0 -20
  154. data/repository/ninjs/docs/search/GeneralM.html +0 -20
  155. data/repository/ninjs/docs/search/GeneralN.html +0 -20
  156. data/repository/ninjs/docs/search/GeneralR.html +0 -20
  157. data/repository/ninjs/docs/search/GeneralS.html +0 -20
  158. data/repository/ninjs/docs/search/GeneralSymbols.html +0 -20
  159. data/repository/ninjs/docs/search/GeneralT.html +0 -20
  160. data/repository/ninjs/docs/search/GeneralU.html +0 -20
  161. data/repository/ninjs/docs/search/GeneralV.html +0 -20
  162. data/repository/ninjs/docs/search/NoResults.html +0 -15
  163. data/repository/ninjs/docs/search/VariablesD.html +0 -20
  164. data/repository/ninjs/docs/search/VariablesN.html +0 -20
  165. data/repository/ninjs/docs/search/VariablesR.html +0 -20
  166. data/repository/ninjs/docs/search/VariablesT.html +0 -20
  167. data/repository/ninjs/docs/styles/main.css +0 -828
  168. data/repository/ninjs/extensions/jquery.elements.js +0 -60
  169. data/repository/ninjs/tests/index.html +0 -21
  170. data/repository/ninjs/tests/ninjs.test.js +0 -188
  171. data/repository/ninjs/tests/ninjs.utilities.test.js +0 -137
  172. data/repository/ninjs/tests/qunit/qunit.css +0 -197
  173. data/repository/ninjs/tests/qunit/qunit.js +0 -1415
  174. data/repository/ninjs/utilities/all.js +0 -5
  175. data/repository/ninjs/utilities/array.js +0 -29
  176. data/repository/ninjs/utilities/cookie.js +0 -0
  177. data/repository/ninjs/utilities/css.js +0 -51
  178. data/repository/ninjs/utilities/number.js +0 -11
  179. data/repository/ninjs/utilities/string.js +0 -61
  180. data/repository/nullconsole.js +0 -7
  181. data/repository/qunit/assets/css/qunit.css +0 -196
  182. data/repository/qunit/qunit.js +0 -1374
  183. data/repository/selectivizr/1.0.js +0 -5
  184. data/repository/selectivizr/latest.js +0 -1
  185. data/repository/syntaxhighlighter/all.js +0 -11
  186. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css +0 -226
  187. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css +0 -328
  188. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css +0 -331
  189. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEclipse.css +0 -339
  190. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEmacs.css +0 -324
  191. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
  192. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMDUltra.css +0 -324
  193. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMidnight.css +0 -324
  194. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreRDark.css +0 -324
  195. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDefault.css +0 -117
  196. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDjango.css +0 -120
  197. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEclipse.css +0 -128
  198. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEmacs.css +0 -113
  199. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
  200. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMDUltra.css +0 -113
  201. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMidnight.css +0 -113
  202. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeRDark.css +0 -113
  203. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCore.scss +0 -216
  204. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDefault.scss +0 -2
  205. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDjango.scss +0 -2
  206. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEclipse.scss +0 -2
  207. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEmacs.scss +0 -2
  208. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreFadeToGrey.scss +0 -2
  209. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMDUltra.scss +0 -2
  210. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMidnight.scss +0 -2
  211. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreRDark.scss +0 -2
  212. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDefault.scss +0 -7
  213. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDjango.scss +0 -36
  214. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEclipse.scss +0 -48
  215. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEmacs.scss +0 -32
  216. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeFadeToGrey.scss +0 -36
  217. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMDUltra.scss +0 -32
  218. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss +0 -32
  219. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss +0 -32
  220. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss +0 -120
  221. data/repository/syntaxhighlighter/shAutoloader.js +0 -17
  222. data/repository/syntaxhighlighter/shBrushAS3.js +0 -59
  223. data/repository/syntaxhighlighter/shBrushAppleScript.js +0 -75
  224. data/repository/syntaxhighlighter/shBrushBash.js +0 -59
  225. data/repository/syntaxhighlighter/shBrushCSharp.js +0 -65
  226. data/repository/syntaxhighlighter/shBrushColdFusion.js +0 -100
  227. data/repository/syntaxhighlighter/shBrushCpp.js +0 -97
  228. data/repository/syntaxhighlighter/shBrushCss.js +0 -91
  229. data/repository/syntaxhighlighter/shBrushDelphi.js +0 -55
  230. data/repository/syntaxhighlighter/shBrushDiff.js +0 -41
  231. data/repository/syntaxhighlighter/shBrushErlang.js +0 -52
  232. data/repository/syntaxhighlighter/shBrushGroovy.js +0 -67
  233. data/repository/syntaxhighlighter/shBrushJScript.js +0 -52
  234. data/repository/syntaxhighlighter/shBrushJava.js +0 -57
  235. data/repository/syntaxhighlighter/shBrushJavaFX.js +0 -58
  236. data/repository/syntaxhighlighter/shBrushPerl.js +0 -72
  237. data/repository/syntaxhighlighter/shBrushPhp.js +0 -88
  238. data/repository/syntaxhighlighter/shBrushPlain.js +0 -33
  239. data/repository/syntaxhighlighter/shBrushPowerShell.js +0 -74
  240. data/repository/syntaxhighlighter/shBrushPython.js +0 -64
  241. data/repository/syntaxhighlighter/shBrushRuby.js +0 -55
  242. data/repository/syntaxhighlighter/shBrushSass.js +0 -94
  243. data/repository/syntaxhighlighter/shBrushScala.js +0 -51
  244. data/repository/syntaxhighlighter/shBrushSql.js +0 -66
  245. data/repository/syntaxhighlighter/shBrushVb.js +0 -56
  246. data/repository/syntaxhighlighter/shBrushXml.js +0 -69
  247. data/repository/syntaxhighlighter/shCore.js +0 -17
  248. data/repository/syntaxhighlighter/shLegacy.js +0 -17
  249. data/spec/fixtures/global.js +0 -7
  250. data/spec/fixtures/global.module.js +0 -7
  251. data/spec/fixtures/myapplication.js +0 -576
  252. data/spec/fixtures/nin.js +0 -573
  253. data/spec/fixtures/ninjs.conf +0 -6
  254. data/spec/fixtures/test.elements.js +0 -4
  255. data/spec/fixtures/test.js +0 -15
  256. data/spec/fixtures/test.model.js +0 -3
  257. data/spec/fixtures/test.module.js +0 -10
  258. data/spec/fixtures/updated.myapplication.js +0 -27
  259. data/spec/fixtures/utilities.js +0 -162
  260. data/spec/helpers_spec.rb +0 -11
  261. data/spec/integration_spec.rb +0 -257
  262. data/spec/manifest_spec.rb +0 -8
  263. data/spec/ninjs_spec.rb +0 -36
  264. data/spec/notification_spec.rb +0 -27
  265. data/spec/spec_helper.rb +0 -5
  266. data/tmp/ff9e83aa019b712b90200b8d1b8fa0c7e14576af.json +0 -1
  267. data/tmp/metric_fu/_data/20110305.yml +0 -1548
  268. data/tmp/metric_fu/output/bluff-min.js +0 -1
  269. data/tmp/metric_fu/output/excanvas.js +0 -35
  270. data/tmp/metric_fu/output/js-class.js +0 -1
  271. data/tmp/metric_fu/output/lib_ninjs_dependencies.rb.html +0 -34
  272. data/tmp/metric_fu/output/lib_ninjs_helpers.rb.html +0 -34
  273. data/tmp/metric_fu/output/lib_ninjs_manifest.rb.html +0 -27
  274. data/tmp/metric_fu/output/rails_best_practices.js +0 -11
  275. data/tmp/metric_fu/scratch/rcov/rcov.txt +0 -1
@@ -1,8 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Ninjs::Manifest do
4
- it 'should conatin the correct driectories' do
5
- directories = %w(application elements lib models modules plugins tests tests/qunit)
6
- Ninjs::Manifest.directories.should === directories
7
- end
8
- end
@@ -1,36 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Ninjs do
4
- it 'should have a BASE_DIR constant' do
5
- Ninjs::BASE_DIR.should_not be_nil
6
- end
7
-
8
- it 'should have the correct BASE_DIR' do
9
- Ninjs::BASE_DIR.should === '/Users/dnolan/Development/ninjs'
10
- end
11
-
12
- it 'should have a LIB_DIR constant' do
13
- Ninjs::LIB_DIR.should_not be_nil
14
- end
15
-
16
- it 'should have the correct LIB_DIR' do
17
- Ninjs::LIB_DIR.should === '/Users/dnolan/Development/ninjs/lib'
18
- end
19
-
20
- it 'should have a ROOT_DIR constant' do
21
- Ninjs::ROOT_DIR.should_not be_nil
22
- end
23
-
24
- it 'should have the correct ROOT_DIR' do
25
- Ninjs::ROOT_DIR.should === '/Users/dnolan/Development/ninjs/spec'
26
- end
27
-
28
- it 'should have a VERSION constant' do
29
- Ninjs::VERSION.should_not be_nil
30
- end
31
-
32
- it 'should have the correct VERSION' do
33
- version = File.open("#{Ninjs::BASE_DIR}/VERSION").readlines.join('')
34
- Ninjs::VERSION.should === version
35
- end
36
- end
@@ -1,27 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Ninjs::Notification do
4
- it 'should have a notify method' do
5
- Ninjs::Notification.notify('hello', :none).should == 'hello'
6
- end
7
-
8
- it 'should have a notice method' do
9
- Ninjs::Notification.notice('hello').should === 'hello'
10
- end
11
-
12
- it 'should have a log method' do
13
- Ninjs::Notification.log('hello').should === "\e[32m>>>\e[0m hello"
14
- end
15
-
16
- it 'should have an event method' do
17
- Ninjs::Notification.event('hello').should === "\e[33m<<<\e[0m hello"
18
- end
19
-
20
- it 'should have an added method' do
21
- Ninjs::Notification.added('hello').should === "\e[32m+++\e[0m hello"
22
- end
23
-
24
- it 'should have an error method' do
25
- Ninjs::Notification.error('hello').should === "\e[0;31m!!!\e[0m hello"
26
- end
27
- end
@@ -1,5 +0,0 @@
1
- $: << File.join(File.dirname(__FILE__), "../lib")
2
-
3
- require 'ninjs'
4
- require 'fileutils'
5
- require 'rspec'
@@ -1 +0,0 @@
1
- {"churn":{"changes":[{"file_path":"README.textile","times_changed":14},{"file_path":"ninjs.gemspec","times_changed":12},{"file_path":"lib/ninjs/project.rb","times_changed":10},{"file_path":"repository/ninjs/core/nin.js","times_changed":9},{"file_path":"bin/ninjs","times_changed":7},{"file_path":"repository/ninjs/core/existence.js","times_changed":5},{"file_path":"Rakefile","times_changed":4},{"file_path":"repository/ninjs/core/module.js","times_changed":4},{"file_path":"lib/ninjs/configuration.rb","times_changed":4},{"file_path":"lib/ninjs/command.rb","times_changed":4},{"file_path":"lib/ninjs/dependencies.rb","times_changed":3},{"file_path":"VERSION","times_changed":3},{"file_path":"lib/ninjs.rb","times_changed":3},{"file_path":"repository/ninjs/tests/index.html","times_changed":3},{"file_path":"repository/ninjs/tests/ninjs.test.js","times_changed":3},{"file_path":"Gemfile","times_changed":3},{"file_path":"spec/ninjs_spec.rb","times_changed":3},{"file_path":"README","times_changed":3}],"class_churn":[],"method_churn":[],"changed_files":["bin/ninjs"],"changed_classes":[],"changed_methods":[]}}
@@ -1,1548 +0,0 @@
1
- ---
2
- :churn:
3
- :changes:
4
- - :file_path: README.textile
5
- :times_changed: 14
6
- - :file_path: ninjs.gemspec
7
- :times_changed: 12
8
- - :file_path: lib/ninjs/project.rb
9
- :times_changed: 10
10
- - :file_path: repository/ninjs/core/nin.js
11
- :times_changed: 9
12
- - :file_path: bin/ninjs
13
- :times_changed: 7
14
- - :file_path: repository/ninjs/core/existence.js
15
- :times_changed: 5
16
- - :file_path: Rakefile
17
- :times_changed: 4
18
- - :file_path: repository/ninjs/core/module.js
19
- :times_changed: 4
20
- - :file_path: lib/ninjs/configuration.rb
21
- :times_changed: 4
22
- - :file_path: lib/ninjs/command.rb
23
- :times_changed: 4
24
- - :file_path: lib/ninjs/dependencies.rb
25
- :times_changed: 3
26
- - :file_path: VERSION
27
- :times_changed: 3
28
- - :file_path: lib/ninjs.rb
29
- :times_changed: 3
30
- - :file_path: repository/ninjs/tests/index.html
31
- :times_changed: 3
32
- - :file_path: repository/ninjs/tests/ninjs.test.js
33
- :times_changed: 3
34
- - :file_path: Gemfile
35
- :times_changed: 3
36
- - :file_path: spec/ninjs_spec.rb
37
- :times_changed: 3
38
- - :file_path: README
39
- :times_changed: 3
40
- :class_churn: []
41
-
42
- :method_churn: []
43
-
44
- :changed_files:
45
- - bin/ninjs
46
- :changed_classes: []
47
-
48
- :changed_methods: []
49
-
50
- :flog:
51
- :total: 517.0986661748072
52
- :average: 11.7522424130638
53
- :method_containers:
54
- - :name: Ninjs::Command
55
- :path: lib/ninjs/command.rb
56
- :total_score: 204.70014703753415
57
- :highest_score: 142.7930320428838
58
- :average_score: 29.242878148219166
59
- :methods:
60
- Ninjs::Command#watch:
61
- :operators:
62
- :require: 1.2000000000000002
63
- :assignment: 25.5
64
- :getwd: 1.4000000000000001
65
- :<<: 1.2000000000000002
66
- :branch: 10.700000000000003
67
- :exists?: 1.2000000000000002
68
- :raise: 1.3000000000000003
69
- :puts: 4.800000000000002
70
- :new: 2.4000000000000004
71
- :update: 6.400000000000002
72
- :directories: 1.4000000000000001
73
- :reject: 1.2000000000000002
74
- :match: 1.3000000000000003
75
- :each: 2.5000000000000004
76
- :base_directory: 1.2000000000000002
77
- :monitor: 1.2000000000000002
78
- :path: 1.4000000000000004
79
- :glob: 1.6000000000000005
80
- :create: 1.6000000000000008
81
- :score: 43.28544790111338
82
- :path: lib/ninjs/command.rb:3
83
- Ninjs::Command#create:
84
- :operators:
85
- :assignment: 2.400000000000001
86
- :branch: 2.400000000000001
87
- :nil?: 1.2000000000000004
88
- :raise: 1.3000000000000005
89
- :new: 2.600000000000001
90
- :create: 1.2000000000000004
91
- :score: 7.15611626512594
92
- :path: lib/ninjs/command.rb:45
93
- Ninjs::Command#compile:
94
- :operators:
95
- :assignment: 2.400000000000001
96
- :getwd: 1.4000000000000004
97
- :<<: 1.2000000000000004
98
- :branch: 1.2000000000000004
99
- :exists?: 1.2000000000000004
100
- :raise: 1.3000000000000005
101
- :new: 1.2000000000000004
102
- :update: 1.2000000000000004
103
- :score: 7.965550828411054
104
- :path: lib/ninjs/command.rb:51
105
- Ninjs::Command#import:
106
- :operators:
107
- :import: 1.2000000000000004
108
- :score: 1.2000000000000004
109
- :path: lib/ninjs/command.rb:58
110
- Ninjs::Command#help:
111
- :operators:
112
- :puts: 1.2000000000000004
113
- :score: 1.2000000000000004
114
- :path: lib/ninjs/command.rb:62
115
- Ninjs::Command#generate:
116
- :operators:
117
- :assignment: 13.000000000000007
118
- :branch: 20.600000000000016
119
- :getwd: 1.6000000000000005
120
- :<<: 14.50000000000001
121
- :exists?: 6.200000000000005
122
- :raise: 1.5000000000000007
123
- :new: 1.4000000000000006
124
- :===: 4.5000000000000036
125
- :downcase: 23.00000000000002
126
- :open: 5.100000000000005
127
- :config: 14.300000000000011
128
- :name: 13.300000000000011
129
- :+: 49.600000000000044
130
- :puts: 5.7000000000000055
131
- :score: 142.7930320428838
132
- :path: lib/ninjs/command.rb:88
133
- Ninjs::Command#none:
134
- :operators:
135
- :module_function: 1.1000000000000014
136
- :score: 1.1000000000000014
137
- :path:
138
- - :name: Ninjs::Project
139
- :path: lib/ninjs/project.rb
140
- :total_score: 215.30408233997946
141
- :highest_score: 20.389458060478237
142
- :average_score: 10.252575349522832
143
- :methods:
144
- Ninjs::Project#none:
145
- :operators:
146
- :attr_reader: 1.1000000000000014
147
- :attr_writer: 1.1000000000000014
148
- :score: 2.200000000000003
149
- :path:
150
- Ninjs::Project#initialize:
151
- :operators:
152
- :assignment: 7.200000000000008
153
- :add_slashes: 1.2000000000000015
154
- :getwd: 1.4000000000000015
155
- :+: 1.2000000000000015
156
- :new: 2.400000000000003
157
- :score: 9.501578816175774
158
- :path: lib/ninjs/project.rb:10
159
- Ninjs::Project#add_slashes:
160
- :operators:
161
- :branch: 2.400000000000003
162
- :match: 2.400000000000003
163
- :assignment: 2.600000000000003
164
- :+: 1.3000000000000016
165
- :<<: 1.3000000000000016
166
- :score: 6.12535713244543
167
- :path: lib/ninjs/project.rb:17
168
- Ninjs::Project#create:
169
- :operators:
170
- :name: 1.4000000000000015
171
- :puts: 2.400000000000003
172
- :create_project_structure: 1.2000000000000015
173
- :create: 1.2000000000000015
174
- :create_ninjs_lib_file: 1.2000000000000015
175
- :create_utility_lib_file: 1.2000000000000015
176
- :create_ninjs_application_file: 1.2000000000000015
177
- :import_test_files: 1.2000000000000015
178
- :score: 11.00000000000001
179
- :path: lib/ninjs/project.rb:23
180
- Ninjs::Project#create_project_structure:
181
- :operators:
182
- :branch: 5.200000000000006
183
- :exists?: 4.000000000000005
184
- :mkdir: 2.8000000000000034
185
- :directories: 1.4000000000000015
186
- :each: 1.2000000000000015
187
- :assignment: 1.3000000000000016
188
- :puts: 1.5000000000000018
189
- :score: 12.146604463799763
190
- :path: lib/ninjs/project.rb:34
191
- Ninjs::Project#create_ninjs_lib_file:
192
- :operators:
193
- :assignment: 1.2000000000000015
194
- :base_directory: 1.4000000000000015
195
- :asset_root: 1.4000000000000015
196
- :new: 1.2000000000000015
197
- :concatenation: 1.4000000000000015
198
- :save_to: 1.2000000000000015
199
- :puts: 1.2000000000000015
200
- :score: 7.891767862779552
201
- :path: lib/ninjs/project.rb:42
202
- Ninjs::Project#create_utility_lib_file:
203
- :operators:
204
- :assignment: 1.2000000000000015
205
- :base_directory: 1.4000000000000015
206
- :asset_root: 1.4000000000000015
207
- :new: 1.2000000000000015
208
- :concatenation: 1.4000000000000015
209
- :save_to: 1.2000000000000015
210
- :puts: 1.2000000000000015
211
- :score: 7.891767862779552
212
- :path: lib/ninjs/project.rb:55
213
- Ninjs::Project#create_ninjs_application_file:
214
- :operators:
215
- :assignment: 2.500000000000003
216
- :app_filename: 1.2000000000000015
217
- :branch: 1.2000000000000015
218
- :open: 3.2000000000000033
219
- :now: 1.8000000000000018
220
- :to_s: 1.6000000000000019
221
- :<<: 4.2000000000000055
222
- :readlines: 1.8000000000000018
223
- :join: 1.6000000000000019
224
- :name: 1.6000000000000019
225
- :base_url: 1.6000000000000019
226
- :test_path: 1.6000000000000019
227
- :score: 20.389458060478237
228
- :path: lib/ninjs/project.rb:68
229
- Ninjs::Project#import_test_files:
230
- :operators:
231
- :base_directory: 7.000000000000009
232
- :cp: 6.000000000000009
233
- :score: 13.000000000000018
234
- :path: lib/ninjs/project.rb:78
235
- Ninjs::Project#update:
236
- :operators:
237
- :get_updated_modules: 1.2000000000000017
238
- :compile_modules: 1.2000000000000017
239
- :update_application_file: 1.2000000000000017
240
- :branch: 2.4000000000000035
241
- :output: 1.4000000000000017
242
- :==: 1.2000000000000017
243
- :compress_application: 1.3000000000000018
244
- :puts: 1.3000000000000018
245
- :assignment: 1.2000000000000017
246
- :score: 9.200000000000014
247
- :path: lib/ninjs/project.rb:86
248
- Ninjs::Project#get_directory_script_files:
249
- :operators:
250
- :assignment: 2.5000000000000036
251
- :new: 1.2000000000000017
252
- :branch: 2.5000000000000036
253
- :[]: 1.4000000000000017
254
- :each: 1.2000000000000017
255
- :match: 1.3000000000000018
256
- :<<: 1.400000000000002
257
- :score: 7.399324293474381
258
- :path: lib/ninjs/project.rb:95
259
- Ninjs::Project#get_files_timestamps:
260
- :operators:
261
- :assignment: 3.800000000000005
262
- :new: 2.9000000000000035
263
- :branch: 1.2000000000000017
264
- :each: 1.2000000000000017
265
- :mtime: 1.5000000000000018
266
- :to_s: 1.3000000000000018
267
- :score: 7.968061244744556
268
- :path: lib/ninjs/project.rb:102
269
- Ninjs::Project#get_updated_modules:
270
- :operators:
271
- :assignment: 3.9000000000000057
272
- :new: 1.2000000000000017
273
- :branch: 2.6000000000000036
274
- :[]: 1.4000000000000017
275
- :each: 1.2000000000000017
276
- :+: 1.6000000000000019
277
- :gsub: 1.400000000000002
278
- :match: 1.400000000000002
279
- :<<: 1.500000000000002
280
- :score: 10.773114684249876
281
- :path: lib/ninjs/project.rb:110
282
- Ninjs::Project#compile_modules:
283
- :operators:
284
- :branch: 1.2000000000000017
285
- :each: 1.2000000000000017
286
- :assignment: 2.7000000000000037
287
- :create_module_filename: 1.400000000000002
288
- :create_module_file: 1.400000000000002
289
- :score: 4.972926703662549
290
- :path: lib/ninjs/project.rb:119
291
- Ninjs::Project#create_module_file:
292
- :operators:
293
- :branch: 2.6000000000000036
294
- :assignment: 8.300000000000011
295
- :base_directory: 1.6000000000000019
296
- :asset_root: 1.6000000000000019
297
- :new: 1.400000000000002
298
- :concatenation: 1.400000000000002
299
- :exists?: 1.400000000000002
300
- :save_to: 1.400000000000002
301
- :install_assets: 1.400000000000002
302
- :message: 1.6000000000000019
303
- :puts: 1.400000000000002
304
- :score: 15.807909412695933
305
- :path: lib/ninjs/project.rb:126
306
- Ninjs::Project#update_application_file:
307
- :operators:
308
- :assignment: 2.5000000000000036
309
- :app_filename: 1.2000000000000017
310
- :branch: 1.2000000000000017
311
- :open: 1.2000000000000017
312
- :write_dependencies: 1.400000000000002
313
- :write_core: 1.400000000000002
314
- :write_autoload: 1.400000000000002
315
- :compile_application_file: 1.2000000000000017
316
- :score: 8.278284846512603
317
- :path: lib/ninjs/project.rb:149
318
- Ninjs::Project#write_dependencies:
319
- :operators:
320
- :branch: 4.000000000000005
321
- :dependencies: 1.4000000000000017
322
- :each: 1.2000000000000017
323
- :assignment: 1.3000000000000018
324
- :<<: 4.400000000000006
325
- :match: 2.800000000000004
326
- :score: 10.664426848171463
327
- :path: lib/ninjs/project.rb:161
328
- Ninjs::Project#write_core:
329
- :operators:
330
- :<<: 3.600000000000005
331
- :name: 1.4000000000000017
332
- :base_url: 1.4000000000000017
333
- :test_path: 1.4000000000000017
334
- :score: 7.800000000000011
335
- :path: lib/ninjs/project.rb:169
336
- Ninjs::Project#write_autoload:
337
- :operators:
338
- :branch: 4.000000000000005
339
- :autoload: 1.4000000000000017
340
- :each: 1.2000000000000017
341
- :assignment: 1.3000000000000018
342
- :<<: 4.400000000000006
343
- :match: 2.800000000000004
344
- :score: 10.664426848171463
345
- :path: lib/ninjs/project.rb:175
346
- Ninjs::Project#compile_application_file:
347
- :operators:
348
- :branch: 1.2000000000000017
349
- :assignment: 5.500000000000008
350
- :base_directory: 1.6000000000000019
351
- :asset_root: 1.6000000000000019
352
- :new: 1.400000000000002
353
- :concatenation: 1.400000000000002
354
- :install_assets: 1.400000000000002
355
- :save_to: 1.400000000000002
356
- :message: 1.6000000000000019
357
- :puts: 1.400000000000002
358
- :score: 13.074020039758254
359
- :path: lib/ninjs/project.rb:183
360
- Ninjs::Project#compress_application:
361
- :operators:
362
- :assignment: 9.300000000000013
363
- :+: 2.6000000000000036
364
- :entries: 1.2000000000000017
365
- :branch: 3.800000000000005
366
- :reject!: 1.2000000000000017
367
- :each: 1.2000000000000017
368
- :open: 3.2000000000000037
369
- :readlines: 1.6000000000000019
370
- :join: 1.400000000000002
371
- :minify: 1.700000000000002
372
- :<<: 1.500000000000002
373
- :score: 18.555053220079994
374
- :path: lib/ninjs/project.rb:201
375
- - :name: main
376
- :path: ""
377
- :total_score: 19.450963986394108
378
- :highest_score: 19.450963986394108
379
- :average_score: 19.450963986394108
380
- :methods:
381
- main#none:
382
- :operators:
383
- :branch: 2.1000000000000014
384
- :each: 1.1
385
- :assignment: 1.2000000000000002
386
- :lib_directory: 1.4000000000000001
387
- :require: 16.800000000000015
388
- :score: 19.450963986394108
389
- :path:
390
- - :name: Ninjs::Configuration
391
- :path: lib/ninjs/configuration.rb
392
- :total_score: 53.42142644999244
393
- :highest_score: 19.254090474494003
394
- :average_score: 7.631632349998919
395
- :methods:
396
- Ninjs::Configuration#none:
397
- :operators:
398
- :attr_reader: 1.1000000000000014
399
- :score: 1.1000000000000014
400
- :path:
401
- Ninjs::Configuration#initialize:
402
- :operators:
403
- :assignment: 7.500000000000009
404
- :gsub: 1.4000000000000015
405
- :downcase: 1.2000000000000015
406
- :branch: 2.400000000000003
407
- :each: 1.2000000000000015
408
- :instance_variable_set: 1.3000000000000016
409
- :exists?: 1.2000000000000015
410
- :read: 1.3000000000000016
411
- :score: 10.943948099292152
412
- :path: lib/ninjs/configuration.rb:15
413
- Ninjs::Configuration#create:
414
- :operators:
415
- :assignment: 1.2000000000000015
416
- :conf_content: 1.2000000000000015
417
- :create_conf_file: 1.2000000000000015
418
- :score: 2.6832815729997512
419
- :path: lib/ninjs/configuration.rb:37
420
- Ninjs::Configuration#conf_content:
421
- :operators:
422
- :assignment: 1.2000000000000015
423
- :[]: 8.80000000000001
424
- :join: 2.400000000000003
425
- :score: 11.264102272262992
426
- :path: lib/ninjs/configuration.rb:42
427
- Ninjs::Configuration#create_conf_file:
428
- :operators:
429
- :branch: 1.2000000000000015
430
- :open: 1.2000000000000015
431
- :assignment: 1.3000000000000016
432
- :conf_content: 1.5000000000000016
433
- :<<: 1.3000000000000016
434
- :puts: 1.2000000000000015
435
- :score: 5.49272245794379
436
- :path: lib/ninjs/configuration.rb:56
437
- Ninjs::Configuration#update:
438
- :operators:
439
- :assignment: 1.2000000000000015
440
- :conf_content: 1.2000000000000015
441
- :create_conf_file: 1.2000000000000015
442
- :score: 2.6832815729997512
443
- :path: lib/ninjs/configuration.rb:64
444
- Ninjs::Configuration#read:
445
- :operators:
446
- :assignment: 10.800000000000011
447
- :load_file: 1.2000000000000015
448
- :[]: 10.20000000000001
449
- :downcase: 1.2000000000000015
450
- :branch: 4.800000000000006
451
- :new: 2.600000000000003
452
- :score: 19.254090474494003
453
- :path: lib/ninjs/configuration.rb:78
454
- - :name: Ninjs::Helpers
455
- :path: lib/ninjs/helpers.rb
456
- :total_score: 8.822046360907203
457
- :highest_score: 7.722046360907202
458
- :average_score: 4.4110231804536015
459
- :methods:
460
- Ninjs::Helpers#create_module_filename:
461
- :operators:
462
- :assignment: 3.7000000000000046
463
- :split: 1.2000000000000015
464
- :new: 1.2000000000000015
465
- :branch: 2.500000000000003
466
- :each: 1.2000000000000015
467
- :match: 1.3000000000000016
468
- :<<: 1.4000000000000017
469
- :score: 7.722046360907202
470
- :path: lib/ninjs/helpers.rb:4
471
- Ninjs::Helpers#none:
472
- :operators:
473
- :module_function: 1.1000000000000014
474
- :score: 1.1000000000000014
475
- :path:
476
- - :name: Ninjs
477
- :path: lib/ninjs.rb
478
- :total_score: 14.3
479
- :highest_score: 4.5
480
- :average_score: 2.8600000000000003
481
- :methods:
482
- Ninjs#base_directory:
483
- :operators:
484
- :dirname: 1.7000000000000002
485
- :join: 1.5000000000000002
486
- :expand_path: 1.3000000000000003
487
- :score: 4.5
488
- :path: lib/ninjs.rb:6
489
- Ninjs#lib_directory:
490
- :operators:
491
- :dirname: 1.7000000000000002
492
- :join: 1.5000000000000002
493
- :expand_path: 1.3000000000000003
494
- :score: 4.5
495
- :path: lib/ninjs.rb:10
496
- Ninjs#root_directory:
497
- :operators:
498
- :getwd: 1.3000000000000003
499
- :score: 1.3000000000000003
500
- :path: lib/ninjs.rb:14
501
- Ninjs#repository_root:
502
- :operators:
503
- :base_directory: 1.5000000000000002
504
- :+: 1.3000000000000003
505
- :score: 2.8000000000000007
506
- :path: lib/ninjs.rb:18
507
- Ninjs#none:
508
- :operators:
509
- :module_function: 1.2000000000000002
510
- :score: 1.2000000000000002
511
- :path:
512
- - :name: Ninjs::Manifest
513
- :path: ""
514
- :total_score: 1.1000000000000014
515
- :highest_score: 1.1000000000000014
516
- :average_score: 1.1000000000000014
517
- :methods:
518
- Ninjs::Manifest#none:
519
- :operators:
520
- :module_function: 1.1000000000000014
521
- :score: 1.1000000000000014
522
- :path:
523
- :flay:
524
- :total_score: "0"
525
- :matches: []
526
-
527
- :reek:
528
- :matches:
529
- - :file_path: lib/ninjs.rb
530
- :code_smells:
531
- - :method: Ninjs#base_directory
532
- :message: doesn't depend on instance state
533
- :type: LowCohesion
534
- - :method: Ninjs#lib_directory
535
- :message: doesn't depend on instance state
536
- :type: LowCohesion
537
- - :file_path: lib/ninjs/command.rb
538
- :code_smells:
539
- - :method: Ninjs::Command#create
540
- :message: has boolean parameter 'directory'
541
- :type: ControlCouple
542
- - :method: Ninjs::Command#create
543
- :message: is controlled by argument directory
544
- :type: ControlCouple
545
- - :method: Ninjs::Command#generate
546
- :message: calls ((project.config.name + ".") + name) 4 times
547
- :type: Duplication
548
- - :method: Ninjs::Command#generate
549
- :message: calls (project.config.name + ".") 4 times
550
- :type: Duplication
551
- - :method: Ninjs::Command#generate
552
- :message: calls name.downcase 11 times
553
- :type: Duplication
554
- - :method: Ninjs::Command#generate
555
- :message: calls project.config 5 times
556
- :type: Duplication
557
- - :method: Ninjs::Command#generate
558
- :message: calls project.config.name 5 times
559
- :type: Duplication
560
- - :method: Ninjs::Command#generate
561
- :message: has 6 parameters
562
- :type: LongParameterList
563
- - :method: Ninjs::Command#generate
564
- :message: has approx 16 statements
565
- :type: LongMethod
566
- - :method: Ninjs::Command#generate
567
- :message: has boolean parameter 'create_elements'
568
- :type: ControlCouple
569
- - :method: Ninjs::Command#generate
570
- :message: has boolean parameter 'create_models'
571
- :type: ControlCouple
572
- - :method: Ninjs::Command#generate
573
- :message: has boolean parameter 'elements'
574
- :type: ControlCouple
575
- - :method: Ninjs::Command#generate
576
- :message: has boolean parameter 'models'
577
- :type: ControlCouple
578
- - :method: Ninjs::Command#generate
579
- :message: is controlled by argument elements
580
- :type: ControlCouple
581
- - :method: Ninjs::Command#generate
582
- :message: is controlled by argument models
583
- :type: ControlCouple
584
- - :method: Ninjs::Command#generate
585
- :message: refers to name more than self
586
- :type: LowCohesion
587
- - :method: Ninjs::Command#watch
588
- :message: calls project.update 3 times
589
- :type: Duplication
590
- - :method: Ninjs::Command#watch
591
- :message: contains iterators nested 4 deep
592
- :type: NestedIterators
593
- - :method: Ninjs::Command#watch
594
- :message: has approx 19 statements
595
- :type: LongMethod
596
- - :method: Ninjs::Command#watch
597
- :message: has the variable name 'g'
598
- :type: UncommunicativeName
599
- - :file_path: lib/ninjs/configuration.rb
600
- :code_smells:
601
- - :method: Ninjs::Configuration
602
- :message: has at least 10 instance variables
603
- :type: LargeClass
604
- - :method: Ninjs::Configuration
605
- :message: has no descriptive comment
606
- :type: IrresponsibleModule
607
- - :method: Ninjs::Configuration#conf_content
608
- :message: doesn't depend on instance state
609
- :type: LowCohesion
610
- - :method: Ninjs::Configuration#conf_content
611
- :message: refers to options more than self
612
- :type: LowCohesion
613
- - :method: Ninjs::Configuration#read
614
- :message: calls config["name"] twice
615
- :type: Duplication
616
- - :method: Ninjs::Configuration#read
617
- :message: has approx 9 statements
618
- :type: LongMethod
619
- - :file_path: lib/ninjs/dependencies.rb
620
- :code_smells: []
621
-
622
- - :file_path: lib/ninjs/helpers.rb
623
- :code_smells:
624
- - :method: Ninjs::Helpers#create_module_filename
625
- :message: doesn't depend on instance state
626
- :type: LowCohesion
627
- - :method: Ninjs::Helpers#create_module_filename
628
- :message: refers to module_filename more than self
629
- :type: LowCohesion
630
- - :method: Ninjs::Helpers#create_module_filename
631
- :message: refers to module_name more than self
632
- :type: LowCohesion
633
- - :method: Ninjs::Helpers#create_module_filename
634
- :message: refers to piece more than self
635
- :type: LowCohesion
636
- - :method: Ninjs::Helpers#create_module_filename
637
- :message: refers to split more than self
638
- :type: LowCohesion
639
- - :file_path: lib/ninjs/manifest.rb
640
- :code_smells: []
641
-
642
- - :file_path: lib/ninjs/project.rb
643
- :code_smells:
644
- - :method: Ninjs::Project
645
- :message: has no descriptive comment
646
- :type: IrresponsibleModule
647
- - :method: Ninjs::Project#add_slashes
648
- :message: doesn't depend on instance state
649
- :type: LowCohesion
650
- - :method: Ninjs::Project#add_slashes
651
- :message: refers to dir more than self
652
- :type: LowCohesion
653
- - :method: Ninjs::Project#compile_application_file
654
- :message: has approx 6 statements
655
- :type: LongMethod
656
- - :method: Ninjs::Project#compress_application
657
- :message: contains iterators nested 2 deep
658
- :type: NestedIterators
659
- - :method: Ninjs::Project#compress_application
660
- :message: has approx 7 statements
661
- :type: LongMethod
662
- - :method: Ninjs::Project#compress_application
663
- :message: refers to modules more than self
664
- :type: LowCohesion
665
- - :method: Ninjs::Project#create
666
- :message: has approx 8 statements
667
- :type: LongMethod
668
- - :method: Ninjs::Project#create_module_file
669
- :message: has approx 9 statements
670
- :type: LongMethod
671
- - :method: Ninjs::Project#create_project_structure
672
- :message: calls File.exists?("#{@project_path}#{folder}") twice
673
- :type: Duplication
674
- - :method: Ninjs::Project#get_files_timestamps
675
- :message: doesn't depend on instance state
676
- :type: LowCohesion
677
- - :method: Ninjs::Project#get_files_timestamps
678
- :message: refers to files more than self
679
- :type: LowCohesion
680
- - :method: Ninjs::Project#get_files_timestamps
681
- :message: refers to timestamped_files more than self
682
- :type: LowCohesion
683
- - :method: Ninjs::Project#import_test_files
684
- :message: calls Ninjs.base_directory 5 times
685
- :type: Duplication
686
- - :method: Ninjs::Project#update
687
- :message: has approx 6 statements
688
- :type: LongMethod
689
- - :method: Ninjs::Project#update_application_file
690
- :message: has approx 6 statements
691
- :type: LongMethod
692
- - :method: Ninjs::Project#write_autoload
693
- :message: refers to file more than self
694
- :type: LowCohesion
695
- - :method: Ninjs::Project#write_dependencies
696
- :message: refers to file more than self
697
- :type: LowCohesion
698
- :roodi:
699
- :total:
700
- - Found 6 errors.
701
- :problems:
702
- - :file: lib/ninjs/command.rb
703
- :line: "88"
704
- :problem: Method name "generate" cyclomatic complexity is 11. It should be 8 or less.
705
- - :file: lib/ninjs/command.rb
706
- :line: "115"
707
- :problem: Rescue block should not be empty.
708
- - :file: lib/ninjs/command.rb
709
- :line: "3"
710
- :problem: Method "watch" has 39 lines. It should have 20 or less.
711
- - :file: lib/ninjs/command.rb
712
- :line: "62"
713
- :problem: Method "help" has 23 lines. It should have 20 or less.
714
- - :file: lib/ninjs/command.rb
715
- :line: "88"
716
- :problem: Method "generate" has 27 lines. It should have 20 or less.
717
- - :file: lib/ninjs/command.rb
718
- :line: "88"
719
- :problem: Method name "generate" has 6 parameters. It should have 5 or less.
720
- :rcov:
721
- :global_percent_run: 0.0
722
- :hotspots:
723
- :files:
724
- - :location: !ruby/object:MetricFu::Location
725
- class_name:
726
- file_path: lib/ninjs/command.rb:88
727
- hash: 4160200194027684269
728
- method_name:
729
- :details:
730
- :flog: complexity is 142.8
731
- - :location: !ruby/object:MetricFu::Location
732
- class_name:
733
- file_path: lib/ninjs/command.rb:3
734
- hash: 2671218638320020217
735
- method_name:
736
- :details:
737
- :flog: complexity is 43.3
738
- - :location: !ruby/object:MetricFu::Location
739
- class_name:
740
- file_path: lib/ninjs/project.rb:68
741
- hash: 1370677261991847343
742
- method_name:
743
- :details:
744
- :flog: complexity is 20.4
745
- - :location: !ruby/object:MetricFu::Location
746
- class_name:
747
- file_path: lib/ninjs/configuration.rb:78
748
- hash: 4525749970142265771
749
- method_name:
750
- :details:
751
- :flog: complexity is 19.3
752
- - :location: !ruby/object:MetricFu::Location
753
- class_name:
754
- file_path: lib/ninjs/project.rb:201
755
- hash: -1339276930340788996
756
- method_name:
757
- :details:
758
- :flog: complexity is 18.6
759
- - :location: !ruby/object:MetricFu::Location
760
- class_name:
761
- file_path: lib/ninjs/project.rb:126
762
- hash: -2784154752066157526
763
- method_name:
764
- :details:
765
- :flog: complexity is 15.8
766
- - :location: !ruby/object:MetricFu::Location
767
- class_name:
768
- file_path: lib/ninjs/project.rb:183
769
- hash: -4226131583629015859
770
- method_name:
771
- :details:
772
- :flog: complexity is 13.1
773
- - :location: !ruby/object:MetricFu::Location
774
- class_name:
775
- file_path: lib/ninjs/project.rb:78
776
- hash: 688363903816723712
777
- method_name:
778
- :details:
779
- :flog: complexity is 13.0
780
- - :location: !ruby/object:MetricFu::Location
781
- class_name:
782
- file_path: lib/ninjs/project.rb:34
783
- hash: -1748487746572088963
784
- method_name:
785
- :details:
786
- :flog: complexity is 12.1
787
- - :location: !ruby/object:MetricFu::Location
788
- class_name:
789
- file_path: lib/ninjs/configuration.rb:42
790
- hash: -4301521634910444285
791
- method_name:
792
- :details:
793
- :flog: complexity is 11.3
794
- - :location: !ruby/object:MetricFu::Location
795
- class_name:
796
- file_path: lib/ninjs/project.rb:23
797
- hash: 2580929902857861362
798
- method_name:
799
- :details:
800
- :flog: complexity is 11.0
801
- - :location: !ruby/object:MetricFu::Location
802
- class_name:
803
- file_path: lib/ninjs/configuration.rb:15
804
- hash: 2698556761195137943
805
- method_name:
806
- :details:
807
- :flog: complexity is 10.9
808
- - :location: !ruby/object:MetricFu::Location
809
- class_name:
810
- file_path: lib/ninjs/project.rb:110
811
- hash: 3743755693735728302
812
- method_name:
813
- :details:
814
- :flog: complexity is 10.8
815
- - :location: !ruby/object:MetricFu::Location
816
- class_name:
817
- file_path: lib/ninjs/project.rb:175
818
- hash: -3064516540422809369
819
- method_name:
820
- :details:
821
- :flog: complexity is 10.7
822
- - :location: !ruby/object:MetricFu::Location
823
- class_name:
824
- file_path: lib/ninjs/project.rb:161
825
- hash: 23349595079583399
826
- method_name:
827
- :details:
828
- :flog: complexity is 10.7
829
- - :location: !ruby/object:MetricFu::Location
830
- class_name:
831
- file_path: lib/ninjs/project.rb:10
832
- hash: 1838059108463636271
833
- method_name:
834
- :details:
835
- :flog: complexity is 9.5
836
- - :location: !ruby/object:MetricFu::Location
837
- class_name:
838
- file_path: lib/ninjs/project.rb:86
839
- hash: 3593632674147815245
840
- method_name:
841
- :details:
842
- :flog: complexity is 9.2
843
- - :location: !ruby/object:MetricFu::Location
844
- class_name:
845
- file_path: lib/ninjs/project.rb:149
846
- hash: 2599597900673248510
847
- method_name:
848
- :details:
849
- :flog: complexity is 8.3
850
- - :location: !ruby/object:MetricFu::Location
851
- class_name:
852
- file_path: lib/ninjs/project.rb:102
853
- hash: 2496504256826942604
854
- method_name:
855
- :details:
856
- :flog: complexity is 8.0
857
- - :location: !ruby/object:MetricFu::Location
858
- class_name:
859
- file_path: lib/ninjs/command.rb:51
860
- hash: -2385320271882282031
861
- method_name:
862
- :details:
863
- :flog: complexity is 8.0
864
- - :location: !ruby/object:MetricFu::Location
865
- class_name:
866
- file_path: lib/ninjs/project.rb:55
867
- hash: 4597108490876768486
868
- method_name:
869
- :details:
870
- :flog: complexity is 7.9
871
- - :location: !ruby/object:MetricFu::Location
872
- class_name:
873
- file_path: lib/ninjs/project.rb:42
874
- hash: 2383652418191934188
875
- method_name:
876
- :details:
877
- :flog: complexity is 7.9
878
- - :location: !ruby/object:MetricFu::Location
879
- class_name:
880
- file_path: lib/ninjs/project.rb:169
881
- hash: 848878807115442343
882
- method_name:
883
- :details:
884
- :flog: complexity is 7.8
885
- - :location: !ruby/object:MetricFu::Location
886
- class_name:
887
- file_path: lib/ninjs/helpers.rb:4
888
- hash: 3619538850581729233
889
- method_name:
890
- :details:
891
- :flog: complexity is 7.7
892
- - :location: !ruby/object:MetricFu::Location
893
- class_name:
894
- file_path: lib/ninjs/project.rb:95
895
- hash: -861151061066470065
896
- method_name:
897
- :details:
898
- :flog: complexity is 7.4
899
- - :location: !ruby/object:MetricFu::Location
900
- class_name:
901
- file_path: lib/ninjs/command.rb:45
902
- hash: 385181851232458588
903
- method_name:
904
- :details:
905
- :flog: complexity is 7.2
906
- - :location: !ruby/object:MetricFu::Location
907
- class_name:
908
- file_path: lib/ninjs/project.rb:17
909
- hash: 2601449699093978840
910
- method_name:
911
- :details:
912
- :flog: complexity is 6.1
913
- - :location: !ruby/object:MetricFu::Location
914
- class_name:
915
- file_path: lib/ninjs/configuration.rb:56
916
- hash: 3492432701895547514
917
- method_name:
918
- :details:
919
- :flog: complexity is 5.5
920
- - :location: !ruby/object:MetricFu::Location
921
- class_name:
922
- file_path: lib/ninjs/project.rb:119
923
- hash: -4545250013754625588
924
- method_name:
925
- :details:
926
- :flog: complexity is 5.0
927
- - :location: !ruby/object:MetricFu::Location
928
- class_name:
929
- file_path: lib/ninjs.rb:6
930
- hash: 4027275305244597722
931
- method_name:
932
- :details:
933
- :flog: complexity is 4.5
934
- - :location: !ruby/object:MetricFu::Location
935
- class_name:
936
- file_path: lib/ninjs.rb:10
937
- hash: 2183995766310003999
938
- method_name:
939
- :details:
940
- :flog: complexity is 4.5
941
- - :location: !ruby/object:MetricFu::Location
942
- class_name:
943
- file_path: lib/ninjs.rb:18
944
- hash: 3630714244516488800
945
- method_name:
946
- :details:
947
- :flog: complexity is 2.8
948
- - :location: !ruby/object:MetricFu::Location
949
- class_name:
950
- file_path: lib/ninjs/configuration.rb:37
951
- hash: -3367395183519064177
952
- method_name:
953
- :details:
954
- :flog: complexity is 2.7
955
- - :location: !ruby/object:MetricFu::Location
956
- class_name:
957
- file_path: lib/ninjs/configuration.rb:64
958
- hash: -3849626967315785461
959
- method_name:
960
- :details:
961
- :flog: complexity is 2.7
962
- - :location: !ruby/object:MetricFu::Location
963
- class_name:
964
- file_path: lib/ninjs.rb:14
965
- hash: -3566992955101204532
966
- method_name:
967
- :details:
968
- :flog: complexity is 1.3
969
- - :location: !ruby/object:MetricFu::Location
970
- class_name:
971
- file_path: lib/ninjs/command.rb
972
- hash: 1226268473562701990
973
- method_name:
974
- :details:
975
- :reek: found 20 code smells
976
- :roodi: found 6 design problems
977
- :churn: detected high level of churn (changed 4 times)
978
- - :location: !ruby/object:MetricFu::Location
979
- class_name:
980
- file_path: lib/ninjs/command.rb:62
981
- hash: -4423449451050696449
982
- method_name:
983
- :details:
984
- :flog: complexity is 1.2
985
- - :location: !ruby/object:MetricFu::Location
986
- class_name:
987
- file_path: lib/ninjs/command.rb:58
988
- hash: -4204250169834615733
989
- method_name:
990
- :details:
991
- :flog: complexity is 1.2
992
- - :location: !ruby/object:MetricFu::Location
993
- class_name:
994
- file_path: lib/ninjs/project.rb
995
- hash: 3647023904340769622
996
- method_name:
997
- :details:
998
- :reek: found 18 code smells
999
- :churn: detected high level of churn (changed 10 times)
1000
- - :location: !ruby/object:MetricFu::Location
1001
- class_name:
1002
- file_path: lib/ninjs/configuration.rb
1003
- hash: 2532969590475840271
1004
- method_name:
1005
- :details:
1006
- :reek: found 6 code smells
1007
- :churn: detected high level of churn (changed 4 times)
1008
- - :location: !ruby/object:MetricFu::Location
1009
- class_name:
1010
- file_path: lib/ninjs.rb
1011
- hash: -980950195912966806
1012
- method_name:
1013
- :details:
1014
- :reek: found 2 code smells
1015
- :churn: detected high level of churn (changed 3 times)
1016
- - :location: !ruby/object:MetricFu::Location
1017
- class_name:
1018
- file_path: README
1019
- hash: 2754479100159009457
1020
- method_name:
1021
- :details:
1022
- :churn: detected high level of churn (changed 3 times)
1023
- - :location: !ruby/object:MetricFu::Location
1024
- class_name:
1025
- file_path: README.textile
1026
- hash: -3177939569131735759
1027
- method_name:
1028
- :details:
1029
- :churn: detected high level of churn (changed 14 times)
1030
- - :location: !ruby/object:MetricFu::Location
1031
- class_name:
1032
- file_path: ninjs.gemspec
1033
- hash: -4285425189486032040
1034
- method_name:
1035
- :details:
1036
- :churn: detected high level of churn (changed 12 times)
1037
- - :location: !ruby/object:MetricFu::Location
1038
- class_name:
1039
- file_path: repository/ninjs/core/nin.js
1040
- hash: 12498864664132727
1041
- method_name:
1042
- :details:
1043
- :churn: detected high level of churn (changed 9 times)
1044
- - :location: !ruby/object:MetricFu::Location
1045
- class_name:
1046
- file_path: bin/ninjs
1047
- hash: 2227688542629874526
1048
- method_name:
1049
- :details:
1050
- :churn: detected high level of churn (changed 7 times)
1051
- - :location: !ruby/object:MetricFu::Location
1052
- class_name:
1053
- file_path: repository/ninjs/core/existence.js
1054
- hash: -1582276373863666675
1055
- method_name:
1056
- :details:
1057
- :churn: detected high level of churn (changed 5 times)
1058
- - :location: !ruby/object:MetricFu::Location
1059
- class_name:
1060
- file_path: Rakefile
1061
- hash: 1232634944947432315
1062
- method_name:
1063
- :details:
1064
- :churn: detected high level of churn (changed 4 times)
1065
- - :location: !ruby/object:MetricFu::Location
1066
- class_name:
1067
- file_path: spec/ninjs_spec.rb
1068
- hash: -2958035423458474119
1069
- method_name:
1070
- :details:
1071
- :churn: detected high level of churn (changed 3 times)
1072
- - :location: !ruby/object:MetricFu::Location
1073
- class_name:
1074
- file_path: lib/ninjs/dependencies.rb
1075
- hash: -70692012102886597
1076
- method_name:
1077
- :details:
1078
- :churn: detected high level of churn (changed 3 times)
1079
- - :location: !ruby/object:MetricFu::Location
1080
- class_name:
1081
- file_path: VERSION
1082
- hash: -4198439901803279942
1083
- method_name:
1084
- :details:
1085
- :churn: detected high level of churn (changed 3 times)
1086
- - :location: !ruby/object:MetricFu::Location
1087
- class_name:
1088
- file_path: repository/ninjs/tests/index.html
1089
- hash: 1597181272349808981
1090
- method_name:
1091
- :details:
1092
- :churn: detected high level of churn (changed 3 times)
1093
- - :location: !ruby/object:MetricFu::Location
1094
- class_name:
1095
- file_path: repository/ninjs/tests/ninjs.test.js
1096
- hash: -678008153188994507
1097
- method_name:
1098
- :details:
1099
- :churn: detected high level of churn (changed 3 times)
1100
- - :location: !ruby/object:MetricFu::Location
1101
- class_name:
1102
- file_path: Gemfile
1103
- hash: -2221263891863284361
1104
- method_name:
1105
- :details:
1106
- :churn: detected high level of churn (changed 3 times)
1107
- - :location: !ruby/object:MetricFu::Location
1108
- class_name:
1109
- file_path: repository/ninjs/core/module.js
1110
- hash: -2239956335252670192
1111
- method_name:
1112
- :details:
1113
- :churn: detected high level of churn (changed 4 times)
1114
- - :location: !ruby/object:MetricFu::Location
1115
- class_name:
1116
- file_path: lib/ninjs/helpers.rb
1117
- hash: 2097503988646729815
1118
- method_name:
1119
- :details:
1120
- :reek: found 5 code smells
1121
- :classes:
1122
- - :location: !ruby/object:MetricFu::Location
1123
- class_name: Command
1124
- file_path: lib/ninjs/command.rb
1125
- hash: 2838011799841310046
1126
- method_name:
1127
- :details:
1128
- :reek: found 20 code smells
1129
- :flog: average complexity is 29.2
1130
- - :location: !ruby/object:MetricFu::Location
1131
- class_name: main
1132
- file_path:
1133
- hash: -1148100423008014950
1134
- method_name:
1135
- :details:
1136
- :flog: complexity is 19.5
1137
- - :location: !ruby/object:MetricFu::Location
1138
- class_name: Project
1139
- file_path: lib/ninjs/project.rb
1140
- hash: 1378710076057241310
1141
- method_name:
1142
- :details:
1143
- :reek: found 18 code smells
1144
- :flog: average complexity is 10.3
1145
- - :location: !ruby/object:MetricFu::Location
1146
- class_name: Configuration
1147
- file_path: lib/ninjs/configuration.rb
1148
- hash: 4246751921894336807
1149
- method_name:
1150
- :details:
1151
- :reek: found 6 code smells
1152
- :flog: average complexity is 7.6
1153
- - :location: !ruby/object:MetricFu::Location
1154
- class_name: Helpers
1155
- file_path: lib/ninjs/helpers.rb
1156
- hash: -4269368850743753410
1157
- method_name:
1158
- :details:
1159
- :reek: found 5 code smells
1160
- :flog: average complexity is 4.4
1161
- - :location: !ruby/object:MetricFu::Location
1162
- class_name: Ninjs
1163
- file_path: lib/ninjs.rb
1164
- hash: 4552949712146707024
1165
- method_name:
1166
- :details:
1167
- :reek: found 2 code smells
1168
- :flog: average complexity is 2.9
1169
- - :location: !ruby/object:MetricFu::Location
1170
- class_name: Manifest
1171
- file_path:
1172
- hash: 2560105087945688957
1173
- method_name:
1174
- :details:
1175
- :flog: complexity is 1.1
1176
- :methods:
1177
- - :location: !ruby/object:MetricFu::Location
1178
- class_name: Command
1179
- file_path: lib/ninjs/command.rb
1180
- hash: 2379858877935650423
1181
- method_name: Command#generate
1182
- simple_method_name: "#generate"
1183
- :details:
1184
- :reek: found 14 code smells
1185
- :flog: complexity is 142.8
1186
- - :location: !ruby/object:MetricFu::Location
1187
- class_name: Command
1188
- file_path: lib/ninjs/command.rb
1189
- hash: 1242775225303543648
1190
- method_name: Command#watch
1191
- simple_method_name: "#watch"
1192
- :details:
1193
- :reek: found 4 code smells
1194
- :flog: complexity is 43.3
1195
- - :location: !ruby/object:MetricFu::Location
1196
- class_name: Project
1197
- file_path: lib/ninjs/project.rb:68
1198
- hash: -4235584951268161661
1199
- method_name: Project#create_ninjs_application_file
1200
- simple_method_name: "#create_ninjs_application_file"
1201
- :details:
1202
- :flog: complexity is 20.4
1203
- - :location: !ruby/object:MetricFu::Location
1204
- class_name: Configuration
1205
- file_path: lib/ninjs/configuration.rb
1206
- hash: -454062300890963414
1207
- method_name: Configuration#read
1208
- simple_method_name: "#read"
1209
- :details:
1210
- :reek: found 2 code smells
1211
- :flog: complexity is 19.3
1212
- - :location: !ruby/object:MetricFu::Location
1213
- class_name: main
1214
- file_path:
1215
- hash: 1322853618720836653
1216
- method_name: main#none
1217
- simple_method_name: "#none"
1218
- :details:
1219
- :flog: complexity is 19.5
1220
- - :location: !ruby/object:MetricFu::Location
1221
- class_name: Project
1222
- file_path: lib/ninjs/project.rb
1223
- hash: 2544175069248793559
1224
- method_name: Project#compress_application
1225
- simple_method_name: "#compress_application"
1226
- :details:
1227
- :reek: found 3 code smells
1228
- :flog: complexity is 18.6
1229
- - :location: !ruby/object:MetricFu::Location
1230
- class_name: Project
1231
- file_path: lib/ninjs/project.rb
1232
- hash: -4094813195140088957
1233
- method_name: Project#create_module_file
1234
- simple_method_name: "#create_module_file"
1235
- :details:
1236
- :reek: found 1 code smells
1237
- :flog: complexity is 15.8
1238
- - :location: !ruby/object:MetricFu::Location
1239
- class_name: Project
1240
- file_path: lib/ninjs/project.rb
1241
- hash: -2853028579072614407
1242
- method_name: Project#compile_application_file
1243
- simple_method_name: "#compile_application_file"
1244
- :details:
1245
- :reek: found 1 code smells
1246
- :flog: complexity is 13.1
1247
- - :location: !ruby/object:MetricFu::Location
1248
- class_name: Project
1249
- file_path: lib/ninjs/project.rb
1250
- hash: 2896872952490039611
1251
- method_name: Project#import_test_files
1252
- simple_method_name: "#import_test_files"
1253
- :details:
1254
- :reek: found 1 code smells
1255
- :flog: complexity is 13.0
1256
- - :location: !ruby/object:MetricFu::Location
1257
- class_name: Project
1258
- file_path: lib/ninjs/project.rb
1259
- hash: 569714648783963372
1260
- method_name: Project#create_project_structure
1261
- simple_method_name: "#create_project_structure"
1262
- :details:
1263
- :reek: found 1 code smells
1264
- :flog: complexity is 12.1
1265
- - :location: !ruby/object:MetricFu::Location
1266
- class_name: Configuration
1267
- file_path: lib/ninjs/configuration.rb
1268
- hash: -4593438624714618387
1269
- method_name: Configuration#conf_content
1270
- simple_method_name: "#conf_content"
1271
- :details:
1272
- :reek: found 2 code smells
1273
- :flog: complexity is 11.3
1274
- - :location: !ruby/object:MetricFu::Location
1275
- class_name: Project
1276
- file_path: lib/ninjs/project.rb
1277
- hash: -3360518414370726084
1278
- method_name: Project#create
1279
- simple_method_name: "#create"
1280
- :details:
1281
- :reek: found 1 code smells
1282
- :flog: complexity is 11.0
1283
- - :location: !ruby/object:MetricFu::Location
1284
- class_name: Configuration
1285
- file_path: lib/ninjs/configuration.rb:15
1286
- hash: 871348935264605618
1287
- method_name: Configuration#initialize
1288
- simple_method_name: "#initialize"
1289
- :details:
1290
- :flog: complexity is 10.9
1291
- - :location: !ruby/object:MetricFu::Location
1292
- class_name: Project
1293
- file_path: lib/ninjs/project.rb:110
1294
- hash: 2219275672802611447
1295
- method_name: Project#get_updated_modules
1296
- simple_method_name: "#get_updated_modules"
1297
- :details:
1298
- :flog: complexity is 10.8
1299
- - :location: !ruby/object:MetricFu::Location
1300
- class_name: Project
1301
- file_path: lib/ninjs/project.rb
1302
- hash: -4167960372837610705
1303
- method_name: Project#write_autoload
1304
- simple_method_name: "#write_autoload"
1305
- :details:
1306
- :reek: found 1 code smells
1307
- :flog: complexity is 10.7
1308
- - :location: !ruby/object:MetricFu::Location
1309
- class_name: Project
1310
- file_path: lib/ninjs/project.rb
1311
- hash: 1857911709819238635
1312
- method_name: Project#write_dependencies
1313
- simple_method_name: "#write_dependencies"
1314
- :details:
1315
- :reek: found 1 code smells
1316
- :flog: complexity is 10.7
1317
- - :location: !ruby/object:MetricFu::Location
1318
- class_name: Project
1319
- file_path: lib/ninjs/project.rb:10
1320
- hash: -2027209178177296677
1321
- method_name: Project#initialize
1322
- simple_method_name: "#initialize"
1323
- :details:
1324
- :flog: complexity is 9.5
1325
- - :location: !ruby/object:MetricFu::Location
1326
- class_name: Project
1327
- file_path: lib/ninjs/project.rb
1328
- hash: -278021951760261839
1329
- method_name: Project#update
1330
- simple_method_name: "#update"
1331
- :details:
1332
- :reek: found 1 code smells
1333
- :flog: complexity is 9.2
1334
- - :location: !ruby/object:MetricFu::Location
1335
- class_name: Project
1336
- file_path: lib/ninjs/project.rb
1337
- hash: 1277436666792242366
1338
- method_name: Project#get_files_timestamps
1339
- simple_method_name: "#get_files_timestamps"
1340
- :details:
1341
- :reek: found 3 code smells
1342
- :flog: complexity is 8.0
1343
- - :location: !ruby/object:MetricFu::Location
1344
- class_name: Helpers
1345
- file_path: lib/ninjs/helpers.rb
1346
- hash: 4000279510095798336
1347
- method_name: Helpers#create_module_filename
1348
- simple_method_name: "#create_module_filename"
1349
- :details:
1350
- :reek: found 5 code smells
1351
- :flog: complexity is 7.7
1352
- - :location: !ruby/object:MetricFu::Location
1353
- class_name: Project
1354
- file_path: lib/ninjs/project.rb
1355
- hash: -957961608018415789
1356
- method_name: Project#update_application_file
1357
- simple_method_name: "#update_application_file"
1358
- :details:
1359
- :reek: found 1 code smells
1360
- :flog: complexity is 8.3
1361
- - :location: !ruby/object:MetricFu::Location
1362
- class_name: Command
1363
- file_path: lib/ninjs/command.rb:51
1364
- hash: 1633434585807236797
1365
- method_name: Command#compile
1366
- simple_method_name: "#compile"
1367
- :details:
1368
- :flog: complexity is 8.0
1369
- - :location: !ruby/object:MetricFu::Location
1370
- class_name: Project
1371
- file_path: lib/ninjs/project.rb:55
1372
- hash: 2379005698882585146
1373
- method_name: Project#create_utility_lib_file
1374
- simple_method_name: "#create_utility_lib_file"
1375
- :details:
1376
- :flog: complexity is 7.9
1377
- - :location: !ruby/object:MetricFu::Location
1378
- class_name: Project
1379
- file_path: lib/ninjs/project.rb:42
1380
- hash: -224320644733579368
1381
- method_name: Project#create_ninjs_lib_file
1382
- simple_method_name: "#create_ninjs_lib_file"
1383
- :details:
1384
- :flog: complexity is 7.9
1385
- - :location: !ruby/object:MetricFu::Location
1386
- class_name: Command
1387
- file_path: lib/ninjs/command.rb
1388
- hash: -4125027408577496380
1389
- method_name: Command#create
1390
- simple_method_name: "#create"
1391
- :details:
1392
- :reek: found 2 code smells
1393
- :flog: complexity is 7.2
1394
- - :location: !ruby/object:MetricFu::Location
1395
- class_name: Project
1396
- file_path: lib/ninjs/project.rb:169
1397
- hash: -3044172292064564856
1398
- method_name: Project#write_core
1399
- simple_method_name: "#write_core"
1400
- :details:
1401
- :flog: complexity is 7.8
1402
- - :location: !ruby/object:MetricFu::Location
1403
- class_name: Project
1404
- file_path: lib/ninjs/project.rb:95
1405
- hash: 1449958332013816932
1406
- method_name: Project#get_directory_script_files
1407
- simple_method_name: "#get_directory_script_files"
1408
- :details:
1409
- :flog: complexity is 7.4
1410
- - :location: !ruby/object:MetricFu::Location
1411
- class_name: Project
1412
- file_path: lib/ninjs/project.rb
1413
- hash: 3790217471032069132
1414
- method_name: Project#add_slashes
1415
- simple_method_name: "#add_slashes"
1416
- :details:
1417
- :reek: found 2 code smells
1418
- :flog: complexity is 6.1
1419
- - :location: !ruby/object:MetricFu::Location
1420
- class_name: Configuration
1421
- file_path: lib/ninjs/configuration.rb:56
1422
- hash: -4499907061543098456
1423
- method_name: Configuration#create_conf_file
1424
- simple_method_name: "#create_conf_file"
1425
- :details:
1426
- :flog: complexity is 5.5
1427
- - :location: !ruby/object:MetricFu::Location
1428
- class_name: Project
1429
- file_path: lib/ninjs/project.rb:119
1430
- hash: -2418081638870220949
1431
- method_name: Project#compile_modules
1432
- simple_method_name: "#compile_modules"
1433
- :details:
1434
- :flog: complexity is 5.0
1435
- - :location: !ruby/object:MetricFu::Location
1436
- class_name: Ninjs
1437
- file_path: lib/ninjs.rb
1438
- hash: 15571142165210466
1439
- method_name: Ninjs#base_directory
1440
- simple_method_name: "#base_directory"
1441
- :details:
1442
- :reek: found 1 code smells
1443
- :flog: complexity is 4.5
1444
- - :location: !ruby/object:MetricFu::Location
1445
- class_name: Ninjs
1446
- file_path: lib/ninjs.rb
1447
- hash: -163268732157423480
1448
- method_name: Ninjs#lib_directory
1449
- simple_method_name: "#lib_directory"
1450
- :details:
1451
- :reek: found 1 code smells
1452
- :flog: complexity is 4.5
1453
- - :location: !ruby/object:MetricFu::Location
1454
- class_name: Ninjs
1455
- file_path: lib/ninjs.rb:18
1456
- hash: -2369373858396973
1457
- method_name: Ninjs#repository_root
1458
- simple_method_name: "#repository_root"
1459
- :details:
1460
- :flog: complexity is 2.8
1461
- - :location: !ruby/object:MetricFu::Location
1462
- class_name: Configuration
1463
- file_path: lib/ninjs/configuration.rb:64
1464
- hash: -533769010296093769
1465
- method_name: Configuration#update
1466
- simple_method_name: "#update"
1467
- :details:
1468
- :flog: complexity is 2.7
1469
- - :location: !ruby/object:MetricFu::Location
1470
- class_name: Configuration
1471
- file_path: lib/ninjs/configuration.rb:37
1472
- hash: -1721982589444043109
1473
- method_name: Configuration#create
1474
- simple_method_name: "#create"
1475
- :details:
1476
- :flog: complexity is 2.7
1477
- - :location: !ruby/object:MetricFu::Location
1478
- class_name: Project
1479
- file_path:
1480
- hash: -633459408455641585
1481
- method_name: Project#none
1482
- simple_method_name: "#none"
1483
- :details:
1484
- :flog: complexity is 2.2
1485
- - :location: !ruby/object:MetricFu::Location
1486
- class_name: Ninjs
1487
- file_path: lib/ninjs.rb:14
1488
- hash: 720508568681807539
1489
- method_name: Ninjs#root_directory
1490
- simple_method_name: "#root_directory"
1491
- :details:
1492
- :flog: complexity is 1.3
1493
- - :location: !ruby/object:MetricFu::Location
1494
- class_name: Command
1495
- file_path: lib/ninjs/command.rb:58
1496
- hash: 3530214131547253983
1497
- method_name: Command#import
1498
- simple_method_name: "#import"
1499
- :details:
1500
- :flog: complexity is 1.2
1501
- - :location: !ruby/object:MetricFu::Location
1502
- class_name: Command
1503
- file_path: lib/ninjs/command.rb:62
1504
- hash: -1971882894351165363
1505
- method_name: Command#help
1506
- simple_method_name: "#help"
1507
- :details:
1508
- :flog: complexity is 1.2
1509
- - :location: !ruby/object:MetricFu::Location
1510
- class_name: Ninjs
1511
- file_path:
1512
- hash: 742301543749975763
1513
- method_name: Ninjs#none
1514
- simple_method_name: "#none"
1515
- :details:
1516
- :flog: complexity is 1.2
1517
- - :location: !ruby/object:MetricFu::Location
1518
- class_name: Command
1519
- file_path:
1520
- hash: -769043008249229427
1521
- method_name: Command#none
1522
- simple_method_name: "#none"
1523
- :details:
1524
- :flog: complexity is 1.1
1525
- - :location: !ruby/object:MetricFu::Location
1526
- class_name: Configuration
1527
- file_path:
1528
- hash: 1024692459046376565
1529
- method_name: Configuration#none
1530
- simple_method_name: "#none"
1531
- :details:
1532
- :flog: complexity is 1.1
1533
- - :location: !ruby/object:MetricFu::Location
1534
- class_name: Helpers
1535
- file_path:
1536
- hash: 3149951107976802783
1537
- method_name: Helpers#none
1538
- simple_method_name: "#none"
1539
- :details:
1540
- :flog: complexity is 1.1
1541
- - :location: !ruby/object:MetricFu::Location
1542
- class_name: Manifest
1543
- file_path:
1544
- hash: 805549200980624922
1545
- method_name: Manifest#none
1546
- simple_method_name: "#none"
1547
- :details:
1548
- :flog: complexity is 1.1