<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,2 @@
 nbproject/*
+api_key</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,17 @@
 require 'xmlrpc/client'
 require 'ostruct'
 NOT_VALID=0
-API_KEY = '4696e59c81de8188aa8b'
 class SnipplrEntry
   
-  def initialize
+  def initialize(key)
     @server = XMLRPC::Client.new( &quot;snipplr.com&quot;, &quot;/xml-rpc.php&quot;)
-    puts &quot;#{API_KEY} not valid API Key&quot; if @server.call(&quot;user.checkkey&quot;, API_KEY)==NOT_VALID
+    @key=key
+    puts &quot;#{key} not valid API Key&quot; if @server.call(&quot;user.checkkey&quot;, @key)==NOT_VALID
   end
   
   def find_all_entries
     begin
-      hashes = @server.call(&quot;snippet.list&quot;, API_KEY)
+      hashes = @server.call(&quot;snippet.list&quot;, @key)
       entries=[]
       hashes.each do |row| 
         entries &lt;&lt; OpenStruct.new(row) </diff>
      <filename>lib/model/snipplr_entry.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,11 +6,13 @@ require 'model/snipplr_entry'
 
 describe SnipplrEntry do
   before(:each) do
-    @entry = SnipplrEntry.new
+    key=''
+    File.open(File.expand_path(File.dirname(__FILE__)+'/api_key')){|file| key=file.gets}
+    @entry = SnipplrEntry.new(key)
   end
 
   it &quot;should be able to get all entries&quot; do
-    @entry.find_all_entries.size.should eql(26)
+    @entry.find_all_entries.size.should eql(26)# 26 is the total entries that i have
   end
 end
 </diff>
      <filename>test/model/snipplr_entry_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>15e89853276e8c980612c675e3341076005e76ae</id>
    </parent>
  </parents>
  <author>
    <name>Ronen Narkis</name>
    <email>narkisr@gmail.com</email>
  </author>
  <url>http://github.com/narkisr/snipplr-ruby-gem/commit/3432280419bceda4b7d4c99132907692731ebd6d</url>
  <id>3432280419bceda4b7d4c99132907692731ebd6d</id>
  <committed-date>2008-06-16T14:40:52-07:00</committed-date>
  <authored-date>2008-06-16T14:40:52-07:00</authored-date>
  <message>took the api key into a seperate (uncommited) file</message>
  <tree>9ba98caee34ead24e0cae50210b23b49d4f8c7a8</tree>
  <committer>
    <name>Ronen Narkis</name>
    <email>narkisr@gmail.com</email>
  </committer>
</commit>
