RTwitter 0.0.4 → 0.0.5

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: ab110e49d14b4ef6e13816e0395a5c61686e1d66
4
- data.tar.gz: e6a0318dde783f2904fc19e9e0244f21cfa29392
3
+ metadata.gz: 8a6c8be7c9134b7dc36c4c07864b5f68661e0c9c
4
+ data.tar.gz: 4c43f02f107e478a722c86058ae755782db4a9b4
5
5
  SHA512:
6
- metadata.gz: df12b3155ab1b75648430f23727c688a4103e7bbea580f8b3cf7165cfdb0ae9481e17782c68005bb7222ffcd1f190939b9e72358f2bdf7ac841f9d434f93ce86
7
- data.tar.gz: f2490455e60ac9c9514c4908df0d9e0b0fdf648cf95e553d8cc5003ea0b2d1e1be629185d29a78517c904abfcac00f067351220e6ac35bb9d1fc8631006feced
6
+ metadata.gz: f89173aed8e426c1abda9f90e447a77ee3467d4959a8f1d90793c81a7cf893b2a51c31844b18479fb9c42fdf9b2f10b1ccf6fe6b603cf4bd278ef470d59c94b6
7
+ data.tar.gz: c1f06d9d4ade0efb6fc12bcbad98ec9de9d39bab1c6fbb0b8f504f699ba57ed4c8089a84fb0cb2379cdae67bf1d10ef0f1a56261e672d511bd6587968324d1e1
data/README.md CHANGED
@@ -1,29 +1,37 @@
1
1
  # RTwitter
2
2
 
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'RTwitter'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install RTwitter
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
3
+ You can use REST and **Streaming** API.
4
+
5
+ ## How to use ?
6
+
7
+ + Require
8
+ `require'RTwitter'`
9
+
10
+ + New Instance
11
+ If you have access\_token and access\_token\_secret
12
+ `rt = RTwitter.new(ck,cks,at,ats)`
13
+ If you don't have...
14
+ `rt = RTwitter.new(ck,cks)`
15
+ `puts rt.request_token`
16
+ `rt.access_token(pin)`
17
+
18
+ + POST request
19
+ `result = rt.post(endpoint,{parameter => value})`
20
+ example...
21
+ `endpoint = 'statuses/update'`
22
+ `parameter = 'status'`
23
+ `value = 'Hello World!'`
24
+
25
+ + GET request
26
+ `result = rt.get(endpoint,{parameter => value})`
27
+ example...
28
+ `endpoint = 'users/show'`
29
+ `parameter = 'screen_name'`
30
+ `value = 'CIA'`
31
+
32
+ + Streaming
33
+ `rt.streaming(endpoint,{parameter => value}){|status| p status }`
34
+ example...
35
+ `endpoint = 'statuses/filter'`
36
+ `parameter = 'track'`
37
+ `value = 'Hello'`
data/README.md~ ADDED
@@ -0,0 +1,29 @@
1
+ # RTwitter
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'RTwitter'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install RTwitter
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -1,3 +1,3 @@
1
1
  module RTwitter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module RTwitter
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RTwitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seurix
@@ -49,6 +49,7 @@ files:
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
52
+ - README.md~
52
53
  - RTwitter.gemspec
53
54
  - Rakefile
54
55
  - lib/RTwitter.rb