padrino-core 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.8
1
+ 0.7.9
@@ -75,12 +75,14 @@ module Padrino
75
75
  MTIMES[file] = mtime
76
76
  end
77
77
 
78
+ ##
79
+ # Search Ruby files in your +Padrino.root+ and monitor them for changes.
80
+ #
78
81
  def rotation
79
- files = [$0, *$LOADED_FEATURES].uniq
80
- paths = ['./', *$:].uniq
82
+ files = Dir[Padrino.root("/**/*.rb")]
83
+ paths = [Padrino.root] # For now we set only our root.
81
84
 
82
85
  files.map{ |file|
83
- next if file =~ /\.(so|bundle)$/ # cannot reload compiled files
84
86
  found, stat = figure_path(file, paths)
85
87
  next unless found && stat && mtime = stat.mtime
86
88
 
@@ -121,4 +123,3 @@ module Padrino
121
123
  end # Stat
122
124
  end # Reloader
123
125
  end # Padrino
124
-
data/padrino-core.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-core}
8
- s.version = "0.7.8"
8
+ s.version = "0.7.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team