goodbye_chatwork 0.0.5 → 0.0.6

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: 95e08046dc6a9519d244415e3e7cb68a05129eb4
4
- data.tar.gz: 07c973e5d847863b9dc4c9f21290f100a5c70ac6
3
+ metadata.gz: c567cdbc5181f0a66167914106589c7b8f6fd7a0
4
+ data.tar.gz: 0f28b5b0c633fe4efcf9cadd94857afa783342b6
5
5
  SHA512:
6
- metadata.gz: 68499d112ee6f83e03339f32a6ebe9dee6182a778f78bc9265349415f4741be65b59ca0049f08f70d2560f7ea14da414a8bc66313fc2e0a5c7b29028d753a8fe
7
- data.tar.gz: 550a9a66c1e79778d14d7bb43386b03537019cc2c71bc72fd60b4e18dc4abc7dcb88759c7027119c10e1ab70b919055877ab6e3f1cad3648810e95cb96537efb
6
+ metadata.gz: 6b5af0927d6fe6a4d1a1eddf58a3b90c175d034e331fd41e8944635cf28fcf160c7956f1724ffaa1dd4b01cca93c68a58bd7892143feac103ebcbd3db17b579d
7
+ data.tar.gz: 289e4d61d9e180f1deb3295db01e9e3d42d11d4351eb57b282e92f097a6ff717edd6f43d6ecf6f065bddbbaef99e9ec13f276bb4c9908991439ce9095263451b
@@ -36,8 +36,8 @@ module GoodbyeChatwork
36
36
  r = @client.get "/"
37
37
  self.wait
38
38
  self.info "login as #{@id} ..."
39
- @token = r.body.match(/var ACCESS_TOKEN = '(.+)'/).to_a[1]
40
- @myid = r.body.match(/var myid = '(.+)'/).to_a[1]
39
+ @token = r.body.match(/var ACCESS_TOKEN *= *'(.+)'/).to_a[1]
40
+ @myid = r.body.match(/var MYID *= *'(.+)'/).to_a[1]
41
41
  raise 'no token' unless @token
42
42
  self.init_load
43
43
  self.get_account_info
@@ -114,7 +114,7 @@ module GoodbyeChatwork
114
114
  end
115
115
  out = File.join(opt[:dir], fn)
116
116
  end
117
- open(out, 'w') { |f| f.write d }
117
+ open(out, 'wb') { |f| f.write d }
118
118
  end
119
119
 
120
120
  def file_info(file_id)
@@ -1,3 +1,3 @@
1
1
  module GoodbyeChatwork
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodbye_chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - swdyh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-24 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday-cookie_jar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: This is Chatwork(chatwork.com) log exporter. This can be used also when
@@ -75,7 +75,7 @@ executables:
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - .gitignore
78
+ - ".gitignore"
79
79
  - Gemfile
80
80
  - LICENSE.txt
81
81
  - README.md
@@ -94,17 +94,17 @@ require_paths:
94
94
  - lib
95
95
  required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.0.14.1
107
+ rubygems_version: 2.5.1
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: export Chatwork(chatwork.com) logs