wco_hosting 0.0.0.8 → 0.0.0.11

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: 4392db5beeeaeb606256e3790d1909af42e63d3fcf1cfa6d7289765fb3dc3a55
4
- data.tar.gz: bfb7dcb5d0985052165a3f58eddbd5467cc55c9f5aca932c0d6a776e45e03137
3
+ metadata.gz: 98ccae0b6a973a31d4cd49a79a33501d43ba7dd63c7070fd569a22c4c3802589
4
+ data.tar.gz: 9960b5f6653404cfc8ed4b1234f467a6393afed651935d6406a9cc1cfc156e4b
5
5
  SHA512:
6
- metadata.gz: 96bc7a1fcef16b03ef6f980ddc4ab94c4d28afeb2a070d200ed7fef4e2bfd9d9c01c00cf01aaf2d3185a33f4d20cff3ebe94074a79256ca12e928c9d584dc5c7
7
- data.tar.gz: 1d64445aaf24fa7d9cf2af35323e8f6f9273568233f87ee582d959eb168bd298f2300888b69d401b3d82f9a0e8949d5008f99ccfc7bdae6c2f3ef70051eaa11b
6
+ metadata.gz: b13927bf4489a86187733c4381fbc885a6138fb63b731d48c3d4c4f20461102d86b8e2ff16103bc573bc84b099e843dacee0c81c2aa123cadee2ed2fc6c0580c
7
+ data.tar.gz: 1e275765c7be6d51198398671a0f6f1fe9218f6c1cf7c14d91207cf34f07a087c3428d43669f4587f5ed4c79d0bba5788dff69b30541df05770233f94b6ce675
@@ -7,7 +7,12 @@ class WcoHosting::ApplianceTmplsController < WcoHosting::ApplicationController
7
7
  @appliance_tmpl = WcoHosting::ApplianceTmpl.new params[:tmpl].permit!
8
8
  authorize! :create, @appliance_tmpl
9
9
 
10
- @appliance_tmpl.price_id = Wco::Price.find( params[:tmpl][:wco_price_id] ).price_id
10
+ price = Wco::Price.find( params[:tmpl][:price] )
11
+ price.product = @appliance_tmpl
12
+ price.save
13
+
14
+ params[:tmpl][:price_id] = price.price_id
15
+ params[:tmpl][:price] = price
11
16
 
12
17
  flag = @appliance_tmpl.save
13
18
  if flag
@@ -23,9 +23,12 @@
23
23
  %li= link_to 'Serverhosts', serverhosts_path
24
24
  %hr
25
25
 
26
- = render '/wco/application/alerts_notices'
26
+ = render '/wco/alerts_notices'
27
27
  %hr
28
28
 
29
29
  = yield
30
30
  %hr
31
31
 
32
+ %script{:src => "https://js.stripe.com/v3/"}
33
+ :javascript
34
+ stripe = Stripe('#{::STRIPE_PK}', { apiVersion: '2020-08-27' });
data/lib/wco_hosting.rb CHANGED
@@ -1,7 +1,10 @@
1
1
 
2
2
  require 'cancancan'
3
+
3
4
  require 'haml'
4
5
 
6
+ require 'sass'
7
+
5
8
  require "wco_hosting/engine"
6
9
 
7
10
  ## From: https://github.com/rails/rails/issues/30701
metadata CHANGED
@@ -1,197 +1,197 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_hosting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.8
4
+ version: 0.0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: cancancan
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.7
19
+ version: 3.5.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: 6.1.7
26
+ version: 3.5.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: haml
28
+ name: devise
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.3.0
33
+ version: 4.9.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.3.0
40
+ version: 4.9.3
41
41
  - !ruby/object:Gem::Dependency
42
- name: sass-rails
42
+ name: haml
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.0'
47
+ version: 6.3.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5.0'
54
+ version: 6.3.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: devise
56
+ name: kaminari-mongoid
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 4.9.3
61
+ version: 1.0.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 4.9.3
68
+ version: 1.0.1
69
69
  - !ruby/object:Gem::Dependency
70
- name: cancancan
70
+ name: mongoid
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.5.0
75
+ version: 7.3.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.5.0
82
+ version: 7.3.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: wco_models
84
+ name: mongoid_paranoia
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.1'
89
+ version: 0.6.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.1'
96
+ version: 0.6.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: mongoid
98
+ name: mongoid-autoinc
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 7.3.0
103
+ version: 6.0.3
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 7.3.0
110
+ version: 6.0.3
111
111
  - !ruby/object:Gem::Dependency
112
- name: mongoid_paranoia
112
+ name: mongoid-paperclip
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.6.0
117
+ version: 0.1.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.6.0
124
+ version: 0.1.0
125
125
  - !ruby/object:Gem::Dependency
126
- name: mongoid-autoinc
126
+ name: net-ssh
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 6.0.3
131
+ version: 7.2.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 6.0.3
138
+ version: 7.2.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: mongoid-paperclip
140
+ name: net-scp
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.1.0
145
+ version: 4.0.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.1.0
152
+ version: 4.0.0
153
153
  - !ruby/object:Gem::Dependency
154
- name: kaminari-mongoid
154
+ name: rails
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.0.1
159
+ version: 6.1.7
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.0.1
166
+ version: 6.1.7
167
167
  - !ruby/object:Gem::Dependency
168
- name: net-ssh
168
+ name: sass
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 7.2.0
173
+ version: '0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 7.2.0
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: net-scp
182
+ name: sass-rails
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 4.0.0
187
+ version: '6.0'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 4.0.0
194
+ version: '6.0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: stripe
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: 10.4.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: wco_models
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '3.1'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '3.1'
209
223
  description: https://wasya.co
210
224
  email:
211
225
  - victor@wasya.co