spyme 0.0.1

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 (62) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/app/controllers/spyme/locations_controller.rb +26 -0
  5. data/config/routes.rb +7 -0
  6. data/lib/spyme/controller.rb +13 -0
  7. data/lib/spyme/engine.rb +5 -0
  8. data/lib/spyme/model.rb +34 -0
  9. data/lib/spyme/version.rb +3 -0
  10. data/lib/spyme.rb +8 -0
  11. data/lib/tasks/spyme_tasks.rake +4 -0
  12. data/test/dummy/README.rdoc +28 -0
  13. data/test/dummy/Rakefile +6 -0
  14. data/test/dummy/app/assets/javascripts/application.js +14 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/controllers/home_controller.rb +9 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/views/home/my_location.html.erb +3 -0
  20. data/test/dummy/app/views/home/start.html.erb +3 -0
  21. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  22. data/test/dummy/bin/bundle +3 -0
  23. data/test/dummy/bin/rails +4 -0
  24. data/test/dummy/bin/rake +4 -0
  25. data/test/dummy/config/application.rb +23 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +37 -0
  30. data/test/dummy/config/environments/production.rb +82 -0
  31. data/test/dummy/config/environments/test.rb +39 -0
  32. data/test/dummy/config/initializers/assets.rb +8 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/test/dummy/config/initializers/inflections.rb +16 -0
  37. data/test/dummy/config/initializers/mime_types.rb +4 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy/config/locales/en.yml +23 -0
  41. data/test/dummy/config/routes.rb +60 -0
  42. data/test/dummy/config/secrets.yml +22 -0
  43. data/test/dummy/config.ru +4 -0
  44. data/test/dummy/db/development.sqlite3 +0 -0
  45. data/test/dummy/db/test.sqlite3 +0 -0
  46. data/test/dummy/log/development.log +21 -0
  47. data/test/dummy/log/test.log +731 -0
  48. data/test/dummy/public/404.html +67 -0
  49. data/test/dummy/public/422.html +67 -0
  50. data/test/dummy/public/500.html +66 -0
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  58. data/test/integration/spyme_test.rb +25 -0
  59. data/test/models/model_test.rb +43 -0
  60. data/test/test_helper.rb +15 -0
  61. data/vendor/assets/javascripts/spyme.js +26 -0
  62. metadata +182 -0
@@ -0,0 +1,60 @@
1
+ Rails.application.routes.draw do
2
+ root to: 'home#start'
3
+
4
+ get 'my-location', to: 'home#my_location', as: :my_location
5
+
6
+ # The priority is based upon order of creation: first created -> highest priority.
7
+ # See how all your routes lay out with "rake routes".
8
+
9
+ # You can have the root of your site routed with "root"
10
+ # root 'welcome#index'
11
+
12
+ # Example of regular route:
13
+ # get 'products/:id' => 'catalog#view'
14
+
15
+ # Example of named route that can be invoked with purchase_url(id: product.id)
16
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
17
+
18
+ # Example resource route (maps HTTP verbs to controller actions automatically):
19
+ # resources :products
20
+
21
+ # Example resource route with options:
22
+ # resources :products do
23
+ # member do
24
+ # get 'short'
25
+ # post 'toggle'
26
+ # end
27
+ #
28
+ # collection do
29
+ # get 'sold'
30
+ # end
31
+ # end
32
+
33
+ # Example resource route with sub-resources:
34
+ # resources :products do
35
+ # resources :comments, :sales
36
+ # resource :seller
37
+ # end
38
+
39
+ # Example resource route with more complex sub-resources:
40
+ # resources :products do
41
+ # resources :comments
42
+ # resources :sales do
43
+ # get 'recent', on: :collection
44
+ # end
45
+ # end
46
+
47
+ # Example resource route with concerns:
48
+ # concern :toggleable do
49
+ # post 'toggle'
50
+ # end
51
+ # resources :posts, concerns: :toggleable
52
+ # resources :photos, concerns: :toggleable
53
+
54
+ # Example resource route within a namespace:
55
+ # namespace :admin do
56
+ # # Directs /admin/products/* to Admin::ProductsController
57
+ # # (app/controllers/admin/products_controller.rb)
58
+ # resources :products
59
+ # end
60
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: b49f660782f368347d634d080c8b46ecb0e3aba728e888b01c2ba690cf388338eb20269913f78ccc9f55d68938bc5b2524317199fe2003f17dbd2c5cf5035529
15
+
16
+ test:
17
+ secret_key_base: 178afc3947aa6a346d160cdc04f693a3f1d9ea0967bd893abec3eb4c1efecd774639c33a3cc1828106e16bb6da3f8b21f1c4fecf3632467ed4dd515c0a29a906
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2014-12-02 18:15:49 -0300
4
+ Processing by HomeController#start as HTML
5
+ Rendered home/start.html.erb within layouts/application (1.5ms)
6
+ Completed 200 OK in 40ms (Views: 38.9ms | ActiveRecord: 0.0ms)
7
+
8
+
9
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-12-02 18:15:49 -0300
10
+
11
+
12
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-12-02 18:15:49 -0300
13
+
14
+
15
+ Started GET "/my-location" for 127.0.0.1 at 2014-12-02 18:15:51 -0300
16
+ Processing by HomeController#my_location as HTML
17
+ Rendered home/my_location.html.erb within layouts/application (0.8ms)
18
+ Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.0ms)
19
+
20
+
21
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-12-02 18:15:52 -0300