lanalytics-rails 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +43 -0
  4. data/app/assets/javascripts/lanalytics.js +17 -0
  5. data/app/assets/javascripts/lanalytics/lanalytics.framework.js.coffee +128 -0
  6. data/app/assets/javascripts/lanalytics/model/lanalytics.model.exp_api_statement.js.coffee +41 -0
  7. data/app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_component.js.coffee +8 -0
  8. data/app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_resource.js.coffee +16 -0
  9. data/app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_user.js.coffee +14 -0
  10. data/app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_verb.js.coffee +12 -0
  11. data/app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.example.html5videoplayer.js.coffee +25 -0
  12. data/app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.newplugintemplate.js.coffee +23 -0
  13. data/app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.pageviewplugin.js.coffee +42 -0
  14. data/app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.statichtmlevent.js.coffee +31 -0
  15. data/app/controllers/lanalytics/tracking_controller.rb +28 -0
  16. data/config/routes.rb +17 -0
  17. data/lib/lanalytics-rails.rb +10 -0
  18. data/lib/lanalytics/engine.rb +11 -0
  19. data/lib/lanalytics/lanalytics_controller_filter.rb +24 -0
  20. data/lib/lanalytics/version.rb +3 -0
  21. data/lib/tasks/lanalytics_tasks.rake +4 -0
  22. data/spec/controllers/tracking_controller_spec.rb +45 -0
  23. data/spec/dummy/README.rdoc +28 -0
  24. data/spec/dummy/Rakefile +6 -0
  25. data/spec/dummy/app/assets/javascripts/application.js +14 -0
  26. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  27. data/spec/dummy/app/controllers/application_controller.rb +9 -0
  28. data/spec/dummy/app/controllers/welcome_controller.rb +10 -0
  29. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  30. data/spec/dummy/app/helpers/welcome_helper.rb +2 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  32. data/spec/dummy/app/views/welcome/index.html.erb +5 -0
  33. data/spec/dummy/bin/bundle +3 -0
  34. data/spec/dummy/bin/rails +4 -0
  35. data/spec/dummy/bin/rake +4 -0
  36. data/spec/dummy/config.ru +4 -0
  37. data/spec/dummy/config/application.rb +24 -0
  38. data/spec/dummy/config/boot.rb +5 -0
  39. data/spec/dummy/config/database.yml +25 -0
  40. data/spec/dummy/config/environment.rb +5 -0
  41. data/spec/dummy/config/environments/development.rb +37 -0
  42. data/spec/dummy/config/environments/production.rb +82 -0
  43. data/spec/dummy/config/environments/test.rb +39 -0
  44. data/spec/dummy/config/initializers/assets.rb +8 -0
  45. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/spec/dummy/config/initializers/inflections.rb +16 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  50. data/spec/dummy/config/initializers/session_store.rb +3 -0
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/spec/dummy/config/locales/en.yml +23 -0
  53. data/spec/dummy/config/routes.rb +59 -0
  54. data/spec/dummy/config/secrets.yml +22 -0
  55. data/spec/dummy/public/404.html +67 -0
  56. data/spec/dummy/public/422.html +67 -0
  57. data/spec/dummy/public/500.html +66 -0
  58. data/spec/dummy/public/favicon.ico +0 -0
  59. data/spec/dummy/spec/controllers/welcome_controller_spec.rb +12 -0
  60. data/spec/dummy/spec/helpers/welcome_helper_spec.rb +15 -0
  61. data/spec/dummy/spec/javascripts/support/jasmine.yml +50 -0
  62. data/spec/dummy/spec/views/welcome/index.html.erb_spec.rb +5 -0
  63. data/spec/factories/exp_api_statement_factory.rb +7 -0
  64. data/spec/javascripts/foo.js.coffee +8 -0
  65. data/spec/javascripts/lanlaytics/model/exp_api_statement_spec.js.coffee +157 -0
  66. data/spec/javascripts/support/jasmine.yml +50 -0
  67. data/spec/rails_helper.rb +50 -0
  68. data/spec/spec_helper.rb +98 -0
  69. metadata +298 -0
