gepub 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/gempush.yml +40 -0
- data/.github/workflows/test.yml +28 -0
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/gepub.rb +3 -0
- data/lib/gepub/book.rb +1 -1
- data/lib/gepub/version.rb +1 -1
- metadata +4 -3
- data/.travis.yml +0 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f1db2d11c67936c89488f52ae496b80b127c8807b98c4f3f571c107a8bcfda32
         | 
| 4 | 
            +
              data.tar.gz: ef0bf9c479ad9ef13625794702a0a7bd40e9d13a1b482c45e4c173612eef109b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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
    
    
    
        data/README.md
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # gepub  
         | 
| 2 2 |  | 
| 3 3 | 
             
            [](https://gitter.im/skoji/gepub?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
         | 
| 4 | 
            -
            [](https://github.com/skoji/gepub/actions?query=workflow%3ATest)
         | 
| 5 | 
            +
            [](https://codeclimate.com/github/skoji/gepub/test_coverage)
         | 
| 6 6 | 
             
            [](http://badge.fury.io/rb/gepub)
         | 
| 7 7 |  | 
| 8 8 | 
             
            * http://rdoc.info/github/skoji/gepub/master/frames
         | 
    
        data/lib/gepub.rb
    CHANGED
    
    
    
        data/lib/gepub/book.rb
    CHANGED
    
    
    
        data/lib/gepub/version.rb
    CHANGED
    
    
    
        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. | 
| 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 | 
            +
            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
         |