Rakefile in gmail-0.4.2 vs Rakefile in gmail-0.5.0
- old
+ new
@@ -31,5 +31,16 @@
abort 'Run `gem install rspec` to install RSpec'
end
end
task :default => :spec
+
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'spec/support/obfuscation'
+desc 'Obfuscates account.yml file.'
+task :obfuscate do
+ Spec::Obfuscation.encrypt_file(File.join(File.dirname(__FILE__), 'spec', 'account.yml'))
+end
+
+task :deobfuscate do
+ puts Spec::Obfuscation.decrypt_file(File.join(File.dirname(__FILE__), 'spec', 'account.yml.obfus'))
+end