backbonejs-rails 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.
@@ -30,25 +30,25 @@ module Backbonejs
|
|
30
30
|
new_file = "public/javascripts/#{file_name}.js"
|
31
31
|
|
32
32
|
|
33
|
-
begin
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
rescue
|
46
|
-
|
47
|
-
|
33
|
+
#begin
|
34
|
+
# c = Curl::Easy.new(file_url)
|
35
|
+
# c.perform
|
36
|
+
#
|
37
|
+
# if File.exist?(new_file)
|
38
|
+
# puts "Skipping #{file_name}.js because it already exists"
|
39
|
+
# else
|
40
|
+
# puts "Generating #{new_file}"
|
41
|
+
# create_file new_file
|
42
|
+
# append_to_file new_file, c.body_str
|
43
|
+
# end
|
44
|
+
#
|
45
|
+
# rescue
|
46
|
+
# puts "Connection to #{the_url} failed!"
|
47
|
+
# puts "Falling back to copying over a, most likely, older version."
|
48
48
|
|
49
49
|
say_status("copying", "#{file_name}.js", :green)
|
50
50
|
copy_file "#{file_name}.js", "public/javascripts/#{file_name}.js"
|
51
|
-
|
51
|
+
# end
|
52
52
|
|
53
53
|
end
|
54
54
|
end
|