spin 0.4.3 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/spin +13 -1
- metadata +4 -4
data/bin/spin
CHANGED
@@ -195,7 +195,19 @@ def push
|
|
195
195
|
# bit will just be ignored.
|
196
196
|
#
|
197
197
|
# We build a string like `file1.rb|file2.rb` and pass it up to the server.
|
198
|
-
f = files_to_load.
|
198
|
+
f = files_to_load.map do |file|
|
199
|
+
file = file.split(':').first.to_s
|
200
|
+
|
201
|
+
# If the file exists then we can push it up just like it is
|
202
|
+
if File.exist?(file)
|
203
|
+
file
|
204
|
+
# kicker-2.5.0 now gives us file names without extensions, so we have to try adding it
|
205
|
+
elsif File.extname(file).empty?
|
206
|
+
file = [file, 'rb'].join('.')
|
207
|
+
file if File.exist?(file)
|
208
|
+
end
|
209
|
+
end.compact.uniq.join(SEPARATOR)
|
210
|
+
|
199
211
|
abort if f.empty?
|
200
212
|
puts "Spinning up #{f}"
|
201
213
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'Spin preloads your Rails environment to speed up your autotest(ish)
|
15
15
|
workflow.
|
@@ -24,7 +24,8 @@ executables:
|
|
24
24
|
extensions: []
|
25
25
|
extra_rdoc_files: []
|
26
26
|
files:
|
27
|
-
-
|
27
|
+
- !binary |-
|
28
|
+
YmluL3NwaW4=
|
28
29
|
homepage: http://jstorimer.github.com/spin
|
29
30
|
licenses: []
|
30
31
|
post_install_message:
|
@@ -50,4 +51,3 @@ signing_key:
|
|
50
51
|
specification_version: 3
|
51
52
|
summary: Spin preloads your Rails environment to speed up your autotest(ish) workflow.
|
52
53
|
test_files: []
|
53
|
-
has_rdoc:
|