subload 1.0.0 → 1.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.
- data/Rakefile +2 -1
- data/lib/subload.rb +5 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -102,7 +102,8 @@ task :tag do
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
desc "Release #{gem_task.gem_file} to rubyforge"
|
105
|
+
desc "Release #{gem_task.gem_file} to rubyforge and gemcutter"
|
106
106
|
task :release => [:tag, :gem, :publish] do |t|
|
107
107
|
sh "rubyforge add_release #{spec.rubyforge_project} #{spec.name} #{spec.version} #{gem_task.package_dir}/#{gem_task.gem_file}"
|
108
|
+
sh "gem push #{gem_task.package_dir}/#{gem_task.gem_file}"
|
108
109
|
end
|
data/lib/subload.rb
CHANGED
@@ -28,7 +28,11 @@ module Subload
|
|
28
28
|
# use a custom loading mode
|
29
29
|
def subload_with(mode = nil)
|
30
30
|
@_subload_mode = mode unless mode.nil?
|
31
|
-
MODES[
|
31
|
+
MODES[
|
32
|
+
Subload.override_mode ||
|
33
|
+
(defined?(@_subload_mode) && @_subload_mode) ||
|
34
|
+
Subload.default_mode
|
35
|
+
]
|
32
36
|
end
|
33
37
|
|
34
38
|
# Load the given constant name from the path corresponding to the
|