turboauth 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/turboauth.rb +2 -2
- metadata +1 -1
data/lib/turboauth.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class TurboAuth
|
2
2
|
TURBOAUTH_ROOT = File.expand_path('../', File.dirname(__FILE__))
|
3
|
-
|
3
|
+
#abstract paths into variables. Have each method take path as an argument. Pass path varibles in when called. Test with simpler paths.
|
4
4
|
def self.facebook
|
5
5
|
self.add_gems
|
6
6
|
self.add_jquery_turbolinks_to_application_js
|
@@ -32,7 +32,7 @@ class TurboAuth
|
|
32
32
|
contents = source_file.read
|
33
33
|
newlines = "require turbolinks\n//= require jquery.turbolinks\n"
|
34
34
|
contents.gsub!(/[r][e][q][u][i][r][e][ ][t][u][r][b][o][l][i][n][k][s]/, newlines)
|
35
|
-
File.open('
|
35
|
+
File.open('app/assets/javascripts/application.js', "w+") { |f| f.write(contents) }
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|