faker-bot 0.5.1 → 0.5.2

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: e7fdf014f0c352744056c5ae4c197f99e204e8924e33a0f3ceb9e9b9d9d85b40
4
- data.tar.gz: 3b7b462bdfa2ff3668340a70ac4ec7647dcc15d3b4f853d5381f2083f5b48841
3
+ metadata.gz: 057c0595f0e18687e3303a65c2f76b54338924425cc891c56d348a0fc36fbc15
4
+ data.tar.gz: 459b87f2aaed04c33c909f295570c9f9858bdfe74b3b52e26418ae22247cbe3c
5
5
  SHA512:
6
- metadata.gz: 99fbcbf1c3e43bfe6f0dc2edd10e65e2978f1bee35ee938e9d1b1ad24dcb83a7139a6a03700b6ae357083fc49749c2855c3001ac5437025854871a5e3c3384f7
7
- data.tar.gz: 5f6b448c79c65eaad1cfab9c9b1e6c2b4a863136bca3ae54bed317e9445e729798329df3c8e7edb5ae82f6afdf2fde189fcea0e1ebdbbf504ed37ed6cf68d724
6
+ metadata.gz: 505ebaae88754b8cce77fbeff3fe072c0a085ce5e0729fe46d147aa006fdff48f268d6ee5a479fcc72b21dd0c350b54760dd92a6720371f749270ebca9257b92
7
+ data.tar.gz: ee420e9bce46c5f361ca99f5b5aa2af1f985611ac1d8d78b75657fec3a9e5ac7cecce9c03e927f6e33ef46b16a717d774b2327d07baba24880848abb5b11f0dd
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
  AllCops:
2
4
  Exclude:
3
5
  - "Gemfile"
@@ -8,5 +10,6 @@ AllCops:
8
10
  Style/Documentation:
9
11
  Exclude:
10
12
  - "lib/**/*"
13
+ - "spec/faker/bot/*"
11
14
  Metrics/ModuleLength:
12
15
  Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,20 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-08-30 13:50:07 -0600 using RuboCop version 0.74.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 11
10
+ # Configuration parameters: CountComments, ExcludedMethods.
11
+ # ExcludedMethods: refine
12
+ Metrics/BlockLength:
13
+ Max: 127
14
+
15
+ # Offense count: 1
16
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
17
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
18
+ Naming/FileName:
19
+ Exclude:
20
+ - 'lib/faker-bot.rb'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.6.4
data/.travis.yml CHANGED
@@ -3,7 +3,7 @@ env:
3
3
  - CC_TEST_REPORTER_ID=97ada6a78eeebe77dc11dacfb31238d8c5c3ba39ccae8dec76279e8176221da5
4
4
  language: ruby
5
5
  rvm:
6
- - 2.4
6
+ - 2.6.4
7
7
  before_script:
8
8
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9
9
  - chmod +x ./cc-test-reporter
