Domain_Handler 0.0.24 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hola/config/routes.rb +3 -0
- data/lib/hola/controllers/hola_controller.rb +5 -0
- data/lib/hola/engine.rb +5 -0
- data/lib/hola.rb +14 -0
- metadata +6 -7
- data/lib/domain_handler/app/controllers/domain_controller.rb +0 -39
- data/lib/domain_handler/config/initializers/domain_handler.rb +0 -5
- data/lib/domain_handler/config/routes.rb +0 -7
- data/lib/domain_handler/domain_handler.rb +0 -3
- data/lib/domain_handler/engine.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d724bec20bdf5d0f6b8b7e28906071a62975e586bef2cfe5d735e854776505b1
|
4
|
+
data.tar.gz: d7224850090ee1ecf22592cfb259a78aaca21870a49b936c5261e5ec773cf3a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 204f102f23dfb2abbb42ae3280f622f31a57c709e586cf04027be540e550ed3c7307f8679b8327257115f94fe87c7620a550c3e2598133e83db14d5ff0926548
|
7
|
+
data.tar.gz: af680567fc7a177217cf70a679f20775b4bbb1c94e6f1946822653b0fa88b9a3f48ea149b263543d9096019e72a53a228d0123a1991c8bc67eadaa2f81c14ce3
|
data/lib/hola/engine.rb
ADDED
data/lib/hola.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Domain_Handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arun Sahu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,11 +30,10 @@ executables: []
|
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
|
-
- lib/
|
34
|
-
- lib/
|
35
|
-
- lib/
|
36
|
-
- lib/
|
37
|
-
- lib/domain_handler/engine.rb
|
33
|
+
- lib/hola.rb
|
34
|
+
- lib/hola/config/routes.rb
|
35
|
+
- lib/hola/controllers/hola_controller.rb
|
36
|
+
- lib/hola/engine.rb
|
38
37
|
homepage: https://rubygems.org
|
39
38
|
licenses:
|
40
39
|
- MIT
|
@@ -1,39 +0,0 @@
|
|
1
|
-
|
2
|
-
class DomainController < ApplicationController
|
3
|
-
before_action :set_shop, except: [:theme_publish, :theme_update]
|
4
|
-
|
5
|
-
def domains_create(params, shop_id)
|
6
|
-
return if Domain.where(domain_id: params[:id]).exists?
|
7
|
-
|
8
|
-
Domain.new(
|
9
|
-
domain_id: params[:id],
|
10
|
-
host: params[:host],
|
11
|
-
ssl_enabled: params[:ssl_enabled],
|
12
|
-
localization: params[:localization].to_json,
|
13
|
-
market_web_presence: params[:marketWebPresence].to_json,
|
14
|
-
url: params[:url],
|
15
|
-
shop_id: shop_id
|
16
|
-
).save
|
17
|
-
end
|
18
|
-
|
19
|
-
def domains_update(params)
|
20
|
-
puts "DOMAIN IS UPDATING"
|
21
|
-
# domain = Domain.find_by(domain_id: params[:id])
|
22
|
-
# return if domain.nil?
|
23
|
-
|
24
|
-
# domain.update(
|
25
|
-
# host: params[:host],
|
26
|
-
# ssl_enabled: params[:ssl_enabled],
|
27
|
-
# localization: params[:localization].to_json
|
28
|
-
# )
|
29
|
-
end
|
30
|
-
|
31
|
-
def domains_delete(params)
|
32
|
-
Domain.delete(params[:id])
|
33
|
-
end
|
34
|
-
|
35
|
-
def test
|
36
|
-
puts "This is test"
|
37
|
-
head :ok
|
38
|
-
end
|
39
|
-
end
|