takosan 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -0
- data/README.md +14 -5
- data/lib/takosan.rb +2 -2
- data/lib/takosan/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cff0cf4c86bc7fc27f1d4428335aa43b050a7a1
|
4
|
+
data.tar.gz: 26930fb996620971cf8c0f3b7bc9c71ed0acca85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8983b4ec5e70eedf05c943badd344eec03dc31548dc050b50024218dbd6cf30a4316b5475e1360097c57a478230a7b1c4da6f3c8f46012db9ff6ac9987cb72
|
7
|
+
data.tar.gz: 08f19a1ecf25dfad51cc864ae1978844e1dcd39a5866adae643c946ee10962bc7e033563fe5587886a768733d0fd5b4f23cb296c4d6c41c2055acd71f9b18ff8
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
# Takosan
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/takosan.
|
4
|
-
[![Build Status](https://travis-ci.org/pepabo/takosan.
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/takosan.svg)](http://badge.fury.io/rb/takosan)
|
4
|
+
[![Build Status](https://travis-ci.org/pepabo/takosan.svg?branch=master)](https://travis-ci.org/pepabo/takosan)
|
5
5
|
|
6
|
-
Ruby wrapper of Takosan
|
6
|
+
Ruby wrapper of [Takosan](https://github.com/kentaro/takosan)
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
10
10
|
Add this line to your application's Gemfile:
|
11
11
|
|
12
|
-
|
12
|
+
```ruby
|
13
|
+
gem 'takosan'
|
14
|
+
```
|
13
15
|
|
14
16
|
And then execute:
|
15
17
|
|
@@ -24,7 +26,14 @@ Or install it yourself as:
|
|
24
26
|
```ruby
|
25
27
|
Takosan.url = "http://irc.example.com:4649"
|
26
28
|
Takosan.channel = "#example"
|
27
|
-
Takosan.
|
29
|
+
Takosan.privmsg 'awesome comment'
|
30
|
+
```
|
31
|
+
|
32
|
+
You can change Takosan's icon and name like the following:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
Takosan.icon = ":angel:"
|
36
|
+
Takosan.name = "ikasan"
|
28
37
|
```
|
29
38
|
|
30
39
|
## Contributing
|
data/lib/takosan.rb
CHANGED
@@ -5,12 +5,12 @@ require 'pathname'
|
|
5
5
|
require 'active_support/all'
|
6
6
|
|
7
7
|
module Takosan
|
8
|
-
mattr_accessor :url, :channel
|
8
|
+
mattr_accessor :url, :channel, :name, :icon
|
9
9
|
|
10
10
|
module_function
|
11
11
|
|
12
12
|
def privmsg(message)
|
13
|
-
request('/privmsg', { 'channel' => @@channel, 'message' => message })
|
13
|
+
request('/privmsg', { 'channel' => @@channel, 'message' => message, 'name' => @@name, 'icon' => @@icon })
|
14
14
|
end
|
15
15
|
|
16
16
|
def uri_for(path = nil)
|
data/lib/takosan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: takosan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OKUMURA Takahiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -88,6 +88,7 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
91
92
|
- Gemfile
|
92
93
|
- LICENSE.txt
|
93
94
|
- README.md
|
@@ -117,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
118
|
version: '0'
|
118
119
|
requirements: []
|
119
120
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
121
|
+
rubygems_version: 2.5.1
|
121
122
|
signing_key:
|
122
123
|
specification_version: 4
|
123
124
|
summary: Ruby wrapper of Takosan
|