chatwork 0.0.1 → 0.0.2

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: 0a3a5e8fb7dfab68d2731f6583b9138d68908c63
4
- data.tar.gz: 38784c6191d76d534ac7960cc4d2f529d4217925
3
+ metadata.gz: b2726cbb931ac2533e1296cbb21a620db62e69e0
4
+ data.tar.gz: cd678ffce483f6d477eae0d31972cf0c63ed6b48
5
5
  SHA512:
6
- metadata.gz: 2c425256ea4c91c3dd303ab11fb6b102d65a5c30566bb6459cc9dd32314a0bc269694f1e7aaa7ed57cb55908ed1d8d7c6dde1335cf8414561af6d6b7693c5e05
7
- data.tar.gz: c5265d46a13f97f93ca849352e346ded9d9e1658586b90b03cde8d5abe5d05b3f4ca4a67c2f91d26e6ab74512d2662fc75400234c8f923842b2d22d41f665f16
6
+ metadata.gz: b087c39e4d93ccfa8a66a6f4bb5eecb05c606a8d595fa6f38a672ca4571fdb1cc2d381afd7ffa85623f167e56ed2c87eb4943e376592660b7e053abd8c86661f
7
+ data.tar.gz: afebd25c0173416546c4dbabf12d5e8f4a637c94abd76f7128df2855d7b40f5f836c0856969e5d6c3a8ee3ea35fbe4cfb0a1b286752554ea1512fbaca68d6466
data/.gitignore CHANGED
@@ -15,3 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .ruby-gemset
19
+ .ruby-version
data/Rakefile CHANGED
@@ -1 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new
6
+ task :default => :spec
7
+ rescue
8
+ $stderr.puts('Install rspec')
9
+ end
data/chatwork.gemspec CHANGED
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "rspec", "~> 2.14.0"
25
26
  end
data/lib/chatwork.rb CHANGED
@@ -9,7 +9,7 @@ module ChatWork
9
9
 
10
10
  class << self
11
11
  def client
12
- @client ||= Cluent.new(@api_key, @api_base, @api_version)
12
+ @client ||= Client.new(@api_key, @api_base, @api_version)
13
13
  end
14
14
 
15
15
  def api_base=(new_value)
@@ -1,3 +1,3 @@
1
1
  module ChatWork
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+ require 'chatwork'
3
+
4
+ describe ChatWork do
5
+ its(:client) { should be_a(ChatWork::Client) }
6
+ its(:api_base) { should eq('https://api.chatwork.com/') }
7
+ describe '#api_base=' do
8
+ before { subject.api_base = 'https://test.example.com/' }
9
+ its(:api_base) { should eq('https://test.example.com/') }
10
+ its(:api_base) { should eq('https://test.example.com/') }
11
+ end
12
+ its(:api_key) { should be_nil }
13
+ end
@@ -0,0 +1,3 @@
1
+ # encoding: utf-8
2
+ #
3
+ $: << File.expand_path(File.join(*%w{.. .. lib}), __FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatwork
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
  - asonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.14.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.14.0
55
69
  description: ChatWork is cloud-based business chat tool
56
70
  email:
57
71
  - hzw1258@gmail.com
@@ -71,6 +85,8 @@ files:
71
85
  - lib/chatwork/operations.rb
72
86
  - lib/chatwork/room.rb
73
87
  - lib/chatwork/version.rb
88
+ - spec/lib/chatwork_spec.rb
89
+ - spec/spec_helper.rb
74
90
  homepage: ''
75
91
  licenses:
76
92
  - MIT
@@ -91,9 +107,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
107
  version: '0'
92
108
  requirements: []
93
109
  rubyforge_project:
94
- rubygems_version: 2.0.3
110
+ rubygems_version: 2.0.14
95
111
  signing_key:
96
112
  specification_version: 4
97
113
  summary: Ruby bindings of Chatwork API
98
- test_files: []
99
- has_rdoc:
114
+ test_files:
115
+ - spec/lib/chatwork_spec.rb
116
+ - spec/spec_helper.rb