mixpal 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +23 -0
  3. data/.travis.yml +5 -0
  4. data/README.md +7 -11
  5. data/Rakefile +8 -1
  6. data/lib/mixpal.rb +7 -7
  7. data/lib/mixpal/event.rb +4 -4
  8. data/lib/mixpal/integration.rb +7 -7
  9. data/lib/mixpal/tracker.rb +29 -26
  10. data/lib/mixpal/user.rb +9 -7
  11. data/lib/mixpal/util.rb +3 -3
  12. data/lib/mixpal/version.rb +1 -1
  13. data/mixpanel_assistant.gemspec +1 -0
  14. data/spec/lib/mixpal/event_spec.rb +19 -17
  15. data/spec/lib/mixpal/tracker_spec.rb +127 -149
  16. data/spec/lib/mixpal/user_spec.rb +36 -30
  17. data/spec/lib/mixpal/util_spec.rb +15 -14
  18. data/spec/lib/mixpal_spec.rb +2 -2
  19. data/spec/spec_helper.rb +4 -6
  20. data/spec/support/matchers/element_matchers.rb +2 -2
  21. data/test_app/.gitignore +16 -0
  22. data/test_app/Gemfile +11 -0
  23. data/test_app/README.rdoc +28 -0
  24. data/test_app/Rakefile +6 -0
  25. data/test_app/app/assets/images/.keep +0 -0
  26. data/test_app/app/assets/javascripts/application.js +16 -0
  27. data/test_app/app/assets/stylesheets/application.css +15 -0
  28. data/test_app/app/controllers/application_controller.rb +12 -0
  29. data/test_app/app/controllers/concerns/.keep +0 -0
  30. data/test_app/app/controllers/redirects_controller.rb +10 -0
  31. data/test_app/app/helpers/application_helper.rb +2 -0
  32. data/test_app/app/mailers/.keep +0 -0
  33. data/test_app/app/models/.keep +0 -0
  34. data/test_app/app/models/concerns/.keep +0 -0
  35. data/test_app/app/views/layouts/application.html.erb +16 -0
  36. data/test_app/app/views/redirects/new.html.erb +1 -0
  37. data/test_app/bin/bundle +3 -0
  38. data/test_app/bin/rails +8 -0
  39. data/test_app/bin/rake +8 -0
  40. data/test_app/bin/spring +18 -0
  41. data/test_app/config.ru +4 -0
  42. data/test_app/config/application.rb +30 -0
  43. data/test_app/config/boot.rb +4 -0
  44. data/test_app/config/environment.rb +5 -0
  45. data/test_app/config/environments/development.rb +37 -0
  46. data/test_app/config/environments/production.rb +82 -0
  47. data/test_app/config/environments/test.rb +39 -0
  48. data/test_app/config/initializers/assets.rb +8 -0
  49. data/test_app/config/initializers/backtrace_silencers.rb +7 -0
  50. data/test_app/config/initializers/cookies_serializer.rb +3 -0
  51. data/test_app/config/initializers/filter_parameter_logging.rb +4 -0
  52. data/test_app/config/initializers/inflections.rb +16 -0
  53. data/test_app/config/initializers/mime_types.rb +4 -0
  54. data/test_app/config/initializers/session_store.rb +3 -0
  55. data/test_app/config/initializers/wrap_parameters.rb +14 -0
  56. data/test_app/config/locales/en.yml +23 -0
  57. data/test_app/config/routes.rb +4 -0
  58. data/test_app/config/secrets.yml +22 -0
  59. data/test_app/db/seeds.rb +7 -0
  60. data/test_app/lib/assets/.keep +0 -0
  61. data/test_app/lib/tasks/.keep +0 -0
  62. data/test_app/log/.keep +0 -0
  63. data/test_app/public/404.html +67 -0
  64. data/test_app/public/422.html +67 -0
  65. data/test_app/public/500.html +66 -0
  66. data/test_app/public/favicon.ico +0 -0
  67. data/test_app/public/robots.txt +5 -0
  68. data/test_app/vendor/assets/javascripts/.keep +0 -0
  69. data/test_app/vendor/assets/stylesheets/.keep +0 -0
  70. metadata +67 -6
  71. data/spec/support/mock_rails.rb +0 -6
  72. data/spec/support/mock_storage.rb +0 -19
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - patbenatar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-27 00:00:00.000000000 Z
11
+ date: 2014-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.24.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.24.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -159,6 +173,8 @@ extra_rdoc_files: []
159
173
  files:
