qiita 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +0 -1
- data/CHANGELOG.md +2 -0
- data/LICENSE.txt +2 -2
- data/Makefile +18 -0
- data/README.md +59 -50
- data/bin/qiita +7 -0
- data/doc/client.md +171 -0
- data/doc/response.md +33 -0
- data/images/cli.png +0 -0
- data/lib/qiita.rb +19 -14
- data/lib/qiita/arguments.rb +138 -0
- data/lib/qiita/client.rb +125 -61
- data/lib/qiita/command_builder.rb +35 -0
- data/lib/qiita/commands/base.rb +13 -0
- data/lib/qiita/commands/error.rb +9 -0
- data/lib/qiita/commands/request.rb +30 -0
- data/lib/qiita/resource_based_methods.rb +283 -0
- data/lib/qiita/response.rb +92 -0
- data/lib/qiita/response_renderer.rb +79 -0
- data/lib/qiita/version.rb +1 -1
- data/qiita.gemspec +26 -24
- data/script/generate +74 -0
- data/spec/qiita/client_spec.rb +335 -0
- data/spec/spec_helper.rb +5 -2
- metadata +164 -55
- data/.rspec +0 -2
- data/lib/faraday/response/raise_qiita_error.rb +0 -32
- data/lib/qiita/client/items.rb +0 -33
- data/lib/qiita/client/tags.rb +0 -13
- data/lib/qiita/client/users.rb +0 -28
- data/lib/qiita/error.rb +0 -8
- data/spec/qiita_spec.rb +0 -18
data/spec/qiita_spec.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Qiita do
|
4
|
-
it { should respond_to(:new) }
|
5
|
-
|
6
|
-
describe 'new' do
|
7
|
-
it 'returns Qiita::Client instance' do
|
8
|
-
subject.new.should be_a_kind_of(Qiita::Client)
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
describe 'method_missing' do
|
13
|
-
it 'delegates method to Qiita::Client instance' do
|
14
|
-
Qiita::Client.any_instance.should_receive(:rate_limit)
|
15
|
-
subject.rate_limit
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|