wolas_channel 0.1.9 → 0.1.10
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/lib/wolas_channel/version.rb +1 -1
- data/lib/wolas_channel.rb +19 -0
- data/wolas_channel-0.1.9.gem +0 -0
- metadata +3 -3
- data/wolas_channel-0.1.8.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22bb4221f0fa1729a525079c8fb2c0c70918bd0b
|
|
4
|
+
data.tar.gz: cc46d3f6b1c395ed9cf0312ddbc6e1c8878949bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10921b2bb16cd98a5217f38b60cac6a00eaf199e40bae9e429d1d873c43610e3de2583412c378514540eaab6de27cb8380ebbe136a004392871832ba72245a54
|
|
7
|
+
data.tar.gz: 11aae290e06c3167b0c7cc3d68b712c003f14aca1638826576638e439c02540c8d2838dbb0c7c1718643787f7ec72f634b39cccf7344cf44492fec4918d76962
|
data/lib/wolas_channel.rb
CHANGED
|
@@ -42,6 +42,25 @@ class WolasChannel
|
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
# This method returns all the current channels for a tenant
|
|
46
|
+
def tenant_channels
|
|
47
|
+
begin
|
|
48
|
+
# Connect to the database
|
|
49
|
+
@connect = Connection.new.open
|
|
50
|
+
|
|
51
|
+
query = "SELECT `channels`.`channel_id`, `channels`.`type` FROM `channel`.`channels` \
|
|
52
|
+
WHERE `channels`.`tenant_id` = ?"
|
|
53
|
+
# This method performs the insert. Mysql2 does not return an object on a successful
|
|
54
|
+
# insert
|
|
55
|
+
result = prepare_exe(@connect, query, @tenant_id)
|
|
56
|
+
|
|
57
|
+
res = result.each { |r| r }
|
|
58
|
+
return res
|
|
59
|
+
ensure
|
|
60
|
+
@connect.close
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
45
64
|
# This method allows a tenant to return the name of channels, based on ids
|
|
46
65
|
def return_channel(*channel_ids)
|
|
47
66
|
begin
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wolas_channel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WOLAS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -99,7 +99,7 @@ files:
|
|
|
99
99
|
- lib/connection.rb
|
|
100
100
|
- lib/wolas_channel.rb
|
|
101
101
|
- lib/wolas_channel/version.rb
|
|
102
|
-
- wolas_channel-0.1.
|
|
102
|
+
- wolas_channel-0.1.9.gem
|
|
103
103
|
- wolas_channel.gemspec
|
|
104
104
|
homepage: https://bitbucket.org/wolas-revolution/srvc-channel
|
|
105
105
|
licenses: []
|
data/wolas_channel-0.1.8.gem
DELETED
|
Binary file
|