hoalife 0.1.2 → 0.1.5
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/Gemfile.lock +5 -5
- data/README.md +14 -3
- data/bin/release +35 -0
- data/hoalife.gemspec +1 -1
- data/lib/hoalife/client/base.rb +1 -1
- data/lib/hoalife/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad1bb55abf72eafa0ab03d98f64780ccc256c845270dec9da47aee29d577779
|
4
|
+
data.tar.gz: e2e098330eb8cb4212a26dde0c7a99bc98dea0d8ce8cf854fec7fac18e56032b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d000fdb3f1c2443426140d6010346638de821b0fde9140654765407f47045eb3ad07928a1a04bee6bdbfdc289c14ae4482dee2d579fa7e6bce0327f179bccbe8
|
7
|
+
data.tar.gz: 9bee59c77f7d47a1b9b7f801d8e0d32ae6c4a44005efd00c9e48be1cdf479c59c19d813611fe9e9fda811b749c164e91450390e94b855ea4b79f7f7297f497b4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hoalife (0.1.
|
4
|
+
hoalife (0.1.5)
|
5
5
|
zeitwerk (~> 2.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
ast (~> 2.4.0)
|
26
26
|
public_suffix (3.1.1)
|
27
27
|
rainbow (3.0.0)
|
28
|
-
rake (
|
28
|
+
rake (13.0.1)
|
29
29
|
rb-fsevent (0.10.3)
|
30
30
|
rb-inotify (0.10.0)
|
31
31
|
ffi (~> 1.0)
|
@@ -44,7 +44,7 @@ GEM
|
|
44
44
|
addressable (>= 2.3.6)
|
45
45
|
crack (>= 0.3.2)
|
46
46
|
hashdiff (>= 0.4.0, < 2.0.0)
|
47
|
-
zeitwerk (2.
|
47
|
+
zeitwerk (2.3.0)
|
48
48
|
|
49
49
|
PLATFORMS
|
50
50
|
ruby
|
@@ -54,9 +54,9 @@ DEPENDENCIES
|
|
54
54
|
hoalife!
|
55
55
|
listen (~> 3.1)
|
56
56
|
minitest (~> 5.0)
|
57
|
-
rake (~>
|
57
|
+
rake (~> 13.0)
|
58
58
|
rubocop (~> 0.74)
|
59
59
|
webmock (~> 3.6)
|
60
60
|
|
61
61
|
BUNDLED WITH
|
62
|
-
2.
|
62
|
+
2.1.2
|
data/README.md
CHANGED
@@ -29,6 +29,8 @@ Or install it yourself as:
|
|
29
29
|
Configure the client with your credentials in your code.
|
30
30
|
|
31
31
|
```ruby
|
32
|
+
require 'hoalife'
|
33
|
+
|
32
34
|
HOALife.config do |config|
|
33
35
|
config.api_key = 'sk_YOURSUPERSECRETKEY'
|
34
36
|
config.signing_secret = 'ss_YOURSIGNINGSECRET'
|
@@ -42,7 +44,7 @@ HOALife.signing_secret = 'ss_YOURSIGNINGSECRET'
|
|
42
44
|
HOALife.sleep_when_rate_limited = 10.0 # Optional
|
43
45
|
```
|
44
46
|
|
45
|
-
Alternatively, you can specify the `
|
47
|
+
Alternatively, you can specify the `HOALIFE_API_KEY`, and `HOALIFE_SIGNING_SECRET` environmental variables to automatically configure the client.
|
46
48
|
|
47
49
|
```sh
|
48
50
|
HOALIFE_API_KEY=sk_YOURSUPERSECRETKEY
|
@@ -51,6 +53,16 @@ HOALIFE_SIGNING_SECRET=ss_YOURSIGNINGSECRET
|
|
51
53
|
echo $HOALIFE_API_KEY # => sk_YOURSUPERSECRETKEY
|
52
54
|
echo $HOALIFE_SIGNING_SECRET # => ss_YOURSIGNINGSECRET
|
53
55
|
```
|
56
|
+
resulting in
|
57
|
+
```ruby
|
58
|
+
require 'hoalife'
|
59
|
+
|
60
|
+
ENV['HOALIFE_API_KEY'] # => 'sk_YOURSUPERSECRETKEY'
|
61
|
+
ENV['HOALIFE_SIGNING_SECRET'] # => 'ss_YOURSIGNINGSECRET'
|
62
|
+
|
63
|
+
HOALife.api_key # => 'sk_YOURSUPERSECRETKEY'
|
64
|
+
HOALife.signing_secret # => 'ss_YOURSIGNINGSECRET'
|
65
|
+
```
|
54
66
|
|
55
67
|
### Rate Limits
|
56
68
|
|
@@ -211,11 +223,10 @@ account.destroy # => true
|
|
211
223
|
|
212
224
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
213
225
|
|
214
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
215
226
|
|
216
227
|
## Contributing
|
217
228
|
|
218
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
229
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hoalife/hoalife-ruby.
|
219
230
|
|
220
231
|
## License
|
221
232
|
|
data/bin/release
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
case ARGV[0]
|
5
|
+
when 'major'
|
6
|
+
release_version = 'major'
|
7
|
+
when 'minor'
|
8
|
+
release_version = 'minor'
|
9
|
+
when 'pre'
|
10
|
+
release_version = 'pre'
|
11
|
+
when /\d+\.\d+\.\d+$/
|
12
|
+
release_version = ARGV[0]
|
13
|
+
else
|
14
|
+
release_version = 'patch'
|
15
|
+
end
|
16
|
+
|
17
|
+
version = `gem bump --no-commit --version #{release_version} | awk '{ print $4 }' | head -n 1`.strip
|
18
|
+
|
19
|
+
system('bundle')
|
20
|
+
|
21
|
+
system('git add lib/hoalife/version.rb')
|
22
|
+
system('git add Gemfile.lock')
|
23
|
+
|
24
|
+
system("git commit -m \"Bump HOALife to #{version}\"")
|
25
|
+
|
26
|
+
system("git tag v#{version}")
|
27
|
+
system("git push --tags")
|
28
|
+
|
29
|
+
system("gem build hoalife")
|
30
|
+
|
31
|
+
puts "OTP Code:"
|
32
|
+
code = gets.strip
|
33
|
+
system("gem push --otp #{code} --key hoalife_rubygems_api_key hoalife-#{version}.gem")
|
34
|
+
|
35
|
+
system("rm hoalife-#{version}.gem")
|
data/hoalife.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
37
37
|
spec.add_development_dependency 'listen', '~> 3.1'
|
38
38
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
39
|
-
spec.add_development_dependency 'rake', '~>
|
39
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
40
40
|
spec.add_development_dependency 'rubocop', '~> 0.74'
|
41
41
|
spec.add_development_dependency 'webmock', '~> 3.6'
|
42
42
|
end
|
data/lib/hoalife/client/base.rb
CHANGED
data/lib/hoalife/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoalife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Westendorf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '13.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: '
|
82
|
+
version: '13.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- README.md
|
125
125
|
- Rakefile
|
126
126
|
- bin/console
|
127
|
+
- bin/release
|
127
128
|
- bin/setup
|
128
129
|
- examples/account.rb
|
129
130
|
- examples/ccr_article_and_violation_types.rb
|