ezii-os 0.0.0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/Icon/r +0 -0
  3. data/app/assets/stylesheets/apis.scss +3 -0
  4. data/app/assets/stylesheets/basecamp_integrations.scss +3 -0
  5. data/app/assets/stylesheets/code_link_batches.scss +3 -0
  6. data/app/assets/stylesheets/code_link_types.scss +3 -0
  7. data/app/assets/stylesheets/code_links.scss +3 -0
  8. data/app/assets/stylesheets/codes.scss +3 -0
  9. data/app/assets/stylesheets/cookie_changes.scss +3 -0
  10. data/app/assets/stylesheets/partners/get_paids.scss +3 -0
  11. data/app/assets/stylesheets/searches.scss +3 -0
  12. data/app/assets/stylesheets/types.scss +3 -0
  13. data/app/controllers/apis_controller.rb +74 -0
  14. data/app/controllers/basecamp_integrations_controller.rb +76 -0
  15. data/app/controllers/code_link_batches_controller.rb +74 -0
  16. data/app/controllers/code_link_types_controller.rb +74 -0
  17. data/app/controllers/code_links_controller.rb +74 -0
  18. data/app/controllers/codes_controller.rb +74 -0
  19. data/app/controllers/cookie_changes_controller.rb +78 -0
  20. data/app/controllers/directories_controller.rb +14 -14
  21. data/app/controllers/ezii_os_files_controller.rb +14 -1
  22. data/app/controllers/partners/get_paids_controller.rb +74 -0
  23. data/app/controllers/searches_controller.rb +74 -0
  24. data/app/controllers/types_controller.rb +74 -0
  25. data/app/helpers/apis_helper.rb +2 -0
  26. data/app/helpers/basecamp_integrations_helper.rb +2 -0
  27. data/app/helpers/code_link_batches_helper.rb +2 -0
  28. data/app/helpers/code_link_types_helper.rb +2 -0
  29. data/app/helpers/code_links_helper.rb +2 -0
  30. data/app/helpers/codes_helper.rb +2 -0
  31. data/app/helpers/cookie_changes_helper.rb +2 -0
  32. data/app/helpers/partners/get_paids_helper.rb +2 -0
  33. data/app/helpers/searches_helper.rb +2 -0
  34. data/app/helpers/types_helper.rb +2 -0
  35. data/app/models/api.rb +3 -0
  36. data/app/models/basecamp_integration.rb +2 -0
  37. data/app/models/code.rb +3 -0
  38. data/app/models/code_link.rb +3 -0
  39. data/app/models/code_link_batch.rb +3 -0
  40. data/app/models/code_link_type.rb +3 -0
  41. data/app/models/cookie_change.rb +2 -0
  42. data/app/models/partners/get_paid.rb +2 -0
  43. data/app/models/partners.rb +5 -0
  44. data/app/models/search.rb +2 -0
  45. data/app/models/type.rb +3 -0
  46. data/app/views/apis/_api.json.jbuilder +2 -0
  47. data/app/views/apis/_form.html.erb +32 -0
  48. data/app/views/apis/edit.html.erb +6 -0
  49. data/app/views/apis/index.html.erb +31 -0
  50. data/app/views/apis/index.json.jbuilder +1 -0
  51. data/app/views/apis/new.html.erb +5 -0
  52. data/app/views/apis/show.html.erb +19 -0
  53. data/app/views/apis/show.json.jbuilder +1 -0
  54. data/app/views/basecamp_integrations/_basecamp_integration.json.jbuilder +2 -0
  55. data/app/views/basecamp_integrations/_form.html.erb +27 -0
  56. data/app/views/basecamp_integrations/edit.html.erb +6 -0
  57. data/app/views/basecamp_integrations/index.html.erb +29 -0
  58. data/app/views/basecamp_integrations/index.json.jbuilder +1 -0
  59. data/app/views/basecamp_integrations/new.html.erb +5 -0
  60. data/app/views/basecamp_integrations/show.html.erb +14 -0
  61. data/app/views/basecamp_integrations/show.json.jbuilder +1 -0
  62. data/app/views/code_link_batches/_code_link_batch.json.jbuilder +2 -0
  63. data/app/views/code_link_batches/_form.html.erb +27 -0
  64. data/app/views/code_link_batches/edit.html.erb +6 -0
  65. data/app/views/code_link_batches/index.html.erb +29 -0
  66. data/app/views/code_link_batches/index.json.jbuilder +1 -0
  67. data/app/views/code_link_batches/new.html.erb +5 -0
  68. data/app/views/code_link_batches/show.html.erb +14 -0
  69. data/app/views/code_link_batches/show.json.jbuilder +1 -0
  70. data/app/views/code_link_types/_code_link_type.json.jbuilder +2 -0
  71. data/app/views/code_link_types/_form.html.erb +27 -0
  72. data/app/views/code_link_types/edit.html.erb +6 -0
  73. data/app/views/code_link_types/index.html.erb +29 -0
  74. data/app/views/code_link_types/index.json.jbuilder +1 -0
  75. data/app/views/code_link_types/new.html.erb +5 -0
  76. data/app/views/code_link_types/show.html.erb +14 -0
  77. data/app/views/code_link_types/show.json.jbuilder +1 -0
  78. data/app/views/code_links/_code_link.json.jbuilder +2 -0
  79. data/app/views/code_links/_form.html.erb +32 -0
  80. data/app/views/code_links/edit.html.erb +6 -0
  81. data/app/views/code_links/index.html.erb +31 -0
  82. data/app/views/code_links/index.json.jbuilder +1 -0
  83. data/app/views/code_links/new.html.erb +5 -0
  84. data/app/views/code_links/show.html.erb +19 -0
  85. data/app/views/code_links/show.json.jbuilder +1 -0
  86. data/app/views/codes/_code.json.jbuilder +2 -0
  87. data/app/views/codes/_form.html.erb +32 -0
  88. data/app/views/codes/edit.html.erb +6 -0
  89. data/app/views/codes/index.html.erb +31 -0
  90. data/app/views/codes/index.json.jbuilder +1 -0
  91. data/app/views/codes/new.html.erb +5 -0
  92. data/app/views/codes/show.html.erb +19 -0
  93. data/app/views/codes/show.json.jbuilder +1 -0
  94. data/app/views/cookie_changes/_cookie_change.json.jbuilder +2 -0
  95. data/app/views/cookie_changes/_form.html.erb +27 -0
  96. data/app/views/cookie_changes/edit.html.erb +6 -0
  97. data/app/views/cookie_changes/index.html.erb +29 -0
  98. data/app/views/cookie_changes/index.json.jbuilder +1 -0
  99. data/app/views/cookie_changes/new.html.erb +5 -0
  100. data/app/views/cookie_changes/show.html.erb +14 -0
  101. data/app/views/cookie_changes/show.json.jbuilder +1 -0
  102. data/app/views/directories/show.html.erb +6 -1
  103. data/app/views/ezii_os_files/_wit_ai_widget.html.erb +203 -49
  104. data/app/views/ezii_os_files/show.html.erb +6 -9
  105. data/app/views/layouts/application.html.erb +212 -52
  106. data/app/views/partners/get_paids/_form.html.erb +27 -0
  107. data/app/views/partners/get_paids/_partners_get_paid.json.jbuilder +2 -0
  108. data/app/views/partners/get_paids/edit.html.erb +6 -0
  109. data/app/views/partners/get_paids/index.html.erb +29 -0
  110. data/app/views/partners/get_paids/index.json.jbuilder +1 -0
  111. data/app/views/partners/get_paids/new.html.erb +5 -0
  112. data/app/views/partners/get_paids/show.html.erb +14 -0
  113. data/app/views/partners/get_paids/show.json.jbuilder +1 -0
  114. data/app/views/searches/_form.html.erb +22 -0
  115. data/app/views/searches/_search.json.jbuilder +2 -0
  116. data/app/views/searches/edit.html.erb +6 -0
  117. data/app/views/searches/index.html.erb +27 -0
  118. data/app/views/searches/index.json.jbuilder +1 -0
  119. data/app/views/searches/new.html.erb +5 -0
  120. data/app/views/searches/show.html.erb +9 -0
  121. data/app/views/searches/show.json.jbuilder +1 -0
  122. data/app/views/types/_form.html.erb +22 -0
  123. data/app/views/types/_type.json.jbuilder +2 -0
  124. data/app/views/types/edit.html.erb +6 -0
  125. data/app/views/types/index.html.erb +27 -0
  126. data/app/views/types/index.json.jbuilder +1 -0
  127. data/app/views/types/new.html.erb +5 -0
  128. data/app/views/types/show.html.erb +9 -0
  129. data/app/views/types/show.json.jbuilder +1 -0
  130. data/config/credentials.yml.enc +1 -1
  131. data/config/routes.rb +12 -0
  132. data/db/development.sqlite3 +0 -0
  133. data/db/migrate/20190827060151_create_searches.rb +9 -0
  134. data/db/migrate/20190827063427_create_partners_get_paids.rb +10 -0
  135. data/db/migrate/20190827180750_create_basecamp_integrations.rb +10 -0
  136. data/db/migrate/20190827180751_create_types.rb +9 -0
  137. data/db/migrate/20190827180752_create_code_link_types.rb +10 -0
  138. data/db/migrate/20190827180753_create_code_links.rb +11 -0
  139. data/db/migrate/20190827180754_create_codes.rb +11 -0
  140. data/db/migrate/20190828104427_create_apis.rb +12 -0
  141. data/db/migrate/20190828105156_create_code_link_batches.rb +10 -0
  142. data/db/migrate/20190829174432_create_cookie_changes.rb +10 -0
  143. data/db/schema.rb +88 -1
  144. data/db/seeds.rb +4 -0
  145. data/db/test.sqlite3 +0 -0
  146. data/ezii-os-0.0.0.1.0.gem +0 -0
  147. data/ezii-os.gemspec +1 -1
  148. data/lib/tasks/task.rake +5 -0
  149. data/log/development.log +13283 -0
  150. data/test/controllers/apis_controller_test.rb +48 -0
  151. data/test/controllers/basecamp_integrations_controller_test.rb +48 -0
  152. data/test/controllers/code_link_batches_controller_test.rb +48 -0
  153. data/test/controllers/code_link_types_controller_test.rb +48 -0
  154. data/test/controllers/code_links_controller_test.rb +48 -0
  155. data/test/controllers/codes_controller_test.rb +48 -0
  156. data/test/controllers/cookie_changes_controller_test.rb +48 -0
  157. data/test/controllers/partners/get_paids_controller_test.rb +48 -0
  158. data/test/controllers/searches_controller_test.rb +48 -0
  159. data/test/controllers/types_controller_test.rb +48 -0
  160. data/test/fixtures/apis.yml +11 -0
  161. data/test/fixtures/basecamp_integrations.yml +9 -0
  162. data/test/fixtures/code_link_batches.yml +9 -0
  163. data/test/fixtures/code_link_types.yml +9 -0
  164. data/test/fixtures/code_links.yml +11 -0
  165. data/test/fixtures/codes.yml +11 -0
  166. data/test/fixtures/cookie_changes.yml +9 -0
  167. data/test/fixtures/partners/get_paids.yml +9 -0
  168. data/test/fixtures/searches.yml +7 -0
  169. data/test/fixtures/types.yml +7 -0
  170. data/test/models/api_test.rb +7 -0
  171. data/test/models/basecamp_integration_test.rb +7 -0
  172. data/test/models/code_link_batch_test.rb +7 -0
  173. data/test/models/code_link_test.rb +7 -0
  174. data/test/models/code_link_type_test.rb +7 -0
  175. data/test/models/code_test.rb +7 -0
  176. data/test/models/cookie_change_test.rb +7 -0
  177. data/test/models/partners/get_paid_test.rb +7 -0
  178. data/test/models/search_test.rb +7 -0
  179. data/test/models/type_test.rb +7 -0
  180. data/test/system/apis_test.rb +47 -0
  181. data/test/system/basecamp_integrations_test.rb +45 -0
  182. data/test/system/code_link_batches_test.rb +45 -0
  183. data/test/system/code_link_types_test.rb +45 -0
  184. data/test/system/code_links_test.rb +47 -0
  185. data/test/system/codes_test.rb +47 -0
  186. data/test/system/cookie_changes_test.rb +45 -0
  187. data/test/system/partners/get_paids_test.rb +45 -0
  188. data/test/system/searches_test.rb +43 -0
  189. data/test/system/types_test.rb +43 -0
  190. metadata +176 -1
