web47core 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 157414cee5e038de98970d2dbeaf83a34f2b4f59a3d814f9a07a4c3274d6f22f
4
- data.tar.gz: 994aeaef80223793e4e916eba6451e3be0f5faada9c47de16f620c7457cd601b
3
+ metadata.gz: 6e3059ef50538716dd55ede1c4b008563e517a36cd6f1910a9f8d8a26fd1c11d
4
+ data.tar.gz: f14defe8456099e6474a8a7b67ca144e0f683d57e96c305fe2a8de87445fb583
5
5
  SHA512:
6
- metadata.gz: 2aad98c62bd6d7c14226cfcf5a982717f152751c575457418d46100806ade8df8b2fbf735c14bab8cf297cd87bf3160f9758c59e4f38aae282e59282ac77b2f2
7
- data.tar.gz: 2d71c7b5006b32124fb3d7b0c172a80f58920ceb735915780edd9657a9e40da06c5d9fee7a1904771afd5a9bc09a0ed25cfbeac9c7272455187c4f9f0f2e70e6
6
+ metadata.gz: 75baae88b47585172366a9abf6107508096b54b3bec29797a874ed42151be5364b14ad349896a0c3450332e207c57409fb9e850a9c95a242897e37a22f37ae0e
7
+ data.tar.gz: d77aafb78072a750bd2bc7aa496def606dcb6180594acdfba43ee0a6a685cc2de0e90b24819abc2db62e10b7ebc82c45b1f9491adfbef0a4d7312ffa3be11f7b
data/README.md CHANGED
@@ -3,14 +3,14 @@ Core components used commonly among all web apps for both App47 and RedMonocle
3
3
 
4
4
  ## We don't need no sticking badges
5
5
 
6
- * [![Codacy Badge](https://api.codacy.com/project/badge/Grade/acc591f31c214849959f71e210e7edbd)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=App47/web47core&utm_campaign=Badge_Grade)
7
- * [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/acc591f31c214849959f71e210e7edbd)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=App47/web47core&utm_campaign=Badge_Coverage)
8
- * Develop - [![CircleCI](https://circleci.com/gh/App47/web47core/tree/develop.svg?style=svg&circle-token=9999e0634dd96ad5414f4f3e56c39ba6d3e0e4e6)](https://circleci.com/gh/App47/web47core/tree/develop)
9
- * Master - [![CircleCI](https://circleci.com/gh/App47/web47core/tree/master.svg?style=svg&circle-token=9999e0634dd96ad5414f4f3e56c39ba6d3e0e4e6)](https://circleci.com/gh/App47/web47core/tree/master)
6
+ * [![Codacy Badge](https://api.codacy.com/project/badge/Grade/acc591f31c214849959f71e210e7edbd)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=App47/web47core&utm_campaign=Badge_Grade)
7
+ * [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/acc591f31c214849959f71e210e7edbd)](https://www.codacy.com?utm_source=github.com&utm_medium=referral&utm_content=App47/web47core&utm_campaign=Badge_Coverage)
8
+ * Develop - [![CircleCI](https://circleci.com/gh/App47/web47core/tree/develop.svg?style=svg&circle-token=9999e0634dd96ad5414f4f3e56c39ba6d3e0e4e6)](https://circleci.com/gh/App47/web47core/tree/develop)
9
+ * Master - [![CircleCI](https://circleci.com/gh/App47/web47core/tree/master.svg?style=svg&circle-token=9999e0634dd96ad5414f4f3e56c39ba6d3e0e4e6)](https://circleci.com/gh/App47/web47core/tree/master)
10
10
 
11
11
  ## Requirements
12
12
 
13
- * Ruby 2.4.1
13
+ * Ruby 2.4.1
14
14
 
15
15
  ### Working with Bundler and RVM
16
16
 
@@ -134,12 +134,12 @@ module Cron
134
134
  end
135
135
  ```
136
136
  Allowed values of cron_tab_entry are
137
- * :always - run every minute
138
- * :hourly - run every hour
139
- * :daily - run every day
140
- * :weekly - run every week on Sunday
141
- * :monthly - run every month on the first day of the month
142
- * '*/5 1,3 * 2 *' - Run according to unix crontab entry format. This would run every tuesday on the 1st and 3rd hour, for any minute divisible by 5, so 0, 5, 10, 15, etc..
137
+ * `:always` - run every minute
138
+ * `:hourly` - run every hour
139
+ * `:daily` - run every day
140
+ * `:weekly` - run every week on Sunday
141
+ * `:monthly` - run every month on the first day of the month
142
+ * `'*/5 1,3 * 2 *'` - Run according to unix crontab entry format. This would run every tuesday on the 1st and 3rd hour, for any minute divisible by 5, so 0, 5, 10, 15, etc..
143
143
 
144
144
  1. Before starting the server, you need to run the database command
145
145
  ```mongo
@@ -2,5 +2,5 @@
2
2
 
3
3
  require File.join(Dir.getwd, 'config', 'environment')
4
4
  require 'delayed/command'
5
- Delayed::Worker.logger ||= Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
5
+ Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
6
6
  Delayed::Command.new(ARGV).daemonize
@@ -1,4 +1,6 @@
1
+ #
1
2
  # web47core/config/routes.rb
3
+ #
2
4
  Rails.application.routes.draw do
3
5
  get 'status' => 'status#index'
4
6
  get '/notifications/:id', to: 'notifications#show'
@@ -9,8 +9,8 @@ module Cron
9
9
  #
10
10
  # Constants
11
11
  #
12
- STATE_PRIMARY = 'primary'.freeze unless defined? STATE_PRIMARY
13
- STATE_SECONDARY = 'secondary'.freeze unless defined? STATE_SECONDARY
12
+ STATE_PRIMARY = 'primary' unless defined? STATE_PRIMARY
13
+ STATE_SECONDARY = 'secondary' unless defined? STATE_SECONDARY
14
14
  ALL_STATES = [STATE_PRIMARY, STATE_SECONDARY].freeze unless defined? ALL_STATES
15
15
  #
16
16
  # Fields
@@ -2,8 +2,12 @@
2
2
  # Support an email template for an account
3
3
  #
4
4
  class EmailTemplate < Template
5
-
5
+ #
6
+ # Fields
7
+ #
6
8
  field :subject, type: String
7
-
8
- validates_presence_of :subject
9
+ #
10
+ # Validations
11
+ #
12
+ validates :subject, presence: true
9
13
  end
@@ -4,6 +4,7 @@ require 'app/models/concerns/email_able'
4
4
  require 'app/models/concerns/search_able'
5
5
  require 'app/models/concerns/time_zone_able'
6
6
  require 'app/models/concerns/standard_model'
7
+ require 'app/models/concerns/switchboard_able'
7
8
  require 'app/models/concerns/core_system_configuration'
8
9
  require 'app/models/concerns/core_account'
9
10
  require 'app/models/delayed_job'
@@ -36,6 +37,8 @@ require 'app/jobs/cron/trim_failed_delayed_jobs'
36
37
  # Controllers
37
38
  #
38
39
  require 'web47core/engine'
40
+ require 'web47core/version'
41
+ require 'web47core/config'
39
42
  require 'app/controllers/concerns/restful_controller'
40
43
  require 'app/controllers/concerns/core_controller'
41
44
  require 'app/controllers/concerns/core_system_configuration_controller'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder