wolas_channel 0.1.9 → 0.1.10

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
  SHA1:
3
- metadata.gz: 21f5f8d4e8c4dcbbbfc94adcab34412896b08fda
4
- data.tar.gz: fcdbe13357c3b39d41a0691fde4515894d27be11
3
+ metadata.gz: 22bb4221f0fa1729a525079c8fb2c0c70918bd0b
4
+ data.tar.gz: cc46d3f6b1c395ed9cf0312ddbc6e1c8878949bc
5
5
  SHA512:
6
- metadata.gz: a374d26e5bcb424d86265e6667ebaba64344398201616c5e9e5fa25693668eac830c94d6b21da62674c16cc47da45225440f2ee37bd1f9166f72f3aa5b21b484
7
- data.tar.gz: cce6d67059aee34667ff901303bafd04c9c8f4094ad698e720308e75181cb7461d663c6ddd8f972b1463f8aecd94e87b32e27391715f78134e68626f1f5323ea
6
+ metadata.gz: 10921b2bb16cd98a5217f38b60cac6a00eaf199e40bae9e429d1d873c43610e3de2583412c378514540eaab6de27cb8380ebbe136a004392871832ba72245a54
7
+ data.tar.gz: 11aae290e06c3167b0c7cc3d68b712c003f14aca1638826576638e439c02540c8d2838dbb0c7c1718643787f7ec72f634b39cccf7344cf44492fec4918d76962
@@ -1,3 +1,3 @@
1
1
  class WolasChannel
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-08 00:00:00.000000000 Z
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.8.gem
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: []
Binary file