Permalink
Browse files

Adding the params descriptions and the cassandra_config for test

  • Loading branch information...
1 parent b1e1a38 commit 59325533de5c3765cf8d1e78f161c38ef0ad3ea1 Rajesh committed Aug 15, 2012
View
10 config/cassandra_config.json
@@ -0,0 +1,10 @@
+{
+ "url_shortener":{
+ "urls":{
+ "comparator_type":"org.apache.cassandra.db.marshal.UTF8Type",
+ "column_type":"Standard"},
+ "codes":{
+ "comparator_type":"org.apache.cassandra.db.marshal.UTF8Type",
+ "column_type":"Standard"}
+ }
+}
View
2 lib/guillotine/adapters/cassandra_adapter.rb
@@ -12,6 +12,8 @@ def initialize(cassandra, read_only = false)
#
# url - The String URL to shorten and store.
# code - Optional String code for the URL.
+ # length - The maximum length of the short code desired
+ # charset - An array of characters which will be present in short code. eg. ['a', 'b', 'c', 'd', 'e', 'f']
#
# Returns the unique String code for the URL. If the URL is added
# multiple times, this should return the same code.
View
2 lib/guillotine/adapters/memory_adapter.rb
@@ -10,6 +10,8 @@ def initialize
#
# url - The String URL to shorten and store.
# code - Optional String code for the URL.
+ # length - The maximum length of the short code desired
+ # charset - An array of characters which will be present in short code. eg. ['a', 'b', 'c', 'd', 'e', 'f']
#
# Returns the unique String code for the URL. If the URL is added
# multiple times, this should return the same code.
View
2 lib/guillotine/adapters/mongo_adapter.rb
@@ -17,6 +17,8 @@ def initialize(collection)
#
# url - The String URL to shorten and store.
# code - Optional String code for the URL.
+ # length - The maximum length of the short code desired
+ # charset - An array of characters which will be present in short code. eg. ['a', 'b', 'c', 'd', 'e', 'f']
#
# Returns the unique String code for the URL. If the URL is added
# multiple times, this should return the same code.
View
2 lib/guillotine/adapters/redis_adapter.rb
@@ -11,6 +11,8 @@ def initialize(redis)
#
# url - The String URL to shorten and store.
# code - Optional String code for the URL.
+ # length - The maximum length of the short code desired
+ # charset - An array of characters which will be present in short code. eg. ['a', 'b', 'c', 'd', 'e', 'f']
#
# Returns the unique String code for the URL. If the URL is added
# multiple times, this should return the same code.
View
2 lib/guillotine/adapters/riak_adapter.rb
@@ -20,6 +20,8 @@ def initialize(code_bucket, url_bucket = nil)
#
# url - The String URL to shorten and store.
# code - Optional String code for the URL.
+ # length - The maximum length of the short code desired
+ # charset - An array of characters which will be present in short code. eg. ['a', 'b', 'c', 'd', 'e', 'f']
#
# Returns the unique String code for the URL. If the URL is added
# multiple times, this should return the same code.
View
2 lib/guillotine/adapters/sequel_adapter.rb
@@ -9,6 +9,8 @@ def initialize(db)
#
# url - The String URL to shorten and store.
# code - Optional String code for the URL.
+ # length - The maximum length of the short code desired
+ # charset - An array of characters which will be present in short code. eg. ['a', 'b', 'c', 'd', 'e', 'f']
#
# Returns the unique String code for the URL. If the URL is added
# multiple times, this should return the same code.

0 comments on commit 5932553

Please sign in to comment.