commissionwork 0.1.0

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 (40) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +24 -0
  5. data/app/assets/config/commissionwork_manifest.js +1 -0
  6. data/app/assets/stylesheets/commissionwork/application.css +15 -0
  7. data/app/controllers/commissionwork/application_controller.rb +7 -0
  8. data/app/controllers/commissionwork/categories_controller.rb +8 -0
  9. data/app/controllers/commissionwork/products_controller.rb +8 -0
  10. data/app/controllers/commissionwork/subscription_codes_controller.rb +8 -0
  11. data/app/controllers/commissionwork/subscriptions_controller.rb +8 -0
  12. data/app/controllers/commissionwork/supplier_codes_controller.rb +8 -0
  13. data/app/controllers/commissionwork/tokens_controller.rb +8 -0
  14. data/app/controllers/commissionwork/users_controller.rb +77 -0
  15. data/app/helpers/commissionwork/application_helper.rb +6 -0
  16. data/app/jobs/commissionwork/application_job.rb +6 -0
  17. data/app/mailers/commissionwork/application_mailer.rb +8 -0
  18. data/app/models/commissionwork/application_record.rb +7 -0
  19. data/app/models/commissionwork/category.rb +8 -0
  20. data/app/models/commissionwork/company.rb +6 -0
  21. data/app/models/commissionwork/product.rb +9 -0
  22. data/app/models/commissionwork/subscription.rb +21 -0
  23. data/app/models/commissionwork/subscription_code.rb +7 -0
  24. data/app/models/commissionwork/supplier_code.rb +8 -0
  25. data/app/models/commissionwork/token.rb +8 -0
  26. data/app/models/commissionwork/user.rb +12 -0
  27. data/app/views/layouts/commissionwork/application.html.erb +15 -0
  28. data/config/routes.rb +11 -0
  29. data/db/migrate/20200304175337_create_commissionwork_users.rb +14 -0
  30. data/db/migrate/20200304175433_create_commissionwork_categories.rb +11 -0
  31. data/db/migrate/20200304175451_create_commissionwork_products.rb +13 -0
  32. data/db/migrate/20200304175514_create_commissionwork_subscriptions.rb +14 -0
  33. data/db/migrate/20200304175534_create_commissionwork_subscription_codes.rb +11 -0
  34. data/db/migrate/20200304175554_create_commissionwork_supplier_codes.rb +13 -0
  35. data/db/migrate/20200304181617_create_commissionwork_tokens.rb +12 -0
  36. data/lib/commissionwork.rb +7 -0
  37. data/lib/commissionwork/engine.rb +21 -0
  38. data/lib/commissionwork/version.rb +5 -0
  39. data/lib/tasks/commissionwork_tasks.rake +5 -0
  40. metadata +180 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 208e90ca97f14f502cd95383f2097b935d7bad169865e144bcedab6517f502c3
