nucleon 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.gitignore +50 -0
- data/ARCHITECTURE.rdoc +12 -11
- data/Gemfile +7 -11
- data/Gemfile.lock +47 -70
- data/Rakefile +22 -20
- data/TODO.rdoc +1 -1
- data/VERSION +1 -1
- data/bin/nucleon +16 -15
- data/lib/core/codes.rb +65 -38
- data/lib/core/config.rb +774 -153
- data/lib/core/config/collection.rb +134 -25
- data/lib/core/config/options.rb +160 -36
- data/lib/core/core.rb +207 -45
- data/lib/core/environment.rb +626 -206
- data/lib/core/facade.rb +211 -185
- data/lib/core/gems.rb +60 -44
- data/lib/core/manager.rb +587 -237
- data/lib/core/mixin/colors.rb +66 -36
- data/lib/core/mixin/config/collection.rb +58 -23
- data/lib/core/mixin/config/options.rb +67 -24
- data/lib/core/mixin/macro/object_interface.rb +129 -135
- data/lib/core/mixin/macro/plugin_interface.rb +118 -124
- data/lib/core/mixin/settings.rb +7 -13
- data/lib/core/mixin/sub_config.rb +37 -43
- data/lib/core/mod/hash.rb +31 -10
- data/lib/core/plugin/action.rb +274 -238
- data/lib/core/plugin/base.rb +140 -132
- data/lib/core/plugin/project.rb +316 -311
- data/lib/core/util/cli.rb +146 -146
- data/lib/core/util/console.rb +567 -124
- data/lib/core/util/data.rb +654 -139
- data/lib/core/util/logger.rb +255 -66
- data/lib/nucleon.rb +6 -8
- data/lib/nucleon_base.rb +364 -106
- data/nucleon.gemspec +40 -389
- data/spec/core/codes_spec.rb +209 -0
- data/spec/core/config_spec.rb +810 -0
- data/spec/core/core_spec.rb +185 -0
- data/spec/core/environment_spec.rb +148 -0
- data/spec/core/util/console_spec.rb +254 -446
- data/spec/nucleon/test.rb +59 -0
- data/spec/nucleon/test/first.rb +28 -0
- data/spec/nucleon/test/second.rb +28 -0
- data/spec/nucleon_codes.rb +98 -0
- data/spec/nucleon_config.rb +523 -0
- data/spec/nucleon_plugin.rb +439 -0
- data/spec/nucleon_test.rb +34 -0
- data/spec/spec_helper.rb +6 -4
- metadata +157 -615
- data/.document +0 -5
- data/rdoc/site/0.1.19/ARCHITECTURE_rdoc.html +0 -634
- data/rdoc/site/0.1.19/Hash.html +0 -347
- data/rdoc/site/0.1.19/Kernel.html +0 -413
- data/rdoc/site/0.1.19/Nucleon.html +0 -570
- data/rdoc/site/0.1.19/Nucleon/Action.html +0 -280
- data/rdoc/site/0.1.19/Nucleon/Action/Add.html +0 -458
- data/rdoc/site/0.1.19/Nucleon/Action/Create.html +0 -415
- data/rdoc/site/0.1.19/Nucleon/Action/Extract.html +0 -413
- data/rdoc/site/0.1.19/Nucleon/Action/Remove.html +0 -461
- data/rdoc/site/0.1.19/Nucleon/Action/Save.html +0 -434
- data/rdoc/site/0.1.19/Nucleon/Action/Update.html +0 -381
- data/rdoc/site/0.1.19/Nucleon/Codes.html +0 -563
- data/rdoc/site/0.1.19/Nucleon/Command.html +0 -275
- data/rdoc/site/0.1.19/Nucleon/Command/Bash.html +0 -544
- data/rdoc/site/0.1.19/Nucleon/Config.html +0 -1623
- data/rdoc/site/0.1.19/Nucleon/Config/Collection.html +0 -509
- data/rdoc/site/0.1.19/Nucleon/Config/Options.html +0 -489
- data/rdoc/site/0.1.19/Nucleon/Core.html +0 -635
- data/rdoc/site/0.1.19/Nucleon/Errors.html +0 -275
- data/rdoc/site/0.1.19/Nucleon/Errors/BatchError.html +0 -281
- data/rdoc/site/0.1.19/Nucleon/Errors/NucleonError.html +0 -657
- data/rdoc/site/0.1.19/Nucleon/Errors/SSHUnavailable.html +0 -281
- data/rdoc/site/0.1.19/Nucleon/Event.html +0 -275
- data/rdoc/site/0.1.19/Nucleon/Event/Regex.html +0 -467
- data/rdoc/site/0.1.19/Nucleon/Facade.html +0 -2336
- data/rdoc/site/0.1.19/Nucleon/Gems.html +0 -635
- data/rdoc/site/0.1.19/Nucleon/Manager.html +0 -1828
- data/rdoc/site/0.1.19/Nucleon/Mixin.html +0 -284
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action.html +0 -277
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action/Commit.html +0 -381
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action/Project.html +0 -395
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action/Push.html +0 -371
- data/rdoc/site/0.1.19/Nucleon/Mixin/Colors.html +0 -545
- data/rdoc/site/0.1.19/Nucleon/Mixin/ConfigCollection.html +0 -481
- data/rdoc/site/0.1.19/Nucleon/Mixin/ConfigOptions.html +0 -449
- data/rdoc/site/0.1.19/Nucleon/Mixin/Macro.html +0 -276
- data/rdoc/site/0.1.19/Nucleon/Mixin/Macro/ObjectInterface.html +0 -695
- data/rdoc/site/0.1.19/Nucleon/Mixin/Macro/PluginInterface.html +0 -682
- data/rdoc/site/0.1.19/Nucleon/Mixin/Settings.html +0 -481
- data/rdoc/site/0.1.19/Nucleon/Mixin/SubConfig.html +0 -887
- data/rdoc/site/0.1.19/Nucleon/Parallel.html +0 -325
- data/rdoc/site/0.1.19/Nucleon/Parallel/ClassMethods.html +0 -325
- data/rdoc/site/0.1.19/Nucleon/Parallel/InstanceMethods.html +0 -334
- data/rdoc/site/0.1.19/Nucleon/Plugin.html +0 -282
- data/rdoc/site/0.1.19/Nucleon/Plugin/Action.html +0 -1368
- data/rdoc/site/0.1.19/Nucleon/Plugin/Action/Option.html +0 -459
- data/rdoc/site/0.1.19/Nucleon/Plugin/Base.html +0 -1737
- data/rdoc/site/0.1.19/Nucleon/Plugin/Command.html +0 -721
- data/rdoc/site/0.1.19/Nucleon/Plugin/Event.html +0 -442
- data/rdoc/site/0.1.19/Nucleon/Plugin/Extension.html +0 -281
- data/rdoc/site/0.1.19/Nucleon/Plugin/Project.html +0 -2864
- data/rdoc/site/0.1.19/Nucleon/Plugin/Template.html +0 -476
- data/rdoc/site/0.1.19/Nucleon/Plugin/Translator.html +0 -371
- data/rdoc/site/0.1.19/Nucleon/Project.html +0 -276
- data/rdoc/site/0.1.19/Nucleon/Project/Git.html +0 -1801
- data/rdoc/site/0.1.19/Nucleon/Project/Github.html +0 -549
- data/rdoc/site/0.1.19/Nucleon/Template.html +0 -277
- data/rdoc/site/0.1.19/Nucleon/Template/Json.html +0 -329
- data/rdoc/site/0.1.19/Nucleon/Template/Wrapper.html +0 -329
- data/rdoc/site/0.1.19/Nucleon/Template/Yaml.html +0 -329
- data/rdoc/site/0.1.19/Nucleon/Translator.html +0 -276
- data/rdoc/site/0.1.19/Nucleon/Translator/Json.html +0 -366
- data/rdoc/site/0.1.19/Nucleon/Translator/Yaml.html +0 -366
- data/rdoc/site/0.1.19/Nucleon/Util.html +0 -285
- data/rdoc/site/0.1.19/Nucleon/Util/CLI.html +0 -388
- data/rdoc/site/0.1.19/Nucleon/Util/CLI/Parser.html +0 -1183
- data/rdoc/site/0.1.19/Nucleon/Util/Cache.html +0 -780
- data/rdoc/site/0.1.19/Nucleon/Util/Console.html +0 -1294
- data/rdoc/site/0.1.19/Nucleon/Util/Data.html +0 -1399
- data/rdoc/site/0.1.19/Nucleon/Util/Disk.html +0 -522
- data/rdoc/site/0.1.19/Nucleon/Util/Git.html +0 -361
- data/rdoc/site/0.1.19/Nucleon/Util/Liquid.html +0 -365
- data/rdoc/site/0.1.19/Nucleon/Util/Logger.html +0 -806
- data/rdoc/site/0.1.19/Nucleon/Util/Package.html +0 -558
- data/rdoc/site/0.1.19/Nucleon/Util/SSH.html +0 -910
- data/rdoc/site/0.1.19/Nucleon/Util/SSH/Keypair.html +0 -453
- data/rdoc/site/0.1.19/Nucleon/Util/Shell.html +0 -686
- data/rdoc/site/0.1.19/Nucleon/Util/Shell/Result.html +0 -497
- data/rdoc/site/0.1.19/README_rdoc.html +0 -312
- data/rdoc/site/0.1.19/TODO_rdoc.html +0 -267
- data/rdoc/site/0.1.19/created.rid +0 -60
- data/rdoc/site/0.1.19/images/add.png +0 -0
- data/rdoc/site/0.1.19/images/brick.png +0 -0
- data/rdoc/site/0.1.19/images/brick_link.png +0 -0
- data/rdoc/site/0.1.19/images/bug.png +0 -0
- data/rdoc/site/0.1.19/images/bullet_black.png +0 -0
- data/rdoc/site/0.1.19/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.1.19/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.1.19/images/date.png +0 -0
- data/rdoc/site/0.1.19/images/delete.png +0 -0
- data/rdoc/site/0.1.19/images/find.png +0 -0
- data/rdoc/site/0.1.19/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.1.19/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.1.19/images/package.png +0 -0
- data/rdoc/site/0.1.19/images/page_green.png +0 -0
- data/rdoc/site/0.1.19/images/page_white_text.png +0 -0
- data/rdoc/site/0.1.19/images/page_white_width.png +0 -0
- data/rdoc/site/0.1.19/images/plugin.png +0 -0
- data/rdoc/site/0.1.19/images/ruby.png +0 -0
- data/rdoc/site/0.1.19/images/tag_blue.png +0 -0
- data/rdoc/site/0.1.19/images/tag_green.png +0 -0
- data/rdoc/site/0.1.19/images/transparent.png +0 -0
- data/rdoc/site/0.1.19/images/wrench.png +0 -0
- data/rdoc/site/0.1.19/images/wrench_orange.png +0 -0
- data/rdoc/site/0.1.19/images/zoom.png +0 -0
- data/rdoc/site/0.1.19/index.html +0 -311
- data/rdoc/site/0.1.19/js/darkfish.js +0 -155
- data/rdoc/site/0.1.19/js/jquery.js +0 -18
- data/rdoc/site/0.1.19/js/navigation.js +0 -142
- data/rdoc/site/0.1.19/js/search.js +0 -94
- data/rdoc/site/0.1.19/js/search_index.js +0 -1
- data/rdoc/site/0.1.19/js/searcher.js +0 -228
- data/rdoc/site/0.1.19/rdoc.css +0 -543
- data/rdoc/site/0.1.19/table_of_contents.html +0 -1541
- data/rdoc/site/0.2.0/ARCHITECTURE_rdoc.html +0 -638
- data/rdoc/site/0.2.0/Hash.html +0 -351
- data/rdoc/site/0.2.0/Kernel.html +0 -416
- data/rdoc/site/0.2.0/Nucleon.html +0 -607
- data/rdoc/site/0.2.0/Nucleon/Action.html +0 -284
- data/rdoc/site/0.2.0/Nucleon/Action/Extract.html +0 -455
- data/rdoc/site/0.2.0/Nucleon/Action/Project.html +0 -283
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Add.html +0 -500
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Create.html +0 -457
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Remove.html +0 -503
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Save.html +0 -476
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Update.html +0 -423
- data/rdoc/site/0.2.0/Nucleon/Codes.html +0 -567
- data/rdoc/site/0.2.0/Nucleon/Command.html +0 -279
- data/rdoc/site/0.2.0/Nucleon/Command/Bash.html +0 -548
- data/rdoc/site/0.2.0/Nucleon/Config.html +0 -1631
- data/rdoc/site/0.2.0/Nucleon/Config/Collection.html +0 -513
- data/rdoc/site/0.2.0/Nucleon/Config/Options.html +0 -493
- data/rdoc/site/0.2.0/Nucleon/Core.html +0 -639
- data/rdoc/site/0.2.0/Nucleon/Environment.html +0 -1208
- data/rdoc/site/0.2.0/Nucleon/Errors.html +0 -279
- data/rdoc/site/0.2.0/Nucleon/Errors/BatchError.html +0 -285
- data/rdoc/site/0.2.0/Nucleon/Errors/NucleonError.html +0 -661
- data/rdoc/site/0.2.0/Nucleon/Errors/SSHUnavailable.html +0 -285
- data/rdoc/site/0.2.0/Nucleon/Event.html +0 -279
- data/rdoc/site/0.2.0/Nucleon/Event/Regex.html +0 -471
- data/rdoc/site/0.2.0/Nucleon/Facade.html +0 -2409
- data/rdoc/site/0.2.0/Nucleon/Gems.html +0 -639
- data/rdoc/site/0.2.0/Nucleon/Manager.html +0 -1860
- data/rdoc/site/0.2.0/Nucleon/Mixin.html +0 -288
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action.html +0 -281
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Commit.html +0 -385
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Project.html +0 -399
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Push.html +0 -375
- data/rdoc/site/0.2.0/Nucleon/Mixin/Colors.html +0 -549
- data/rdoc/site/0.2.0/Nucleon/Mixin/ConfigCollection.html +0 -485
- data/rdoc/site/0.2.0/Nucleon/Mixin/ConfigOptions.html +0 -453
- data/rdoc/site/0.2.0/Nucleon/Mixin/Macro.html +0 -280
- data/rdoc/site/0.2.0/Nucleon/Mixin/Macro/ObjectInterface.html +0 -699
- data/rdoc/site/0.2.0/Nucleon/Mixin/Macro/PluginInterface.html +0 -686
- data/rdoc/site/0.2.0/Nucleon/Mixin/Settings.html +0 -485
- data/rdoc/site/0.2.0/Nucleon/Mixin/SubConfig.html +0 -891
- data/rdoc/site/0.2.0/Nucleon/Parallel.html +0 -330
- data/rdoc/site/0.2.0/Nucleon/Parallel/ClassMethods.html +0 -329
- data/rdoc/site/0.2.0/Nucleon/Parallel/InstanceMethods.html +0 -456
- data/rdoc/site/0.2.0/Nucleon/Plugin.html +0 -286
- data/rdoc/site/0.2.0/Nucleon/Plugin/Action.html +0 -1829
- data/rdoc/site/0.2.0/Nucleon/Plugin/Action/Option.html +0 -463
- data/rdoc/site/0.2.0/Nucleon/Plugin/Base.html +0 -1803
- data/rdoc/site/0.2.0/Nucleon/Plugin/Command.html +0 -725
- data/rdoc/site/0.2.0/Nucleon/Plugin/Event.html +0 -446
- data/rdoc/site/0.2.0/Nucleon/Plugin/Extension.html +0 -285
- data/rdoc/site/0.2.0/Nucleon/Plugin/Project.html +0 -2898
- data/rdoc/site/0.2.0/Nucleon/Plugin/Template.html +0 -480
- data/rdoc/site/0.2.0/Nucleon/Plugin/Translator.html +0 -375
- data/rdoc/site/0.2.0/Nucleon/Project.html +0 -280
- data/rdoc/site/0.2.0/Nucleon/Project/Git.html +0 -1805
- data/rdoc/site/0.2.0/Nucleon/Project/Github.html +0 -553
- data/rdoc/site/0.2.0/Nucleon/Template.html +0 -281
- data/rdoc/site/0.2.0/Nucleon/Template/JSON.html +0 -333
- data/rdoc/site/0.2.0/Nucleon/Template/Wrapper.html +0 -333
- data/rdoc/site/0.2.0/Nucleon/Template/YAML.html +0 -333
- data/rdoc/site/0.2.0/Nucleon/Translator.html +0 -280
- data/rdoc/site/0.2.0/Nucleon/Translator/JSON.html +0 -370
- data/rdoc/site/0.2.0/Nucleon/Translator/YAML.html +0 -370
- data/rdoc/site/0.2.0/Nucleon/Util.html +0 -289
- data/rdoc/site/0.2.0/Nucleon/Util/CLI.html +0 -392
- data/rdoc/site/0.2.0/Nucleon/Util/CLI/Parser.html +0 -1250
- data/rdoc/site/0.2.0/Nucleon/Util/Cache.html +0 -784
- data/rdoc/site/0.2.0/Nucleon/Util/Console.html +0 -1318
- data/rdoc/site/0.2.0/Nucleon/Util/Data.html +0 -1411
- data/rdoc/site/0.2.0/Nucleon/Util/Disk.html +0 -526
- data/rdoc/site/0.2.0/Nucleon/Util/Git.html +0 -365
- data/rdoc/site/0.2.0/Nucleon/Util/Liquid.html +0 -369
- data/rdoc/site/0.2.0/Nucleon/Util/Logger.html +0 -810
- data/rdoc/site/0.2.0/Nucleon/Util/Package.html +0 -562
- data/rdoc/site/0.2.0/Nucleon/Util/SSH.html +0 -1033
- data/rdoc/site/0.2.0/Nucleon/Util/SSH/Keypair.html +0 -605
- data/rdoc/site/0.2.0/Nucleon/Util/Shell.html +0 -693
- data/rdoc/site/0.2.0/Nucleon/Util/Shell/Result.html +0 -501
- data/rdoc/site/0.2.0/README_rdoc.html +0 -316
- data/rdoc/site/0.2.0/TODO_rdoc.html +0 -265
- data/rdoc/site/0.2.0/created.rid +0 -61
- data/rdoc/site/0.2.0/images/add.png +0 -0
- data/rdoc/site/0.2.0/images/brick.png +0 -0
- data/rdoc/site/0.2.0/images/brick_link.png +0 -0
- data/rdoc/site/0.2.0/images/bug.png +0 -0
- data/rdoc/site/0.2.0/images/bullet_black.png +0 -0
- data/rdoc/site/0.2.0/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.2.0/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.2.0/images/date.png +0 -0
- data/rdoc/site/0.2.0/images/delete.png +0 -0
- data/rdoc/site/0.2.0/images/find.png +0 -0
- data/rdoc/site/0.2.0/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.2.0/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.2.0/images/package.png +0 -0
- data/rdoc/site/0.2.0/images/page_green.png +0 -0
- data/rdoc/site/0.2.0/images/page_white_text.png +0 -0
- data/rdoc/site/0.2.0/images/page_white_width.png +0 -0
- data/rdoc/site/0.2.0/images/plugin.png +0 -0
- data/rdoc/site/0.2.0/images/ruby.png +0 -0
- data/rdoc/site/0.2.0/images/tag_blue.png +0 -0
- data/rdoc/site/0.2.0/images/tag_green.png +0 -0
- data/rdoc/site/0.2.0/images/transparent.png +0 -0
- data/rdoc/site/0.2.0/images/wrench.png +0 -0
- data/rdoc/site/0.2.0/images/wrench_orange.png +0 -0
- data/rdoc/site/0.2.0/images/zoom.png +0 -0
- data/rdoc/site/0.2.0/index.html +0 -315
- data/rdoc/site/0.2.0/js/darkfish.js +0 -155
- data/rdoc/site/0.2.0/js/jquery.js +0 -18
- data/rdoc/site/0.2.0/js/navigation.js +0 -142
- data/rdoc/site/0.2.0/js/search.js +0 -94
- data/rdoc/site/0.2.0/js/search_index.js +0 -1
- data/rdoc/site/0.2.0/js/searcher.js +0 -228
- data/rdoc/site/0.2.0/rdoc.css +0 -543
- data/rdoc/site/0.2.0/table_of_contents.html +0 -1657
- data/rdoc/site/0.2.1/ARCHITECTURE_rdoc.html +0 -640
- data/rdoc/site/0.2.1/Hash.html +0 -353
- data/rdoc/site/0.2.1/Kernel.html +0 -420
- data/rdoc/site/0.2.1/Nucleon.html +0 -674
- data/rdoc/site/0.2.1/Nucleon/Action.html +0 -286
- data/rdoc/site/0.2.1/Nucleon/Action/Extract.html +0 -457
- data/rdoc/site/0.2.1/Nucleon/Action/Project.html +0 -285
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Add.html +0 -502
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Create.html +0 -459
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Remove.html +0 -505
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Save.html +0 -478
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Update.html +0 -425
- data/rdoc/site/0.2.1/Nucleon/Codes.html +0 -569
- data/rdoc/site/0.2.1/Nucleon/Command.html +0 -281
- data/rdoc/site/0.2.1/Nucleon/Command/Bash.html +0 -550
- data/rdoc/site/0.2.1/Nucleon/Config.html +0 -1634
- data/rdoc/site/0.2.1/Nucleon/Config/Collection.html +0 -515
- data/rdoc/site/0.2.1/Nucleon/Config/Options.html +0 -495
- data/rdoc/site/0.2.1/Nucleon/Core.html +0 -641
- data/rdoc/site/0.2.1/Nucleon/Environment.html +0 -1210
- data/rdoc/site/0.2.1/Nucleon/Errors.html +0 -281
- data/rdoc/site/0.2.1/Nucleon/Errors/BatchError.html +0 -287
- data/rdoc/site/0.2.1/Nucleon/Errors/NucleonError.html +0 -663
- data/rdoc/site/0.2.1/Nucleon/Errors/SSHUnavailable.html +0 -287
- data/rdoc/site/0.2.1/Nucleon/Event.html +0 -281
- data/rdoc/site/0.2.1/Nucleon/Event/Regex.html +0 -473
- data/rdoc/site/0.2.1/Nucleon/Facade.html +0 -2452
- data/rdoc/site/0.2.1/Nucleon/Gems.html +0 -641
- data/rdoc/site/0.2.1/Nucleon/Manager.html +0 -1862
- data/rdoc/site/0.2.1/Nucleon/Mixin.html +0 -291
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action.html +0 -284
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Commit.html +0 -387
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Project.html +0 -401
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Push.html +0 -377
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Registration.html +0 -575
- data/rdoc/site/0.2.1/Nucleon/Mixin/Colors.html +0 -551
- data/rdoc/site/0.2.1/Nucleon/Mixin/ConfigCollection.html +0 -487
- data/rdoc/site/0.2.1/Nucleon/Mixin/ConfigOptions.html +0 -455
- data/rdoc/site/0.2.1/Nucleon/Mixin/Macro.html +0 -282
- data/rdoc/site/0.2.1/Nucleon/Mixin/Macro/ObjectInterface.html +0 -701
- data/rdoc/site/0.2.1/Nucleon/Mixin/Macro/PluginInterface.html +0 -688
- data/rdoc/site/0.2.1/Nucleon/Mixin/Settings.html +0 -487
- data/rdoc/site/0.2.1/Nucleon/Mixin/SubConfig.html +0 -893
- data/rdoc/site/0.2.1/Nucleon/Parallel.html +0 -332
- data/rdoc/site/0.2.1/Nucleon/Parallel/ClassMethods.html +0 -331
- data/rdoc/site/0.2.1/Nucleon/Parallel/InstanceMethods.html +0 -458
- data/rdoc/site/0.2.1/Nucleon/Plugin.html +0 -288
- data/rdoc/site/0.2.1/Nucleon/Plugin/Action.html +0 -2133
- data/rdoc/site/0.2.1/Nucleon/Plugin/Action/Option.html +0 -465
- data/rdoc/site/0.2.1/Nucleon/Plugin/Base.html +0 -1988
- data/rdoc/site/0.2.1/Nucleon/Plugin/Command.html +0 -765
- data/rdoc/site/0.2.1/Nucleon/Plugin/Event.html +0 -448
- data/rdoc/site/0.2.1/Nucleon/Plugin/Extension.html +0 -287
- data/rdoc/site/0.2.1/Nucleon/Plugin/Project.html +0 -2900
- data/rdoc/site/0.2.1/Nucleon/Plugin/Template.html +0 -482
- data/rdoc/site/0.2.1/Nucleon/Plugin/Translator.html +0 -377
- data/rdoc/site/0.2.1/Nucleon/Project.html +0 -282
- data/rdoc/site/0.2.1/Nucleon/Project/Git.html +0 -1807
- data/rdoc/site/0.2.1/Nucleon/Project/Github.html +0 -555
- data/rdoc/site/0.2.1/Nucleon/Template.html +0 -283
- data/rdoc/site/0.2.1/Nucleon/Template/JSON.html +0 -335
- data/rdoc/site/0.2.1/Nucleon/Template/Wrapper.html +0 -335
- data/rdoc/site/0.2.1/Nucleon/Template/YAML.html +0 -335
- data/rdoc/site/0.2.1/Nucleon/Translator.html +0 -282
- data/rdoc/site/0.2.1/Nucleon/Translator/JSON.html +0 -372
- data/rdoc/site/0.2.1/Nucleon/Translator/YAML.html +0 -372
- data/rdoc/site/0.2.1/Nucleon/Util.html +0 -291
- data/rdoc/site/0.2.1/Nucleon/Util/CLI.html +0 -394
- data/rdoc/site/0.2.1/Nucleon/Util/CLI/Parser.html +0 -1404
- data/rdoc/site/0.2.1/Nucleon/Util/Cache.html +0 -824
- data/rdoc/site/0.2.1/Nucleon/Util/Console.html +0 -1330
- data/rdoc/site/0.2.1/Nucleon/Util/Data.html +0 -1423
- data/rdoc/site/0.2.1/Nucleon/Util/Disk.html +0 -528
- data/rdoc/site/0.2.1/Nucleon/Util/Git.html +0 -367
- data/rdoc/site/0.2.1/Nucleon/Util/Liquid.html +0 -371
- data/rdoc/site/0.2.1/Nucleon/Util/Logger.html +0 -822
- data/rdoc/site/0.2.1/Nucleon/Util/Package.html +0 -564
- data/rdoc/site/0.2.1/Nucleon/Util/SSH.html +0 -1036
- data/rdoc/site/0.2.1/Nucleon/Util/SSH/Keypair.html +0 -607
- data/rdoc/site/0.2.1/Nucleon/Util/Shell.html +0 -697
- data/rdoc/site/0.2.1/Nucleon/Util/Shell/Result.html +0 -503
- data/rdoc/site/0.2.1/README_rdoc.html +0 -318
- data/rdoc/site/0.2.1/TODO_rdoc.html +0 -267
- data/rdoc/site/0.2.1/created.rid +0 -62
- data/rdoc/site/0.2.1/images/add.png +0 -0
- data/rdoc/site/0.2.1/images/brick.png +0 -0
- data/rdoc/site/0.2.1/images/brick_link.png +0 -0
- data/rdoc/site/0.2.1/images/bug.png +0 -0
- data/rdoc/site/0.2.1/images/bullet_black.png +0 -0
- data/rdoc/site/0.2.1/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.2.1/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.2.1/images/date.png +0 -0
- data/rdoc/site/0.2.1/images/delete.png +0 -0
- data/rdoc/site/0.2.1/images/find.png +0 -0
- data/rdoc/site/0.2.1/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.2.1/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.2.1/images/package.png +0 -0
- data/rdoc/site/0.2.1/images/page_green.png +0 -0
- data/rdoc/site/0.2.1/images/page_white_text.png +0 -0
- data/rdoc/site/0.2.1/images/page_white_width.png +0 -0
- data/rdoc/site/0.2.1/images/plugin.png +0 -0
- data/rdoc/site/0.2.1/images/ruby.png +0 -0
- data/rdoc/site/0.2.1/images/tag_blue.png +0 -0
- data/rdoc/site/0.2.1/images/tag_green.png +0 -0
- data/rdoc/site/0.2.1/images/transparent.png +0 -0
- data/rdoc/site/0.2.1/images/wrench.png +0 -0
- data/rdoc/site/0.2.1/images/wrench_orange.png +0 -0
- data/rdoc/site/0.2.1/images/zoom.png +0 -0
- data/rdoc/site/0.2.1/index.html +0 -317
- data/rdoc/site/0.2.1/js/darkfish.js +0 -155
- data/rdoc/site/0.2.1/js/jquery.js +0 -18
- data/rdoc/site/0.2.1/js/navigation.js +0 -142
- data/rdoc/site/0.2.1/js/search.js +0 -94
- data/rdoc/site/0.2.1/js/search_index.js +0 -1
- data/rdoc/site/0.2.1/js/searcher.js +0 -228
- data/rdoc/site/0.2.1/rdoc.css +0 -543
- data/rdoc/site/0.2.1/table_of_contents.html +0 -1718
- data/spec/coral_mock_input.rb +0 -29
- data/spec/coral_test_kernel.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 43e949a33f99d15fb8422c9a7a36f5945b70317b
|
4
|
+
data.tar.gz: 257c8ea9bc29a2fc897ca84d3f8c793b14d5cc84
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ac2d24aa0b236ce1f317dfd2d43e9cb34e416bfb59be665c2e95157246b76b9479408a8e0e85c613f6be7bbfbbe2598268c80e6eb4a528681d254092c413ff97
|
7
|
+
data.tar.gz: 08b1115576d89bb5ae0ee0f3b375539f3c1fdeffedb85ca77713e94d325d896225c6f16e06914ef19cb1612b650046827333e8e307b75d9a60d779bbad9e9367
|
data/.gitignore
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
coverage.data
|
4
|
+
|
5
|
+
# bundler
|
6
|
+
.bundle
|
7
|
+
|
8
|
+
# jeweler generated
|
9
|
+
pkg
|
10
|
+
|
11
|
+
# Gem builds
|
12
|
+
*.gem
|
13
|
+
|
14
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
15
|
+
#
|
16
|
+
# * Create a file at ~/.gitignore
|
17
|
+
# * Include files you want ignored
|
18
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
19
|
+
#
|
20
|
+
# After doing this, these files will be ignored in all your git projects,
|
21
|
+
# saving you from having to 'pollute' every project you touch with them
|
22
|
+
#
|
23
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
24
|
+
#
|
25
|
+
# For MacOS:
|
26
|
+
#
|
27
|
+
#.DS_Store
|
28
|
+
|
29
|
+
# For TextMate
|
30
|
+
#*.tmproj
|
31
|
+
#tmtags
|
32
|
+
|
33
|
+
# For emacs:
|
34
|
+
#*~
|
35
|
+
#\#*
|
36
|
+
#.\#*
|
37
|
+
|
38
|
+
# For vim:
|
39
|
+
#*.swp
|
40
|
+
|
41
|
+
# For redcar:
|
42
|
+
#.redcar
|
43
|
+
|
44
|
+
# For rubinius:
|
45
|
+
#*.rbc
|
46
|
+
|
47
|
+
# For Eclipse IDE:
|
48
|
+
.project
|
49
|
+
.buildpath
|
50
|
+
.cache
|
data/ARCHITECTURE.rdoc
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
== Nucleon architecture guide
|
2
2
|
|
3
|
-
Nucleon is
|
4
|
-
|
3
|
+
Nucleon is a framework that provides a simple foundation for building distributed,
|
4
|
+
pluggable, and integrated applications. It is both minimal, yet powerful.
|
5
5
|
|
6
|
-
This
|
7
|
-
built in a pluggable, concurrent, and configurable fashion. It
|
8
|
-
|
9
|
-
|
6
|
+
This framework should be applicable to any Ruby application that needs to be
|
7
|
+
built in a pluggable, concurrent, and/or configurable fashion. It can be used
|
8
|
+
as pieces in existing programming models and it provides an extremely simple
|
9
|
+
core programming model that you can build on.
|
10
10
|
|
11
11
|
There are five major architectural goals of the project:
|
12
12
|
|
@@ -15,7 +15,7 @@ There are five major architectural goals of the project:
|
|
15
15
|
==== Important concept: Objects == Property trees
|
16
16
|
|
17
17
|
At the core of the Nucleon framework is the configuration. The configuration
|
18
|
-
is used
|
18
|
+
is used to store, lookup, and perform other operations (such
|
19
19
|
as merge) on our class data by treating a subset of class properties as a tree
|
20
20
|
based data structure.
|
21
21
|
|
@@ -191,7 +191,7 @@ For example:
|
|
191
191
|
# This would be defined within a namespaced load path.
|
192
192
|
# More on that in the usage section.
|
193
193
|
#
|
194
|
-
class MyExtension < Nucleon.plugin_class(:extension)
|
194
|
+
class Nucleon::Extension::MyExtension < Nucleon.plugin_class(:nucleon, :extension)
|
195
195
|
|
196
196
|
@objs = []
|
197
197
|
|
@@ -216,14 +216,15 @@ For example:
|
|
216
216
|
#---
|
217
217
|
|
218
218
|
# Extension would normally be loaded via Nucleon.register(load_path)
|
219
|
-
|
220
|
-
|
219
|
+
|
221
220
|
myobj = Nucleon.config(:myobj, { :nucleon => :is })
|
222
221
|
# myobj = {
|
223
222
|
# :nucleon => :is,
|
224
223
|
# :awesome => true
|
225
224
|
# }
|
226
225
|
|
226
|
+
# No one overruled me, Whew!
|
227
|
+
|
227
228
|
Nucleon.exec(:record_object, myobj)
|
228
229
|
|
229
230
|
|
@@ -266,7 +267,7 @@ above.
|
|
266
267
|
Concurrency is the backbone of scalability and fault tolerance. With Nucleon
|
267
268
|
we seek to create a system that can utilize the whole of the resources available
|
268
269
|
to us in the most flexible way possible. We should be able to write parallel
|
269
|
-
capable objects without even thinking about it (ok, maybe a
|
270
|
+
capable objects without even thinking about it (ok, maybe a little). It should
|
270
271
|
also be capable of completely disabling the parallel execution and library
|
271
272
|
inclusion to make it easier to troubleshoot and debug.
|
272
273
|
|
data/Gemfile
CHANGED
@@ -2,28 +2,24 @@ source "http://rubygems.org"
|
|
2
2
|
|
3
3
|
gem "log4r", "~> 1.1"
|
4
4
|
gem "i18n", "~> 0.6"
|
5
|
-
gem "netrc", "~> 0.
|
5
|
+
gem "netrc", "~> 0.9"
|
6
6
|
gem "highline", "~> 1.6"
|
7
7
|
gem "erubis", "~> 2.7"
|
8
8
|
|
9
9
|
gem "deep_merge", "~> 1.0"
|
10
|
-
gem "multi_json", "~> 1.
|
10
|
+
gem "multi_json", "~> 1.10"
|
11
11
|
|
12
12
|
gem "sshkey", "~> 1.6"
|
13
13
|
|
14
14
|
gem "childprocess", "~> 0.5"
|
15
|
-
gem "celluloid", "~> 0.
|
15
|
+
gem "celluloid", "~> 0.16"
|
16
16
|
|
17
|
-
gem "rugged", "~> 0.
|
18
|
-
gem "octokit", "~>
|
17
|
+
gem "rugged", "~> 0.21"
|
18
|
+
gem "octokit", "~> 3.6"
|
19
19
|
|
20
20
|
group :development do
|
21
|
-
gem "bundler", "~> 1.
|
21
|
+
gem "bundler", "~> 1.7"
|
22
22
|
gem "jeweler", "~> 2.0"
|
23
|
-
gem "rspec", "~>
|
23
|
+
gem "rspec", "~> 3.1"
|
24
24
|
gem "rdoc", "~> 3.12"
|
25
|
-
gem "yard", "~> 0.8"
|
26
|
-
gem "pry", "~> 0.9"
|
27
|
-
gem "pry-stack_explorer", "~> 0.4"
|
28
|
-
gem "pry-debugger", "~> 0.2"
|
29
25
|
end
|
data/Gemfile.lock
CHANGED
@@ -2,22 +2,11 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
addressable (2.3.6)
|
5
|
-
binding_of_caller (0.7.2)
|
6
|
-
debug_inspector (>= 0.0.1)
|
7
5
|
builder (3.2.2)
|
8
|
-
celluloid (0.
|
9
|
-
timers (~>
|
10
|
-
childprocess (0.5.
|
6
|
+
celluloid (0.16.0)
|
7
|
+
timers (~> 4.0.0)
|
8
|
+
childprocess (0.5.5)
|
11
9
|
ffi (~> 1.0, >= 1.0.11)
|
12
|
-
coderay (1.1.0)
|
13
|
-
columnize (0.8.9)
|
14
|
-
debug_inspector (0.0.2)
|
15
|
-
debugger (1.6.6)
|
16
|
-
columnize (>= 0.3.1)
|
17
|
-
debugger-linecache (~> 1.2.0)
|
18
|
-
debugger-ruby_core_source (~> 1.3.2)
|
19
|
-
debugger-linecache (1.2.0)
|
20
|
-
debugger-ruby_core_source (1.3.2)
|
21
10
|
deep_merge (1.0.1)
|
22
11
|
descendants_tracker (0.0.4)
|
23
12
|
thread_safe (~> 0.3, >= 0.3.1)
|
@@ -25,19 +14,20 @@ GEM
|
|
25
14
|
erubis (2.7.0)
|
26
15
|
faraday (0.9.0)
|
27
16
|
multipart-post (>= 1.2, < 3)
|
28
|
-
ffi (1.9.
|
29
|
-
git (1.2.
|
30
|
-
github_api (0.
|
17
|
+
ffi (1.9.6)
|
18
|
+
git (1.2.8)
|
19
|
+
github_api (0.12.2)
|
31
20
|
addressable (~> 2.3)
|
32
|
-
descendants_tracker (~> 0.0.
|
21
|
+
descendants_tracker (~> 0.0.4)
|
33
22
|
faraday (~> 0.8, < 0.10)
|
34
|
-
hashie (>=
|
23
|
+
hashie (>= 3.3)
|
35
24
|
multi_json (>= 1.7.5, < 2.0)
|
36
|
-
nokogiri (~> 1.6.
|
25
|
+
nokogiri (~> 1.6.3)
|
37
26
|
oauth2
|
38
|
-
hashie (
|
27
|
+
hashie (3.3.2)
|
39
28
|
highline (1.6.21)
|
40
|
-
|
29
|
+
hitimes (1.2.2)
|
30
|
+
i18n (0.6.11)
|
41
31
|
jeweler (2.0.1)
|
42
32
|
builder
|
43
33
|
bundler (>= 1.0)
|
@@ -48,63 +38,54 @@ GEM
|
|
48
38
|
rake
|
49
39
|
rdoc
|
50
40
|
json (1.8.1)
|
51
|
-
jwt (
|
52
|
-
multi_json (>= 1.5)
|
41
|
+
jwt (1.2.0)
|
53
42
|
log4r (1.1.10)
|
54
|
-
|
55
|
-
|
56
|
-
multi_json (1.9.2)
|
43
|
+
mini_portile (0.6.1)
|
44
|
+
multi_json (1.10.1)
|
57
45
|
multi_xml (0.5.5)
|
58
46
|
multipart-post (2.0.0)
|
59
|
-
netrc (0.
|
60
|
-
nokogiri (1.6.
|
61
|
-
mini_portile (~> 0.
|
62
|
-
oauth2 (0.
|
47
|
+
netrc (0.9.0)
|
48
|
+
nokogiri (1.6.5)
|
49
|
+
mini_portile (~> 0.6.0)
|
50
|
+
oauth2 (1.0.0)
|
63
51
|
faraday (>= 0.8, < 0.10)
|
64
|
-
jwt (~>
|
52
|
+
jwt (~> 1.0)
|
65
53
|
multi_json (~> 1.3)
|
66
54
|
multi_xml (~> 0.5)
|
67
55
|
rack (~> 1.2)
|
68
|
-
octokit (
|
69
|
-
sawyer (~> 0.5.
|
70
|
-
pry (0.9.12.6)
|
71
|
-
coderay (~> 1.0)
|
72
|
-
method_source (~> 0.8)
|
73
|
-
slop (~> 3.4)
|
74
|
-
pry-debugger (0.2.2)
|
75
|
-
debugger (~> 1.3)
|
76
|
-
pry (~> 0.9.10)
|
77
|
-
pry-stack_explorer (0.4.9.1)
|
78
|
-
binding_of_caller (>= 0.7)
|
79
|
-
pry (>= 0.9.11)
|
56
|
+
octokit (3.6.0)
|
57
|
+
sawyer (~> 0.6.0, >= 0.5.3)
|
80
58
|
rack (1.5.2)
|
81
|
-
rake (10.
|
59
|
+
rake (10.4.1)
|
82
60
|
rdoc (3.12.2)
|
83
61
|
json (~> 1.4)
|
84
|
-
rspec (
|
85
|
-
rspec-core (~>
|
86
|
-
rspec-expectations (~>
|
87
|
-
rspec-mocks (~>
|
88
|
-
rspec-core (
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
62
|
+
rspec (3.1.0)
|
63
|
+
rspec-core (~> 3.1.0)
|
64
|
+
rspec-expectations (~> 3.1.0)
|
65
|
+
rspec-mocks (~> 3.1.0)
|
66
|
+
rspec-core (3.1.7)
|
67
|
+
rspec-support (~> 3.1.0)
|
68
|
+
rspec-expectations (3.1.2)
|
69
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
+
rspec-support (~> 3.1.0)
|
71
|
+
rspec-mocks (3.1.3)
|
72
|
+
rspec-support (~> 3.1.0)
|
73
|
+
rspec-support (3.1.2)
|
74
|
+
rugged (0.21.2)
|
75
|
+
sawyer (0.6.0)
|
94
76
|
addressable (~> 2.3.5)
|
95
77
|
faraday (~> 0.8, < 0.10)
|
96
|
-
slop (3.5.0)
|
97
78
|
sshkey (1.6.1)
|
98
|
-
thread_safe (0.3.
|
99
|
-
timers (
|
100
|
-
|
79
|
+
thread_safe (0.3.4)
|
80
|
+
timers (4.0.1)
|
81
|
+
hitimes
|
101
82
|
|
102
83
|
PLATFORMS
|
103
84
|
ruby
|
104
85
|
|
105
86
|
DEPENDENCIES
|
106
|
-
bundler (~> 1.
|
107
|
-
celluloid (~> 0.
|
87
|
+
bundler (~> 1.7)
|
88
|
+
celluloid (~> 0.16)
|
108
89
|
childprocess (~> 0.5)
|
109
90
|
deep_merge (~> 1.0)
|
110
91
|
erubis (~> 2.7)
|
@@ -112,14 +93,10 @@ DEPENDENCIES
|
|
112
93
|
i18n (~> 0.6)
|
113
94
|
jeweler (~> 2.0)
|
114
95
|
log4r (~> 1.1)
|
115
|
-
multi_json (~> 1.
|
116
|
-
netrc (~> 0.
|
117
|
-
octokit (~>
|
118
|
-
pry (~> 0.9)
|
119
|
-
pry-debugger (~> 0.2)
|
120
|
-
pry-stack_explorer (~> 0.4)
|
96
|
+
multi_json (~> 1.10)
|
97
|
+
netrc (~> 0.9)
|
98
|
+
octokit (~> 3.6)
|
121
99
|
rdoc (~> 3.12)
|
122
|
-
rspec (~>
|
123
|
-
rugged (~> 0.
|
100
|
+
rspec (~> 3.1)
|
101
|
+
rugged (~> 0.21)
|
124
102
|
sshkey (~> 1.6)
|
125
|
-
yard (~> 0.8)
|
data/Rakefile
CHANGED
@@ -6,9 +6,6 @@ require 'bundler'
|
|
6
6
|
require 'jeweler'
|
7
7
|
require 'rspec/core/rake_task'
|
8
8
|
require 'rdoc/task'
|
9
|
-
require 'yard'
|
10
|
-
|
11
|
-
require './lib/nucleon.rb'
|
12
9
|
|
13
10
|
#-------------------------------------------------------------------------------
|
14
11
|
# Dependencies
|
@@ -32,7 +29,7 @@ Jeweler::Tasks.new do |gem|
|
|
32
29
|
gem.license = "Apache License, Version 2.0"
|
33
30
|
gem.email = "adrian.webb@coralnexus.com"
|
34
31
|
gem.authors = ["Adrian Webb"]
|
35
|
-
gem.summary = %Q{
|
32
|
+
gem.summary = %Q{Easy and minimal framework for building extensible distributed applications}
|
36
33
|
gem.description = %Q{
|
37
34
|
A framework that provides a simple foundation for building Ruby applications that are:
|
38
35
|
|
@@ -42,12 +39,25 @@ A framework that provides a simple foundation for building Ruby applications tha
|
|
42
39
|
|
43
40
|
Note: This framework is still very early in development!
|
44
41
|
}
|
45
|
-
gem.required_ruby_version = '>= 1.
|
42
|
+
gem.required_ruby_version = '>= 1.9.1'
|
46
43
|
gem.has_rdoc = true
|
47
44
|
gem.rdoc_options << '--title' << 'Nucleon' <<
|
48
45
|
'--main' << 'README.rdoc' <<
|
49
46
|
'--line-numbers'
|
50
|
-
|
47
|
+
|
48
|
+
gem.files = [
|
49
|
+
Dir.glob('bin/*'),
|
50
|
+
Dir.glob('lib/**/*.rb'),
|
51
|
+
Dir.glob('spec/**/*.rb'),
|
52
|
+
Dir.glob('locales/**/*.yml'),
|
53
|
+
Dir.glob('**/*.rdoc'),
|
54
|
+
Dir.glob('**/*.txt'),
|
55
|
+
Dir.glob('Gemfile*'),
|
56
|
+
Dir.glob('*.gemspec'),
|
57
|
+
Dir.glob('.git*'),
|
58
|
+
'VERSION',
|
59
|
+
'Rakefile'
|
60
|
+
]
|
51
61
|
# Dependencies defined in Gemfile
|
52
62
|
end
|
53
63
|
Jeweler::RubygemsDotOrgTasks.new
|
@@ -57,16 +67,15 @@ Jeweler::RubygemsDotOrgTasks.new
|
|
57
67
|
|
58
68
|
RSpec::Core::RakeTask.new(:spec, :tag) do |spec, task_args|
|
59
69
|
options = []
|
60
|
-
options << "--tag #{task_args[:tag]}" if task_args.is_a?(Array) && ! task_args[:tag].to_s.empty?
|
70
|
+
options << "--tag #{task_args[:tag]}" if task_args.is_a?(Array) && ! task_args[:tag].to_s.empty?
|
61
71
|
spec.rspec_opts = options.join(' ')
|
62
72
|
end
|
63
|
-
|
64
73
|
task :default => :spec
|
65
74
|
|
66
75
|
#-------------------------------------------------------------------------------
|
67
76
|
# Documentation
|
68
77
|
|
69
|
-
version =
|
78
|
+
version = File.read(File.join(File.dirname(__FILE__), 'VERSION'))
|
70
79
|
doc_title = "nucleon #{version}"
|
71
80
|
|
72
81
|
class RDoc::Options
|
@@ -77,21 +86,14 @@ end
|
|
77
86
|
|
78
87
|
Rake::RDocTask.new do |rdoc|
|
79
88
|
rdoc.rdoc_dir = File.join('rdoc', 'site', version)
|
80
|
-
|
89
|
+
|
81
90
|
rdoc.title = doc_title
|
82
|
-
rdoc.main = 'README.rdoc'
|
83
|
-
|
91
|
+
rdoc.main = 'README.rdoc'
|
92
|
+
|
84
93
|
rdoc.options << '--line-numbers'
|
85
94
|
rdoc.options << '--all'
|
86
95
|
rdoc.options << '-w' << '2'
|
87
|
-
|
96
|
+
|
88
97
|
rdoc.rdoc_files.include('*.rdoc')
|
89
98
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
90
99
|
end
|
91
|
-
|
92
|
-
#---
|
93
|
-
|
94
|
-
YARD::Rake::YardocTask.new do |ydoc|
|
95
|
-
ydoc.files = [ '*.rdoc', 'lib/**/*.rb' ]
|
96
|
-
ydoc.options = [ "--output-dir yardoc", "--title '#{doc_title}'" ]
|
97
|
-
end
|
data/TODO.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* Execution plans
|
4
4
|
* Error handling improvements
|
5
5
|
* Full code documentation
|
6
|
-
* Full coverage unit tests
|
6
|
+
* Full coverage unit tests
|
7
7
|
* Performance improvements
|
8
8
|
* Deeper GitHub API integration in project provider
|
9
9
|
* UI console color profiles
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/bin/nucleon
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
begin
|
4
|
+
require 'nucleon'
|
4
5
|
|
5
|
-
|
6
|
+
# Set version info
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
def version
|
14
|
-
version = Nucleon.VERSION
|
15
|
-
"Nucleon: #{version} (Apache License, Version 2.0) -- https://github.com/coralnexus/nucleon/tree/v#{version}"
|
8
|
+
module Nucleon; module Util; module CLI
|
9
|
+
class Parser
|
10
|
+
def version
|
11
|
+
version = Nucleon.VERSION
|
12
|
+
"Nucleon: #{version} (Apache License, Version 2.0) -- https://github.com/coralnexus/nucleon/tree/v#{version}"
|
13
|
+
end
|
16
14
|
end
|
17
|
-
end
|
18
|
-
|
15
|
+
end; end; end
|
16
|
+
|
17
|
+
# Execute
|
19
18
|
|
20
|
-
|
19
|
+
exit(Nucleon.executable(ARGV, :nucleon))
|
21
20
|
|
22
|
-
|
21
|
+
rescue Interrupt
|
22
|
+
exit(Nucleon.interrupt_handler)
|
23
|
+
end
|