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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf40dcefadc2f20efc648038d9b9cb0f4b556279
4
- data.tar.gz: 1ea6f3ff98df4d3678f39d169af434536ccc191b
3
+ metadata.gz: 8cff0cf4c86bc7fc27f1d4428335aa43b050a7a1
4
+ data.tar.gz: 26930fb996620971cf8c0f3b7bc9c71ed0acca85
5
5
  SHA512:
6
- metadata.gz: d5132d58eead08c719385175cbfe7fce8c6446b22c039bde4b2fe8a8dc87399ccfa5dbf62330c3a31e3625e51efe655eb87a3ef65ba938f3653b65550c74cb9d
7
- data.tar.gz: 2c88b25f1a84559b525d968deddb4bdb00d00a6ac2b3c680ee3d914161f5d715acee17efe5c5d97fd3f5ded9dddde1ae1f6a9cc385cfe60921a03a5f79e5f8f4
6
+ metadata.gz: 4c8983b4ec5e70eedf05c943badd344eec03dc31548dc050b50024218dbd6cf30a4316b5475e1360097c57a478230a7b1c4da6f3c8f46012db9ff6ac9987cb72
7
+ data.tar.gz: 08f19a1ecf25dfad51cc864ae1978844e1dcd39a5866adae643c946ee10962bc7e033563fe5587886a768733d0fd5b4f23cb296c4d6c41c2055acd71f9b18ff8
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1
7
+ - 2.2
8
+ - 2.3.0
9
+ - ruby-head
10
+
11
+ script: rake test
data/README.md CHANGED
@@ -1,15 +1,17 @@
1
1
  # Takosan
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/takosan.png)](http://badge.fury.io/rb/takosan)
4
- [![Build Status](https://travis-ci.org/pepabo/takosan.png?branch=master)](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
- gem 'takosan'
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.notice 'awesome comment'
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)
@@ -1,3 +1,3 @@
1
1
  module Takosan
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
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.0.0
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: 2015-03-18 00:00:00.000000000 Z
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.4.5
121
+ rubygems_version: 2.5.1
121
122
  signing_key:
122
123
  specification_version: 4
123
124
  summary: Ruby wrapper of Takosan