@@ -0,0 +1,14 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Enter invoice number:</strong>
5
+ <%= @partners_get_paid.enter_invoice_number %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>You will receive this when question mark:</strong>
10
+ <%= @partners_get_paid.you_will_receive_this_when_question_mark %>
11
+ </p>
12
+
13
+ <%= link_to 'Edit', edit_partners_get_paid_path(@partners_get_paid) %> |
14
+ <%= link_to 'Back', partners_get_paids_path %>
@@ -0,0 +1 @@
1
+ json.partial! "partners_get_paids/partners_get_paid", partners_get_paid: @partners_get_paid
@@ -0,0 +1,22 @@
1
+ <%= form_with(model: search, local: true) do |form| %>
2
+ <% if search.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(search.errors.count, "error") %> prohibited this search from being saved:</h2>
5
+
6
+ <ul>
7
+ <% search.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :query %>
16
+ <%= form.text_field :query %>
17
+ </div>
18
+
19
+ <div class="actions">
20
+ <%= form.submit %>
21
+ </div>
22
+ <% end %>
@@ -0,0 +1,2 @@
1
+ json.extract! search, :id, :query, :created_at, :updated_at
2
+ json.url search_url(search, format: :json)
@@ -0,0 +1,6 @@
1
+ <h1>Editing Search</h1>
2
+
3
+ <%= render 'form', search: @search %>
4
+
5
+ <%= link_to 'Show', @search %> |
6
+ <%= link_to 'Back', searches_path %>
@@ -0,0 +1,27 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Searches</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Query</th>
9
+ <th colspan="3"></th>
10
+ </tr>
11
+ </thead>
12
+
13
+ <tbody>
14
+ <% @searches.each do |search| %>
15
+ <tr>
16
+ <td><%= search.query %></td>
17
+ <td><%= link_to 'Show', search %></td>
18
+ <td><%= link_to 'Edit', edit_search_path(search) %></td>
19
+ <td><%= link_to 'Destroy', search, method: :delete, data: { confirm: 'Are you sure?' } %></td>
20
+ </tr>
21
+ <% end %>
22
+ </tbody>
23
+ </table>
24
+
25
+ <br>
26
+
27
+ <%= link_to 'New Search', new_search_path %>
@@ -0,0 +1 @@
1
+ json.array! @searches, partial: "searches/search", as: :search
@@ -0,0 +1,5 @@
1
+ <h1>New Search</h1>
2
+
3
+ <%= render 'form', search: @search %>
4
+
5
+ <%= link_to 'Back', searches_path %>
@@ -0,0 +1,9 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Query:</strong>
5
+ <%= @search.query %>
6
+ </p>
7
+
8
+ <%= link_to 'Edit', edit_search_path(@search) %> |
9
+ <%= link_to 'Back', searches_path %>
@@ -0,0 +1 @@
1
+ json.partial! "searches/search", search: @search
@@ -0,0 +1,22 @@
1
+ <%= form_with(model: type, local: true) do |form| %>
2
+ <% if type.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(type.errors.count, "error") %> prohibited this type from being saved:</h2>
5
+
6
+ <ul>
7
+ <% type.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :code_id %>
16
+ <%= form.text_field :code_id %>
17
+ </div>
18
+
19
+ <div class="actions">
20
+ <%= form.submit %>
21
+ </div>
22
+ <% end %>
@@ -0,0 +1,2 @@
1
+ json.extract! type, :id, :code_id, :created_at, :updated_at
2
+ json.url type_url(type, format: :json)
@@ -0,0 +1,6 @@
1
+ <h1>Editing Type</h1>
2
+
3
+ <%= render 'form', type: @type %>
4
+
5
+ <%= link_to 'Show', @type %> |
6
+ <%= link_to 'Back', types_path %>
@@ -0,0 +1,27 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Types</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Code</th>
9
+ <th colspan="3"></th>
10
+ </tr>
11
+ </thead>
12
+
13
+ <tbody>
14
+ <% @types.each do |type| %>
15
+ <tr>
16
+ <td><%= type.code_id %></td>
17
+ <td><%= link_to 'Show', type %></td>
18
+ <td><%= link_to 'Edit', edit_type_path(type) %></td>
19
+ <td><%= link_to 'Destroy', type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
20
+ </tr>
21
+ <% end %>
22
+ </tbody>
23
+ </table>
24
+
25
+ <br>
26
+
27
+ <%= link_to 'New Type', new_type_path %>
@@ -0,0 +1 @@
1
+ json.array! @types, partial: "types/type", as: :type
@@ -0,0 +1,5 @@
1
+ <h1>New Type</h1>
2
+
3
+ <%= render 'form', type: @type %>
4
+
5
+ <%= link_to 'Back', types_path %>
@@ -0,0 +1,9 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Code:</strong>
5
+ <%= @type.code_id %>
6
+ </p>
7
+
8
+ <%= link_to 'Edit', edit_type_path(@type) %> |
9
+ <%= link_to 'Back', types_path %>
@@ -0,0 +1 @@
1
+ json.partial! "types/type", type: @type
@@ -1 +1 @@
1
- MVN7B+UEbobersKZ96Ay6zocLypnYT+CJQ9K9jtQBpXwU4azQKkNiAzLlZBO630ndVEAsXQUhHfvEJj6bmCTyqe65+RBo/1MaAlzDdvnHbN1bCV5DTYwkUr7+xOrQJk9geJgAXY3RwWjXSfzboPCJTw/L+JgYuJS2/JeLYQ1uJGU70YVHuQlpFkG96nhVgnrjvQKr7y1Mr5KP+E4IA+MjWA58U6NQ8Wg1a1z8NEOJAZxB+O5NCBO6R0qdVpQJ/+EIdp/DZ/qfE0/hfBU2habM2kXpjAyeolkGSC/3mEetcVtOt6ZNiSalXk9YvYOetwiY2V1WDaEUccKYXeJgbfuQNKzhz1ctqVs/+y1D7z8gVpQXNq3qG/Sy0BQ3kHVoFpFYkJEGhqce+m9NWb7fn0ZkbYwkOJD80/odezStgp1ShffcO6yy0z8UYpF4QWkNRQcxjqyvhJKvEslQsmPtj9Py+esYK2HXJD99xI4tGjYBokrJAki5faPAni9GK6RbhtNBlePEZZ7e3waSgRdMY+XHvRy--2GyyMo5c+nLUTWhr--jgB9fd5uwRq/VVpsN9dSfw==
1
+ B4OysTSwZpuy1wxxP9iIwx5jIA4FfUVQlNn0XTKUbXoEr1xAcxX1aKqKPdN4TjCIWDOEbS3i2UbX469SFA+tWpHMKc1/OtAoN1TOMpluHthLCK2ZvHNq8GLA89TeCHr2UQqUz6ldEwJZbmCVQpAdisisfV68Ycd/rVReN/5Jo2HXoh5O3qFqEAoIfyra9TJEcjPnApxXFSRSOLUAwBOAlE4IJ2NS9IqPiCTvHePOb4pvywhlYgRszMUI/2ozNhVryrngIehwREyUGeeybLRzj6J2xEziSlnG6A11NsItO0wC4rILE82Z6WEcvYAnwo7k0JpLgl2rFN1VLVKl2bA6Hnj7bKnVv4Dv02Oru63E4/QTVv9WNqOhzQECXxqr25GIY+mzmsnakBrY93xZ0GMgwxoOVUep+Rm3xX5LoJoQIG/EvYMCia8qXZtcAYVk04teNpGxries6nAIYWPKFv1SSx8nf0TMzDzyS37kW4FK2B5kl63hH5b5dfbXs7UDW+Kegf1EHpCdfBKPMHlIqbWE3hEUL4f43AuWvVSmin1ztNqf0950JsfIgIrlQPPAHnE0p/tMBRk7W9hp2HR22pCXGUrezz4UQh1wbYPDrHySa0zH0KHffQ9xI3r7/k/qv/enKE5nryt5qwkRQGoQSLTPB5V2L5g+RiXtBHqCOA==--wALGg6t+gZiZY59p--yx8FiyAZFM2zdb3xbyhy9A==
data/config/routes.rb CHANGED
@@ -1,4 +1,16 @@
1
1
  Rails.application.routes.draw do
