Permalink
Browse files

license, readme, gemspec added

  • Loading branch information...
1 parent c21725a commit 6e6533b0f75a7685da10d770222d47a370a92ff5 @zevarito committed Jul 1, 2010
Showing with 77 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +22 −0 LICENSE
  3. +27 −0 README
  4. +27 −0 mixpanel.gemspec
View
@@ -1 +1,2 @@
.bundle
+Mixpanel*.gem
View
22 LICENSE
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2010 Alvaro Gil, cuboxsa.com
+
+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.
View
27 README
@@ -0,0 +1,27 @@
+h3. What is Mixpanel (the service) ?
+
+*Mixpanel* is a real-time analytics service that helps companies understand how users interact with web applications.
+
+
+h3. What does this Gem?
+
+* Track events with properties directly from your backend
+
+
+h3. How to install?
+
+@gem install mixpanel@
+
+
+h3. How to use?
+
+bc.
+
+require 'mixpanel'
+
+mixpanel = Mixpanel.new("your_mixpanel_project_token")
+
+mixpanel.track("Sign up", {
+ :referer => "http://example.com",
+ :ip => "4.4.4.4"
+})
View
@@ -0,0 +1,27 @@
+spec = Gem::Specification.new do |s|
+ s.name = "Mixpanel"
+ s.version = "0.0.1"
+ s.rubyforge_project = "mixpanel"
+ s.description = "Simple lib to track events in Mixpanel service."
+ s.author = "Alvaro Gil"
+ s.email = "zevarito@gmail.com"
+ s.homepage = "http://cuboxsa.com"
+ s.platform = Gem::Platform::RUBY
+ s.summary = "Supports direct request api and javascript requests."
+ s.files = %w[
+ .gitignore
+ README
+ LICENSE
+ Rakefile
+ mixpanel.gemspec
+ lib/mixpanel.rb
+ spec/spec_helper.rb
+ spec/mixpanel/mixpanel_spec.rb
+ ]
+ s.require_path = "lib"
+ s.has_rdoc = false
+ s.extra_rdoc_files = ["README"]
+ s.add_dependency 'json'
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'fakeweb'
+end

0 comments on commit 6e6533b

Please sign in to comment.