faraday_boolean 0.1.0 → 0.1.1

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
- SHA1:
3
- metadata.gz: 341935b36373cda2475ac68584609130c06c6a09
4
- data.tar.gz: 6be5f170789d06ffc841fa61ed33669794ab1cfe
2
+ SHA256:
3
+ metadata.gz: 382b303787ce6e233a13809516b50e7975b76f7a3422303e21e283c2f8d1bea8
4
+ data.tar.gz: 93b699d1d1e7191e9d3270437a92ece492d83e670f28d6d0d22a2f47d0a29204
5
5
  SHA512:
6
- metadata.gz: 5b36ebc9d7287906f3d6da7bd1e56b95260ca5714f751dde66a3e2997e6fc7f9b1b0fd6b22d3638865e8d24772a1b87368dcc0dc0e26a2bada6aecf5752a3d75
7
- data.tar.gz: f6cc45f16037396beee04ab0d03cc5d4e9f3d2515f5147be7358b6631e2e12345d060cfa879951f59154e3cdf1ede2bb4dcf4b29b435b7459e872172e8546a2c
6
+ metadata.gz: 9bb2182b1185e9c34d35e842ae89ccb1d76294c27e7001d595133a517b4a9ccbd1c6e95b75f1534413b559143f1121d24b158bf3b32f968696253cafa7c33b6a
7
+ data.tar.gz: 688ac08212d06c6ac24f20da76b722a17df4d613059bf635a0c67d743604b092543e5e8b7f0e1ed51f351009403edea7204a11452d9abfa8dc38f6c1aad46aff
@@ -0,0 +1,112 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ CI: "true"
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ container: ${{ matrix.ruby }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ ruby:
29
+ - ruby:2.1
30
+ - ruby:2.2
31
+ - ruby:2.3
32
+ - ruby:2.4
33
+ - ruby:2.5
34
+ - ruby:2.6
35
+ - ruby:2.7
36
+ - ruby:3.0
37
+ - rubylang/ruby:master-nightly-bionic
38
+ include:
39
+ - ruby: rubylang/ruby:master-nightly-bionic
40
+ allow_failures: "true"
41
+
42
+ steps:
43
+ - uses: actions/checkout@v2
44
+
45
+
46
+ - name: Cache vendor/bundle
47
+ uses: actions/cache@v1
48
+ id: cache_gem
49
+ with:
50
+ path: vendor/bundle
51
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
52
+ restore-keys: |
53
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
54
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
55
+
56
+ - name: bundle update
57
+ run: |
58
+ set -xe
59
+ bundle config path vendor/bundle
60
+ bundle update --jobs $(nproc) --retry 3
61
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
62
+
63
+ - name: Setup Code Climate Test Reporter
64
+ uses: aktions/codeclimate-test-reporter@v1
65
+ with:
66
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
67
+ command: before-build
68
+ if: matrix.ruby >= 'ruby:2.4'
69
+ continue-on-error: true
70
+
71
+ - name: Run test
72
+ run: |
73
+ set -xe
74
+ bundle exec rspec
75
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
76
+
77
+ - name: Teardown Code Climate Test Reporter
78
+ uses: aktions/codeclimate-test-reporter@v1
79
+ with:
80
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
81
+ command: after-build
82
+ if: matrix.ruby >= 'ruby:2.4' && always()
83
+ continue-on-error: true
84
+
85
+ - name: Slack Notification (not success)
86
+ uses: lazy-actions/slatify@master
87
+ if: "! success()"
88
+ continue-on-error: true
89
+ with:
90
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
91
+ type: ${{ job.status }}
92
+ icon_emoji: ":octocat:"
93
+ url: ${{ secrets.SLACK_WEBHOOK }}
94
+ token: ${{ secrets.GITHUB_TOKEN }}
95
+
96
+ notify:
97
+ needs:
98
+ - test
99
+
100
+ runs-on: ubuntu-latest
101
+
102
+ steps:
103
+ - name: Slack Notification (success)
104
+ uses: lazy-actions/slatify@master
105
+ if: always()
106
+ continue-on-error: true
107
+ with:
108
+ job_name: '*build*'
109
+ type: ${{ job.status }}
110
+ icon_emoji: ":octocat:"
111
+ url: ${{ secrets.SLACK_WEBHOOK }}
112
+ token: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ site/
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## master
2
+ [full changelog](http://github.com/sue445/faraday_boolean/compare/v0.1.1...master)
3
+
4
+ ## v0.1.1
5
+ [full changelog](http://github.com/sue445/faraday_boolean/compare/v0.1.0...v0.1.1)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/faraday_boolean/pull/25
9
+
10
+ ## v0.1.0
11
+ * first release
data/README.md CHANGED
@@ -2,8 +2,10 @@
2
2
 
3
3
  Faraday response parser for boolean body
4
4
 
5
- [![Build Status](https://travis-ci.org/sue445/faraday_boolean.svg?branch=master)](https://travis-ci.org/sue445/faraday_boolean)
5
+ [![Gem Version](https://badge.fury.io/rb/faraday_boolean.svg)](https://badge.fury.io/rb/faraday_boolean)
6
+ [![Build Status](https://github.com/sue445/faraday_boolean/workflows/test/badge.svg?branch=master)](https://github.com/sue445/faraday_boolean/actions?query=workflow%3Atest)
6
7
  [![Coverage Status](https://coveralls.io/repos/sue445/faraday_boolean/badge.svg?branch=master&service=github)](https://coveralls.io/github/sue445/faraday_boolean?branch=master)
8
+ [![Code Climate](https://codeclimate.com/github/sue445/faraday_boolean/badges/gpa.svg)](https://codeclimate.com/github/sue445/faraday_boolean)
7
9
 
8
10
  ## Installation
9
11
 
@@ -48,6 +50,22 @@ res.body.class
48
50
 
49
51
  If don't use `conn.response :boolean`, return `"true"` of `String` class
50
52
 
53
+ ```ruby
54
+ connection =
55
+ Faraday.new(url: "http://example.com") do |conn|
56
+ # conn.response :boolean
57
+ conn.adapter Faraday.default_adapter
58
+ end
59
+
60
+ res = connection.get("/boolean/true")
61
+
62
+ res.body
63
+ #=> "true"
64
+
65
+ res.body.class
66
+ #=> String
67
+ ```
68
+
51
69
  ## Development
52
70
 
53
71
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/faraday_boolean"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["rubygems_mfa_required"] = "true"
21
+
17
22
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
23
  spec.bindir = "exe"
19
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -21,11 +26,11 @@ Gem::Specification.new do |spec|
21
26
 
22
27
  spec.add_dependency "faraday"
23
28
 
24
- spec.add_development_dependency "bundler", "~> 1.10"
25
- spec.add_development_dependency "codeclimate-test-reporter"
29
+ spec.add_development_dependency "bundler", ">= 1.10"
26
30
  spec.add_development_dependency "coveralls"
27
- spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rake", ">= 10.0"
28
32
  spec.add_development_dependency "rspec"
29
33
  spec.add_development_dependency "rspec-its"
34
+ spec.add_development_dependency "simplecov"
30
35
  spec.add_development_dependency "webmock"
31
36
  end
@@ -1,3 +1,3 @@
1
1
  module FaradayBoolean
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_boolean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,18 +28,18 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.10'
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
40
  version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
42
+ name: coveralls
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,35 +53,35 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: coveralls
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rspec-its
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec-its
98
+ name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -130,9 +130,10 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - ".coveralls.yml"
133
+ - ".github/workflows/test.yml"
133
134
  - ".gitignore"
134
135
  - ".rspec"
135
- - ".travis.yml"
136
+ - CHANGELOG.md
136
137
  - Gemfile
137
138
  - LICENSE.txt
138
139
  - README.md
@@ -146,8 +147,12 @@ files:
146
147
  homepage: https://github.com/sue445/faraday_boolean
147
148
  licenses:
148
149
  - MIT
149
- metadata: {}
150
- post_install_message:
150
+ metadata:
151
+ homepage_uri: https://github.com/sue445/faraday_boolean
152
+ source_code_uri: https://github.com/sue445/faraday_boolean
153
+ changelog_uri: https://github.com/sue445/faraday_boolean/blob/master/CHANGELOG.md
154
+ rubygems_mfa_required: 'true'
155
+ post_install_message:
151
156
  rdoc_options: []
152
157
  require_paths:
153
158
  - lib
@@ -162,9 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
167
  - !ruby/object:Gem::Version
163
168
  version: '0'
164
169
  requirements: []
165
- rubyforge_project:
166
- rubygems_version: 2.4.5.1
167
- signing_key:
170
+ rubygems_version: 3.2.22
171
+ signing_key:
168
172
  specification_version: 4
169
173
  summary: Faraday response parser for boolean body
170
174
  test_files: []
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1
4
- - 2.2
5
- - ruby-head
6
- cache: bundler
7
- sudo: false
8
- before_install: gem install bundler -v 1.10.6
9
- before_script:
10
- - export CI=true
11
- script:
12
- - bundle exec rspec
13
- branches:
14
- only:
15
- - master
16
- notifications:
17
- email: false
18
- slack:
19
- secure: Ijz8ac7DONk+ccGZBNrFuLzCHa5JbjsESLTEa9J8e/BBh6LPScsMIxgttliaJqBrBLKRW49pP3Y3FCTtSdlUqqYoa029FMweCSs64R9R1KGtD6G8AC2I2rl/CT175bjBNANDS9mUKiQYHrmH5X16lb113lFIpkqd13/O38gk4yUpTZePEhPYQsVpXgxCSspS9RjMsbYod567wdAhtXqf3P1KQBEbFY1h+qkviALykQbfGm4wQCNsy4AeurxR2g/Eqp48dYskiJciVlJYg0/wf7oILaUQDSXPjF0KCLXFa7dgibB/g2J36jyn2bTm4mX/cVIi1VpQKHSqUBqDq8eA76AOzvcXONdEYtfXmS4rIyjF7Ytmp8VZl4b1XMGwjFrZ8ntpEk+IfwMXCF14CqvOwpr/7XkeZkIJ1l+KW5Ksw1X3SV1NKtSKl6irrKLM7UsQ7nvDjIjU1c8HsNqgbATFhDwtLoRXVmja9m/5RdQouud1FMiI2xyuWG8rTYlEm6Qhh5KbtyjXRVXRXHhGpuTtN2IUqNaplqJiNtza2aPffdlev78c4RCOobkNWBWEt7stDpklyOwo5TfxNtxOlKWdswisUjZWxuqmKJwUPdV14GLvYUGjJWdWNNU2bLNiHXIeUKQdR5zTwm6Z9KrkihY6NIpieG1qi89uwsZrHNc0RK4=
20
- matrix:
21
- allow_failures:
22
- - rvm: ruby-head