mixpanel_tracker 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -19
  3. data/lib/mixpanel_tracker/railtie.rb +0 -1
  4. data/lib/mixpanel_tracker/tracker.rb +2 -0
  5. data/lib/mixpanel_tracker/version.rb +1 -1
  6. data/{test → spec}/dummy/README.rdoc +0 -0
  7. data/{test → spec}/dummy/Rakefile +0 -0
  8. data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  9. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  10. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  11. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  12. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  13. data/{test → spec}/dummy/bin/bundle +0 -0
  14. data/{test → spec}/dummy/bin/rails +0 -0
  15. data/{test → spec}/dummy/bin/rake +0 -0
  16. data/{test → spec}/dummy/config/application.rb +0 -0
  17. data/{test → spec}/dummy/config/boot.rb +0 -0
  18. data/{test → spec}/dummy/config/database.yml +0 -0
  19. data/{test → spec}/dummy/config/environment.rb +0 -0
  20. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  21. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  22. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  23. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  24. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  25. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  26. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  27. data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
  28. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  29. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  30. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  31. data/{test → spec}/dummy/config/routes.rb +0 -0
  32. data/{test → spec}/dummy/config.ru +0 -0
  33. data/spec/dummy/db/development.sqlite3 +0 -0
  34. data/spec/dummy/db/schema.rb +16 -0
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/log/development.log +3 -0
  37. data/spec/dummy/log/test.log +745 -0
  38. data/{test → spec}/dummy/public/404.html +0 -0
  39. data/{test → spec}/dummy/public/422.html +0 -0
  40. data/{test → spec}/dummy/public/500.html +0 -0
  41. data/{test → spec}/dummy/public/favicon.ico +0 -0
  42. data/spec/generators/mixpanel_tracker/mixpanel_tracker_generator_spec.rb +19 -0
  43. data/spec/mixpanel_tracker/tracker_spec.rb +27 -0
  44. data/spec/mixpanel_tracker_spec.rb +19 -0
  45. data/spec/spec_helper.rb +27 -0
  46. metadata +139 -74
  47. data/README.rdoc +0 -3
  48. data/test/dummy/db/test.sqlite3 +0 -0
  49. data/test/dummy/log/test.log +0 -195
  50. data/test/mixpanel_tracker_test.rb +0 -12
  51. data/test/test_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c9f7af6c8a788b57ae125a8bfe4c4af295efa47
4
- data.tar.gz: 6a87e83f1cfc4578db838e1049f8cfa863b60995
3
+ metadata.gz: a03beecf04970fd068485fc9b945a57a4beab441
4
+ data.tar.gz: e4ec4290534d4ee57156b02ad177b8c7e374517d
5
5
  SHA512:
6
- metadata.gz: 92179803019dff08fe05a520c1e29b2d632e01b41f913144da34e931a5942a769339d33b35f3c6c3a9b49e28532c3926c87e4c3e2e044db6308a97cdebbb19b7
7
- data.tar.gz: 8ef95f3413d55302039a105c983d9342704b8210bd08a894d6acdde44a21169c03ed573bbe7c7b476c1138f7a98da6d7027b9cd51934653d73ebde83eec5e51a
6
+ metadata.gz: e38ac2f08741f75bdafd5ce91f6354f715dc2686f4eb173cc75bbd675dcdf49e74a22697ec3cce679d7ab6b3b83a32f65332c9d88b1ebdf8e351663454e83538
7
+ data.tar.gz: bbb0ed5ccd5294ed0809f5d36107ee688b3540e4f99e8acc63ade4986f2259c294e4e555d9fff75ddaf107559ca379a36f415ac1c02b436eefb6fc58a754279c
data/Rakefile CHANGED
@@ -4,29 +4,18 @@ rescue LoadError
4
4
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
5
  end
6
6
 
7
- require 'rdoc/task'
8
-
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'MixpanelTracker'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
16
-
17
-
7
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
8
 
9
+ load 'rails/tasks/engine.rake'
19
10
 
20
11
  Bundler::GemHelper.install_tasks
21
12
 
22
- require 'rake/testtask'
13
+ Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }
23
14
 
24
- Rake::TestTask.new(:test) do |t|
25
- t.libs << 'lib'
26
- t.libs << 'test'
27
- t.pattern = 'test/**/*_test.rb'
28
- t.verbose = false
29
- end
15
+ require 'rspec/core'
16
+ require 'rspec/core/rake_task'
30
17
 
18
+ desc "Run all specs in spec directory (excluding plugin specs)"
19
+ RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
31
20
 
32
- task default: :test
21
+ task :default => :spec
@@ -5,7 +5,6 @@ module MixpanelTracker
5
5
  class Railtie < Rails::Railtie
6
6
  initializer 'mixpanel_tracker.view_helpers' do
7
7
  ActionView::Base.send :include, ViewHelpers
8
- ActionController::Base.send :include, ControllerHelpers
9
8
  end
10
9
 
11
10
  initializer 'mixpanel_tracker.controller_helpers' do
@@ -3,6 +3,8 @@ require 'mixpanel_tracker/event'
3
3
  module MixpanelTracker
4
4
  class Tracker
5
5
  def initialize(session)
6
+ raise(ArgumentError, "No session provided") unless session
7
+
6
8
  @session = session
7
9
  end
8
10
 
@@ -1,3 +1,3 @@
1
1
  module MixpanelTracker
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
Binary file
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 0) do
15
+
16
+ end
Binary file
@@ -0,0 +1,3 @@
1
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"