slack-peoplepuller 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 600bbbb8f915f137c87b614962d10d412cdd4c2e
4
- data.tar.gz: ae7581045243e6fa22803e3300406010b4b301d1
3
+ metadata.gz: eac9970a6a0233095aa914e29426ff96de13512f
4
+ data.tar.gz: 0678be625b8f6466e6cbe7b690822532dc459cd1
5
5
  SHA512:
6
- metadata.gz: afee64a3d071bf79e17889c2d9a8a263c1e94bb094e58cdd54f825cde14c454f28af216a68205e60c7235bd6bcf49a4e4b9fd36bf46a555e2f31ca0590100f69
7
- data.tar.gz: ef8f711b49ead5fe0bc15ed3c54e26c906e7bcee7024feed0d77b6e24d2d235f29b4b7507f7ce9e15af3b7f8563fab63d385285de1dd207cb42f5cf24d4ba0cc
6
+ metadata.gz: b9b4c5424085d06213fa892863ccc11959f95bb9046269ee6a54ada99b04425c17adfa57bf266d851043a4270936fbbbeeb9f851719cfc36f91287c8bbd0a4de
7
+ data.tar.gz: fbd059cb9a4758b97e6acef00e451d6c8bbdb3151902923b52c3e0c8af261637984a36c1d569d67021419ed5d13a714eb0332e5b305a0d222b4cbf3735026512
@@ -4,11 +4,11 @@ require 'slack-ruby-client'
4
4
 
5
5
  module Slack
6
6
  module Peoplepuller
7
- Slack.configure do |config|
8
- config.token = ENV['SLACK_API_TOKEN']
9
- end
10
-
11
7
  def self.pull(groups_to_load)
8
+ Slack.configure do |config|
9
+ config.token = configuration.slack_api_token
10
+ end
11
+
12
12
  client = Slack::Web::Client.new
13
13
  slack_groups = client.usergroups_list(include_users: true)
14
14
  people = []
@@ -1,5 +1,5 @@
1
1
  module Slack
2
2
  module Peoplepuller
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-peoplepuller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonah Hirsch