platform 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/Gemfile.lock +1 -3
  2. data/README.rdoc +140 -3
  3. data/app/assets/images/platform/help/app_reg.png +0 -0
  4. data/app/assets/images/platform/help/app_reg_ext.png +0 -0
  5. data/app/assets/images/platform/help/app_reg_web.png +0 -0
  6. data/app/assets/images/platform/help/auth_desktop.png +0 -0
  7. data/app/assets/images/platform/help/auth_iframe.png +0 -0
  8. data/app/assets/images/platform/help/auth_iphone.png +0 -0
  9. data/app/assets/images/platform/help/auth_web.png +0 -0
  10. data/app/assets/images/platform/help/authorize.png +0 -0
  11. data/app/assets/images/platform/help/ext.png +0 -0
  12. data/app/assets/images/platform/help/login_desktop.png +0 -0
  13. data/app/assets/images/platform/help/login_iphone.png +0 -0
  14. data/app/assets/images/platform/help/login_web.png +0 -0
  15. data/app/assets/images/platform/help/register_desktop.png +0 -0
  16. data/app/assets/images/platform/help/register_iphone.png +0 -0
  17. data/app/assets/javascripts/platform/platform.js +1 -1
  18. data/app/controllers/platform/api/base_controller.rb +24 -14
  19. data/app/controllers/platform/apps_controller.rb +16 -0
  20. data/app/controllers/platform/developer/help_controller.rb +2 -15
  21. data/app/controllers/platform/oauth_controller.rb +3 -3
  22. data/app/helpers/platform/admin/categories_helper.rb +1 -1
  23. data/app/helpers/platform/developer/help_helper.rb +2 -1
  24. data/app/models/platform/application.rb +2 -0
  25. data/app/models/platform/developer.rb +2 -0
  26. data/app/models/platform/logged_exception.rb +1 -1
  27. data/app/views/platform/admin/clientsdk/index.html.erb +12 -12
  28. data/app/views/platform/apps/_search_apps_module.html.erb +1 -1
  29. data/app/views/platform/apps/settings.html.erb +77 -0
  30. data/app/views/platform/developer/api_explorer/options.html.erb +0 -2
  31. data/app/views/platform/developer/dashboard/index.html.erb +1 -1
  32. data/app/views/platform/developer/help/_navigation.html.erb +1 -1
  33. data/app/views/platform/developer/help/oauth_client_side.html.erb +17 -15
  34. data/app/views/platform/developer/help/oauth_extensions.html.erb +1 -1
  35. data/app/views/platform/developer/help/oauth_mobile.html.erb +12 -12
  36. data/app/views/platform/developer/help/oauth_server_side.html.erb +6 -6
  37. data/app/views/platform/developer/help/sdk_ios.html.erb +3 -3
  38. data/app/views/platform/developer/help/sdk_js.html.erb +13 -185
  39. data/app/views/platform/developer/info/_basic_info.html.erb +1 -1
  40. data/app/views/platform/developer/info/_header.html.erb +3 -3
  41. data/app/views/platform/developer/registration/index.html.erb +30 -30
  42. data/app/views/platform/oauth/_authorization_box.html.erb +6 -7
  43. data/app/views/platform/oauth/_authorization_popup.html.erb +1 -1
  44. data/app/views/platform/oauth/authorize_desktop.html.erb +1 -76
  45. data/config/routes.rb +2 -4
  46. data/lib/generators/platform/proxy_generator.rb +78 -0
  47. data/lib/generators/platform/templates/config/platform/api/0/platform.yml +55 -0
  48. data/lib/generators/platform/templates/config/platform/api/0/platform_application.yml +37 -0
  49. data/lib/generators/platform/templates/config/platform/api/0/platform_developer.yml +22 -0
  50. data/{config → lib/generators/platform/templates/config}/platform/config.yml +22 -19
  51. data/{config → lib/generators/platform/templates/config}/platform/data/default_applications.yml +0 -0
  52. data/{config → lib/generators/platform/templates/config}/platform/data/default_categories.yml +0 -0
  53. data/{config → lib/generators/platform/templates/config}/platform/data/default_permissions.yml +0 -0
  54. data/{config → lib/generators/platform/templates/config}/platform/site/features.yml +0 -0
  55. data/lib/platform.rb +23 -0
  56. data/lib/platform/api/proxy/base.rb +5 -2
  57. data/lib/platform/cache.rb +1 -1
  58. data/lib/platform/config.rb +20 -3
  59. data/lib/platform/engine.rb +23 -0
  60. data/lib/platform/exception.rb +1 -1
  61. data/lib/platform/extensions/action_view_extension.rb +25 -0
  62. data/lib/platform/helper.rb +1 -1
  63. data/lib/platform/logger.rb +1 -1
  64. data/lib/platform/random_password_generator.rb +1 -1
  65. data/lib/platform/simple_string_permissions.rb +1 -1
  66. data/lib/platform/version.rb +24 -1
  67. data/lib/tasks/platform.rake +1 -1
  68. data/platform.gemspec +1 -1
  69. data/test/dummy/.pryrc +15 -0
  70. data/test/dummy/app/controllers/api/base_controller.rb +0 -1
  71. data/test/dummy/app/controllers/api/bookmarks_controller.rb +6 -1
  72. data/{app/controllers/platform/developer/resources_controller.rb → test/dummy/app/controllers/api/platform_controller.rb} +16 -2
  73. data/test/dummy/app/controllers/api/users_controller.rb +1 -0
  74. data/test/dummy/app/controllers/login_controller.rb +2 -1
  75. data/test/dummy/app/models/user.rb +8 -0
  76. data/test/dummy/app/views/layouts/_header.html.erb +1 -0
  77. data/test/dummy/app/views/layouts/blank.html.erb +24 -0
  78. data/test/dummy/app/views/layouts/mobile.html.erb +68 -0
  79. data/test/dummy/app/views/login/index.html.erb +1 -2
  80. data/test/dummy/app/views/login/register.html.erb +3 -3
  81. data/test/dummy/config/application.rb +1 -1
  82. data/test/dummy/config/platform/api/1/bookmark.yml +23 -3
  83. data/test/dummy/config/platform/api/1/platform.yml +55 -0
  84. data/test/dummy/config/platform/api/1/platform_application.yml +37 -0
  85. data/test/dummy/config/platform/api/1/platform_developer.yml +22 -0
  86. data/test/dummy/config/platform/api/1/user.yml +1 -1
  87. data/test/dummy/config/platform/config.yml +5 -4
  88. data/test/dummy/config/routes.rb +4 -0
  89. data/test/dummy/config/tr8n/config.yml +1 -1
  90. data/test/dummy/lib/platform/api/platform_application_proxy_0.rb +28 -0
  91. data/test/dummy/lib/platform/api/platform_developer_proxy_0.rb +19 -0
  92. metadata +72 -65
  93. data/app/assets/images/platform/help/login.png +0 -0
  94. data/app/assets/javascripts/platform/jsdk.js +0 -539
  95. data/app/controllers/platform/api/apps_controller.rb +0 -40
  96. data/app/views/platform/developer/resources/index.html.erb +0 -23
  97. data/test/dummy/config/platform/site/sample_apps.yml +0 -100