@@ -0,0 +1,50 @@
1
+ # path to parent directory of src_files
2
+ # relative path from Rails.root
3
+ # defaults to app/assets/javascripts
4
+ src_dir: "app/assets/javascripts"
5
+
6
+ # path to additional directory of source file that are not part of assets pipeline and need to be included
7
+ # relative path from Rails.root
8
+ # defaults to []
9
+ # include_dir:
10
+ # - ../mobile_app/public/js
11
+
12
+ # path to parent directory of css_files
13
+ # relative path from Rails.root
14
+ # defaults to app/assets/stylesheets
15
+ css_dir: "app/assets/stylesheets"
16
+
17
+ # list of file expressions to include as source files
18
+ # relative path from src_dir
19
+ src_files:
20
+ - "application.{js.coffee,js,coffee}"
21
+
22
+ # list of file expressions to include as css files
23
+ # relative path from css_dir
24
+ css_files:
25
+
26
+ # path to parent directory of spec_files
27
+ # relative path from Rails.root
28
+ #
29
+ # Alternatively accept an array of directory to include external spec files
30
+ # spec_dir:
31
+ # - spec/javascripts
32
+ # - ../engine/spec/javascripts
33
+ #
34
+ # defaults to spec/javascripts
35
+ spec_dir: spec/javascripts
36
+
37
+ # list of file expressions to include as helpers into spec runner
38
+ # relative path from spec_dir
39
+ helpers:
40
+ - "helpers/**/*.{js.coffee,js,coffee}"
41
+
42
+ # list of file expressions to include as specs into spec runner
43
+ # relative path from spec_dir
44
+ spec_files:
45
+ - "**/*[Ss]pec.{js.coffee,js,coffee}"
46
+
47
+ # path to directory of temporary files
48
+ # (spec runner and asset cache)
49
+ # defaults to tmp/jasmine
50
+ tmp_dir: "tmp/jasmine"
@@ -0,0 +1,5 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe "welcome/index.html.erb", :type => :view do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ first_name "John"
4
+ last_name "Doe"
5
+ admin false
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ // include spec/javascripts/helpers/some_helper_file.js and app/assets/javascripts/foo.js
2
+ //= require helpers/some_helper_file
3
+ //= require foo
4
+ describe('Foo', function() {
5
+ it("does something", function() {
6
+ expect(1 + 1).toBe(2);
7
+ });
8
+ });
@@ -0,0 +1,157 @@
1
+
2
+
3
+ describe "Lanalytics::Model::ExpApiStatement", ->
4
+
5
+ describe "(Initialization)", ->
6
+
7
+ stmt_user = null
8
+ stmt_verb = null
9
+ stmt_resource = null
10
+ stmt_timestamp = null
11
+ stmt_result = null
12
+ stmt_context = null
13
+
14
+ beforeEach ->
15
+ stmt_user = FactoryGirl.build(:stmt_user)
16
+ stmt_verb = FactoryGirl.build(:stmt_verb)
17
+ stmt_resource = FactoryGirl.build(:stmt_resource)
18
+ stmt_timestamp = DateTime.parse('8 May 1989 05:00:00')
19
+ stmt_result = { result: 1000 }
20
+ stmt_context = { location: 'Potsdam' }
21
+
22
+ it "initializes correctly", ->
23
+ stmt = new Lanalytics.Model.ExpApiStatement(@stmt_user, @stmt_verb, @stmt_resource, @stmt_timestamp, @stmt_result, @stmt_context)
24
+ expect(stmt.user).to be(@stmt_user)
25
+ expect(stmt.verb).to be(@stmt_verb)
26
+ expect(stmt.resource).to be(@stmt_resource)
27
+ expect(stmt.timestamp).to be(@stmt_timestamp)
28
+ expect(stmt.with_result).to be(@stmt_result)
29
+ expect(stmt.in_context).to be(@stmt_context)
30
+
31
+ # it "should initilize even when context and result missing" do
32
+ # stmt = Lanalytics::Model::ExpApiStatement.new(@stmt_user, @stmt_verb, @stmt_resource, @stmt_timestamp)
33
+ # expect(stmt.user).to be(@stmt_user)
34
+ # expect(stmt.verb).to be(@stmt_verb)
35
+ # expect(stmt.resource).to be(@stmt_resource)
36
+ # expect(stmt.timestamp).to be(@stmt_timestamp)
37
+ # expect(stmt.with_result).to be_empty
38
+ # expect(stmt.in_context).to be_empty
39
+ # end
40
+
41
+ # it "should not initilaize when a critical component (user, verb, resource) is missing" do
42
+ # expect { resource = Lanalytics::Model::ExpApiStatement.new }.to raise_error
43
+
44
+ # for i in (0...7)
45
+ # stmt_user = (i&1) > 0 ? @stmt_user : nil
46
+ # stmt_verb = (i&2) > 0 ? @stmt_verb : nil
47
+ # stmt_resource = (i&4) > 0 ? @stmt_resource : nil
48
+ # failure_message = "stmt_user:#{stmt_user ? 'not nil' : 'nil'}, stmt_verb: #{stmt_verb ? 'not nil' : 'nil'}, stmt_resource: #{stmt_resource ? 'not nil' : 'nil'}"
49
+ # expect do
50
+ # stmt = Lanalytics::Model::ExpApiStatement.new(stmt_user, stmt_verb, stmt_resource)
51
+ # end.to raise_error(ArgumentError), failure_message
52
+ # end
53
+
54
+ # expect { resource = Lanalytics::Model::ExpApiStatement.new(nil, nil, nil, nil, @stmt_result, @stmt_context) }.to raise_error
55
+ # end
56
+
57
+ # it "should initialize timestamp as current datetime when timestamp nil or not defined" do
58
+ # stmt = Lanalytics::Model::ExpApiStatement.new(@stmt_user, @stmt_verb, @stmt_resource)
59
+ # expect(stmt.timestamp).to be_within(1000).of(DateTime.now)
60
+
61
+ # stmt = Lanalytics::Model::ExpApiStatement.new(@stmt_user, @stmt_verb, @stmt_resource, nil)
62
+ # expect(stmt.timestamp).to be_within(1000).of(DateTime.now)
63
+ # end
64
+
65
+ # it "should understand a proper date time string" do
66
+ # stmt = Lanalytics::Model::ExpApiStatement.new(@stmt_user, @stmt_verb, @stmt_resource, '8 May 1989 05:00:00')
67
+ # expect(stmt.timestamp).to eq(DateTime.parse('8 May 1989 05:00:00'))
68
+
69
+ # expect do
70
+ # stmt = Lanalytics::Model::ExpApiStatement.new(@stmt_user, @stmt_verb, @stmt_resource, 'openhpi')
71
+ # end.to raise_error
72
+ # end
73
+
74
+ # end
75
+
76
+ # describe "(JSON De-/Serialization)" do
77
+ # before(:each) do
78
+ # @stmt = FactoryGirl.build(:stmt)
79
+ # # ::TODO This is ugly and needs to go to the factory
80
+ # @stmt_hash = FactoryGirl.attributes_for(:stmt) do | stmt_hash |
81
+ # stmt_hash[:user] = FactoryGirl.attributes_for(:stmt_user)
82
+ # stmt_hash[:verb] = FactoryGirl.attributes_for(:stmt_verb)
83
+ # stmt_hash[:resource] = FactoryGirl.attributes_for(:stmt_resource)
84
+ # end
85
+ # end
86
+
87
+ # it "from json hash" do
88
+ # stmt = Lanalytics::Model::ExpApiStatement.new_from_json(@stmt_hash)
89
+ # check_stmt_properties(stmt)
90
+ # end
91
+
92
+ # it "from json string" do
93
+ # stmt_json_str = JSON.dump(@stmt_hash)
94
+ # stmt = Lanalytics::Model::ExpApiStatement.new_from_json(stmt_json_str)
95
+ # check_stmt_properties(stmt)
96
+ # end
97
+
98
+ # it "from nil should raise error" do
99
+ # expect { stmt = Lanalytics::Model::ExpApiStatement.new_from_json(nil) }.to raise_error
100
+ # end
101
+
102
+ # it "to json string" do
103
+ # stmt = FactoryGirl.build(:stmt)
104
+ # stmt_json_str = JSON.dump(stmt)
105
+ # expect(stmt_json_str).to be_a(String)
106
+ # stmt_json_hash = JSON.parse(stmt_json_str)
107
+ # expect(stmt_json_hash).to include({ 'json_class' => stmt.class.name })
108
+ # expect(stmt_json_hash['data'].keys).to include('user', 'verb', 'resource', 'timestamp', 'with_result', 'in_context')
109
+ # #expect(stmt_json_hash).to include({
110
+ # # 'data' => {
111
+ # # 'user' => JSON.dump(stmt.user),
112
+ # # 'verb' => JSON.dump(stmt.verb),
113
+ # # 'resource' => JSON.dump(stmt.resource),
114
+ # # 'timestamp' => JSON.dump(stmt.timestamp),
115
+ # # 'with_result' => JSON.dump(stmt.with_result),
116
+ # # 'in_context' => JSON.dump(stmt.in_context)
117
+ # # }
118
+ # #})
119
+ # end
120
+ # end
121
+
122
+ # describe "(Marshalling)" do
123
+
124
+ # it "should marshal the objects" do
125
+ # stmt = FactoryGirl.build(:stmt)
126
+ # marshalled_stmt = Marshal.dump(stmt)
127
+ # expect(marshalled_stmt).to be_a(String)
128
+ # expect(marshalled_stmt).to include(stmt.class.name)
129
+ # expect(marshalled_stmt).to include('Lanalytics::Model::StmtUser')
130
+ # expect(marshalled_stmt).to include('Lanalytics::Model::StmtVerb')
131
+ # expect(marshalled_stmt).to include('Lanalytics::Model::StmtResource')
132
+
133
+ # end
134
+
135
+ # it "should be able to do the whole cycle" do
136
+ # stmt = FactoryGirl.build(:stmt)
137
+ # marshalled_stmt = Marshal.dump(stmt)
138
+ # new_stmt = Marshal.load(marshalled_stmt)
139
+ # expect(new_stmt).to be_a(Lanalytics::Model::ExpApiStatement)
140
+ # expect(new_stmt).not_to be(stmt)
141
+ # expect(new_stmt).to eq(stmt)
142
+ # end
143
+
144
+ # end
145
+
146
+ # #it "marshales correctly" do
147
+
148
+ # def check_stmt_properties(actual_stmt)
149
+ # expect(actual_stmt).to be_a(Lanalytics::Model::ExpApiStatement)
150
+
151
+ # expect(actual_stmt.user).to eq(@stmt.user)
152
+ # expect(actual_stmt.verb).to eq(@stmt.verb)
153
+ # expect(actual_stmt.resource).to eq(@stmt.resource)
154
+ # expect(actual_stmt.timestamp).to eq(@stmt.timestamp)
155
+ # end
156
+
157
+ # end
@@ -0,0 +1,50 @@
1
+ # path to parent directory of src_files
2
+ # relative path from Rails.root
3
+ # defaults to app/assets/javascripts
4
+ # src_dir: "app/assets/javascripts"
5
+
6
+ # path to additional directory of source file that are not part of assets pipeline and need to be included
7
+ # relative path from Rails.root
8
+ # defaults to []
9
+ # include_dir:
10
+ # - ../mobile_app/public/js
11
+
12
+ # path to parent directory of css_files
13
+ # relative path from Rails.root
14
+ # defaults to app/assets/stylesheets
15
+ # css_dir: "app/assets/stylesheets"
16
+
17
+ # list of file expressions to include as source files
18
+ # relative path from src_dir
19
+ # src_files:
20
+ # - "application.{js.coffee,js,coffee}"
21
+
22
+ # list of file expressions to include as css files
23
+ # relative path from css_dir
24
+ # css_files:
25
+
26
+ # path to parent directory of spec_files
27
+ # relative path from Rails.root
28
+ #
29
+ # Alternatively accept an array of directory to include external spec files
30
+ # spec_dir:
31
+ # - spec/javascripts
32
+ # - ../engine/spec/javascripts
33
+ #
34
+ # defaults to spec/javascripts
35
+ # spec_dir: spec/javascripts
36
+
37
+ # list of file expressions to include as helpers into spec runner
38
+ # relative path from spec_dir
39
+ # helpers:
40
+ # - "helpers/**/*.{js.coffee,js,coffee}"
41
+
42
+ # list of file expressions to include as specs into spec runner
43
+ # relative path from spec_dir
44
+ spec_files:
45
+ - "**/*[Ss]pec.{js.coffee,js,coffee}"
46
+
47
+ # path to directory of temporary files
48
+ # (spec runner and asset cache)
49
+ # defaults to tmp/jasmine
50
+ # tmp_dir: "tmp/jasmine"
@@ -0,0 +1,50 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require 'spec_helper'
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require 'rspec/rails'
6
+ # Add additional requires below this line. Rails is not loaded until this point!
7
+
8
+ # Requires supporting ruby files with custom matchers and macros, etc, in
9
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
10
+ # run as spec files by default. This means that files in spec/support that end
11
+ # in _spec.rb will both be required and run as specs, causing the specs to be
12
+ # run twice. It is recommended that you do not name files matching this glob to
13
+ # end with _spec.rb. You can configure this pattern with the --pattern
14
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
15
+ #
16
+ # The following line is provided for convenience purposes. It has the downside
17
+ # of increasing the boot-up time by auto-requiring all files in the support
18
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
19
+ # require only the support files necessary.
20
+ #
21
+ # Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
22
+
23
+ # Checks for pending migrations before tests are run.
24
+ # If you are not using ActiveRecord, you can remove this line.
25
+ ActiveRecord::Migration.maintain_test_schema!
26
+
27
+ RSpec.configure do |config|
28
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
30
+
31
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
32
+ # examples within a transaction, remove the following line or assign false
33
+ # instead of true.
34
+ config.use_transactional_fixtures = true
35
+
36
+ # RSpec Rails can automatically mix in different behaviours to your tests
37
+ # based on their file location, for example enabling you to call `get` and
38
+ # `post` in specs under `spec/controllers`.
39
+ #
40
+ # You can disable this behaviour by removing the line below, and instead
41
+ # explicitly tag your specs with their type, e.g.:
42
+ #
43
+ # RSpec.describe UsersController, :type => :controller do
44
+ # # ...
45
+ # end
46
+ #
47
+ # The different available types are documented in the features, such as in
48
+ # https://relishapp.com/rspec/rspec-rails/docs
49
+ config.infer_spec_type_from_file_location!
50
+ end
@@ -0,0 +1,98 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+
18
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
19
+ require 'rspec/rails'
20
+ require 'factory_girl_rails'
21
+
22
+ Rails.backtrace_cleaner.remove_silencers!
23
+
24
+ # Load support files
25
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
26
+
27
+
28
+ RSpec.configure do |config|
29
+ # rspec-expectations config goes here. You can use an alternate
30
+ # assertion/expectation library such as wrong or the stdlib/minitest
31
+ # assertions if you prefer.
32
+ config.expect_with :rspec do |expectations|
33
+ # This option will default to `true` in RSpec 4. It makes the `description`
34
+ # and `failure_message` of custom matchers include text for helper methods
35
+ # defined using `chain`, e.g.:
36
+ # be_bigger_than(2).and_smaller_than(4).description
37
+ # # => "be bigger than 2 and smaller than 4"
38
+ # ...rather than:
39
+ # # => "be bigger than 2"
40
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
41
+ end
42
+
43
+ # rspec-mocks config goes here. You can use an alternate test double
44
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
45
+ config.mock_with :rspec do |mocks|
46
+ # Prevents you from mocking or stubbing a method that does not exist on
47
+ # a real object. This is generally recommended, and will default to
48
+ # `true` in RSpec 4.
49
+ mocks.verify_partial_doubles = true
50
+ end
51
+
52
+ # config.raise_errors_for_deprecations!
53
+
54
+ # The settings below are suggested to provide a good initial experience
55
+ # with RSpec, but feel free to customize to your heart's content.
56
+ =begin
57
+ # These two settings work together to allow you to limit a spec run
58
+ # to individual examples or groups you care about by tagging them with
59
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
60
+ # get run.
61
+ config.filter_run :focus
62
+ config.run_all_when_everything_filtered = true
63
+
64
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
65
+ # For more details, see:
66
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
67
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
68
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
69
+ config.disable_monkey_patching!
70
+
71
+ # Many RSpec users commonly either run the entire suite or an individual
72
+ # file, and it's useful to allow more verbose output when running an
73
+ # individual spec file.
74
+ if config.files_to_run.one?
75
+ # Use the documentation formatter for detailed output,
76
+ # unless a formatter has already been configured
77
+ # (e.g. via a command-line flag).
78
+ config.default_formatter = 'doc'
79
+ end
80
+
81
+ # Print the 10 slowest examples and example groups at the
82
+ # end of the spec run, to help surface which specs are running
83
+ # particularly slow.
84
+ config.profile_examples = 10
85
+
86
+ # Run specs in random order to surface order dependencies. If you find an
87
+ # order dependency and want to debug it, you can fix the order by providing
88
+ # the seed, which is printed after each run.
89
+ # --seed 1234
90
+ config.order = :random
91
+
92
+ # Seed global randomization in this process using the `--seed` CLI option.
93
+ # Setting this allows you to use `--seed` to deterministically reproduce
94
+ # test failures related to randomization by passing the same `--seed` value
95
+ # as the one that triggered the failure.
96
+ Kernel.srand config.seed
97
+ =end
98
+ end
metadata ADDED
@@ -0,0 +1,298 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lanalytics-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.9
5
+ platform: ruby
6
+ authors:
7
+ - Open HPI Dev Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: gon
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: msgr
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.10'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: lanalytics-model
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.2.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.2.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: jquery-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coffee-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 4.0.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 4.0.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: factory_girl_rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: jasmine-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: 'Ruby / Rails client gem for the Lanalytics Service as found on: git@dev.xikolo.de:xikolo/lanalytics.git'
154
+ email:
155
+ - xikolo-dev@hpi.uni-potsdam.de
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - MIT-LICENSE
161
+ - Rakefile
162
+ - app/assets/javascripts/lanalytics.js
163
+ - app/assets/javascripts/lanalytics/lanalytics.framework.js.coffee
164
+ - app/assets/javascripts/lanalytics/model/lanalytics.model.exp_api_statement.js.coffee
165
+ - app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_component.js.coffee
166
+ - app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_resource.js.coffee
167
+ - app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_user.js.coffee
168
+ - app/assets/javascripts/lanalytics/model/lanalytics.model.stmt_verb.js.coffee
169
+ - app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.example.html5videoplayer.js.coffee
170
+ - app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.newplugintemplate.js.coffee
171
+ - app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.pageviewplugin.js.coffee
172
+ - app/assets/javascripts/lanalytics/plugins/lanalytics.plugins.statichtmlevent.js.coffee
173
+ - app/controllers/lanalytics/tracking_controller.rb
174
+ - config/routes.rb
175
+ - lib/lanalytics-rails.rb
176
+ - lib/lanalytics/engine.rb
177
+ - lib/lanalytics/lanalytics_controller_filter.rb
178
+ - lib/lanalytics/version.rb
179
+ - lib/tasks/lanalytics_tasks.rake
180
+ - spec/controllers/tracking_controller_spec.rb
181
+ - spec/dummy/README.rdoc
182
+ - spec/dummy/Rakefile
183
+ - spec/dummy/app/assets/javascripts/application.js
184
+ - spec/dummy/app/assets/stylesheets/application.css
185
+ - spec/dummy/app/controllers/application_controller.rb
186
+ - spec/dummy/app/controllers/welcome_controller.rb
187
+ - spec/dummy/app/helpers/application_helper.rb
188
+ - spec/dummy/app/helpers/welcome_helper.rb
189
+ - spec/dummy/app/views/layouts/application.html.erb
190
+ - spec/dummy/app/views/welcome/index.html.erb
191
+ - spec/dummy/bin/bundle
192
+ - spec/dummy/bin/rails
193
+ - spec/dummy/bin/rake
194
+ - spec/dummy/config.ru
195
+ - spec/dummy/config/application.rb
196
+ - spec/dummy/config/boot.rb
197
+ - spec/dummy/config/database.yml
198
+ - spec/dummy/config/environment.rb
199
+ - spec/dummy/config/environments/development.rb
200
+ - spec/dummy/config/environments/production.rb
201
+ - spec/dummy/config/environments/test.rb
202
+ - spec/dummy/config/initializers/assets.rb
203
+ - spec/dummy/config/initializers/backtrace_silencers.rb
204
+ - spec/dummy/config/initializers/cookies_serializer.rb
205
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
206
+ - spec/dummy/config/initializers/inflections.rb
207
+ - spec/dummy/config/initializers/mime_types.rb
208
+ - spec/dummy/config/initializers/session_store.rb
209
+ - spec/dummy/config/initializers/wrap_parameters.rb
210
+ - spec/dummy/config/locales/en.yml
211
+ - spec/dummy/config/routes.rb
212
+ - spec/dummy/config/secrets.yml
213
+ - spec/dummy/public/404.html
214
+ - spec/dummy/public/422.html
215
+ - spec/dummy/public/500.html
216
+ - spec/dummy/public/favicon.ico
217
+ - spec/dummy/spec/controllers/welcome_controller_spec.rb
218
+ - spec/dummy/spec/helpers/welcome_helper_spec.rb
219
+ - spec/dummy/spec/javascripts/support/jasmine.yml
220
+ - spec/dummy/spec/views/welcome/index.html.erb_spec.rb
221
+ - spec/factories/exp_api_statement_factory.rb
222
+ - spec/javascripts/foo.js.coffee
223
+ - spec/javascripts/lanlaytics/model/exp_api_statement_spec.js.coffee
224
+ - spec/javascripts/support/jasmine.yml
225
+ - spec/rails_helper.rb
226
+ - spec/spec_helper.rb
227
+ homepage: http://lanalytics.openhpi.de
228
+ licenses:
229
+ - MIT
230
+ metadata: {}
231
+ post_install_message:
232
+ rdoc_options: []
233
+ require_paths:
234
+ - lib
235
+ required_ruby_version: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ required_rubygems_version: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: '0'
245
+ requirements: []
246
+ rubyforge_project:
247
+ rubygems_version: 2.4.6
248
+ signing_key:
249
+ specification_version: 4
250
+ summary: Ruby / Rails client gem for the Lanalytics Service
251
+ test_files:
252
+ - spec/controllers/tracking_controller_spec.rb
253
+ - spec/dummy/app/assets/javascripts/application.js
254
+ - spec/dummy/app/assets/stylesheets/application.css
255
+ - spec/dummy/app/controllers/application_controller.rb
256
+ - spec/dummy/app/controllers/welcome_controller.rb
257
+ - spec/dummy/app/helpers/application_helper.rb
258
+ - spec/dummy/app/helpers/welcome_helper.rb
259
+ - spec/dummy/app/views/layouts/application.html.erb
260
+ - spec/dummy/app/views/welcome/index.html.erb
261
+ - spec/dummy/bin/bundle
262
+ - spec/dummy/bin/rails
263
+ - spec/dummy/bin/rake
264
+ - spec/dummy/config/application.rb
265
+ - spec/dummy/config/boot.rb
266
+ - spec/dummy/config/database.yml
267
+ - spec/dummy/config/environment.rb
268
+ - spec/dummy/config/environments/development.rb
269
+ - spec/dummy/config/environments/production.rb
270
+ - spec/dummy/config/environments/test.rb
271
+ - spec/dummy/config/initializers/assets.rb
272
+ - spec/dummy/config/initializers/backtrace_silencers.rb
273
+ - spec/dummy/config/initializers/cookies_serializer.rb
274
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
275
+ - spec/dummy/config/initializers/inflections.rb
276
+ - spec/dummy/config/initializers/mime_types.rb
277
+ - spec/dummy/config/initializers/session_store.rb
278
+ - spec/dummy/config/initializers/wrap_parameters.rb
279
+ - spec/dummy/config/locales/en.yml
280
+ - spec/dummy/config/routes.rb
281
+ - spec/dummy/config/secrets.yml
282
+ - spec/dummy/config.ru
283
+ - spec/dummy/public/404.html
284
+ - spec/dummy/public/422.html
285
+ - spec/dummy/public/500.html
286
+ - spec/dummy/public/favicon.ico
287
+ - spec/dummy/Rakefile
288
+ - spec/dummy/README.rdoc
289
+ - spec/dummy/spec/controllers/welcome_controller_spec.rb
290
+ - spec/dummy/spec/helpers/welcome_helper_spec.rb
291
+ - spec/dummy/spec/javascripts/support/jasmine.yml
292
+ - spec/dummy/spec/views/welcome/index.html.erb_spec.rb
293
+ - spec/factories/exp_api_statement_factory.rb
294
+ - spec/javascripts/foo.js.coffee
295
+ - spec/javascripts/lanlaytics/model/exp_api_statement_spec.js.coffee
296
+ - spec/javascripts/support/jasmine.yml
297
+ - spec/rails_helper.rb
298
+ - spec/spec_helper.rb