embulk-input-slack-history 0.1.0 → 0.1.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: 49031b2f1709e7d4b70fa643310e63f539372b3b
4
- data.tar.gz: 211c4b5a59e0e9d21f3daa264aba4232aa8c6c3c
3
+ metadata.gz: 350d1aa50ced341991a8c87fbcb7dce2963edafc
4
+ data.tar.gz: b56058d0bae1d60971bfadd024a639ee780ff581
5
5
  SHA512:
6
- metadata.gz: 5432efc108632885e6948f3ccaf6e02c0994f207287b677af434a1ce80a61c4a1434c9c0c88af4e20a2ad189f14e06703e888e7c1072d7e6173d273f7fdddb02
7
- data.tar.gz: ee30df521d35f41ad279ef22d15c51b2cda47786609dc92dc6abc26ed54a3cb72187e5c11e6174072abac928418f0ca71fca65ccdbe04cb29d7e236b0eddefee
6
+ metadata.gz: ee0c26acc1ad4afb9056602e34db83208dbb79dc9b3a2d6397beb32c2c4c6eb16335099c6c318571c24e0f724de4692bf1b6cb68bc6143286d7c0cf77550c52c
7
+ data.tar.gz: 31bdf06c56c8e563501e4be24e59945fce248f94411e6116e17c3c8c8ee06a3eae2782433ac9aeb4ed4f81334d0abf96f16cf2c4da33654332512e26be6c3a8e
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "embulk-input-slack-history"
4
- gem.version = "0.1.0"
4
+ gem.version = "0.1.1"
5
5
 
6
6
  gem.summary = %q{Embulk input plugin for Slack chat history}
7
7
  gem.description = gem.summary
@@ -92,9 +92,7 @@ module Embulk
92
92
 
93
93
  line = File.read(fullpath)
94
94
 
95
- param = "&oldest=" + line + "&inclusive=0"
96
-
97
- return param
95
+ return line
98
96
 
99
97
  end
100
98
 
@@ -121,9 +119,9 @@ module Embulk
121
119
  api = "groups"
122
120
  end
123
121
 
124
- param = get_continuous_param(continuous, filepath, id)
122
+ oldest = get_continuous_param(continuous, filepath, id)
125
123
 
126
- json = RestClient.get('https://slack.com/api/' + api + '.history', {:params => {'token' => @token, 'channel' => id, 'pretty' => 1}})
124
+ json = RestClient.get('https://slack.com/api/' + api + '.history', {:params => {'token' => @token, 'channel' => id, 'oldest' => oldest, 'inclusive' => 0, 'pretty' => 1}})
127
125
  result = JSON.parse(json)
128
126
 
129
127
  newest = 0.0
@@ -1,6 +1,6 @@
1
1
  in:
2
2
  type: slack_history
3
- token: slackapitoken
3
+ token: xoxp-3648618139-3648618141-3648618355-a3d852
4
4
  continuous: true # optional
5
5
  filepath: /tmp # optional
6
6
  out:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-slack-history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro YAGASAKI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client