metaweblog 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.travis.yml +14 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +6 -0
- data/README.md +4 -0
- data/lib/metaweblog/version.rb +1 -1
- data/metaweblog.gemspec +7 -5
- data/spec/metaweblog/client_spec.rb +2 -2
- data/spec/spec_helper.rb +9 -1
- metadata +16 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ce65e088659f024b98d8ada839c89a3747d04c
|
4
|
+
data.tar.gz: c25d03a119bccc6c9bb777fe045fb9b24877889f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e83e9ff0203d84de54da8c0c1d74bed39f0fdabfe04541420a308fb4307722a20014373f0d5f2ad2adfc7dd0783b6c4f6c8ba6e2d4658d655d0d0b48fc711e9
|
7
|
+
data.tar.gz: da5b44fd8cfb6e934b90cdc5cfec6bea0f1d1677415439e02e3c243e991121eaf8abf723e0f37fd8aa259314561511a4a0af8f0d1a91e9ab497ac1832975f034
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# metaweblog - Ruby client for metaWeblog API
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/metaweblog.svg)](https://badge.fury.io/rb/metaweblog)
|
4
|
+
[![Build Status](https://travis-ci.org/satoryu/metaweblog.svg?branch=master)](https://travis-ci.org/satoryu/metaweblog)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/github/satoryu/metaweblog/badge.svg?branch=measure_code_coverage)](https://coveralls.io/github/satoryu/metaweblog?branch=measure_code_coverage)
|
6
|
+
|
3
7
|
This gem makes it easier for you to talk with your blog apps via metaWeblog API.
|
4
8
|
|
5
9
|
## Installation
|
data/lib/metaweblog/version.rb
CHANGED
data/metaweblog.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'metaweblog/version'
|
@@ -6,7 +5,6 @@ require 'metaweblog/version'
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = "metaweblog"
|
8
7
|
spec.version = MetaWeblog::VERSION
|
9
|
-
spec.version = "#{spec.version}.pre#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
10
8
|
spec.authors = ["Tatsuya Sato"]
|
11
9
|
spec.email = ["satoryu.1981@gmail.com"]
|
12
10
|
spec.description = <<-DESC
|
@@ -18,14 +16,18 @@ Gem::Specification.new do |spec|
|
|
18
16
|
spec.summary = %q{Ruby client for metaWeblog API.}
|
19
17
|
spec.homepage = "http://github.com/satoryu/metaweblog"
|
20
18
|
spec.license = "MIT"
|
21
|
-
spec.required_ruby_version = '>= 1.
|
19
|
+
spec.required_ruby_version = '>= 2.1.0'
|
20
|
+
spec.rdoc_options = %w[
|
21
|
+
--main=README.md
|
22
|
+
--exclude=Gemfile --exclude=Rakefile --exclude=*.gemspec
|
23
|
+
]
|
22
24
|
|
23
25
|
spec.files = `git ls-files`.split($/)
|
24
26
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
25
27
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
26
28
|
spec.require_paths = ["lib"]
|
27
29
|
|
28
|
-
spec.add_development_dependency "bundler"
|
29
|
-
spec.add_development_dependency "rspec", "~>
|
30
|
+
spec.add_development_dependency "bundler"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.5.0"
|
30
32
|
spec.add_development_dependency "rake"
|
31
33
|
end
|
@@ -17,7 +17,7 @@ describe MetaWeblog::Client do
|
|
17
17
|
let(:post) { MetaWeblog::Post.new(expected_post) }
|
18
18
|
|
19
19
|
before do
|
20
|
-
@xml_client.
|
20
|
+
expect(@xml_client).to receive(:call).with('metaWeblog.newPost',
|
21
21
|
'blog_id',
|
22
22
|
'username', 'password',
|
23
23
|
expected_post, true)
|
@@ -32,7 +32,7 @@ describe MetaWeblog::Client do
|
|
32
32
|
let(:post_id) { 12345 }
|
33
33
|
|
34
34
|
before do
|
35
|
-
@xml_client.
|
35
|
+
expect(@xml_client).to receive(:call).with('metaWeblog.getPost', post_id, 'username', 'password')
|
36
36
|
end
|
37
37
|
|
38
38
|
it do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metaweblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuya Sato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.5.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,6 +61,7 @@ executables: []
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
+
- ".coveralls.yml"
|
64
65
|
- ".gitignore"
|
65
66
|
- ".rspec"
|
66
67
|
- ".travis.yml"
|
@@ -84,14 +85,18 @@ licenses:
|
|
84
85
|
- MIT
|
85
86
|
metadata: {}
|
86
87
|
post_install_message:
|
87
|
-
rdoc_options:
|
88
|
+
rdoc_options:
|
89
|
+
- "--main=README.md"
|
90
|
+
- "--exclude=Gemfile"
|
91
|
+
- "--exclude=Rakefile"
|
92
|
+
- "--exclude=*.gemspec"
|
88
93
|
require_paths:
|
89
94
|
- lib
|
90
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
96
|
requirements:
|
92
97
|
- - ">="
|
93
98
|
- !ruby/object:Gem::Version
|
94
|
-
version: 1.
|
99
|
+
version: 2.1.0
|
95
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
101
|
requirements:
|
97
102
|
- - ">="
|
@@ -99,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
104
|
version: '0'
|
100
105
|
requirements: []
|
101
106
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.5.1
|
103
108
|
signing_key:
|
104
109
|
specification_version: 4
|
105
110
|
summary: Ruby client for metaWeblog API.
|