README.rdoc in gitable-0.2.2 vs README.rdoc in gitable-0.2.3
- old
+ new
@@ -14,14 +14,35 @@
uri.host # => 'github.com'
# Maintain the same url format.
uri.to_s # => 'git@github.com:martinemde/gitable.git'
+ # Uses ssh?
+ uri.ssh? # => true
+
+ # scp format?
+ uri.scp? # => true
+
# If it can't guess the name, you named your repository wrong.
uri.project_name # => 'gitable'
+ # Will this uri require authentication?
+ uri.authenticated? # => true
+
+ # Will I have to interactively type something into git (a password)?
+ uri.interactive_authenticated? # => false
+
+ # Matching public to private git uris?
+ uri.equivalent?('git://github.com/martinemde/gitable.git') # => true
+ uri.equivalent?('https://martinemde@github.com/martinemde/gitable.git') # => true
+
# Inherited from Addressable::URI
uri.kind_of?(Addressable::URI) # => true
+
+ # Teenage Mutant Ninja Urls (mutable uris like Addressable, if you want)
+ uri.path = 'someotheruser/gitable.git'
+ uri.basename = 'umm.git'
+ uri.to_s # => 'git@github.com:someotheruser/umm.git'
== heuristic_parse
You can use Gitable::URI.heuristic_parse to take user input.