Commit 8010931

mo khan <mo@mokhan.ca>
2014-07-25 20:10:11
rename project from in to tfa.
1 parent adc43f8
bin/in → bin/tfa
@@ -1,3 +1,3 @@
 #!/usr/bin/env ruby
 
-require 'in'
+require 'tfa'
lib/in/add_command.rb → lib/tfa/add_command.rb
@@ -1,4 +1,4 @@
-module In
+module TFA
   class AddCommand
     def initialize(storage)
       @storage = storage
lib/in/console.rb → lib/tfa/console.rb
@@ -1,4 +1,4 @@
-module In
+module TFA
   class Console
     def initialize(filename = "secrets")
       @storage = PStore.new(File.join(Dir.home, ".#{filename}.pstore"))
lib/in/show_command.rb → lib/tfa/show_command.rb
@@ -1,4 +1,4 @@
-module In
+module TFA
   class ShowCommand
     def initialize(storage)
       @storage = storage
lib/in/totp_command.rb → lib/tfa/totp_command.rb
@@ -1,4 +1,4 @@
-module In
+module TFA
   class TotpCommand
     def initialize(storage)
       @storage = storage
lib/in/version.rb → lib/tfa/version.rb
@@ -1,3 +1,3 @@
-module In
+module TFA
   VERSION = "0.0.1"
 end
lib/in.rb
@@ -1,7 +0,0 @@
-require "in/version"
-require "pstore"
-require "in/add_command"
-require "in/show_command"
-require "in/totp_command"
-require "in/console"
-require "rotp"
lib/tfa.rb
@@ -0,0 +1,7 @@
+require "pstore"
+require "rotp"
+require "tfa/version"
+require "tfa/add_command"
+require "tfa/show_command"
+require "tfa/totp_command"
+require "tfa/console"
spec/lib/console_spec.rb
@@ -1,4 +1,4 @@
-module In
+module TFA
   describe Console do
     subject { Console.new('testing') }
     let(:secret) { ::ROTP::Base32.random_base32 }
spec/lib/show_command_spec.rb
@@ -1,4 +1,4 @@
-module In
+module TFA
   describe ShowCommand do
     subject { ShowCommand.new(storage) }
     let(:storage) { PStore.new(Tempfile.new('blah').path) }
spec/lib/totp_command_spec.rb
@@ -1,6 +1,6 @@
 require "tempfile"
 
-module In
+module TFA
   describe TotpCommand do
     subject { TotpCommand.new(storage) }
     let(:secret) { ::ROTP::Base32.random_base32 }
spec/spec_helper.rb
@@ -14,7 +14,7 @@
 # users commonly want.
 #
 # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
-require 'in'
+require 'tfa'
 RSpec.configure do |config|
 # The settings below are suggested to provide a good initial experience
 # with RSpec, but feel free to customize to your heart's content.
README.md
@@ -6,7 +6,7 @@ TODO: Write a gem description
 
 Add this line to your application's Gemfile:
 
-    gem 'in'
+    gem 'tfa'
 
 And then execute:
 
@@ -14,7 +14,7 @@ And then execute:
 
 Or install it yourself as:
 
-    $ gem install in
+    $ gem install tfa
 
 ## Usage
 
@@ -22,7 +22,7 @@ TODO: Write usage instructions here
 
 ## Contributing
 
-1. Fork it ( https://github.com/[my-github-username]/in/fork )
+1. Fork it ( https://github.com/mokhan/tfa/fork )
 2. Create your feature branch (`git checkout -b my-new-feature`)
 3. Commit your changes (`git commit -am 'Add some feature'`)
 4. Push to the branch (`git push origin my-new-feature`)
in.gemspec → tfa.gemspec
@@ -1,11 +1,11 @@
 # coding: utf-8
 lib = File.expand_path('../lib', __FILE__)
 $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require 'in/version'
+require 'tfa/version'
 
 Gem::Specification.new do |spec|
-  spec.name          = "in"
-  spec.version       = In::VERSION
+  spec.name          = "tfa"
+  spec.version       = TFA::VERSION
   spec.authors       = ["mo khan"]
   spec.email         = ["mo@mokhan.ca"]
   spec.summary       = %q{A CLI to manage your one time passwords.}