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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 430757e72fb340b24d2589db4dde0c0170b429eb
4
- data.tar.gz: eca57d56e475dc18a103298f7b0814860e72b61f
3
+ metadata.gz: 10ce65e088659f024b98d8ada839c89a3747d04c
4
+ data.tar.gz: c25d03a119bccc6c9bb777fe045fb9b24877889f
5
5
  SHA512:
6
- metadata.gz: 6b122aba4f970ed65200b0951145e4a80b846ecabc633b1a486578b1a53447b1b8150b6a1d3254b5bfcde4adb601b7c34d09f0e8f9205db1f5b787db2c125b94
7
- data.tar.gz: 0dfae078d8da9c52f405b642648d29170716995aa904cccced4f1a37b842ec810cdd7e5baa848982014b6fa739154091d4657957747031b28260ca4899dee633
6
+ metadata.gz: 6e83e9ff0203d84de54da8c0c1d74bed39f0fdabfe04541420a308fb4307722a20014373f0d5f2ad2adfc7dd0783b6c4f6c8ba6e2d4658d655d0d0b48fc711e9
7
+ data.tar.gz: da5b44fd8cfb6e934b90cdc5cfec6bea0f1d1677415439e02e3c243e991121eaf8abf723e0f37fd8aa259314561511a4a0af8f0d1a91e9ab497ac1832975f034
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -1,5 +1,16 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.2
4
+ - 2.1.9
5
+ - 2.2.5
6
+ - 2.3.1
7
+ - ruby-head
8
+
9
+ cache: bundler
10
+
11
+ before_install:
12
+ - gem install bundler
13
+
14
+ matrix:
15
+ allow_failures:
16
+ - rvm: ruby-head
@@ -1,3 +1,7 @@
1
+ # 0.3.0 (2016-08-26)
2
+
3
+ * Update the supported ruby version, 2.1.0 or later
4
+
1
5
  # 0.2.0 (2014-05-25)
2
6
 
3
7
  * Refactor `MetaWeblog::Post`
data/Gemfile CHANGED
@@ -2,3 +2,9 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ..gemspec
4
4
  gemspec
5
+
6
+ if RUBY_VERSION >= '2.4.0'
7
+ gem 'xmlrpc'
8
+ end
9
+
10
+ gem 'coveralls', require: false
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
@@ -1,3 +1,3 @@
1
1
  module MetaWeblog
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -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.9.3'
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", "~> 1.3"
29
- spec.add_development_dependency "rspec", "~> 2.0"
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.should_receive(:call).with('metaWeblog.newPost',
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.should_receive(:call).with('metaWeblog.getPost', post_id, 'username', 'password')
35
+ expect(@xml_client).to receive(:call).with('metaWeblog.getPost', post_id, 'username', 'password')
36
36
  end
37
37
 
38
38
  it do
@@ -1,4 +1,12 @@
1
- # encoding: utf-8
1
+
2
+ if ENV['CI']
3
+ require 'coveralls'
4
+
5
+ Coveralls.wear!
6
+ SimpleCov.start do
7
+ add_filter '/spec/'
8
+ end
9
+ end
2
10
 
3
11
  $LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))
4
12
 
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.2.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: 2014-05-25 00:00:00.000000000 Z
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: '1.3'
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: '1.3'
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: '2.0'
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: '2.0'
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.9.3
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.2.0
107
+ rubygems_version: 2.5.1
103
108
  signing_key:
104
109
  specification_version: 4
105
110
  summary: Ruby client for metaWeblog API.