monkey-reloader 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a9bf1f25c4b7971da9d998f3f83d55d22369f302
4
+ data.tar.gz: 24683ac381e097693c15f99f52d37ec33192d7f9
5
+ SHA512:
6
+ metadata.gz: 8a7b29b3cafccad354f1af05df645601270237af9103cac6a58b38006d8970074384e655d6d7f62cb31116ab1dea73b3b5f354375756c1a18f3f85f573286708
7
+ data.tar.gz: 55b3a3388f5ff61a64eb5da53be69ed89190fe38876130665d9d4467c40110330f3449081abc3f1bcf0375c69fdb6bb5864fd1efd9907c92bede5c4d625c46d8
@@ -0,0 +1,10 @@
1
+ module MonkeyReloader
2
+ def self.load(blacklist = [])
3
+ cmd = "git status -s | grep '.rb' | awk '{ print $2 }'"
4
+ `#{cmd}`.split.reject do |file|
5
+ blacklist.include? file
6
+ end.each do |file|
7
+ Kernel.load file unless blacklist.include? file
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module MonkeyReloader
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: monkey-reloader
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Pepper
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |2
14
+ fast IRB reloading for non-conventional file naming, using git
15
+ change tracking
16
+ email:
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/monkey-reloader.rb
22
+ - lib/monkey-reloader/version.rb
23
+ homepage: http://rubygems.org/gems/monkey_reloader
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.5.1
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Monkey Reloading
47
+ test_files: []