birb 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/birb.gemspec +1 -1
  3. data/lib/birb.rb +8 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{birb}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jordinl"]
@@ -8,11 +8,17 @@ class << self
8
8
  args.each do |file|
9
9
  file = file.to_s
10
10
  file += '.rb' unless file.end_with?('.rb')
11
- load file
12
- (@loaded_files ||= []) << file
11
+ load_file(file)
13
12
  end
14
13
  end
15
14
 
15
+ def load_file(file)
16
+ load file
17
+ @loaded_files ||= []
18
+ @loaded_files.delete(file)
19
+ @loaded_files << file
20
+ end
21
+
16
22
  def rl
17
23
  l *@loaded_files if @loaded_files
18
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - jordinl