app_manager 2.4.7 → 2.4.9
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +64 -64
- data/lib/app_manager/fail_safe.rb +24 -3
- data/lib/app_manager/version.rb +1 -1
- data/lib/generators/app_manager/install/install_generator.rb +8 -0
- data/lib/generators/app_manager/install/templates/add_note_and_highlights_to_plans.erb +6 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 780ea3a314f3ecab02c5727261456643a0579dab2b12f483cfe656c57734dde5
|
|
4
|
+
data.tar.gz: 95001a1ddf18b5f78a08aea43db48dd4001527002db7e3a5a0bebeda124eaf61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b2525bff10a02d08d01261b8be7fd19b081562be0187ef7934ae2b53fae5a12fed9c8d85fae8890a540938ea6bcb8cbd6c3d4543307567007cfb63aa7320160
|
|
7
|
+
data.tar.gz: d6dc71cdc4f4082909e2b37f3cd8dc6c9e3ff8121092fbeca043f5b3de4ddea3ef29e6ae7d9f779129ace50b3346de876138a45881d34c5baf403e3c687d2321
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
app_manager (2.4.
|
|
4
|
+
app_manager (2.4.9)
|
|
5
5
|
activerecord-import (~> 1.4)
|
|
6
6
|
httparty
|
|
7
7
|
kaminari (>= 0.16.3)
|
|
@@ -10,31 +10,31 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
action_text-trix (2.1.
|
|
13
|
+
action_text-trix (2.1.18)
|
|
14
14
|
railties
|
|
15
|
-
actioncable (8.1.
|
|
16
|
-
actionpack (= 8.1.
|
|
17
|
-
activesupport (= 8.1.
|
|
15
|
+
actioncable (8.1.3)
|
|
16
|
+
actionpack (= 8.1.3)
|
|
17
|
+
activesupport (= 8.1.3)
|
|
18
18
|
nio4r (~> 2.0)
|
|
19
19
|
websocket-driver (>= 0.6.1)
|
|
20
20
|
zeitwerk (~> 2.6)
|
|
21
|
-
actionmailbox (8.1.
|
|
22
|
-
actionpack (= 8.1.
|
|
23
|
-
activejob (= 8.1.
|
|
24
|
-
activerecord (= 8.1.
|
|
25
|
-
activestorage (= 8.1.
|
|
26
|
-
activesupport (= 8.1.
|
|
21
|
+
actionmailbox (8.1.3)
|
|
22
|
+
actionpack (= 8.1.3)
|
|
23
|
+
activejob (= 8.1.3)
|
|
24
|
+
activerecord (= 8.1.3)
|
|
25
|
+
activestorage (= 8.1.3)
|
|
26
|
+
activesupport (= 8.1.3)
|
|
27
27
|
mail (>= 2.8.0)
|
|
28
|
-
actionmailer (8.1.
|
|
29
|
-
actionpack (= 8.1.
|
|
30
|
-
actionview (= 8.1.
|
|
31
|
-
activejob (= 8.1.
|
|
32
|
-
activesupport (= 8.1.
|
|
28
|
+
actionmailer (8.1.3)
|
|
29
|
+
actionpack (= 8.1.3)
|
|
30
|
+
actionview (= 8.1.3)
|
|
31
|
+
activejob (= 8.1.3)
|
|
32
|
+
activesupport (= 8.1.3)
|
|
33
33
|
mail (>= 2.8.0)
|
|
34
34
|
rails-dom-testing (~> 2.2)
|
|
35
|
-
actionpack (8.1.
|
|
36
|
-
actionview (= 8.1.
|
|
37
|
-
activesupport (= 8.1.
|
|
35
|
+
actionpack (8.1.3)
|
|
36
|
+
actionview (= 8.1.3)
|
|
37
|
+
activesupport (= 8.1.3)
|
|
38
38
|
nokogiri (>= 1.8.5)
|
|
39
39
|
rack (>= 2.2.4)
|
|
40
40
|
rack-session (>= 1.0.1)
|
|
@@ -42,38 +42,38 @@ GEM
|
|
|
42
42
|
rails-dom-testing (~> 2.2)
|
|
43
43
|
rails-html-sanitizer (~> 1.6)
|
|
44
44
|
useragent (~> 0.16)
|
|
45
|
-
actiontext (8.1.
|
|
45
|
+
actiontext (8.1.3)
|
|
46
46
|
action_text-trix (~> 2.1.15)
|
|
47
|
-
actionpack (= 8.1.
|
|
48
|
-
activerecord (= 8.1.
|
|
49
|
-
activestorage (= 8.1.
|
|
50
|
-
activesupport (= 8.1.
|
|
47
|
+
actionpack (= 8.1.3)
|
|
48
|
+
activerecord (= 8.1.3)
|
|
49
|
+
activestorage (= 8.1.3)
|
|
50
|
+
activesupport (= 8.1.3)
|
|
51
51
|
globalid (>= 0.6.0)
|
|
52
52
|
nokogiri (>= 1.8.5)
|
|
53
|
-
actionview (8.1.
|
|
54
|
-
activesupport (= 8.1.
|
|
53
|
+
actionview (8.1.3)
|
|
54
|
+
activesupport (= 8.1.3)
|
|
55
55
|
builder (~> 3.1)
|
|
56
56
|
erubi (~> 1.11)
|
|
57
57
|
rails-dom-testing (~> 2.2)
|
|
58
58
|
rails-html-sanitizer (~> 1.6)
|
|
59
|
-
activejob (8.1.
|
|
60
|
-
activesupport (= 8.1.
|
|
59
|
+
activejob (8.1.3)
|
|
60
|
+
activesupport (= 8.1.3)
|
|
61
61
|
globalid (>= 0.3.6)
|
|
62
|
-
activemodel (8.1.
|
|
63
|
-
activesupport (= 8.1.
|
|
64
|
-
activerecord (8.1.
|
|
65
|
-
activemodel (= 8.1.
|
|
66
|
-
activesupport (= 8.1.
|
|
62
|
+
activemodel (8.1.3)
|
|
63
|
+
activesupport (= 8.1.3)
|
|
64
|
+
activerecord (8.1.3)
|
|
65
|
+
activemodel (= 8.1.3)
|
|
66
|
+
activesupport (= 8.1.3)
|
|
67
67
|
timeout (>= 0.4.0)
|
|
68
68
|
activerecord-import (1.8.1)
|
|
69
69
|
activerecord (>= 4.2)
|
|
70
|
-
activestorage (8.1.
|
|
71
|
-
actionpack (= 8.1.
|
|
72
|
-
activejob (= 8.1.
|
|
73
|
-
activerecord (= 8.1.
|
|
74
|
-
activesupport (= 8.1.
|
|
70
|
+
activestorage (8.1.3)
|
|
71
|
+
actionpack (= 8.1.3)
|
|
72
|
+
activejob (= 8.1.3)
|
|
73
|
+
activerecord (= 8.1.3)
|
|
74
|
+
activesupport (= 8.1.3)
|
|
75
75
|
marcel (~> 1.0)
|
|
76
|
-
activesupport (8.1.
|
|
76
|
+
activesupport (8.1.3)
|
|
77
77
|
base64
|
|
78
78
|
bigdecimal
|
|
79
79
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -103,7 +103,7 @@ GEM
|
|
|
103
103
|
diff-lcs (1.6.2)
|
|
104
104
|
dotenv (2.1.2)
|
|
105
105
|
drb (2.2.3)
|
|
106
|
-
erb (6.0.
|
|
106
|
+
erb (6.0.4)
|
|
107
107
|
erubi (1.13.1)
|
|
108
108
|
globalid (1.3.0)
|
|
109
109
|
activesupport (>= 6.1)
|
|
@@ -115,12 +115,12 @@ GEM
|
|
|
115
115
|
i18n (1.14.8)
|
|
116
116
|
concurrent-ruby (~> 1.0)
|
|
117
117
|
io-console (0.8.2)
|
|
118
|
-
irb (1.
|
|
118
|
+
irb (1.18.0)
|
|
119
119
|
pp (>= 0.6.0)
|
|
120
120
|
prism (>= 1.3.0)
|
|
121
121
|
rdoc (>= 4.0.0)
|
|
122
122
|
reline (>= 0.4.2)
|
|
123
|
-
json (2.19.
|
|
123
|
+
json (2.19.5)
|
|
124
124
|
kaminari (1.2.2)
|
|
125
125
|
activesupport (>= 4.1.0)
|
|
126
126
|
kaminari-actionview (= 1.2.2)
|
|
@@ -146,12 +146,12 @@ GEM
|
|
|
146
146
|
marcel (1.1.0)
|
|
147
147
|
method_source (1.1.0)
|
|
148
148
|
mini_mime (1.1.5)
|
|
149
|
-
minitest (6.0.
|
|
149
|
+
minitest (6.0.6)
|
|
150
150
|
drb (~> 2.0)
|
|
151
151
|
prism (~> 1.5)
|
|
152
|
-
multi_xml (0.
|
|
152
|
+
multi_xml (0.9.1)
|
|
153
153
|
bigdecimal (>= 3.1, < 5)
|
|
154
|
-
net-imap (0.6.
|
|
154
|
+
net-imap (0.6.4)
|
|
155
155
|
date
|
|
156
156
|
net-protocol
|
|
157
157
|
net-pop (0.1.2)
|
|
@@ -161,7 +161,7 @@ GEM
|
|
|
161
161
|
net-smtp (0.5.1)
|
|
162
162
|
net-protocol
|
|
163
163
|
nio4r (2.7.5)
|
|
164
|
-
nokogiri (1.19.
|
|
164
|
+
nokogiri (1.19.3-x86_64-linux-gnu)
|
|
165
165
|
racc (~> 1.4)
|
|
166
166
|
pp (0.6.3)
|
|
167
167
|
prettyprint
|
|
@@ -176,28 +176,28 @@ GEM
|
|
|
176
176
|
stringio
|
|
177
177
|
public_suffix (7.0.2)
|
|
178
178
|
racc (1.8.1)
|
|
179
|
-
rack (3.2.
|
|
180
|
-
rack-session (2.1.
|
|
179
|
+
rack (3.2.6)
|
|
180
|
+
rack-session (2.1.2)
|
|
181
181
|
base64 (>= 0.1.0)
|
|
182
182
|
rack (>= 3.0.0)
|
|
183
183
|
rack-test (2.2.0)
|
|
184
184
|
rack (>= 1.3)
|
|
185
185
|
rackup (2.3.1)
|
|
186
186
|
rack (>= 3)
|
|
187
|
-
rails (8.1.
|
|
188
|
-
actioncable (= 8.1.
|
|
189
|
-
actionmailbox (= 8.1.
|
|
190
|
-
actionmailer (= 8.1.
|
|
191
|
-
actionpack (= 8.1.
|
|
192
|
-
actiontext (= 8.1.
|
|
193
|
-
actionview (= 8.1.
|
|
194
|
-
activejob (= 8.1.
|
|
195
|
-
activemodel (= 8.1.
|
|
196
|
-
activerecord (= 8.1.
|
|
197
|
-
activestorage (= 8.1.
|
|
198
|
-
activesupport (= 8.1.
|
|
187
|
+
rails (8.1.3)
|
|
188
|
+
actioncable (= 8.1.3)
|
|
189
|
+
actionmailbox (= 8.1.3)
|
|
190
|
+
actionmailer (= 8.1.3)
|
|
191
|
+
actionpack (= 8.1.3)
|
|
192
|
+
actiontext (= 8.1.3)
|
|
193
|
+
actionview (= 8.1.3)
|
|
194
|
+
activejob (= 8.1.3)
|
|
195
|
+
activemodel (= 8.1.3)
|
|
196
|
+
activerecord (= 8.1.3)
|
|
197
|
+
activestorage (= 8.1.3)
|
|
198
|
+
activesupport (= 8.1.3)
|
|
199
199
|
bundler (>= 1.15.0)
|
|
200
|
-
railties (= 8.1.
|
|
200
|
+
railties (= 8.1.3)
|
|
201
201
|
rails-dom-testing (2.3.0)
|
|
202
202
|
activesupport (>= 5.0.0)
|
|
203
203
|
minitest
|
|
@@ -205,9 +205,9 @@ GEM
|
|
|
205
205
|
rails-html-sanitizer (1.7.0)
|
|
206
206
|
loofah (~> 2.25)
|
|
207
207
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
208
|
-
railties (8.1.
|
|
209
|
-
actionpack (= 8.1.
|
|
210
|
-
activesupport (= 8.1.
|
|
208
|
+
railties (8.1.3)
|
|
209
|
+
actionpack (= 8.1.3)
|
|
210
|
+
activesupport (= 8.1.3)
|
|
211
211
|
irb (~> 1.13)
|
|
212
212
|
rackup (>= 1.0.0)
|
|
213
213
|
rake (>= 12.2)
|
|
@@ -105,6 +105,8 @@ module AppManager
|
|
|
105
105
|
interval = plan["interval"].each { |e| e } if plan["interval"] rescue {}
|
|
106
106
|
shopify_plans = plan["shopify_plans"].map { |e| e.to_h } if plan["shopify_plans"] rescue []
|
|
107
107
|
affiliate = plan["affiliate"].map { |e| e.to_h } if plan["affiliate"] rescue []
|
|
108
|
+
highlights = plan["highlights"].map { |e| e.to_h } if plan["highlights"] rescue []
|
|
109
|
+
note = plan["note"] if plan["note"] rescue nil
|
|
108
110
|
features = plan["features"].map { |e| e.to_h } rescue []
|
|
109
111
|
plan_test = plan['test'].nil? ? 0 : plan['test']
|
|
110
112
|
is_custom = plan['is_custom'] ? 1 : 0
|
|
@@ -113,7 +115,22 @@ module AppManager
|
|
|
113
115
|
choose_later_plan = plan['choose_later_plan'] ? 1 : 0
|
|
114
116
|
is_external_charge = plan['is_external_charge'] ? 1 : 0
|
|
115
117
|
if !plan["id"].nil?
|
|
116
|
-
|
|
118
|
+
plan_attrs = {
|
|
119
|
+
plan_id: plan["id"], type: plan["type"], name: plan["name"], price: plan["price"],
|
|
120
|
+
offer_text: plan["offer_text"], description: plan["description"], interval: interval,
|
|
121
|
+
shopify_plans: shopify_plans, trial_days: plan["trial_days"], test: plan_test,
|
|
122
|
+
on_install: plan["on_install"], is_custom: is_custom, app_id: plan["app_id"],
|
|
123
|
+
base_plan: plan["base_plan"], created_at: plan["created_at"], updated_at: plan["updated_at"],
|
|
124
|
+
public: public_val, discount: plan["discount"], cycle_count: plan["cycle_count"],
|
|
125
|
+
store_base_plan: store_base_plan, choose_later_plan: choose_later_plan,
|
|
126
|
+
discount_type: plan["discount_type"], affiliate: affiliate, features: features,
|
|
127
|
+
deleted_at: plan["deleted_at"], is_external_charge: plan["is_external_charge"],
|
|
128
|
+
external_charge_limit: plan["external_charge_limit"], terms: plan["terms"]
|
|
129
|
+
}
|
|
130
|
+
plan_columns = AppManager::Plan.column_names
|
|
131
|
+
plan_attrs[:highlights] = highlights if plan_columns.include?('highlights')
|
|
132
|
+
plan_attrs[:note] = note if plan_columns.include?('note')
|
|
133
|
+
plan_data << AppManager::Plan.new(plan_attrs)
|
|
117
134
|
end
|
|
118
135
|
end
|
|
119
136
|
AppManager::Plan.bulk_import plan_data
|
|
@@ -392,12 +409,17 @@ module AppManager
|
|
|
392
409
|
value = safe_parse_json(value)
|
|
393
410
|
value = value.each { |e| e.delete("id") }.each { |e| e.delete("created_at") }.each { |e| e.delete("updated_at") }
|
|
394
411
|
new_plan[key] = value
|
|
412
|
+
elsif ['highlights'].include?(key)
|
|
413
|
+
value = safe_parse_json(value)
|
|
414
|
+
value = value.each { |e| e.delete("id") }.each { |e| e.delete("created_at") }.each { |e| e.delete("updated_at") }
|
|
415
|
+
new_plan[key] = value
|
|
395
416
|
elsif ['plan_id'].include?(key)
|
|
396
417
|
# puts value.inspect
|
|
397
418
|
new_plan["id"] = value if value rescue {}
|
|
398
419
|
else
|
|
399
420
|
new_plan[key] = value unless key.class == Integer
|
|
400
421
|
end
|
|
422
|
+
new_plan["failsafe"] = true
|
|
401
423
|
end
|
|
402
424
|
plans_data.push(new_plan)
|
|
403
425
|
end
|
|
@@ -477,7 +499,7 @@ module AppManager
|
|
|
477
499
|
if ['interval'].include?(key)
|
|
478
500
|
val = safe_parse_json(value)
|
|
479
501
|
new_plan[key] = val
|
|
480
|
-
elsif ['shopify_plans', 'affiliate', 'features'].include?(key)
|
|
502
|
+
elsif ['shopify_plans', 'affiliate', 'features', 'note', 'highlights'].include?(key)
|
|
481
503
|
new_plan[key] = safe_parse_json(value)
|
|
482
504
|
elsif ['is_custom', 'public', 'store_base_plan', 'choose_later_plan'].include?(key)
|
|
483
505
|
new_plan[key] = (value == 0 || value == false ? false : true)
|
|
@@ -514,7 +536,6 @@ module AppManager
|
|
|
514
536
|
end
|
|
515
537
|
|
|
516
538
|
end
|
|
517
|
-
|
|
518
539
|
return plan_data
|
|
519
540
|
end
|
|
520
541
|
|
data/lib/app_manager/version.rb
CHANGED
|
@@ -55,6 +55,14 @@ module AppManager
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
def create_note_and_highlights_to_plans_migration
|
|
59
|
+
if self.class.migration_exists?("db/app_manager", "add_note_and_highlights_to_plans")
|
|
60
|
+
say_status("skipped", "Migration add_note_and_highlights_to_plans.rb already exists")
|
|
61
|
+
else
|
|
62
|
+
migration_template("add_note_and_highlights_to_plans.erb", "db/app_manager/add_note_and_highlights_to_plans.rb")
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
58
66
|
|
|
59
67
|
private
|
|
60
68
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
class AddNoteAndHighlightsToPlans < ActiveRecord::Migration[<%= rails_migration_version %>]
|
|
2
|
+
def change
|
|
3
|
+
add_column :plans, :note, :string unless column_exists?(:plans, :note)
|
|
4
|
+
add_column :plans, :highlights, :text unless column_exists?(:plans, :highlights)
|
|
5
|
+
end
|
|
6
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: app_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rahul Tiwari @ Hulkapps
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -127,6 +127,7 @@ files:
|
|
|
127
127
|
- lib/generators/app_manager/install/templates/add_discount_tables.erb
|
|
128
128
|
- lib/generators/app_manager/install/templates/add_external_charge_field.erb
|
|
129
129
|
- lib/generators/app_manager/install/templates/add_is_global_to_plans.erb
|
|
130
|
+
- lib/generators/app_manager/install/templates/add_note_and_highlights_to_plans.erb
|
|
130
131
|
- lib/generators/app_manager/install/templates/add_plan_trial_grandfathered_to_shops.erb
|
|
131
132
|
- lib/generators/app_manager/install/templates/app_manager.rb.tt
|
|
132
133
|
- lib/generators/app_manager/install/templates/failsafe_tables.erb
|
|
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
148
149
|
- !ruby/object:Gem::Version
|
|
149
150
|
version: '0'
|
|
150
151
|
requirements: []
|
|
151
|
-
rubygems_version: 3.5.
|
|
152
|
+
rubygems_version: 3.5.14
|
|
152
153
|
signing_key:
|
|
153
154
|
specification_version: 4
|
|
154
155
|
summary: An API wrapper of Hulkapps AppManager portal
|