alectrico-tbk 0.1.9.pre.beta.2 → 0.1.9.pre.beta.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb173ce643d23dfee4ed0bd925ed43f60e53d35c90306ccc72d4517619257d07
4
- data.tar.gz: 36342517b1d7a7d801a1fa1573e5154d716120a033a3e3d44a3f7d43a868690a
3
+ metadata.gz: 353ccb4a1a66211f2ae54a9c485f5c0a30c247ee8d9212b01ebb4fbdf8714be4
4
+ data.tar.gz: 111ae42308ec6377becbb4e5e80aeee9a70ea42763186939e3bd15a239f7b79d
5
5
  SHA512:
6
- metadata.gz: db6284aa942482a1c76cb1bc17cc79c61f6b5819ec89b3af1ad0723cc881832cd95b05e96a8b7e2fa0ca3c2d69ad9c498d5df766a4feac3efdd4597b5b7be836
7
- data.tar.gz: 53719d67580108ed528b9f2651edc881682fb35a96f77d508dc8b6717b47bc2ade554dd7cfa2d89155b3245df9466a2a09d9f9d357ece0120bf1fb36c94fb028
6
+ metadata.gz: b7b784c6aaf4de88d4d32f6a41ded135521a02cec9ec219ea7d7bdfa9f67169255d407224addb46c8a88f74183516496fe4948a1a5c0238bfa8c31c9bda67b13
7
+ data.tar.gz: 5b5916b901484be316edefc08a004be1a0aba4c6a6ea4110ca886a76b245a29dff2323656c5b53a046cec976305f513998f9de0af46bdf02c3ab265775f00b16
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,25 @@
1
- # lib/alectrico/tbk/railtie.rb
2
1
  module Alectrico
3
2
  module Tbk
4
3
  class Railtie < Rails::Railtie
4
+
5
+ initializer "alectrico_tbk.configure_rails_initialization" do |app|
6
+
7
+ # some initialization behavior
8
+ app.middleware.use Alectrico::Tbk::Middleware
9
+ puts "Middleware Alectrico::Tbk en uso"
10
+ end
11
+
12
+ config.to_prepare do
13
+ Alectrico::Tbk.setup!
14
+ end
15
+
16
+ rake_tasks do
17
+ load "alectrico/tbk/tasks/alectrico_tbk_link_genera.rake"
18
+ end
19
+
20
+ server do
21
+ #WebpackServer.start
22
+ end
5
23
  end
6
24
  end
7
25
  end
@@ -0,0 +1,12 @@
1
+ task spec: ["alectrico:tbk:link"]
2
+
3
+ namespace :alectrico do
4
+ namespace :tbk do
5
+ desc "Genera un link de pago tbk, WIP"
6
+ namespace :link do
7
+ task genera: :environment do
8
+ puts "Task: alectrico:tbk:link:genera"
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  module Alectrico
2
2
  module Tbk
3
- VERSION = "0.1.9.pre.beta.2"
3
+ VERSION = "0.1.9.pre.beta.4"
4
4
  end
5
5
  end
data/lib/alectrico/tbk.rb CHANGED
@@ -5,6 +5,7 @@ require 'alectrico/tbk/pago'
5
5
  require 'alectrico/tbk/payable'
6
6
  require 'alectrico/tbk/core_ext'
7
7
  require 'alectrico/tbk/middleware'
8
+ require 'alectrico/tbk/version'
8
9
  require "alectrico/tbk/railtie" if defined?(Rails::Railtie)
9
10
 
10
11
  module Alectrico
@@ -12,8 +13,14 @@ module Alectrico
12
13
  class Hola
13
14
  puts "alectrico® lo saluda :)"
14
15
  end
16
+ #Se supone qeu Prepara la gema en el hospedro
17
+ #peron cargas los tasks
15
18
  def self.setup!
16
- puts "En self.setup!"
19
+ #puts "En self.setup!"
20
+ #no las carga todas
21
+ #load "alectrico/tbk/tasks"
22
+ #load "alectrico/tbk/tasks/alectrico_tbk_link.rake"
23
+ #puts "tasks cargadas"
17
24
  end
18
25
  end
19
26
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alectrico-tbk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.pre.beta.2
4
+ version: 0.1.9.pre.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - alectrico®
@@ -109,12 +109,11 @@ files:
109
109
  - lib/alectrico.rb
110
110
  - lib/alectrico/tbk.rb
111
111
  - lib/alectrico/tbk/core_ext.rb
112
- - lib/alectrico/tbk/initializer.rb
113
112
  - lib/alectrico/tbk/middleware.rb
114
113
  - lib/alectrico/tbk/pago.rb
115
114
  - lib/alectrico/tbk/payable.rb
116
115
  - lib/alectrico/tbk/railtie.rb
117
- - lib/alectrico/tbk/tasks/alargar_token.rake
116
+ - lib/alectrico/tbk/tasks/alectrico_tbk_link_genera.rake
118
117
  - lib/alectrico/tbk/version.rb
119
118
  - lib/middleware.rb
120
119
  - lib/tasks/alectrico/tbk_tasks.rake
metadata.gz.sig CHANGED
Binary file
@@ -1,24 +0,0 @@
1
- module Alectrico
2
- class Tbk::Railtie < Rails::Railtie
3
-
4
- initializer "my_gem.configure_rails_initialization" do
5
-
6
- # some initialization behavior
7
- app.middleware.use Alectrico::Tbk::Middleware
8
- puts "Middleware Alectrico::Tbk en uso"
9
- end
10
-
11
- config.to_prepare do
12
- Alectrico::Tbk.setup!
13
- puts "Llamando a Alectrico::Tbk.setup"
14
- end
15
-
16
- rake_tasks do
17
- load "alectrico/tbk/tasks"
18
- end
19
-
20
- server do
21
- #WebpackServer.start
22
- end
23
- end
24
- end
@@ -1,11 +0,0 @@
1
- task spec: ["waba:token:alargar"]
2
-
3
- namespace :waba do
4
- desc "Ejemplo de tasks"
5
- namespace :token do
6
- task alargar: :environment do
7
- puts "Task: waba:token:alargar"
8
- end
9
- end
10
- end
11
-