@@ -1,40 +0,0 @@
1
- #--
2
- # Copyright (c) 2011 Michael Berkovich
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining
5
- # a copy of this software and associated documentation files (the
6
- # "Software"), to deal in the Software without restriction, including
7
- # without limitation the rights to use, copy, modify, merge, publish,
8
- # distribute, sublicense, and/or sell copies of the Software, and to
9
- # permit persons to whom the Software is furnished to do so, subject to
10
- # the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be
13
- # included in all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
- #++
23
-
24
- module Platform
25
- module Api
26
- class AppsController < Platform::Api::BaseController
27
-
28
- def index
29
- render_response(Platform::Application.all)
30
- end
31
-
32
- private
33
-
34
- def model_class
35
- Platform::Application
36
- end
37
-
38
- end
39
- end
40
- end
@@ -1,23 +0,0 @@
1
- <%= render :partial => "/platform/developer/common/header" %>
2
-
3
- <div class="section_title">
4
- <%= tr('Resources', 'Client application section title') %>
5
- </div>
6
-
7
- <div class="section_box">
8
-
9
- <h4>API Documentation and Test Tools</h4>
10
-
11
- <p>
12
- The API documentation can be viewed here: <%=link_to("http://api-preview.geni.com", "http://api-preview.geni.com")%>
13
- </p>
14
- <p>
15
- API test tools are located here:
16
- </p>
17
-
18
-
19
-
20
-
21
- </div>
22
-
23
- <%= render :partial => "/platform/developer/common/footer" %>
@@ -1,100 +0,0 @@
1
- defaults: &defaults
2
-
3
-
4
- development:
5
- <<: *defaults
6
-
7
- birthdays:
8
- key: wboMCGul2AymiFP9rKsEPef8LlJsm6UtgS1D23M4
9
- secret: 4x0ibejmFCucVjsypCr6qtSdSaoUdFlt3p0lxSVF
10
- host: http://localhost:3000
11
- remote: http://michael.geni.com:3000
12
-
13
- gconnect:
14
- key: UgTezmDrUFnMaBpnG5hTBPXe3wnJZWVWg31D8hmK
15
- secret: D2DBwx1LXOPEcgi7QHvpdujaQuCbKzF2qehDv9TI
16
- host: http://localhost:3000
17
- remote: http://michael.geni.com:3000
18
-
19
- slideshow:
20
- key: tvcWADJNfev76eUXeKCjAHta1ccWtDZqDll8PZyR
21
- secret: 3LeCZAWAgDnlMzsTbXWG1hnhEmKhSFZkWJItPmFv
22
- host: http://localhost:3000
23
- remote: http://michael.geni.com:3000
24
-
25
- familylocator:
26
- key: grGBsHTnVc3cwQ9TiYyge9IpN1kac1YqypqF2D5m
27
- secret: ww0UQuMBCQEmFXaZbzYreVtZ6981gL9Kwj45L17d
28
- host: http://localhost:3000
29
- remote: http://michael.geni.com:3000
30
-
31
- test:
32
- <<: *defaults
33
-
34
- qa:
35
- <<: *defaults
36
-
37
- stage:
38
- <<: *defaults
39
-
40
- birthdays:
41
- key: jsv35nt3LjCVrtXZYftUUnhd5fPO9N3CJUu1VXOn
42
- secret: OEcLnFMzOxytBgOjYQohsqsBdlFuTqOcCr6p9S6K
43
- host: http://stage.geni.com
44
- remote: http://stage.geni.com
45
-
46
- slideshow:
47
- key: hLJDiwreIwDK9LTzS7Kr43Gp5LE9z1FgsYVUk9IS
48
- secret: p9a8l6MDGrWz6gAyck7gcYzuvWTENhm5vOyOYtk4
49
- host: http://stage.geni.com
50
- remote: http://stage.geni.com
51
-
52
- familylocator:
53
- key: EgBPnuyYtktpksrfSp15kJQVkDIl4GXqBqm2KHMe
54
- secret: 0BvuFeupYE54Urfe8iGKEdbI9SWt1bNiuENmGXn6
55
- host: http://stage.geni.com
56
- remote: http://stage.geni.com
57
-
58
- production:
59
- <<: *defaults
60
-
61
- birthdays:
62
- key: jsv35nt3LjCVrtXZYftUUnhd5fPO9N3CJUu1VXOn
63
- secret: OEcLnFMzOxytBgOjYQohsqsBdlFuTqOcCr6p9S6K
64
- host: http://www.geni.com
65
- remote: http://www.geni.com
66
-
67
- slideshow:
68
- key: hLJDiwreIwDK9LTzS7Kr43Gp5LE9z1FgsYVUk9IS
69
- secret: p9a8l6MDGrWz6gAyck7gcYzuvWTENhm5vOyOYtk4
70
- host: http://www.geni.com
71
- remote: http://www.geni.com
72
-
73
- familylocator:
74
- key: EgBPnuyYtktpksrfSp15kJQVkDIl4GXqBqm2KHMe
75
- secret: 0BvuFeupYE54Urfe8iGKEdbI9SWt1bNiuENmGXn6
76
- host: http://www.geni.com
77
- remote: http://www.geni.com
78
-
79
-
80
- sandbox:
81
- <<: *defaults
82
-
83
- birthdays:
84
- key: 0oIBFKbzZKgAbxX33PDAfPp7ToR5fh9ILv1vMFcj
85
- secret: zlZr21YyAXFT6IA7VrVuAmzc3GfuBJPKtYt8E4hi
86
- host: http://sandbox.geni.com
87
- remote: http://sandbox.geni.com
88
-
89
- slideshow:
90
- key: sHO2apUHgOnA7WjlxYC32C8VdKyXos2Hw3CBnz8S
91
- secret: NpGPI6ASkeRT1F44QHQyn6DJMUmh5SN9HaqQfP3b
92
- host: http://sandbox.geni.com
93
- remote: http://sandbox.geni.com
94
-
95
- familylocator:
96
- key: flSR9plZZfjb3kTY3hR4FWWgt2HQjKSl9CT4rs7g
97
- secret: COucTFo1CBQeR6d2JOVoMSLJ3EeYMPT0aRKmo5YR
98
- host: http://sandbox.geni.com
99
- remote: http://sandbox.geni.com
100
-