standard-faker 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -15
- data/lib/standard/faker/plugin.rb +3 -3
- data/lib/standard/faker/version.rb +1 -1
- data/standard-faker.gemspec +34 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3349607591c3d615812ee44ed0ee8dfcfb92743f313402b38b2dbaa0ac3cacd
|
4
|
+
data.tar.gz: 2c932a44dbba7b7a8098398b9fd77f76cefb4da8bc83e8a7fbc44d972d65e362
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1552dc87bc943536e312a1c2410beaa69c9a1b0d29e311d841940422933fd0713ec837f01e89b72cf18c1e8e6add03029e85830f49df72c4b86caa3cd3e4f060
|
7
|
+
data.tar.gz: ca0d5b7d8fa395db62ba07c873875196f319870c97cebf8a79d28ea542f1353599d6acfe6439b13099ef4620e678904dc00cd587cd2f2b832609cfd7b080f4ec
|
data/README.md
CHANGED
@@ -1,24 +1,18 @@
|
|
1
1
|
# Standard::Faker
|
2
2
|
|
3
|
-
|
3
|
+
This gem provides a [lint_roller](https://github.com/standardrb/lint_roller) plugin configuration for the [rubocop-faker](https://github.com/koic/rubocop-faker) ruleset as an extension to the Standard Ruby gem.
|
4
4
|
|
5
|
-
|
5
|
+
Add this to your Gemfile, to install:
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
7
|
+
`gem "standard-faker"`
|
18
8
|
|
19
9
|
## Usage
|
20
10
|
|
21
|
-
|
11
|
+
In your `.standard.yml` file, you can list standard-faker as a plugin:
|
12
|
+
```
|
13
|
+
plugins:
|
14
|
+
- standard-faker
|
15
|
+
```
|
22
16
|
|
23
17
|
## Development
|
24
18
|
|
@@ -28,7 +22,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
28
22
|
|
29
23
|
## Contributing
|
30
24
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
25
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/shilin-anton/standard-faker.
|
32
26
|
|
33
27
|
## License
|
34
28
|
|
@@ -8,7 +8,7 @@ module Standard
|
|
8
8
|
name: "standard-faker",
|
9
9
|
version: VERSION,
|
10
10
|
homepage: "https://github.com/shilin-anton/standard-faker",
|
11
|
-
description: "Configuration for rubocop-faker rules"
|
11
|
+
description: "Configuration for rubocop-faker rules."
|
12
12
|
)
|
13
13
|
end
|
14
14
|
|
@@ -36,11 +36,11 @@ module Standard
|
|
36
36
|
#
|
37
37
|
# See: https://github.com/koic/rubocop-faker/blob/master/lib/rubocop-faker.rb#L9
|
38
38
|
#
|
39
|
-
# As an alternative, standard-
|
39
|
+
# As an alternative, standard-faker loads the cops directly, and then
|
40
40
|
# simply tells the RuboCop config loader that it's been loaded. This is
|
41
41
|
# taking advantage of a private API of an `attr_reader` that probably wasn't
|
42
42
|
# meant to be mutated externally, but it's better than the `Inject` monkey
|
43
|
-
# patching that rubocop-
|
43
|
+
# patching that rubocop-faker does (and many other RuboCop plugins do)
|
44
44
|
def trick_rubocop_into_thinking_we_required_rubocop_faker!
|
45
45
|
without_warnings do
|
46
46
|
require_relative "load_rubocop_faker_without_the_monkey_patch"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/standard/faker/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "standard-faker"
|
7
|
+
spec.version = Standard::Faker::VERSION
|
8
|
+
spec.authors = ["shilin-anton"]
|
9
|
+
spec.email = ["anton.d.shilin@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "A Standard plugin that adds rubocop-faker specific rules to Standard."
|
12
|
+
spec.homepage = "https://github.com/shilin-anton/standard-faker"
|
13
|
+
spec.license = "MIT"
|
14
|
+
spec.required_ruby_version = ">= 2.7.0"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
18
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(__dir__) do
|
23
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
24
|
+
(File.expand_path(f) == __FILE__) ||
|
25
|
+
f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_dependency "lint_roller", "~> 1.0"
|
33
|
+
spec.add_dependency "rubocop-faker", "~> 1.1.0"
|
34
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard-faker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shilin-anton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lint_roller
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/standard/faker/plugin.rb
|
58
58
|
- lib/standard/faker/version.rb
|
59
59
|
- lib/standard_faker.rb
|
60
|
+
- standard-faker.gemspec
|
60
61
|
homepage: https://github.com/shilin-anton/standard-faker
|
61
62
|
licenses:
|
62
63
|
- MIT
|