effective_email_templates 1.3.0 → 1.4.0

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: ef3facb431d4773e654d65d8797e4d616e7fcc463ab3643db556001b0d4b62b9
4
- data.tar.gz: be4db3f2818619af838038f33711b8e7f1ace4fcec9a81127bf315ded3edcd3b
3
+ metadata.gz: 76b4cba485f59818cdff525e1a105ce1e61e82741b416291ea48721da04ac148
4
+ data.tar.gz: 96dabdd42fa0e1dc26a6e1c7fbe497f471ba06b67234f852ba3ca41816ccf58e
5
5
  SHA512:
6
- metadata.gz: 8825ea1ce92eb8d06896eeaa373de617196a087dc438c7c117fd01a550e4743ec58f6ee94db15f3bb74956e0e3a370d9148f4ab5a832a753eabeb14f951c9e41
7
- data.tar.gz: 8160cff98ca3378e003e6aba6605140a0adaba6b4412484343699391bfda45fde02d78e7452a4d8076654299baddf31ef218a03cc5e18a4220f3d89f4af0d6ad
6
+ metadata.gz: 54dbf79839ab5bc46073a9aeb59ae30de17c89a6b5e7d0efaf54f5703c9761118f8e8713f0cc4fbe2acfc066c5ebdc9be4f307433cce9680d73e89eced6ca409
7
+ data.tar.gz: baed2e7069b501209ba92605dd023c4f18d4e8dcbf79861b195c15c268cbc5d7d8025b14ff27a07473a9a46a99dae26b55ef446df46cf02553dc288916dd7be5
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2021 Code and Effect Inc.
1
+ Copyright 2023 Code and Effect Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
1
1
  module Effective
2
2
  class EmailTemplate < ActiveRecord::Base
3
- self.table_name = EffectiveEmailTemplates.email_templates_table_name.to_s
3
+ self.table_name = (EffectiveEmailTemplates.email_templates_table_name || :email_templates).to_s
4
4
 
5
5
  attr_accessor :current_user
6
6
 
@@ -1,7 +1,4 @@
1
1
  EffectiveEmailTemplates.setup do |config|
2
- # Configure Database Tables
3
- config.email_templates_table_name = :email_templates
4
-
5
2
  # Layout Settings
6
3
  # config.layout = { application: 'application', admin: 'admin' }
7
4
 
@@ -1,6 +1,6 @@
1
- class CreateEffectiveEmailTemplates < ActiveRecord::Migration[4.2]
2
- def self.up
3
- create_table <%= @email_templates_table_name %> do |t|
1
+ class CreateEffectiveEmailTemplates < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :email_templates do |t|
4
4
  t.string :template_name
5
5
 
6
6
  t.string :subject
@@ -13,11 +13,6 @@ class CreateEffectiveEmailTemplates < ActiveRecord::Migration[4.2]
13
13
 
14
14
  t.timestamps
15
15
  end
16
-
17
- end
18
-
19
- def self.down
20
- drop_table <%= @email_templates_table_name %>
21
16
  end
22
17
  end
23
18
 
data/db/seeds.rb ADDED
@@ -0,0 +1 @@
1
+ puts "No seeds present"
@@ -1,3 +1,3 @@
1
1
  module EffectiveEmailTemplates
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  end
@@ -32,8 +32,7 @@ module EffectiveEmailTemplates
32
32
  end
33
33
 
34
34
  def create_migration_file
35
- @email_templates_table_name = ':' + EffectiveEmailTemplates.email_templates_table_name.to_s
36
- migration_template ('../' * 3) + 'db/migrate/01_create_effective_email_templates.rb.erb', 'db/migrate/create_effective_email_templates.rb'
35
+ migration_template ('../' * 3) + 'db/migrate/101_create_effective_email_templates.rb', 'db/migrate/create_effective_email_templates.rb'
37
36
  end
38
37
 
39
38
  def message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_email_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-09 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.0
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: liquid
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,90 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
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: devise
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
+ - !ruby/object:Gem::Dependency
112
+ name: pry-byebug
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: effective_test_bot
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: effective_developer
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: psych
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: '4'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "<"
165
+ - !ruby/object:Gem::Version
166
+ version: '4'
83
167
  description: Effective Email Templates provides an admin access to modify email templates
84
168
  email:
85
169
  - info@codeandeffect.com
@@ -105,7 +189,8 @@ files:
105
189
  - config/email_templates_mailer_preview.rb
106
190
  - config/routes.rb
107
191
  - config/welcome.liquid
108
- - db/migrate/01_create_effective_email_templates.rb.erb
192
+ - db/migrate/101_create_effective_email_templates.rb
193
+ - db/seeds.rb
109
194
  - lib/effective_email_templates.rb
110
195
  - lib/effective_email_templates/engine.rb
111
196
  - lib/effective_email_templates/importer.rb
@@ -132,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
217
  - !ruby/object:Gem::Version
133
218
  version: '0'
134
219
  requirements: []
135
- rubygems_version: 3.1.2
220
+ rubygems_version: 3.3.7
136
221
  signing_key:
137
222
  specification_version: 4
138
223
  summary: Effective Email Templates provides an admin access to modify email templates