gepub 1.0.6 → 1.0.7

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
  SHA256:
3
- metadata.gz: 3eb646a2492538a9dc04b35a410f487b61d8b2e85e37baf596dce90d421dcb71
4
- data.tar.gz: 215bff823855ffb63ac089f139dfa4faa7cc4cf6a0f6d2215f20ee2666c68a24
3
+ metadata.gz: f1db2d11c67936c89488f52ae496b80b127c8807b98c4f3f571c107a8bcfda32
4
+ data.tar.gz: ef0bf9c479ad9ef13625794702a0a7bd40e9d13a1b482c45e4c173612eef109b
5
5
  SHA512:
6
- metadata.gz: 8b4b3a3189e335f0c217f2f3a9c9bde39d090a7e20dc777851e78c389d0bea872e4691e33be243e8855f6cb61d74699e347d5b21da5a09070e5eec4ce0c07fac
7
- data.tar.gz: 9e4d6704ddc6ff4563bbc0b03d72ceb05ce34b3916f721030e711d6a95992b95cbfdce483824e1ee70922d7f9b2d17ab8497a08ad81d484b4281acc628dbf909
6
+ metadata.gz: db24109e27da25d65c5e9bab5b69d827f4d2952787fda9cf75ba01d71e09360c48662442d4c95dff0f981157e3f14b6388d3057f297c1504af78b7deec805cab
7
+ data.tar.gz: 1d673c6b9c30ce5136b224ae746b2ef4ed4d76813b04180a3bb7fd934bd09a97047b7cb949ff14df11453b60bd136736c7525a79b44592d06ae6507e5febdaf7
@@ -0,0 +1,40 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*.*
7
+ jobs:
8
+ build:
9
+ name: Build + Publish
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@master
14
+ - name: Set up Ruby 2.6
15
+ uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.6.x
18
+
19
+ - name: Publish to GPR
20
+ run: |
21
+ mkdir -p $HOME/.gem
22
+ touch $HOME/.gem/credentials
23
+ chmod 0600 $HOME/.gem/credentials
24
+ printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
25
+ gem build *.gemspec
26
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
27
+ env:
28
+ GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
29
+ OWNER: skoji
30
+
31
+ - name: Publish to RubyGems
32
+ run: |
33
+ mkdir -p $HOME/.gem
34
+ touch $HOME/.gem/credentials
35
+ chmod 0600 $HOME/.gem/credentials
36
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37
+ gem build *.gemspec
38
+ gem push *.gem
39
+ env:
40
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -0,0 +1,28 @@
1
+ name: Test
2
+ on: push
3
+ jobs:
4
+ test:
5
+ name: test
6
+ runs-on: ubuntu-latest
7
+ strategy:
8
+ matrix:
9
+ ruby: [2.5.x, 2.6.x]
10
+ env:
11
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
12
+ steps:
13
+ - uses: actions/checkout@master
14
+ - name: Set up Ruby
15
+ uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ - name: setup gems
19
+ run: |
20
+ gem install bundler
21
+ bundle install
22
+ - name: run test and publish code coverage
23
+ uses: paambaati/codeclimate-action@v2.3.0
24
+ env:
25
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
26
+ with:
27
+ coverageCommand: bundle exec rake spec
28
+
data/Gemfile CHANGED
@@ -2,4 +2,4 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in gepub.gemspec
4
4
  gemspec
5
- gem 'coveralls', require: false
5
+ gem 'simplecov', require: false
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # gepub
2
2
 
3
3
  [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/skoji/gepub?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
- [![Build Status](https://travis-ci.org/skoji/gepub.svg?branch=master)](https://travis-ci.org/skoji/gepub)
5
- [![Coverage Status](https://coveralls.io/repos/skoji/gepub/badge.svg?branch=master)](https://coveralls.io/r/skoji/gepub?branch=master)
4
+ [![GitHub Actions Status](https://github.com/skoji/gepub/workflows/Test/badge.svg)](https://github.com/skoji/gepub/actions?query=workflow%3ATest)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/acd6df07e071a4bbb399/test_coverage)](https://codeclimate.com/github/skoji/gepub/test_coverage)
6
6
  [![Gem Version](https://badge.fury.io/rb/gepub.svg)](http://badge.fury.io/rb/gepub)
7
7
 
8
8
  * http://rdoc.info/github/skoji/gepub/master/frames
@@ -1,3 +1,6 @@
1
+ def ruby2_keywords(*)
2
+ end if RUBY_VERSION < "2.7" && !(defined? ruby2_keywords)
3
+
1
4
  require 'gepub/version'
2
5
  require 'gepub/dsl_util'
3
6
  require 'gepub/xml_util'
@@ -164,7 +164,7 @@ module GEPUB
164
164
  items[@package.bindings.handler_by_media_type[media_type]]
165
165
  end
166
166
 
167
- def method_missing(name,*args, &block)
167
+ ruby2_keywords def method_missing(name, *args, &block)
168
168
  @package.send(name, *args, &block)
169
169
  end
170
170
 
@@ -1,4 +1,4 @@
1
1
  module GEPUB
2
2
  # GEPUB gem version
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gepub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOJIMA Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-24 00:00:00.000000000 Z
11
+ date: 2019-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -89,8 +89,9 @@ extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitattributes"
92
+ - ".github/workflows/gempush.yml"
93
+ - ".github/workflows/test.yml"
92
94
  - ".gitignore"
93
- - ".travis.yml"
94
95
  - Gemfile
95
96
  - LICENSE.txt
96
97
  - README.md
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.6
4
- - 2.6.5
5
- script: bundle exec rake spec