160
174
  - .gitignore
161
175
  - .rspec
176
+ - .rubocop.yml
177
+ - .travis.yml
162
178
  - Gemfile
163
179
  - Guardfile
164
180
  - LICENSE.txt
@@ -179,8 +195,55 @@ files:
179
195
  - spec/lib/mixpal_spec.rb
180
196
  - spec/spec_helper.rb
181
197
  - spec/support/matchers/element_matchers.rb
182
- - spec/support/mock_rails.rb
183
- - spec/support/mock_storage.rb
198
+ - test_app/.gitignore
199
+ - test_app/Gemfile
200
+ - test_app/README.rdoc
201
+ - test_app/Rakefile
202
+ - test_app/app/assets/images/.keep
203
+ - test_app/app/assets/javascripts/application.js
204
+ - test_app/app/assets/stylesheets/application.css
205
+ - test_app/app/controllers/application_controller.rb
206
+ - test_app/app/controllers/concerns/.keep
207
+ - test_app/app/controllers/redirects_controller.rb
208
+ - test_app/app/helpers/application_helper.rb
209
+ - test_app/app/mailers/.keep
210
+ - test_app/app/models/.keep
211
+ - test_app/app/models/concerns/.keep
212
+ - test_app/app/views/layouts/application.html.erb
213
+ - test_app/app/views/redirects/new.html.erb
214
+ - test_app/bin/bundle
215
+ - test_app/bin/rails
216
+ - test_app/bin/rake
217
+ - test_app/bin/spring
218
+ - test_app/config.ru
219
+ - test_app/config/application.rb
220
+ - test_app/config/boot.rb
221
+ - test_app/config/environment.rb
222
+ - test_app/config/environments/development.rb
223
+ - test_app/config/environments/production.rb
224
+ - test_app/config/environments/test.rb
225
+ - test_app/config/initializers/assets.rb
226
+ - test_app/config/initializers/backtrace_silencers.rb
227
+ - test_app/config/initializers/cookies_serializer.rb
228
+ - test_app/config/initializers/filter_parameter_logging.rb
229
+ - test_app/config/initializers/inflections.rb
230
+ - test_app/config/initializers/mime_types.rb
231
+ - test_app/config/initializers/session_store.rb
232
+ - test_app/config/initializers/wrap_parameters.rb
233
+ - test_app/config/locales/en.yml
234
+ - test_app/config/routes.rb
235
+ - test_app/config/secrets.yml
236
+ - test_app/db/seeds.rb
237
+ - test_app/lib/assets/.keep
238
+ - test_app/lib/tasks/.keep
239
+ - test_app/log/.keep
240
+ - test_app/public/404.html
241
+ - test_app/public/422.html
242
+ - test_app/public/500.html
243
+ - test_app/public/favicon.ico
244
+ - test_app/public/robots.txt
245
+ - test_app/vendor/assets/javascripts/.keep
246
+ - test_app/vendor/assets/stylesheets/.keep
184
247
  homepage: https://github.com/patbenatar/mixpal
185
248
  licenses:
186
249
  - MIT
@@ -216,5 +279,3 @@ test_files:
216
279
  - spec/lib/mixpal_spec.rb
217
280
  - spec/spec_helper.rb
218
281
  - spec/support/matchers/element_matchers.rb
219
- - spec/support/mock_rails.rb
220
- - spec/support/mock_storage.rb
@@ -1,6 +0,0 @@
1
- require File.expand_path("spec/support/mock_storage")
2
-
3
- class MockRails
4
- class_attribute :cache
5
- self.cache = MockStorage.new
6
- end
@@ -1,19 +0,0 @@
1
- class MockStorage
2
- attr_reader :data
3
-
4
- def initialize
5
- @data = {}
6
- end
7
-
8
- def write(key, value)
9
- data[key] = value
10
- end
11
-
12
- def read(key)
13
- data[key]
14
- end
15
-
16
- def delete(key)
17
- !!data.delete(key)
18
- end
19
- end