2
+ resources :cookie_changes
3
+ resources :types
4
+ resources :code_link_types
5
+ resources :code_links
6
+ resources :code_link_batches
7
+ resources :codes
8
+ resources :apis
9
+ resources :basecamp_integrations
10
+ namespace :partners do
11
+ resources :get_paids
12
+ end
13
+ resources :searches
2
14
  resources :code_change_requests
3
15
  resources :banal_business_testcases
4
16
  resources :file_systems
Binary file
@@ -0,0 +1,9 @@
1
+ class CreateSearches < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :searches do |t|
4
+ t.string :query
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ class CreatePartnersGetPaids < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :partners_get_paids do |t|
4
+ t.integer :enter_invoice_number
5
+ t.string :you_will_receive_this_when_question_mark
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreateBasecampIntegrations < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :basecamp_integrations do |t|
4
+ t.string :description
5
+ t.text :code
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class CreateTypes < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :types do |t|
4
+ # t.references :code, null: false, foreign_key: true
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ class CreateCodeLinkTypes < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :code_link_types do |t|
4
+ t.text :type_description
5
+ t.references :type, null: false, foreign_key: true
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ class CreateCodeLinks < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :code_links do |t|
4
+ t.text :link
5
+ t.references :code_link_type, null: false, foreign_key: true
6
+ t.text :description
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ class CreateCodes < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :codes do |t|
4
+ t.string :github_link
5
+ t.string :gist_link
6
+ t.references :code_links, null: false, foreign_key: true
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ class CreateApis < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :apis do |t|
4
+ t.text :rfc
5
+ t.integer :rftrolling_foreign_key
6
+ t.references :code, null: false, foreign_key: true
7
+
8
+ t.timestamps
9
+ end
10
+ add_index :apis, :rftrolling_foreign_key, unique: true
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ class CreateCodeLinkBatches < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :code_link_batches do |t|
4
+ t.string :description
5
+ t.references :code_link, null: false, foreign_key: true
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreateCookieChanges < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :cookie_changes do |t|
4
+ t.string :identifier
5
+ t.string :value
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
data/db/schema.rb CHANGED
@@ -10,7 +10,17 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2019_08_22_174951) do
13
+ ActiveRecord::Schema.define(version: 2019_08_29_174432) do
14
+
15
+ create_table "apis", force: :cascade do |t|
16
+ t.text "rfc"
17
+ t.integer "rftrolling_foreign_key"
18
+ t.integer "code_id", null: false
19
+ t.datetime "created_at", precision: 6, null: false
20
+ t.datetime "updated_at", precision: 6, null: false
21
+ t.index ["code_id"], name: "index_apis_on_code_id"
22
+ t.index ["rftrolling_foreign_key"], name: "index_apis_on_rftrolling_foreign_key", unique: true
23
+ end
14
24
 
15
25
  create_table "banal_business_testcases", force: :cascade do |t|
16
26
  t.string "org_id"
@@ -21,6 +31,60 @@ ActiveRecord::Schema.define(version: 2019_08_22_174951) do
21
31
  t.datetime "updated_at", precision: 6, null: false
22
32
  end
23
33
 
34
+ create_table "basecamp_integrations", force: :cascade do |t|
35
+ t.string "description"
36
+ t.text "code"
37
+ t.datetime "created_at", precision: 6, null: false
38
+ t.datetime "updated_at", precision: 6, null: false
39
+ end
40
+
41
+ create_table "code_change_requests", force: :cascade do |t|
42
+ t.string "text"
43
+ t.datetime "created_at", precision: 6, null: false
44
+ t.datetime "updated_at", precision: 6, null: false
45
+ end
46
+
47
+ create_table "code_link_batches", force: :cascade do |t|
48
+ t.string "description"
49
+ t.integer "code_link_id", null: false
50
+ t.datetime "created_at", precision: 6, null: false
51
+ t.datetime "updated_at", precision: 6, null: false
52
+ t.index ["code_link_id"], name: "index_code_link_batches_on_code_link_id"
53
+ end
54
+
55
+ create_table "code_link_types", force: :cascade do |t|
56
+ t.text "type_description"
57
+ t.integer "type_id", null: false
58
+ t.datetime "created_at", precision: 6, null: false
59
+ t.datetime "updated_at", precision: 6, null: false
60
+ t.index ["type_id"], name: "index_code_link_types_on_type_id"
61
+ end
62
+
63
+ create_table "code_links", force: :cascade do |t|
64
+ t.text "link"
65
+ t.integer "code_link_type_id", null: false
66
+ t.text "description"
67
+ t.datetime "created_at", precision: 6, null: false
68
+ t.datetime "updated_at", precision: 6, null: false
69
+ t.index ["code_link_type_id"], name: "index_code_links_on_code_link_type_id"
70
+ end
71
+
72
+ create_table "codes", force: :cascade do |t|
73
+ t.string "github_link"
74
+ t.string "gist_link"
75
+ t.integer "code_links_id", null: false
76
+ t.datetime "created_at", precision: 6, null: false
77
+ t.datetime "updated_at", precision: 6, null: false
78
+ t.index ["code_links_id"], name: "index_codes_on_code_links_id"
79
+ end
80
+
81
+ create_table "cookie_changes", force: :cascade do |t|
82
+ t.string "identifier"
83
+ t.string "value"
84
+ t.datetime "created_at", precision: 6, null: false
85
+ t.datetime "updated_at", precision: 6, null: false
86
+ end
87
+
24
88
  create_table "directories", force: :cascade do |t|
25
89
  t.string "path"
26
90
  t.datetime "created_at", precision: 6, null: false
@@ -45,6 +109,24 @@ ActiveRecord::Schema.define(version: 2019_08_22_174951) do
45
109
  t.datetime "updated_at", precision: 6, null: false
46
110
  end
47
111
 
112
+ create_table "partners_get_paids", force: :cascade do |t|
113
+ t.integer "enter_invoice_number"
114
+ t.string "you_will_receive_this_when_question_mark"
115
+ t.datetime "created_at", precision: 6, null: false
116
+ t.datetime "updated_at", precision: 6, null: false
117
+ end
118
+
119
+ create_table "searches", force: :cascade do |t|
120
+ t.string "query"
121
+ t.datetime "created_at", precision: 6, null: false
122
+ t.datetime "updated_at", precision: 6, null: false
123
+ end
124
+
125
+ create_table "types", force: :cascade do |t|
126
+ t.datetime "created_at", precision: 6, null: false
127
+ t.datetime "updated_at", precision: 6, null: false
128
+ end
129
+
48
130
  create_table "unzips", force: :cascade do |t|
49
131
  t.string "zip_file_path"
50
132
  t.datetime "created_at", precision: 6, null: false
@@ -74,5 +156,10 @@ ActiveRecord::Schema.define(version: 2019_08_22_174951) do
74
156
  t.datetime "updated_at", precision: 6, null: false
75
157
  end
76
158
 
159
+ add_foreign_key "apis", "codes"
160
+ add_foreign_key "code_link_batches", "code_links"
161
+ add_foreign_key "code_link_types", "types"
162
+ add_foreign_key "code_links", "code_link_types"
163
+ add_foreign_key "codes", "code_links", column: "code_links_id"
77
164
  add_foreign_key "wit_ai_parse_model_examples", "wit_ai_parse_models"
78
165
  end
data/db/seeds.rb CHANGED
@@ -15,4 +15,8 @@ FileSystem.create(
15
15
 
16
16
  FileSystem.create(
17
17
  description: 'Dropbox', machine_readable_identifier: 'dropbox'
18
+ )
19
+
20
+ FileSystem.create(
21
+ description: 'Github', machine_readable_identifier: 'github'
18
22
  )
data/db/test.sqlite3 ADDED
File without changes
Binary file
data/ezii-os.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ezii-os'
3
- s.version = '0.0.0.1.0'
3
+ s.version = '1.0.0'
4
4
  s.date = '2019-08-14'
5
5
  s.summary = "eZii operating system"
6
6
  s.description = "Web-based, operating on the cloud platform"
@@ -0,0 +1,5 @@
1
+ namespace :task do
2
+ puts `
3
+ curl -n https://api.heroku.com/apps/ezii-os/config-vars -H "Accept: application/vnd.heroku+json; version=3"
4
+ `
5
+ end