Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 86c4cd9d26752068a742274599dbc2c03c6450d6 @michaeldv michaeldv committed Feb 3, 2009
Showing with 56 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +20 −0 MIT-LICENSE
  3. +8 −0 README
  4. +13 −0 Rakefile
  5. +1 −0 init.rb
  6. +1 −0 lib/crm_sample_plugin.rb
  7. +8 −0 test/crm_sample_plugin_test.rb
  8. +3 −0 test/test_helper.rb
2 .gitignore
@@ -0,0 +1,2 @@
+.DS_Store
+*~
20 MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009 [name of plugin creator]
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 README
@@ -0,0 +1,8 @@
+Sample web-to-lead capture plugin for Fat Free CRM
+Copyright (c) 2009 by Michael Dvorkin, released under the MIT license
+
+This sample plugin shows how to implement Fat Free CRM controller filter
+callback hook to capture lead information submitted from remote form.
+
+Fat Free CRM -- http://github.com/michaeldv/fat_free_crm/tree/master
+
13 Rakefile
@@ -0,0 +1,13 @@
+require 'rake'
+require 'rake/testtask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the crm_web_to_lead plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
1 init.rb
@@ -0,0 +1 @@
+# Include hook code here
1 lib/crm_sample_plugin.rb
@@ -0,0 +1 @@
+# CrmSamplePlugin
8 test/crm_sample_plugin_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class CrmSamplePluginTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
3 test/test_helper.rb
@@ -0,0 +1,3 @@
+require 'rubygems'
+require 'active_support'
+require 'active_support/test_case'

0 comments on commit 86c4cd9

Please sign in to comment.