blast_tasks 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 (38) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +22 -0
  5. data/app/assets/javascripts/blast/tasks/application.js +13 -0
  6. data/app/assets/stylesheets/blast/tasks/application.css +14 -0
  7. data/app/controllers/blast/admin/tasks_controller.rb +21 -0
  8. data/app/controllers/blast/tasks/application_controller.rb +6 -0
  9. data/app/controllers/blast/tasks/tasks_controller.rb +62 -0
  10. data/app/decorators/controllers/admin_decorator.rb +11 -0
  11. data/app/decorators/models/contact_decorator.rb +5 -0
  12. data/app/decorators/models/user_decorator.rb +3 -0
  13. data/app/helpers/blast/tasks/application_helper.rb +6 -0
  14. data/app/models/blast/tasks/task.rb +11 -0
  15. data/app/overrides/add_tasks_link_to_admin_nav.rb +6 -0
  16. data/app/overrides/add_tasks_link_to_nav.rb +5 -0
  17. data/app/overrides/add_tasks_list_to_dashboard.rb +5 -0
  18. data/app/overrides/add_tasks_list_to_index.rb +5 -0
  19. data/app/overrides/add_tasks_to_contact.rb +7 -0
  20. data/app/views/blast/admin/tasks/index.html.erb +28 -0
  21. data/app/views/blast/tasks/overrides/_admin_tasks_link.html.erb +7 -0
  22. data/app/views/blast/tasks/overrides/_contact_tasks_list.html.erb +33 -0
  23. data/app/views/blast/tasks/overrides/_dashboard_tasks_list.html.erb +28 -0
  24. data/app/views/blast/tasks/overrides/_tasks_link.html.erb +3 -0
  25. data/app/views/blast/tasks/overrides/_tasks_list_admin.html.erb +22 -0
  26. data/app/views/blast/tasks/tasks/_form.html.erb +41 -0
  27. data/app/views/blast/tasks/tasks/edit.html.erb +12 -0
  28. data/app/views/blast/tasks/tasks/index.html.erb +44 -0
  29. data/app/views/blast/tasks/tasks/new.html.erb +12 -0
  30. data/app/views/blast/tasks/tasks/show.html.erb +23 -0
  31. data/config/routes.rb +8 -0
  32. data/db/migrate/20211220064520_create_blast_tasks_tasks.rb +12 -0
  33. data/lib/blast/tasks/engine.rb +27 -0
  34. data/lib/blast/tasks/version.rb +5 -0
  35. data/lib/blast/tasks.rb +4 -0
  36. data/lib/blast_tasks.rb +2 -0
  37. data/lib/tasks/blast/tasks_tasks.rake +4 -0
  38. metadata +107 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 587cc674e54c2d9ad7636922e8f02bba876646ee123f80dadab04621611c5599
4
+ data.tar.gz: 14957cfe841d45bb4a08ef4d555a7820b19975a590c943eeaf0579efa6c67fcd
5
+ SHA512:
6
+ metadata.gz: f45ad849d0fed567d77715bef0386544eb20c1dcc31b14702c1ea12e770899f2369a383b39a9b79d2cfa7117ced58436603ec83450ad48ff380bf34fcabcfb37
7
+ data.tar.gz: 10691f91d92c033a2e701601cb981b0fddd335e53a3feb5a09f0882d60e71b8d31d9a091da6e54e56d3e342805441963ea9e89244a8d7c78d8ada03a69fb52b4
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2021 maheshsass
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = Blast::Tasks
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Blast::Tasks'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+ Bundler::GemHelper.install_tasks
19
+
20
+
21
+
22
+ task default: :test
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,14 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. It is generally better to create a new file per style scope.
11
+ *
12
+ *= require_tree .
13
+ *= require_self
14
+ */
@@ -0,0 +1,21 @@
1
+ require_dependency "blast/tasks/application_controller"
2
+
3
+ module Blast
4
+ module Admin
5
+ class TasksController < ApplicationController
6
+ before_action :set_task_count, only: :index
7
+ def index
8
+ authorize [:blast, :admin], :index?
9
+ @tasks = Blast::Tasks::Task.all
10
+ end
11
+
12
+ private
13
+
14
+ def set_task_count
15
+ @contacts_count = Blast::Contacts::Contact.count
16
+ @tasks_count = Blast::Tasks::Task.count
17
+ @users_count = policy_scope(Blast::User).count
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,6 @@
1
+ module Blast
2
+ module Tasks
3
+ class ApplicationController < Blast::ApplicationController
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,62 @@
1
+ require_dependency "blast/tasks/application_controller"
2
+
3
+ module Blast::Tasks
4
+ class TasksController < ApplicationController
5
+ before_action :set_task, only: [:show, :edit, :update, :destroy]
6
+
7
+ # GET /tasks
8
+ def index
9
+ @tasks = current_user.tasks
10
+ end
11
+
12
+ # GET /tasks/1
13
+ def show
14
+ end
15
+
16
+ # GET /tasks/new
17
+ def new
18
+ @task = Task.new
19
+ end
20
+
21
+ # GET /tasks/1/edit
22
+ def edit
23
+ end
24
+
25
+ # POST /tasks
26
+ def create
27
+ @task = Task.new(task_params)
28
+
29
+ if @task.save
30
+ redirect_to [blast, @task], notice: 'Task was successfully created.'
31
+ else
32
+ render :new
33
+ end
34
+ end
35
+
36
+ # PATCH/PUT /tasks/1
37
+ def update
38
+ if @task.update(task_params)
39
+ redirect_to [blast, @task], notice: 'Task was successfully updated.'
40
+ else
41
+ render :edit
42
+ end
43
+ end
44
+
45
+ # DELETE /tasks/1
46
+ def destroy
47
+ @task.destroy
48
+ redirect_to blast.tasks_url, notice: 'Task was successfully destroyed.'
49
+ end
50
+
51
+ private
52
+ # Use callbacks to share common setup or constraints between actions.
53
+ def set_task
54
+ @task = Task.find(params[:id])
55
+ end
56
+
57
+ # Only allow a trusted parameter "white list" through.
58
+ def task_params
59
+ params.require(:task).permit(:title, :content, :user_id, :contact_id)
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,11 @@
1
+ Blast::Admin::AdminController.class_eval do
2
+ before_action :set_tasks, only: :index
3
+
4
+ private
5
+
6
+ def set_tasks
7
+ authorize [:blast, :admin], :index?
8
+ @tasks = Blast::Tasks::Task.ordered.limit(3)
9
+ @tasks_count = Blast::Tasks::Task.count
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ if Blast::Core.available?(:contacts)
2
+ Blast::Contacts::Contact.class_eval do
3
+ has_many :tasks, class_name: "Blast::Tasks::Task"
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ Blast::User.class_eval do
2
+ has_many :tasks, class_name: "Blast::Tasks::Task"
3
+ end
@@ -0,0 +1,6 @@
1
+ module Blast
2
+ module Tasks
3
+ module ApplicationHelper
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ module Blast::Tasks
2
+ class Task < ApplicationRecord
3
+ belongs_to :user
4
+ scope :ordered, -> { order(created_at: :desc) }
5
+
6
+ if Blast::Core.available?(:contacts)
7
+ belongs_to :contact, class_name: "Blast::Contacts::Contact",
8
+ optional: true
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ Deface::Override.new(:virtual_path => "admin/shared/_nav",
2
+ :name => "add_tasks_link_to_admin_nav",
3
+ :insert_after => "[data-blast-hook='nav_item']",
4
+ :partial => "overrides/admin_tasks_link",
5
+ :namespaced => true,
6
+ :original => 'f5fe48b6dc6986328e0b873b3ffa1b228dd52a7c')
@@ -0,0 +1,5 @@
1
+ Deface::Override.new(:virtual_path => "layouts/blast/application",
2
+ :name => "add_tasks_link_to_nav",
3
+ :insert_after => "[data-blast-hook='main_nav']",
4
+ :partial => "overrides/tasks_link",
5
+ :namespaced => true)
@@ -0,0 +1,5 @@
1
+ Deface::Override.new(:virtual_path => "blast/dashboard/index",
2
+ :name => "add_tasks_list_to_dashboard",
3
+ :insert_after => "[data-blast-hook='dashboard']",
4
+ :partial => "overrides/dashboard_tasks_list",
5
+ :namespaced => true)
@@ -0,0 +1,5 @@
1
+ Deface::Override.new(:virtual_path => "blast/admin/admin/index",
2
+ :name => "add_tasks_list_to_index",
3
+ :insert_after => "[data-blast-hook='index']",
4
+ :partial => "overrides/tasks_list_admin",
5
+ :namespaced => true)
@@ -0,0 +1,7 @@
1
+ if Blast::Core.available?(:contacts)
2
+ Deface::Override.new(:virtual_path => "blast/contacts/contacts/show",
3
+ :name => "add_tasks_to_contact",
4
+ :insert_after => "[data-blast-hook='contacts_show']",
5
+ :partial => "overrides/contact_tasks_list",
6
+ :namespaced => true)
7
+ end
@@ -0,0 +1,28 @@
1
+ <h2 class='float-left'>Tasks</h2>
2
+ <%= render 'admin/shared/nav' %>
3
+
4
+ <div class='clearfix'></div>
5
+ <hr/>
6
+
7
+ <table class="table table-bordered">
8
+ <thead class="table-active">
9
+ <th>ID</th>
10
+ <th>Title</th>
11
+ <th>Content</th>
12
+ <th>Created On</th>
13
+ </thead>
14
+ <tbody>
15
+ <% @tasks.each do |task| %>
16
+ <tr>
17
+ <td><%= task.id %></td>
18
+ <td><%= task.title %></td>
19
+ <td><%= task.content %></td>
20
+ <td><%= task.created_at.strftime("%d %b. %Y") %></td>
21
+ </tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <br>
@@ -0,0 +1,7 @@
1
+ <li class="nav-item <%= active(blast.admin_tasks_path) %>">
2
+ <%= link_to blast.admin_tasks_path,
3
+ class: "nav-link #{active(blast.admin_tasks_path)}" do %>
4
+ Tasks
5
+ <span class="badge">(<%= @tasks_count %>)</span>
6
+ <% end %>
7
+ </li>
@@ -0,0 +1,33 @@
1
+ <hr>
2
+ <div class="panel panel-primary">
3
+ <div class="panel-heading">
4
+ Tasks for this contact
5
+ </div>
6
+ <table class="table">
7
+ <thead>
8
+ <th>ID</th>
9
+ <th>Title</th>
10
+ <th>Content</th>
11
+ <th>Created On</th>
12
+ <th></th>
13
+ </thead>
14
+ <tbody>
15
+ <% @contact.tasks.each do |task| %>
16
+ <tr>
17
+ <td><%= task.id %></td>
18
+ <td><%= task.title %></td>
19
+ <td><%= task.content %></td>
20
+ <td><%= task.created_at.strftime("%d %b. %Y") %></td>
21
+ <td>
22
+ <%= link_to 'Show', [blast, task], class: 'btn btn-primary' %>
23
+ <%= link_to 'Edit', blast.edit_task_path(task),
24
+ class: 'btn btn-primary' %>
25
+ <%= link_to 'Destroy', [blast, task],
26
+ class: 'btn btn-primary' , method: :delete,
27
+ data: { confirm: 'Are you sure?' } %>
28
+ </td>
29
+ </tr>
30
+ <% end %>
31
+ </tbody>
32
+ </table>
33
+ </div>
@@ -0,0 +1,28 @@
1
+ <div class="col-md-6">
2
+ <div class="panel panel-primary">
3
+ <div class="panel-heading">
4
+ Last 3 Tasks
5
+ </div>
6
+ <table class="table">
7
+ <thead>
8
+ <th>ID</th>
9
+ <th>Title</th>
10
+ <th>Content</th>
11
+ <th>Created On</th>
12
+ </thead>
13
+ <tbody>
14
+ <%- current_user.tasks.limit(3).each do |task| %>
15
+ <tr>
16
+ <td><%= task.id %></td>
17
+ <td><%= task.title %></td>
18
+ <td><%= task.content %></td>
19
+ <td><%= task.created_at.strftime("%d %b. %Y") %></td>
20
+ </tr>
21
+ <% end %>
22
+ </tbody>
23
+ </table>
24
+ <div class="panel-body text-center">
25
+ <%= link_to '...', tasks_path %>
26
+ </div>
27
+ </div>
28
+ </div>
@@ -0,0 +1,3 @@
1
+ <li class="<%= active(blast.tasks_path) %>">
2
+ <%= link_to 'Tasks', blast.tasks_path, class: 'nav-link' %>
3
+ </li>
@@ -0,0 +1,22 @@
1
+ <div class="col-md-6">
2
+ <div class="card">
3
+ <div class="card-header">
4
+ Last 3 tasks
5
+ <div class="float-right">
6
+ <%= link_to 'See All', blast.admin_tasks_path %>
7
+ </div>
8
+ </div>
9
+ <table class="table table-bordered mb-0">
10
+ <tbody>
11
+ <%- @tasks.each do |task| %>
12
+ <tr>
13
+ <td><%= task.id %></td>
14
+ <td><%= task.title %></td>
15
+ <td><%= task.content %></td>
16
+ <td><%= task.created_at.strftime("%d %b. %Y") %></td>
17
+ </tr>
18
+ <% end %>
19
+ </tbody>
20
+ </table>
21
+ </div>
22
+ </div>
@@ -0,0 +1,41 @@
1
+ <div class="row">
2
+ <div class="col-md-8">
3
+ <% if @task.errors.any? %>
4
+ <div id="error_explanation">
5
+ <h2>
6
+ <%= pluralize(@task.errors.count, "error") %>
7
+ prohibited this task from being saved:</h2>
8
+ <ul>
9
+ <% @task.errors.full_messages.each do |message| %>
10
+ <li><%= message %></li>
11
+ <% end %>
12
+ </ul>
13
+ </div>
14
+ <% end %>
15
+
16
+ <div class="form-group">
17
+ <%= f.label :title, class: "control-label" %>
18
+ <%= f.text_field :title, class: "form-control" %>
19
+ </div>
20
+
21
+ <div class="form-group">
22
+ <%= f.label :content, class: "control-label" %>
23
+ <%= f.text_area :content, class: "form-control" %>
24
+ </div>
25
+
26
+ <div class="form-group">
27
+ <%= f.label :user_id, class: "control-label" %>
28
+ <%= f.select :user_id, Blast::User.all.collect { |p| [ p.email, p.id ] },
29
+ { selected: current_user.id }, class: "form-control" %>
30
+ </div>
31
+ <%- if Blast::Core.available?(:contacts) %>
32
+ <div class="form-group">
33
+ <%= f.label :contact_id, class: "control-label" %>
34
+ <%= f.select :contact_id,
35
+ Blast::Contacts::Contact.all.collect { |p| [ p.email, p.id ] },
36
+ { allow_blank: true }, class: "form-control" %>
37
+ </div>
38
+ <% end %>
39
+ </div>
40
+ </div>
41
+
@@ -0,0 +1,12 @@
1
+ <h2>Editing Task</h2>
2
+ <hr>
3
+
4
+ <%= form_for([blast, @task]) do |f| %>
5
+ <%= render 'form', f: f %>
6
+ <div class="form-group">
7
+ <div>
8
+ <%= f.submit "Update Task", class: "btn btn-primary" %>
9
+ <%= link_to 'Back', blast.tasks_path, class: 'btn btn-default' %>
10
+ </div>
11
+ </div>
12
+ <% end %>
@@ -0,0 +1,44 @@
1
+ <%= link_to 'New Task', blast.new_task_path,
2
+ class: 'float-right btn btn-primary' %>
3
+
4
+ <h2>Listing Tasks</h2>
5
+ <hr>
6
+ <div class="panel panel-primary">
7
+ <div class="panel-heading">
8
+ My Tasks
9
+ </div>
10
+ <table class="table">
11
+ <thead>
12
+ <th>ID</th>
13
+ <th>Title</th>
14
+ <th>Content</th>
15
+ <%- if Blast::Core.available?(:contacts) %>
16
+ <th>Contact</th>
17
+ <% end %>
18
+ <th>Created At</th>
19
+ <th></th>
20
+ </thead>
21
+ <tbody>
22
+ <% @tasks.each do |task| %>
23
+ <tr>
24
+ <td><%= task.id %></td>
25
+ <td><%= task.title %></td>
26
+ <td><%= task.content %></td>
27
+ <%- if Blast::Core.available?(:contacts) %>
28
+ <td><%= task.contact.email if task.contact.present? %></td>
29
+ <% end %>
30
+ <td><%= task.created_at.strftime("%d %b. %Y") %></td>
31
+ <td>
32
+ <%= link_to 'Show', [blast, task], class: 'btn btn-primary' %>
33
+ <%= link_to 'Edit', blast.edit_task_path(task),
34
+ class: 'btn btn-primary' %>
35
+ <%= link_to 'Destroy', [blast, task],
36
+ class: 'btn btn-primary' , method: :delete,
37
+ data: { confirm: 'Are you sure?' } %>
38
+ </td>
39
+ </tr>
40
+ <% end %>
41
+ </tbody>
42
+ </table>
43
+ </div>
44
+ <br>
@@ -0,0 +1,12 @@
1
+ <h2>New Task</h2>
2
+ <hr>
3
+ <%= form_for([blast, @task]) do |f| %>
4
+ <%= render 'form', f: f %>
5
+
6
+ <div class="form-group">
7
+ <div>
8
+ <%= f.submit "Create Task", class: "btn btn-primary" %>
9
+ <%= link_to 'Back', blast.tasks_path, class: 'btn btn-default' %>
10
+ </div>
11
+ </div>
12
+ <% end %>
@@ -0,0 +1,23 @@
1
+ <h2><%= @task.title %></h2>
2
+ <hr>
3
+ <div class="row">
4
+ <div class="col-md-8">
5
+ <strong>Title:</strong>
6
+ <%= @task.title %>
7
+ <br/>
8
+ <strong>Content:</strong>
9
+ <%= @task.content %>
10
+ <br/>
11
+ <%- if Blast::Core.available?(:contacts) %>
12
+ <strong>Contact:</strong>
13
+ <%= @task.contact.email %>
14
+ <br/>
15
+ <% end %>
16
+ <strong>User:</strong>
17
+ <%= @task.user.email %>
18
+ <br/>
19
+ </div>
20
+ </div>
21
+ <hr>
22
+ <%= link_to 'Edit', blast.edit_task_path(@task), class: "btn btn-primary" %>
23
+ <%= link_to 'Back', blast.tasks_path, class: 'btn btn-default' %>
data/config/routes.rb ADDED
@@ -0,0 +1,8 @@
1
+ Blast::Core::Engine.routes.draw do
2
+ scope module: 'tasks' do
3
+ resources :tasks
4
+ end
5
+ namespace :admin do
6
+ get '/tasks' => 'tasks#index'
7
+ end
8
+ end
@@ -0,0 +1,12 @@
1
+ class CreateBlastTasksTasks < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :blast_tasks_tasks do |t|
4
+ t.string :title
5
+ t.text :content
6
+ t.references :user, foreign_key: { to_table: :blast_users }
7
+ t.references :contact, foreign_key: { to_table: :blast_contacts_contacts }
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,27 @@
1
+ module Blast
2
+ module Tasks
3
+ class Engine < ::Rails::Engine
4
+ isolate_namespace Blast::Tasks
5
+ paths["app/views"] << "app/views/blast/tasks"
6
+
7
+ initializer :append_migrations do |app|
8
+ unless app.root.to_s.match(root.to_s)
9
+ config.paths["db/migrate"].expanded.each do |p|
10
+ app.config.paths["db/migrate"] << p
11
+ end
12
+ end
13
+ end
14
+
15
+ config.to_prepare do
16
+ Dir.glob(Engine.root.join("app", "decorators", "**", "*_decorator*.rb")) do |c|
17
+ Rails.configuration.cache_classes ? require(c) : load(c)
18
+ end
19
+ end
20
+
21
+ end
22
+
23
+ end
24
+ end
25
+
26
+
27
+
@@ -0,0 +1,5 @@
1
+ module Blast
2
+ module Tasks
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module Blast
2
+ module Tasks
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ require "blast/tasks"
2
+ require "blast/tasks/engine"
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :tasks do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blast_tasks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Devblast
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: deface
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.4.0
41
+ description: Task feature for BlastCRM.
42
+ email:
43
+ - info@devblast.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - MIT-LICENSE
49
+ - README.rdoc
50
+ - Rakefile
51
+ - app/assets/javascripts/blast/tasks/application.js
52
+ - app/assets/stylesheets/blast/tasks/application.css
53
+ - app/controllers/blast/admin/tasks_controller.rb
54
+ - app/controllers/blast/tasks/application_controller.rb
55
+ - app/controllers/blast/tasks/tasks_controller.rb
56
+ - app/decorators/controllers/admin_decorator.rb
57
+ - app/decorators/models/contact_decorator.rb
58
+ - app/decorators/models/user_decorator.rb
59
+ - app/helpers/blast/tasks/application_helper.rb
60
+ - app/models/blast/tasks/task.rb
61
+ - app/overrides/add_tasks_link_to_admin_nav.rb
62
+ - app/overrides/add_tasks_link_to_nav.rb
63
+ - app/overrides/add_tasks_list_to_dashboard.rb
64
+ - app/overrides/add_tasks_list_to_index.rb
65
+ - app/overrides/add_tasks_to_contact.rb
66
+ - app/views/blast/admin/tasks/index.html.erb
67
+ - app/views/blast/tasks/overrides/_admin_tasks_link.html.erb
68
+ - app/views/blast/tasks/overrides/_contact_tasks_list.html.erb
69
+ - app/views/blast/tasks/overrides/_dashboard_tasks_list.html.erb
70
+ - app/views/blast/tasks/overrides/_tasks_link.html.erb
71
+ - app/views/blast/tasks/overrides/_tasks_list_admin.html.erb
72
+ - app/views/blast/tasks/tasks/_form.html.erb
73
+ - app/views/blast/tasks/tasks/edit.html.erb
74
+ - app/views/blast/tasks/tasks/index.html.erb
75
+ - app/views/blast/tasks/tasks/new.html.erb
76
+ - app/views/blast/tasks/tasks/show.html.erb
77
+ - config/routes.rb
78
+ - db/migrate/20211220064520_create_blast_tasks_tasks.rb
79
+ - lib/blast/tasks.rb
80
+ - lib/blast/tasks/engine.rb
81
+ - lib/blast/tasks/version.rb
82
+ - lib/blast_tasks.rb
83
+ - lib/tasks/blast/tasks_tasks.rake
84
+ homepage: https://devblast.com
85
+ licenses:
86
+ - MIT
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.0.8
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Task feature for BlastCRM.
107
+ test_files: []