turboauth 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. data/lib/turboauth.rb +2 -2
  2. metadata +1 -1
@@ -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('config/routes.rb', "w+") { |f| f.write(contents) }
35
+ File.open('app/assets/javascripts/application.js', "w+") { |f| f.write(contents) }
36
36
  }
37
37
  end
38
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turboauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: