cama_subscriber 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/controllers/plugins/cama_subscriber/admin_controller.rb +13 -0
- data/app/controllers/plugins/cama_subscriber/front_controller.rb +101 -0
- data/app/controllers/plugins/cama_subscriber/groups_controller.rb +46 -0
- data/app/controllers/plugins/cama_subscriber/items_controller.rb +56 -0
- data/app/controllers/plugins/cama_subscriber/promotions_controller.rb +94 -0
- data/app/helpers/plugins/cama_subscriber/main_helper.rb +35 -0
- data/app/models/plugins/cama_subscriber/group.rb +5 -0
- data/app/models/plugins/cama_subscriber/group_item.rb +4 -0
- data/app/models/plugins/cama_subscriber/item.rb +43 -0
- data/app/models/plugins/cama_subscriber/promotion.rb +27 -0
- data/app/models/plugins/cama_subscriber/promotion_group.rb +4 -0
- data/app/models/plugins/cama_subscriber/promotion_item.rb +11 -0
- data/app/models/plugins/cama_subscriber.rb +13 -0
- data/app/views/plugins/cama_subscriber/admin/index.html.erb +9 -0
- data/app/views/plugins/cama_subscriber/admin/settings.html.erb +27 -0
- data/app/views/plugins/cama_subscriber/front/index.html.erb +2 -0
- data/app/views/plugins/cama_subscriber/groups/form.html.erb +17 -0
- data/app/views/plugins/cama_subscriber/groups/index.html.erb +124 -0
- data/app/views/plugins/cama_subscriber/items/form.html.erb +27 -0
- data/app/views/plugins/cama_subscriber/items/index.html.erb +52 -0
- data/app/views/plugins/cama_subscriber/items/show.html.erb +25 -0
- data/app/views/plugins/cama_subscriber/layouts/readme.txt +2 -0
- data/app/views/plugins/cama_subscriber/promotions/form.html.erb +65 -0
- data/app/views/plugins/cama_subscriber/promotions/form_test.html.erb +18 -0
- data/app/views/plugins/cama_subscriber/promotions/index.html.erb +55 -0
- data/app/views/plugins/cama_subscriber/promotions/show.html.erb +25 -0
- data/config/camaleon_plugin.json +19 -0
- data/config/initializers/custom_models.rb +7 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/es.yml +112 -0
- data/config/routes.rb +39 -0
- data/db/migrate/20160319112345_subscriber_structure.rb +65 -0
- data/lib/1x1.png +0 -0
- data/lib/cama_subscriber/engine.rb +4 -0
- data/lib/cama_subscriber/version.rb +3 -0
- data/lib/cama_subscriber.rb +4 -0
- data/lib/tasks/cama_subscriber_tasks.rake +4 -0
- metadata +112 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
class SubscriberStructure < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :plugins_subscriber_groups do |t|
|
4
|
+
t.string :name
|
5
|
+
t.string :key
|
6
|
+
|
7
|
+
t.boolean :send_welcome
|
8
|
+
t.string :welcome_subject
|
9
|
+
t.text :welcome_msg
|
10
|
+
|
11
|
+
t.boolean :send_left_group
|
12
|
+
t.string :left_subject
|
13
|
+
t.text :left_msg
|
14
|
+
|
15
|
+
t.belongs_to :site, index: true
|
16
|
+
t.timestamps
|
17
|
+
end
|
18
|
+
|
19
|
+
create_table :plugins_subscriber_group_items do |t|
|
20
|
+
t.belongs_to :group, index: true
|
21
|
+
t.belongs_to :item, index: true
|
22
|
+
t.string :status, default: 'active'
|
23
|
+
t.timestamps
|
24
|
+
end
|
25
|
+
|
26
|
+
create_table :plugins_subscriber_promotions do |t|
|
27
|
+
t.string :name
|
28
|
+
t.string :key
|
29
|
+
t.string :layout
|
30
|
+
t.string :template
|
31
|
+
|
32
|
+
t.string :email_from
|
33
|
+
t.string :email_cc
|
34
|
+
t.string :subject
|
35
|
+
t.text :content
|
36
|
+
|
37
|
+
t.string :status, default: 'pending' # pending / sent
|
38
|
+
|
39
|
+
t.belongs_to :site, index: true
|
40
|
+
t.timestamps
|
41
|
+
end
|
42
|
+
|
43
|
+
create_table :plugins_subscriber_promotion_items do |t|
|
44
|
+
t.belongs_to :promotion, index: true
|
45
|
+
t.belongs_to :item, index: true
|
46
|
+
t.integer :qty_opened, default: 0
|
47
|
+
t.string :status, default: 'pending'
|
48
|
+
t.timestamps
|
49
|
+
end
|
50
|
+
|
51
|
+
create_table :plugins_subscriber_promotion_groups do |t|
|
52
|
+
t.belongs_to :promotion, index: true
|
53
|
+
t.belongs_to :group, index: true
|
54
|
+
end
|
55
|
+
|
56
|
+
create_table :plugins_subscriber_items do |t|
|
57
|
+
t.string :name
|
58
|
+
t.string :email
|
59
|
+
t.string :status, default: 'approved'
|
60
|
+
t.datetime :unsubscribed_at
|
61
|
+
t.belongs_to :site, index: true
|
62
|
+
t.timestamps
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/lib/1x1.png
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cama_subscriber
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Owen Peredo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-31 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: sqlite3
|
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
|
+
description: ": Description of CamaSubscriber."
|
42
|
+
email:
|
43
|
+
- owenperedo@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- Rakefile
|
50
|
+
- app/controllers/plugins/cama_subscriber/admin_controller.rb
|
51
|
+
- app/controllers/plugins/cama_subscriber/front_controller.rb
|
52
|
+
- app/controllers/plugins/cama_subscriber/groups_controller.rb
|
53
|
+
- app/controllers/plugins/cama_subscriber/items_controller.rb
|
54
|
+
- app/controllers/plugins/cama_subscriber/promotions_controller.rb
|
55
|
+
- app/helpers/plugins/cama_subscriber/main_helper.rb
|
56
|
+
- app/models/plugins/cama_subscriber.rb
|
57
|
+
- app/models/plugins/cama_subscriber/group.rb
|
58
|
+
- app/models/plugins/cama_subscriber/group_item.rb
|
59
|
+
- app/models/plugins/cama_subscriber/item.rb
|
60
|
+
- app/models/plugins/cama_subscriber/promotion.rb
|
61
|
+
- app/models/plugins/cama_subscriber/promotion_group.rb
|
62
|
+
- app/models/plugins/cama_subscriber/promotion_item.rb
|
63
|
+
- app/views/plugins/cama_subscriber/admin/index.html.erb
|
64
|
+
- app/views/plugins/cama_subscriber/admin/settings.html.erb
|
65
|
+
- app/views/plugins/cama_subscriber/front/index.html.erb
|
66
|
+
- app/views/plugins/cama_subscriber/groups/form.html.erb
|
67
|
+
- app/views/plugins/cama_subscriber/groups/index.html.erb
|
68
|
+
- app/views/plugins/cama_subscriber/items/form.html.erb
|
69
|
+
- app/views/plugins/cama_subscriber/items/index.html.erb
|
70
|
+
- app/views/plugins/cama_subscriber/items/show.html.erb
|
71
|
+
- app/views/plugins/cama_subscriber/layouts/readme.txt
|
72
|
+
- app/views/plugins/cama_subscriber/promotions/form.html.erb
|
73
|
+
- app/views/plugins/cama_subscriber/promotions/form_test.html.erb
|
74
|
+
- app/views/plugins/cama_subscriber/promotions/index.html.erb
|
75
|
+
- app/views/plugins/cama_subscriber/promotions/show.html.erb
|
76
|
+
- config/camaleon_plugin.json
|
77
|
+
- config/initializers/custom_models.rb
|
78
|
+
- config/locales/en.yml
|
79
|
+
- config/locales/es.yml
|
80
|
+
- config/routes.rb
|
81
|
+
- db/migrate/20160319112345_subscriber_structure.rb
|
82
|
+
- lib/1x1.png
|
83
|
+
- lib/cama_subscriber.rb
|
84
|
+
- lib/cama_subscriber/engine.rb
|
85
|
+
- lib/cama_subscriber/version.rb
|
86
|
+
- lib/tasks/cama_subscriber_tasks.rake
|
87
|
+
homepage: ''
|
88
|
+
licenses:
|
89
|
+
- MIT
|
90
|
+
metadata: {}
|
91
|
+
post_install_message:
|
92
|
+
rdoc_options: []
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
requirements: []
|
106
|
+
rubyforge_project:
|
107
|
+
rubygems_version: 2.4.8
|
108
|
+
signing_key:
|
109
|
+
specification_version: 4
|
110
|
+
summary: ": Summary of CamaSubscriber."
|
111
|
+
test_files: []
|
112
|
+
has_rdoc:
|