4
+ data.tar.gz: 77d99b02cb77729b214cbe813c343ac87a3f83bb1586f756724a998665706bd2
5
+ SHA512:
6
+ metadata.gz: e9c6080fa86fdc430a3d722342b487ac502e24c6df41ce7385b5178c9563d5a2c5cc28069bfe7b52dcfc3a9690af09c4b765a44e0131d9f9fe65aa9e4c9a6fa1
7
+ data.tar.gz: 48fd55454c57595d65bc83109e640f20ebe24f30b75fb4d88d0824beafd2281c893ccd1386db39469934254e604d23d72b3f30d471f4700c4b59c3edb9087bb2
@@ -0,0 +1,20 @@
1
+ Copyright 2020 Million Seleshi
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.
@@ -0,0 +1,28 @@
1
+ # Commissionwork
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'commissionwork'
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install commissionwork
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ begin
4
+ require 'bundler/setup'
5
+ rescue LoadError
6
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
7
+ end
8
+
9
+ require 'rdoc/task'
10
+
11
+ RDoc::Task.new(:rdoc) do |rdoc|
12
+ rdoc.rdoc_dir = 'rdoc'
13
+ rdoc.title = 'Commissionwork'
14
+ rdoc.options << '--line-numbers'
15
+ rdoc.rdoc_files.include('README.md')
16
+ rdoc.rdoc_files.include('lib/**/*.rb')
17
+ end
18
+
19
+ APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__)
20
+ load 'rails/tasks/engine.rake'
21
+
22
+ load 'rails/tasks/statistics.rake'
23
+
24
+ require 'bundler/gem_tasks'
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/commissionwork .css
@@ -0,0 +1,15 @@
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. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class ApplicationController < ActionController::Base
5
+ protect_from_forgery with: :exception
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class CategoriesController < ApplicationController
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class ProductsController < ApplicationController
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class SubscriptionCodesController < ApplicationController
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class SubscriptionsController < ApplicationController
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class SupplierCodesController < ApplicationController
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class TokensController < ApplicationController
7
+ end
8
+ end
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'commissionwork/application_controller'
4
+
5
+ module Commissionwork
6
+ class UsersController < ApplicationController
7
+ before_action :set_user, only: %i[show update destroy]
8
+
9
+ def index
10
+ @user = User.all
11
+ @user_list = @user.map do |u|
12
+ {
13
+ code: '200',
14
+ id: u.id,
15
+ firstName: u.firstName,
16
+ lastName: u.lastName,
17
+ userName: u.userName,
18
+ phoneNumber: u.phoneNumber,
19
+ userRole: u.userRole
20
+ }
21
+ end
22
+ unless @user_list.empty?
23
+ render json: { data: @user_list, status: 'success' }, status: 200
24
+ end
25
+ end
26
+
27
+ def show
28
+ @one_user = @user.tap do |u|
29
+ { code: '200',
30
+ id: u.id, firstName: u.firstName,
31
+ lastName: u.lastName,
32
+ userName: u.userName,
33
+ phoneNumber: u.phoneNumber,
34
+ userRole: u.userRole }
35
+ end
36
+ render json: { data: @one_user, status: 'success' }, status: 200
37
+ end
38
+
39
+ def create
40
+ @user = User.new(user_params)
41
+ if @user.save
42
+ @new_user = @user.tap do |u|
43
+ { code: '200',
44
+ id: u.id, firstName: u.firstName,
45
+ lastName: u.lastName, userName: u.userName,
46
+ phoneNumber: u.phoneNumber, userRole: u.userRole }
47
+ end
48
+ render json: { data: @new_user, status: 'success' }, status: 200
49
+ else
50
+ render json: { data: { code: '404', message: @user.errors }, status: 'fail' },
51
+ status: 400
52
+ end
53
+ end
54
+
55
+ def update
56
+ if @user.update(user_params)
57
+ render json: { data: @user, status: 'success' }, status: 200
58
+ else
59
+ render json: { data: { code: '400', message: @user.errors } }, status: 200
60
+ end
61
+ end
62
+
63
+ def destroy
64
+ @user.destroy
65
+ end
66
+
67
+ private
68
+
69
+ def set_user
70
+ @user = User.find(params[:id])
71
+ end
72
+
73
+ def user_params
74
+ params.require(:user).permit(:firstName, :lastName, :userName, :phoneNumber, :userRole)
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ module ApplicationHelper
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class ApplicationJob < ActiveJob::Base
5
+ end
6
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class ApplicationMailer < ActionMailer::Base
5
+ default from: 'from@example.com'
6
+ layout 'mailer'
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class ApplicationRecord < ActiveRecord::Base
5
+ self.abstract_class = true
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class Category < ApplicationRecord
5
+ validates :categoryName, :categoryDescription, presence: true
6
+ validates :categoryName, uniqueness: true
7
+ end
8
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class Company < ApplicationRecord
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class Product < ApplicationRecord
5
+ belongs_to :commissionwork_users, class_name: 'Commissionwork::User'
6
+ belongs_to :commissionwork_categories, class_name: 'Commissionwork::Category'
7
+ validates :productName, :productDescription, presence: true
8
+ end
9
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class Subscription < ApplicationRecord
5
+ belongs_to :commissionwork_users, class_name: 'Commissionwork::User'
6
+ validates :subscriptionStartDate, :subscriptionEndDate, :subscriptionMethod,
7
+ :subscriptionStatus, presence: true
8
+ validate :end_date_cannot_be_in_the_past
9
+ validate :end_date_before_start_date
10
+
11
+ def end_date_cannot_be_in_the_past
12
+ subscriptionEndDate.present? && subscriptionEndDate < DateTime.current
13
+ errors.add(:subscriptionEndDate, "can't be in the past")
14
+ end
15
+
16
+ def end_date_before_start_date
17
+ subscriptionStartDate.present? && subscriptionEndDate.present? && subscriptionEndDate < subscriptionStartDate
18
+ errors.add(:subscriptionEndDate, 'end date must be after start date')
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class SubscriptionCode < ApplicationRecord
5
+ validates :code, :timePeriod, presence: true
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class SupplierCode < ApplicationRecord
5
+ belongs_to :commissionwork_users, class_name: 'Commissionwork::User'
6
+ belongs_to :commissionwork_subscription_codes, class_name: 'Commissionwork::SubscriptionCode'
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class Token < ApplicationRecord
5
+ validates :validationToken, presence: true
6
+ belongs_to :commissionwork_users, class_name: 'Commissionwork::User'
7
+ end
8
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class User < ApplicationRecord
5
+ validates :firstName, :lastName, :userName, :phoneNumber, :userRole, presence: true
6
+ validates :userRole, inclusion: { in: %w[admin client backOfficeWorker] }
7
+ validates :firstName, :lastName, length: { minimum: 3 }
8
+ validates :firstName, :lastName, length: { maximum: 20 }
9
+ has_many :commissionwork_subscription_codes, class_name: 'Commissionwork::SubscriptionCode'
10
+ has_many :commissionwork_supplier_codes, class_name: 'Commissionwork::SupplierCode'
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Commissionwork</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "commissionwork/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ Commissionwork::Engine.routes.draw do
4
+ resources :tokens
5
+ resources :supplier_codes
6
+ resources :subscription_codes
7
+ resources :subscriptions
8
+ resources :products
9
+ resources :categories
10
+ resources :users
11
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkUsers < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_users do |t|
6
+ t.string :firstName
7
+ t.string :lastName
8
+ t.string :phoneNumber
9
+ t.string :userName
10
+ t.string :userRole
11
+ t.timestamps
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkCategories < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_categories do |t|
6
+ t.string :categoryName
7
+ t.string :categoryDescription
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkProducts < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_products do |t|
6
+ t.string :productName
7
+ t.string :productDescription
8
+ t.references :commissionwork_users, null: false, foreign_key: true
9
+ t.references :commissionwork_categories, null: false, foreign_key: true
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkSubscriptions < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_subscriptions do |t|
6
+ t.datetime :subscriptionStartDate
7
+ t.datetime :subscriptionEndDate
8
+ t.string :subscriptionMethod
9
+ t.string :subscriptionStatus
10
+ t.references :commissionwork_users, null: false, foreign_key: true
11
+ t.timestamps
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkSubscriptionCodes < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_subscription_codes do |t|
6
+ t.string :code
7
+ t.integer :timePeriod
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkSupplierCodes < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_supplier_codes do |t|
6
+ t.references :commissionwork_users, null: false, foreign_key: true,
7
+ index: { name: 'cw_users_index' }
8
+ t.references :commissionwork_subscription_codes, null: false, foreign_key: true,
9
+ index: { name: 'cw_subscription_codes_index' }
10
+ t.timestamps
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateCommissionworkTokens < ActiveRecord::Migration[6.0]
4
+ def change
5
+ create_table :commissionwork_tokens do |t|
6
+ t.string :validationToken, unique: true
7
+ t.references :commissionwork_users, null: false, foreign_key: true
8
+ t.datetime :expiryDate
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'commissionwork/engine'
4
+
5
+ module Commissionwork
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ class Engine < ::Rails::Engine
5
+ isolate_namespace Commissionwork
6
+
7
+ config.generators.api_only = true
8
+
9
+ config.generators do |g|
10
+ g.test_framework :rspec
11
+ g.fixture_replacement :factory_bot
12
+ g.factory_bot dir: 'spec/factories'
13
+ end
14
+
15
+ initializer 'commissionwork.factories', after: 'factory_bot.set_factory_paths' do
16
+ if defined?(FactoryBot)
17
+ FactoryBot.definition_file_paths << File.expand_path('../../spec/factories', __dir__)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Commissionwork
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ # desc "Explaining what the task does"
3
+ # task :commissionwork do
4
+ # # Task goes here
5
+ # end
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: commissionwork
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Million Seleshi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-03-05 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: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: factory_bot_rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: ffaker
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pg
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: shoulda-matchers
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Pixel Commissionwork engine
112
+ email:
113
+ - million2seleshi@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - MIT-LICENSE
119
+ - README.md
120
+ - Rakefile
121
+ - app/assets/config/commissionwork_manifest.js
122
+ - app/assets/stylesheets/commissionwork/application.css
123
+ - app/controllers/commissionwork/application_controller.rb
124
+ - app/controllers/commissionwork/categories_controller.rb
125
+ - app/controllers/commissionwork/products_controller.rb
126
+ - app/controllers/commissionwork/subscription_codes_controller.rb
127
+ - app/controllers/commissionwork/subscriptions_controller.rb
128
+ - app/controllers/commissionwork/supplier_codes_controller.rb
129
+ - app/controllers/commissionwork/tokens_controller.rb
130
+ - app/controllers/commissionwork/users_controller.rb
131
+ - app/helpers/commissionwork/application_helper.rb
132
+ - app/jobs/commissionwork/application_job.rb
133
+ - app/mailers/commissionwork/application_mailer.rb
134
+ - app/models/commissionwork/application_record.rb
135
+ - app/models/commissionwork/category.rb
136
+ - app/models/commissionwork/company.rb
137
+ - app/models/commissionwork/product.rb
138
+ - app/models/commissionwork/subscription.rb
139
+ - app/models/commissionwork/subscription_code.rb
140
+ - app/models/commissionwork/supplier_code.rb
141
+ - app/models/commissionwork/token.rb
142
+ - app/models/commissionwork/user.rb
143
+ - app/views/layouts/commissionwork/application.html.erb
144
+ - config/routes.rb
145
+ - db/migrate/20200304175337_create_commissionwork_users.rb
146
+ - db/migrate/20200304175433_create_commissionwork_categories.rb
147
+ - db/migrate/20200304175451_create_commissionwork_products.rb
148
+ - db/migrate/20200304175514_create_commissionwork_subscriptions.rb
149
+ - db/migrate/20200304175534_create_commissionwork_subscription_codes.rb
150
+ - db/migrate/20200304175554_create_commissionwork_supplier_codes.rb
151
+ - db/migrate/20200304181617_create_commissionwork_tokens.rb
152
+ - lib/commissionwork.rb
153
+ - lib/commissionwork/engine.rb
154
+ - lib/commissionwork/version.rb
155
+ - lib/tasks/commissionwork_tasks.rake
156
+ homepage: ''
157
+ licenses:
158
+ - MIT
159
+ metadata:
160
+ allowed_push_host: https://rubygems.org/
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ requirements: []
176
+ rubygems_version: 3.0.3
177
+ signing_key:
178
+ specification_version: 4
179
+ summary: Commissionwork rails engine
180
+ test_files: []