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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 617bf84cd268dce5a6068ba83f184ee09fc157f5aaeb86630aabebd67cb6b47b
4
- data.tar.gz: bc44f80525ff425092b5815040a327d7df9cb4b39be832ca5d4673c0e45d47fd
3
+ metadata.gz: d724bec20bdf5d0f6b8b7e28906071a62975e586bef2cfe5d735e854776505b1
4
+ data.tar.gz: d7224850090ee1ecf22592cfb259a78aaca21870a49b936c5261e5ec773cf3a1
5
5
  SHA512:
6
- metadata.gz: a896224f669a8eab3c09b947006e73a050995f92a0cde9c74e4bda4d376df30da27b03397b634a0c7a6702cb6264399946f214a7f1313537871167837a49c306
7
- data.tar.gz: a1b31ff59f6eeeba10be093d373d4fca1242c88c437d7eafa80f986dc5fefe8fc2834732f1ef6a703a0509adcb0b68e539d2e71d763a597d6f0b71fd57f91e59
6
+ metadata.gz: 204f102f23dfb2abbb42ae3280f622f31a57c709e586cf04027be540e550ed3c7307f8679b8327257115f94fe87c7620a550c3e2598133e83db14d5ff0926548
7
+ data.tar.gz: af680567fc7a177217cf70a679f20775b4bbb1c94e6f1946822653b0fa88b9a3f48ea149b263543d9096019e72a53a228d0123a1991c8bc67eadaa2f81c14ce3
@@ -0,0 +1,3 @@
1
+ Hola::Engine.routes.draw do
2
+ get "test", to: "hola#test"
3
+ end
@@ -0,0 +1,5 @@
1
+ class HolaController < ApplicationController
2
+ def test
3
+ puts 'This is the test'
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Hola
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Hola
4
+ end
5
+ end
data/lib/hola.rb ADDED
@@ -0,0 +1,14 @@
1
+ class Hola
2
+ def self.hi
3
+ puts "Hello world!"
4
+ end
5
+
6
+ def self.test
7
+ puts"test"
8
+ end
9
+ end
10
+
11
+
12
+ require 'lib/hola/engine'
13
+ require 'lib/hola/config/routes'
14
+ require 'lib/hola/controllers/hola_controller'
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.24
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-07 00:00:00.000000000 Z
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/domain_handler/app/controllers/domain_controller.rb
34
- - lib/domain_handler/config/initializers/domain_handler.rb
35
- - lib/domain_handler/config/routes.rb
36
- - lib/domain_handler/domain_handler.rb
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
@@ -1,5 +0,0 @@
1
- Rails.application.config.to_prepare do
2
- Dir.glob(File.join(File.dirname(__FILE__), '../../app/controllers/**/*.rb')).each do |c|
3
- require_dependency(c)
4
- end
5
- end
@@ -1,7 +0,0 @@
1
- DomainHandler::Engine.routes.draw do
2
- get '*path', to: 'domain#test'
3
- post '/domains-update', to: 'domain#domains_update'
4
- post '/domain-handler/domains-update', to: 'domain#domains_update'
5
- post '*path', to: 'domain#test'
6
- end
7
-
@@ -1,3 +0,0 @@
1
- module DomainHandler
2
-
3
- end
@@ -1,5 +0,0 @@
1
- class DomainHandler::Engine < Rails::Engine
2
- isolate_namespace DomainHandler
3
-
4
- end
5
-