serrano
Advanced tools
| name: Ruby | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| jobs: | ||
| test: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ ubuntu-latest, macos-latest ] | ||
| ruby: [ 2.5, 2.6, 2.7 ] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Setup Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: ${{ matrix.ruby }} | ||
| - name: Install dependencies | ||
| run: bundle install | ||
| - name: Run tests | ||
| run: bundle exec rake test TESTOPTS="-v" | ||
| - name: Run rubocop | ||
| run: bundle exec rubocop |
+21
-1
@@ -19,2 +19,8 @@ inherit_from: .rubocop_todo.yml | ||
| Lint/RaiseException: | ||
| Enabled: true | ||
| Lint/StructNewOverride: | ||
| Enabled: true | ||
| Style/HashEachMethods: | ||
@@ -31,2 +37,16 @@ Enabled: true | ||
| Max: 525 | ||
| Layout/SpaceAroundMethodCallOperator: | ||
| Enabled: true | ||
| Style/ExponentialNotation: | ||
| Enabled: true | ||
| Layout/EmptyLinesAroundAttributeAccessor: | ||
| Enabled: true | ||
| Style/SlicingWithRange: | ||
| Enabled: true | ||
| Lint/DeprecatedOpenSSLConstant: | ||
| Enabled: false |
+4
-0
@@ -0,1 +1,5 @@ | ||
| ## 0.6.2 (2020-05-29) | ||
| * put documentation link back in rubygems page (#132) | ||
| ## 0.6.0 (2020-02-18) | ||
@@ -2,0 +6,0 @@ |
+28
-28
| PATH | ||
| remote: . | ||
| specs: | ||
| serrano (0.6.0) | ||
| faraday (>= 0.15, < 1.0) | ||
| faraday_middleware (>= 0.12.2, < 0.15.0) | ||
| serrano (0.6.2) | ||
| faraday (~> 1.0, >= 1.0.1) | ||
| faraday_middleware (~> 1.0) | ||
| multi_json (~> 1.13, >= 1.13.1) | ||
@@ -23,8 +23,7 @@ thor (>= 0.20, < 1.1) | ||
| docile (1.3.2) | ||
| faraday (0.17.3) | ||
| faraday (1.0.1) | ||
| multipart-post (>= 1.2, < 3) | ||
| faraday_middleware (0.14.0) | ||
| faraday (>= 0.7.4, < 1.0) | ||
| hashdiff (1.0.0) | ||
| jaro_winkler (1.5.4) | ||
| faraday_middleware (1.0.0) | ||
| faraday (~> 1.0) | ||
| hashdiff (1.0.1) | ||
| json (2.3.0) | ||
@@ -34,11 +33,10 @@ multi_json (1.14.1) | ||
| parallel (1.19.1) | ||
| parser (2.7.0.2) | ||
| parser (2.7.1.2) | ||
| ast (~> 2.4.0) | ||
| power_assert (1.1.5) | ||
| public_suffix (3.1.1) | ||
| power_assert (1.1.7) | ||
| public_suffix (4.0.4) | ||
| rainbow (3.0.0) | ||
| rake (12.3.3) | ||
| rake (13.0.1) | ||
| rexml (3.2.4) | ||
| rubocop (0.80.0) | ||
| jaro_winkler (~> 1.5.1) | ||
| rubocop (0.84.0) | ||
| parallel (~> 1.10) | ||
@@ -48,18 +46,20 @@ parser (>= 2.7.0.1) | ||
| rexml | ||
| rubocop-ast (>= 0.0.3) | ||
| ruby-progressbar (~> 1.7) | ||
| unicode-display_width (>= 1.4.0, < 1.7) | ||
| unicode-display_width (>= 1.4.0, < 2.0) | ||
| rubocop-ast (0.0.3) | ||
| parser (>= 2.7.0.1) | ||
| ruby-progressbar (1.10.1) | ||
| safe_yaml (1.0.5) | ||
| simplecov (0.17.1) | ||
| simplecov (0.18.5) | ||
| docile (~> 1.1) | ||
| json (>= 1.8, < 3) | ||
| simplecov-html (~> 0.10.0) | ||
| simplecov-html (0.10.2) | ||
| test-unit (3.3.4) | ||
| simplecov-html (~> 0.11) | ||
| simplecov-html (0.12.2) | ||
| test-unit (3.3.5) | ||
| power_assert | ||
| thor (1.0.1) | ||
| unicode-display_width (1.6.1) | ||
| unicode-display_width (1.7.0) | ||
| url (0.3.2) | ||
| vcr (5.1.0) | ||
| webmock (3.8.2) | ||
| vcr (6.0.0) | ||
| webmock (3.8.3) | ||
| addressable (>= 2.3.6) | ||
@@ -76,11 +76,11 @@ crack (>= 0.3.2) | ||
| json (~> 2.1) | ||
| rake (~> 12.3, >= 12.3.1) | ||
| rubocop (~> 0.80.0) | ||
| rake (~> 13.0, >= 12.3.1) | ||
| rubocop (~> 0.84.0) | ||
| serrano! | ||
| simplecov (~> 0.17.0) | ||
| simplecov (~> 0.18.5) | ||
| test-unit (~> 3.2, >= 3.2.7) | ||
| vcr (~> 5.0) | ||
| vcr (~> 6.0) | ||
| webmock (~> 3.4, >= 3.4.1) | ||
| BUNDLED WITH | ||
| 2.1.3 | ||
| 2.1.4 |
+1
-1
@@ -654,3 +654,3 @@ # frozen_string_literal: true | ||
| # Serrano.citation_count(doi: "10.1016/j.fbr.2012") | ||
| def self.citation_count(doi:, url: 'http://www.crossref.org/openurl/', | ||
| def self.citation_count(doi:, url: 'https://www.crossref.org/openurl/', | ||
| key: 'cboettig@ropensci.org', options: nil) | ||
@@ -657,0 +657,0 @@ |
@@ -9,3 +9,3 @@ # frozen_string_literal: true | ||
| # | ||
| # @see http://www.crosscite.org/cn/ for details | ||
| # @see https://citation.crosscite.org/docs.html for details | ||
| module Serrano | ||
@@ -12,0 +12,0 @@ class ContentNegotiation |
@@ -72,3 +72,3 @@ # frozen_string_literal: true | ||
| if format == 'citeproc-json' | ||
| endpt = 'http://api.crossref.org/works/' + ids + '/' + type | ||
| endpt = 'https://api.crossref.org/works/' + ids + '/' + type | ||
| cr_works = Faraday.new(url: endpt) | ||
@@ -75,0 +75,0 @@ cr_works.headers[:user_agent] = make_ua |
| # frozen_string_literal: true | ||
| module Serrano | ||
| VERSION = '0.6.0' | ||
| VERSION = '0.6.2' | ||
| end |
+5
-5
@@ -5,4 +5,4 @@ serrano | ||
| [](https://rubygems.org/gems/serrano) | ||
| [](https://travis-ci.org/sckott/serrano) | ||
| [](http://codecov.io/github/sckott/serrano?branch=master) | ||
| [](https://github.com/sckott/serrano/actions) | ||
| [](https://codecov.io/github/sckott/serrano?branch=master) | ||
| [](https://zenodo.org/badge/latestdoi/2600/sckott/serrano) | ||
@@ -198,6 +198,6 @@ | ||
| [crapi]: https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md | ||
| [cn]: http://www.crosscite.org/cn/ | ||
| [tdm]: http://www.crossref.org/tdm/ | ||
| [ccount]: http://labs.crossref.org/openurl/ | ||
| [cn]: https://citation.crosscite.org/docs.html | ||
| [tdm]: https://www.crossref.org/education/retrieve-metadata/rest-api/text-and-data-mining/ | ||
| [ccount]: https://labs.crossref.org/openurl/ | ||
| [csl]: https://github.com/citation-style-language/styles | ||
| [changelog]: https://github.com/sckott/serrano/blob/master/CHANGELOG.md |
+8
-7
@@ -12,3 +12,3 @@ # frozen_string_literal: true | ||
| s.required_ruby_version = '>= 2.1' | ||
| s.date = '2020-02-18' | ||
| s.date = '2020-05-29' | ||
| s.summary = 'Crossref Client' | ||
@@ -32,11 +32,11 @@ s.description = 'Low Level Ruby Client for the Crossref Search API' | ||
| s.add_development_dependency 'json', '~> 2.1' | ||
| s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1' | ||
| s.add_development_dependency 'rubocop', '~> 0.80.0' | ||
| s.add_development_dependency 'simplecov', '~> 0.17.0' | ||
| s.add_development_dependency 'rake', '>= 12.3.1', '~> 13.0' | ||
| s.add_development_dependency 'rubocop', '~> 0.84.0' | ||
| s.add_development_dependency 'simplecov', '~> 0.18.5' | ||
| s.add_development_dependency 'test-unit', '~> 3.2', '>= 3.2.7' | ||
| s.add_development_dependency 'vcr', '~> 5.0' | ||
| s.add_development_dependency 'vcr', '~> 6.0' | ||
| s.add_development_dependency 'webmock', '~> 3.4', '>= 3.4.1' | ||
| s.add_runtime_dependency 'faraday', '>= 0.15', '< 1.0' | ||
| s.add_runtime_dependency 'faraday_middleware', '>= 0.12.2', '< 0.15.0' | ||
| s.add_runtime_dependency 'faraday', '~> 1.0', '>= 1.0.1' | ||
| s.add_runtime_dependency 'faraday_middleware', '~> 1.0' | ||
| s.add_runtime_dependency 'multi_json', '~> 1.13', '>= 1.13.1' | ||
@@ -47,2 +47,3 @@ s.add_runtime_dependency 'thor', '>= 0.20', '< 1.1' | ||
| 'homepage_uri' => 'https://github.com/sckott/serrano', | ||
| 'documentation_uri' => 'https://www.rubydoc.info/gems/serrano', | ||
| 'changelog_uri' => | ||
@@ -49,0 +50,0 @@ "https://github.com/sckott/serrano/releases/tag/v#{s.version}", |
-11
| language: ruby | ||
| cache: bundler | ||
| rvm: | ||
| - 2.6.0 | ||
| - 2.6.5 | ||
| - 2.7.0 | ||
| before_install: | ||
| - gem install bundler | ||
| script: | ||
| - bundle exec rake test TESTOPTS="-v" | ||
| - bundle exec rubocop |