data/CHANGELOG.md CHANGED
@@ -2,7 +2,29 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/faker-ruby/faker-bot/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/faker-ruby/faker-bot/compare/v0.5.0...HEAD)
5
+ [Full Changelog](https://github.com/faker-ruby/faker-bot/compare/v0.5.1...HEAD)
6
+
7
+ **Closed issues:**
8
+
9
+ - Define a Release Process [\#40](https://github.com/faker-ruby/faker-bot/issues/40)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - chore\(deps\): bump faker from 2.4.0 to 2.5.0 [\#59](https://github.com/faker-ruby/faker-bot/pull/59) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
14
+ - chore\(deps-dev\): update rake requirement from ~\> 12.3 to ~\> 13.0 [\#58](https://github.com/faker-ruby/faker-bot/pull/58) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
15
+ - chore\(deps\): bump faker from 2.3.0 to 2.4.0 [\#57](https://github.com/faker-ruby/faker-bot/pull/57) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
16
+ - chore\(deps-dev\): bump simplecov from 0.17.0 to 0.17.1 [\#56](https://github.com/faker-ruby/faker-bot/pull/56) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
17
+ - chore\(deps\): bump faker from 2.2.2 to 2.3.0 [\#55](https://github.com/faker-ruby/faker-bot/pull/55) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
18
+ - chore\(deps\): bump faker from 2.2.1 to 2.2.2 [\#54](https://github.com/faker-ruby/faker-bot/pull/54) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
19
+ - Pin rubocop version [\#53](https://github.com/faker-ruby/faker-bot/pull/53) ([bpleslie](https://github.com/bpleslie))
20
+ - chore\(deps-dev\): update rake requirement from ~\> 10.0 to ~\> 12.3 [\#52](https://github.com/faker-ruby/faker-bot/pull/52) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
21
+ - chore\(deps\): bump faker from 2.1.0 to 2.2.1 [\#51](https://github.com/faker-ruby/faker-bot/pull/51) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
22
+ - Add rubocop notes to CONTRIBUTING.md [\#50](https://github.com/faker-ruby/faker-bot/pull/50) ([bpleslie](https://github.com/bpleslie))
23
+ - Add rubocop [\#48](https://github.com/faker-ruby/faker-bot/pull/48) ([bpleslie](https://github.com/bpleslie))
24
+ - Add contribution docs [\#47](https://github.com/faker-ruby/faker-bot/pull/47) ([bpleslie](https://github.com/bpleslie))
25
+
26
+ ## [v0.5.1](https://github.com/faker-ruby/faker-bot/tree/v0.5.1) (2019-08-09)
27
+ [Full Changelog](https://github.com/faker-ruby/faker-bot/compare/v0.5.0...v0.5.1)
6
28
 
7
29
  **Implemented enhancements:**
8
30
 
@@ -41,7 +63,6 @@
41
63
  - Release v0.5.0 [\#41](https://github.com/faker-ruby/faker-bot/pull/41) ([akabiru](https://github.com/akabiru))
42
64
  - Add CI & QA Badges [\#34](https://github.com/faker-ruby/faker-bot/pull/34) ([akabiru](https://github.com/akabiru))
43
65
  - Chore: CleanUp [\#32](https://github.com/faker-ruby/faker-bot/pull/32) ([akabiru](https://github.com/akabiru))
44
- - Update README to republish faker-cli [\#29](https://github.com/faker-ruby/faker-bot/pull/29) ([vbrazo](https://github.com/vbrazo))
45
66
 
46
67
  ## [v0.4.5](https://github.com/faker-ruby/faker-bot/tree/v0.4.5) (2019-07-11)
47
68
  [Full Changelog](https://github.com/faker-ruby/faker-bot/compare/v0.4.4...v0.4.5)
@@ -52,6 +73,10 @@
52
73
  - Gem name should be faker-bot [\#31](https://github.com/faker-ruby/faker-bot/pull/31) ([vbrazo](https://github.com/vbrazo))
53
74
  - Distribute Faker::Reflector Responsibilities [\#22](https://github.com/faker-ruby/faker-bot/pull/22) ([akabiru](https://github.com/akabiru))
54
75
 
76
+ **Fixed bugs:**
77
+
78
+ - Support `search` for ruby less than 2.4.0 [\#12](https://github.com/faker-ruby/faker-bot/pull/12) ([kfpo](https://github.com/kfpo))
79
+
55
80
  **Closed issues:**
56
81
 
57
82
  - Integrate faker-bot in faker-ruby organization [\#27](https://github.com/faker-ruby/faker-bot/issues/27)
@@ -59,6 +84,7 @@
59
84
 
60
85
  **Merged pull requests:**
61
86
 
87
+ - Update README to republish faker-cli [\#29](https://github.com/faker-ruby/faker-bot/pull/29) ([vbrazo](https://github.com/vbrazo))
62
88
  - chore: Rename from FakerBot to Faker::CLI [\#28](https://github.com/faker-ruby/faker-bot/pull/28) ([akabiru](https://github.com/akabiru))
63
89
  - Add deprecation notes; thank you contributors! 🎉 [\#25](https://github.com/faker-ruby/faker-bot/pull/25) ([akabiru](https://github.com/akabiru))
64
90
 
@@ -100,7 +126,6 @@
100
126
  **Fixed bugs:**
101
127
 
102
128
  - Handle Deprecation Warnings [\#7](https://github.com/faker-ruby/faker-bot/issues/7)
103
- - Support `search` for ruby less than 2.4.0 [\#12](https://github.com/faker-ruby/faker-bot/pull/12) ([kfpo](https://github.com/kfpo))
104
129
 
105
130
  ## [v0.4.1](https://github.com/faker-ruby/faker-bot/tree/v0.4.1) (2018-09-18)
106
131
  [Full Changelog](https://github.com/faker-ruby/faker-bot/compare/v0.4.0...v0.4.1)
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,61 @@
1
+ We love pull requests. Here's a quick guide:
2
+
3
+ 1. Fork the repo.
4
+
5
+ 2. Run the tests. We only take pull requests with passing tests, and it's great to know that you have a clean slate: `bundle && bundle exec rake`
6
+
7
+ 3. We are using [Rubocop](https://github.com/bbatsov/rubocop) because we love static code analyzers.
8
+ * Ways to run Rubocop:
9
+ - `bundle exec rubocop`
10
+
11
+ 4. Please add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or fixing a bug, we need a test! We use [RSpec](https://github.com/rspec/rspec) in this project.
12
+
13
+ 5. We care about code coverage and use `SimpleCov` to analyze the code and generate test coverage reports. It's possible to check the test coverage by running `open coverage/index.html`. Please make sure to not decrease our `current % covered` and add appropriate test cases when necessary.
14
+
15
+ 6. Methods with optional arguments should use keyword rather than positional arguments. An exception to this could be a method that takes only one optional argument, and it's unlikely that that method would ever take more than one optional argument.
16
+
17
+ 7. Push to your fork and submit a pull request.
18
+
19
+ ### Github Flow for contributors and collaborators
20
+
21
+ For those of you with commit access, please check out Scott Chacon's blog post about [github flow](http://scottchacon.com/2011/08/31/github-flow.html)
22
+
23
+ > * Anything in the master branch is deployable
24
+ > * To work on something new, create a descriptively named branch off of master (ie: new-oauth2-scopes)
25
+ > * Commit to that branch locally and regularly push your work to the same named branch on the server
26
+ > * When you need feedback or help, or you think the branch is ready for merging, open a pull request
27
+ > * After someone else has reviewed and signed off on the feature, you can merge it into master
28
+
29
+ If you're reviewing a PR, you should ask yourself:
30
+ > * Does it work as described? A PR should have a great description.
31
+ > * Is it understandable?
32
+ > * Is it well implemented?
33
+ > * Is it well tested?
34
+ > * Is it well documented?
35
+ > * Is it following the structure of the project?
36
+
37
+ ### Syntax/Good practices:
38
+
39
+ * Two spaces, no tabs.
40
+ * No trailing whitespace. Blank lines should not have any space.
41
+ * Prefer `&&`, `||` over `and`, `or`.
42
+ * `MyClass.my_method(my_arg)` not `my_method( my_arg )` or `my_method my_arg`.
43
+ * `a = b` and not `a=b`.
44
+ * use dash syntax for yaml arrays:
45
+ ```Yaml
46
+ # this
47
+ a_things:
48
+ - small_thing
49
+ - big_thing
50
+ - other_thing
51
+
52
+ # instead of these:
53
+ b_things: [small_thing, big_thing, other_thing]
54
+ c_things: [
55
+ small_thing,
56
+ big_thing,
57
+ other_thing,
58
+ ]
59
+ ```
60
+ * In general, follow the conventions you see used in the source already.
61
+ * **ALL SHALL OBEY THE RUBOCOP**
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in faker-cli.gemspec
5
+ # Specify your gem's dependencies in faker-bot.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faker-bot (0.5.1)
4
+ faker-bot (0.5.2)
5
5
  faker
6
6
  pastel (~> 0.7.2)
7
7
  thor (~> 0.20.0)
@@ -12,6 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
+ ast (2.4.0)
15
16
  coderay (1.1.2)
16
17
  concurrent-ruby (1.1.5)
17
18
  coveralls (0.7.1)
@@ -25,8 +26,8 @@ GEM
25
26
  domain_name (0.5.20190701)
26
27
  unf (>= 0.0.5, < 1.0.0)
27
28
  equatable (0.6.1)
28
- faker (2.1.0)
29
- i18n (>= 0.7)
29
+ faker (2.5.0)
30
+ i18n (~> 1.6.0)
30
31
  ffi (1.11.1)
31
32
  formatador (0.2.5)
32
33
  guard (2.15.0)
@@ -43,10 +44,12 @@ GEM
43
44
  guard (~> 2.1)
44
45
  guard-compat (~> 1.1)
45
46
  rspec (>= 2.99.0, < 4.0)
47
+ http-accept (1.7.0)
46
48
  http-cookie (1.0.3)
47
49
  domain_name (~> 0.5)
48
50
  i18n (1.6.0)
49
51
  concurrent-ruby (~> 1.0)
52
+ jaro_winkler (1.5.3)
50
53
  json (2.2.0)
51
54
  listen (3.1.5)
52
55
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -63,17 +66,22 @@ GEM
63
66
  notiffany (0.1.1)
64
67
  nenv (~> 0.1)
65
68
  shellany (~> 0.0)
69
+ parallel (1.17.0)
70
+ parser (2.6.4.0)
71
+ ast (~> 2.4.0)
66
72
  pastel (0.7.3)
67
73
  equatable (~> 0.6)
68
74
  tty-color (~> 0.5)
69
75
  pry (0.12.2)
70
76
  coderay (~> 1.1.0)
71
77
  method_source (~> 0.9.0)
72
- rake (10.5.0)
78
+ rainbow (3.0.0)
79
+ rake (13.0.0)
73
80
  rb-fsevent (0.10.3)
74
81
  rb-inotify (0.10.0)
75
82
  ffi (~> 1.0)
76
- rest-client (2.0.2)
83
+ rest-client (2.1.0)
84
+ http-accept (>= 1.7.0, < 2.0)
77
85
  http-cookie (>= 1.0.2, < 2.0)
78
86
  mime-types (>= 1.16, < 4.0)
79
87
  netrc (~> 0.8)
@@ -90,14 +98,22 @@ GEM
90
98
  diff-lcs (>= 1.2.0, < 2.0)
91
99
  rspec-support (~> 3.8.0)
92
100
  rspec-support (3.8.2)
101
+ rubocop (0.74.0)
102
+ jaro_winkler (~> 1.5.1)
103
+ parallel (~> 1.10)
104
+ parser (>= 2.6)
105
+ rainbow (>= 2.2.2, < 4.0)
106
+ ruby-progressbar (~> 1.7)
107
+ unicode-display_width (>= 1.4.0, < 1.7)
108
+ ruby-progressbar (1.10.1)
93
109
  ruby_dep (1.5.0)
94
110
  shellany (0.0.1)
95
- simplecov (0.17.0)
111
+ simplecov (0.17.1)
96
112
  docile (~> 1.1)
97
113
  json (>= 1.8, < 3)
98
114
  simplecov-html (~> 0.10.0)
99
115
  simplecov-html (0.10.2)
100
- strings (0.1.5)
116
+ strings (0.1.6)
101
117
  strings-ansi (~> 0.1)
102
118
  unicode-display_width (~> 1.5)
103
119
  unicode_utils (~> 1.4)
@@ -105,7 +121,7 @@ GEM
105
121
  term-ansicolor (1.7.1)
106
122
  tins (~> 1.0)
107
123
  thor (0.20.3)
108
- tins (1.21.0)
124
+ tins (1.21.1)
109
125
  tty-color (0.5.0)
110
126
  tty-pager (0.12.1)
111
127
  strings (~> 0.1.4)
@@ -129,8 +145,9 @@ DEPENDENCIES
129
145
  faker-bot!
130
146
  guard-rspec
131
147
  pry
132
- rake (~> 10.0)
148
+ rake (~> 13.0)
133
149
  rspec (~> 3.0)
150
+ rubocop (~> 0.74.0)
134
151
  simplecov (~> 0.12)
135
152
 
136
153
  BUNDLED WITH
data/README.md CHANGED
@@ -72,7 +72,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
72
72
 
73
73
  ## Contributing
74
74
 
75
- Bug reports and pull requests are welcome on GitHub at https://github.com/faker-ruby/faker-bot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/faker-ruby/faker-bot. See [CONTRIBUTING.md](https://github.com/faker-ruby/faker-bot/blob/master/CONTRIBUTING.md).
76
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
76
77
 
77
78
  ## Credits
78
79
 
data/faker-bot.gemspec CHANGED
@@ -30,7 +30,8 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "coveralls"
31
31
  spec.add_development_dependency "guard-rspec"
32
32
  spec.add_development_dependency "pry"
33
- spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rake", "~> 13.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
+ spec.add_development_dependency "rubocop", "~> 0.74.0"
35
36
  spec.add_development_dependency "simplecov", "~> 0.12"
36
37
  end
@@ -56,8 +56,7 @@ module Faker
56
56
  store(descendant, methods)
57
57
  else
58
58
  store(
59
- descendant,
60
- methods.select { |method| query_matches?(method) }
59
+ descendant, methods.select { |method| query_matches?(method) }
61
60
  )
62
61
  end
63
62
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faker
4
4
  module Bot
5
- VERSION = '0.5.1'
5
+ VERSION = '0.5.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faker-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Kabiru
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-09 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faker
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '10.0'
159
+ version: '13.0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '10.0'
166
+ version: '13.0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rspec
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '3.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 0.74.0
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 0.74.0
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: simplecov
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -205,10 +219,12 @@ files:
205
219
  - ".gitignore"
206
220
  - ".rspec"
207
221
  - ".rubocop.yml"
222
+ - ".rubocop_todo.yml"
208
223
  - ".ruby-version"
209
224
  - ".travis.yml"
210
225
  - CHANGELOG.md
211
226
  - CODE_OF_CONDUCT.md
227
+ - CONTRIBUTING.md
212
228
  - Gemfile
213
229
  - Gemfile.lock
214
230
  - Guardfile
@@ -248,8 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
264
  - !ruby/object:Gem::Version
249
265
  version: '0'
250
266
  requirements: []
251
- rubyforge_project:
252
- rubygems_version: 2.7.6
267
+ rubygems_version: 3.0.3
253
268
  signing_key:
254
269
  specification_version: 4
255
270
  summary: A faker-ruby/faker lookup command line tool.