cwbot 0.0.1 → 0.0.2

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: fec5a300d6d478dd451680e0eb729aa082e6bb30
4
- data.tar.gz: 60904a68e49184f246c5135efbdd38f519e124dd
3
+ metadata.gz: c075726fe46307307d1dc14778b6c0a703b90b5d
4
+ data.tar.gz: dd7b915d69b2abff767a0ed76b6011fcc3ecd95a
5
5
  SHA512:
6
- metadata.gz: 2b299b1e71f54b40d229172a491f99c5cd25c2d932b92d8c70c35114f99707393661b9ba9b03365a250e24b977817c3e1a946f9a992c5793b6b469dcf1e35b7f
7
- data.tar.gz: 6c29ba9f1a004b9644bcd2a5e092a0b1123bc4620c48b4a8ce5322466563aed700ac0736d2778311569948e584d967ac19ddf8648f01da22e6cc049de9a810a1
6
+ metadata.gz: e67f68ff65286a632f25674f0b242b696576e1bb75dc6b77e161f005544566fcedcbcced3b1de2d5855a13920da74ddf28b07734a92746bef5f943ba569068ea
7
+ data.tar.gz: d4839119311d56de6b0c74afcf24cc2f9d1e4ffa9bb540f011a35902a59b7bd3f8ab4d2b84805f75e19f206010be458f9116551a1972d34d94cfda3a307f006e
data/.gitignore CHANGED
@@ -15,3 +15,7 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ *.iml
19
+ *.ipr
20
+ *.iws
21
+ .idea/
data/README.md CHANGED
@@ -18,7 +18,13 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ in a ruby code
22
+
23
+ require 'rubygems'
24
+ require 'cwbot'
25
+
26
+ cw = Cwbot::Cwbot.new("YOUR API KEY")
27
+ cw.post_message(ROOM_ID, "本文")
22
28
 
23
29
  ## Contributing
24
30
 
@@ -21,9 +21,9 @@ module Cwbot
21
21
  res = ApiRequest.get_request(url,@api_key)
22
22
  end
23
23
 
24
- def post_message(to_room)
24
+ def post_message(to_room,body)
25
25
  url = @api_url+"/rooms/#{to_room}/messages"
26
- res = ApiRequest.post_request(url,"test",@api_key)
26
+ res = ApiRequest.post_request(url,body,@api_key)
27
27
  end
28
28
  end
29
29
 
@@ -1,3 +1,3 @@
1
1
  module Cwbot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cwbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - murapi0227
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-25 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,6 @@ files:
69
69
  - lib/cwbot.rb
70
70
  - lib/cwbot/api_request.rb
71
71
  - lib/cwbot/version.rb
72
- - spec/#spec_helper.rb#
73
72
  - spec/cwbot_spec.rb
74
73
  - spec/spec_helper.rb
75
74
  homepage: ''
@@ -92,11 +91,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
91
  version: '0'
93
92
  requirements: []
94
93
  rubyforge_project:
95
- rubygems_version: 2.1.10
94
+ rubygems_version: 2.4.5
96
95
  signing_key:
97
96
  specification_version: 4
98
97
  summary: chatwork api
99
98
  test_files:
100
- - spec/#spec_helper.rb#
101
99
  - spec/cwbot_spec.rb
102
100
  - spec/spec_helper.rb
101
+ has_rdoc:
@@ -1 +0,0 @@
1
- $LOAD_PATH << File.expand_path(File.join('..', 'lib'), File.dirname(__FILE__))