tablexi_dev-generators 0.1.3 → 0.1.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a99d0d71d44d1f953323aaa60ad8dc1e256cd6f5
|
|
4
|
+
data.tar.gz: 12744fd273f70b7d16e9bfec49e776f34eb4120f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6137877765f7780a2777957b3e7f7fa404b4d94592829abb768614d8e115b82ee26d302f8b12b2b86de1603491dcc66602364e78bbb0f8e0b98ae2c2c402e64
|
|
7
|
+
data.tar.gz: 2f61295b971a78b6419b7e6cbc0a2765458be95ec76ace0020ced380c08a914d9b13d3cdd8fea1485845bb218a8a0e3f6bfc23679577c0a887ac5b4ba1746d6e
|
data/README.md
CHANGED
|
@@ -61,6 +61,18 @@ For detailed instructions on the rubocop generator and its options, [check out t
|
|
|
61
61
|
|
|
62
62
|
### Generator: Unicorn
|
|
63
63
|
|
|
64
|
-
bundle exec rails g tablexi_dev:
|
|
64
|
+
bundle exec rails g tablexi_dev:unicorn
|
|
65
65
|
|
|
66
66
|
The unicorn generator sets up a project's unicorn configuration files.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## Publishing this gem
|
|
70
|
+
|
|
71
|
+
1. Bump the version in `lib/tablexi_dev/generators/version.rb` according to [semver](https://semver.org/)
|
|
72
|
+
2. Commit `lib/tablexi_dev/generators/version.rb` to master and push
|
|
73
|
+
3. [Draft a github release](https://github.com/tablexi/tablexi_dev-generators/releases) with new vesion number and add a description that follows the convention of the existing releases
|
|
74
|
+
4. Publish the release
|
|
75
|
+
5. Checkout `master` and pull the latest
|
|
76
|
+
6. Make sure you are a [tablexi_dev-generators owner on rubygems.org](https://rubygems.org/gems/tablexi_dev-generators). If not, have an existing owner run `tablexi_dev-generators -a you@example.com`.
|
|
77
|
+
7. Run `gem build tablexi_dev-generators`
|
|
78
|
+
8. Run `gem push tablexi_dev-generators-<version>.gem` with file that was generated from the previous step
|
|
@@ -3,17 +3,41 @@
|
|
|
3
3
|
# You should NOT make any changes to this file, as it will be overwritten
|
|
4
4
|
# the next time we update the tablexi_dev-generators gem and run
|
|
5
5
|
# `rails generate tablexi_dev:rubocop`
|
|
6
|
+
#
|
|
7
|
+
# Please keep cops in alphabetical order so they're easy to find/scan.
|
|
6
8
|
AllCops:
|
|
7
9
|
DisplayCopNames: true
|
|
8
10
|
Exclude:
|
|
9
|
-
- "db/schema.rb" # You can't touch this
|
|
10
11
|
- ".bundle/**/*" # Auto-generated
|
|
11
12
|
- "bin/**/*" # Auto-generated
|
|
13
|
+
- "db/schema.rb" # You can't touch this
|
|
12
14
|
- "vendor/**/*" # We cannot solve the world's problems
|
|
13
15
|
TargetRubyVersion: 2.4
|
|
14
16
|
TargetRailsVersion: 5.1
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
19
|
+
Exclude:
|
|
20
|
+
# These are naturally DSL-y, and so let's be lenient.
|
|
21
|
+
- "lib/tasks/*.rake"
|
|
22
|
+
- "spec/**/*"
|
|
23
|
+
|
|
24
|
+
Layout/EmptyLinesAroundClassBody:
|
|
25
|
+
EnforcedStyle: empty_lines
|
|
26
|
+
Exclude:
|
|
27
|
+
- "db/**/*" # Migrations are compact by default, and it's not worth the wrestle.
|
|
28
|
+
|
|
29
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
30
|
+
EnforcedStyle: empty_lines
|
|
31
|
+
|
|
32
|
+
Layout/ExtraSpacing:
|
|
33
|
+
Exclude:
|
|
34
|
+
- "db/migrate/*" # Generated migrations often have extra spacing
|
|
35
|
+
|
|
36
|
+
Layout/SpaceBeforeFirstArg:
|
|
37
|
+
Exclude:
|
|
38
|
+
# We often add extra spaces for alignment in factories.
|
|
39
|
+
- "db/migrate/*" # We often add extra spaces for alignment in migrations.
|
|
40
|
+
- "spec/factories/**/*"
|
|
17
41
|
|
|
18
42
|
Lint/HandleExceptions:
|
|
19
43
|
Exclude:
|
|
@@ -24,55 +48,52 @@ Metrics/AbcSize:
|
|
|
24
48
|
Exclude:
|
|
25
49
|
- "db/**/*" # Sometimes migrations are complex.
|
|
26
50
|
|
|
51
|
+
Metrics/BlockLength:
|
|
52
|
+
Exclude:
|
|
53
|
+
# These are naturally DSL-y, and so let's be lenient.
|
|
54
|
+
- "config/routes.rb"
|
|
55
|
+
- "db/seeds/**/*"
|
|
56
|
+
- "spec/**/*"
|
|
57
|
+
|
|
27
58
|
Metrics/LineLength:
|
|
28
59
|
Max: 120
|
|
60
|
+
Exclude:
|
|
61
|
+
- "config/initializers/**/*" # Some generated initializers are long.
|
|
29
62
|
|
|
30
63
|
Metrics/MethodLength:
|
|
31
64
|
Max: 20
|
|
32
65
|
Exclude:
|
|
33
66
|
- "db/**/*" # Again, sometimes DB migrations are long.
|
|
34
67
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
# These are naturally DSL-y, and so let's be lenient.
|
|
38
|
-
- "spec/**/*"
|
|
39
|
-
- "config/routes.rb"
|
|
68
|
+
Rails:
|
|
69
|
+
Enabled: true
|
|
40
70
|
|
|
41
|
-
|
|
71
|
+
Rails/ApplicationRecord:
|
|
42
72
|
Exclude:
|
|
43
|
-
- "
|
|
73
|
+
- "db/**/*" # Migrations should be isolated, models defined there should NOT inherit from ApplicationRecord
|
|
44
74
|
|
|
45
|
-
|
|
75
|
+
Rails/Output:
|
|
46
76
|
Exclude:
|
|
47
|
-
- "db/**/*" #
|
|
77
|
+
- "db/seeds/**/*" # Allow `puts` from inside seed files
|
|
48
78
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
79
|
+
Rails/UnknownEnv:
|
|
80
|
+
Environments:
|
|
81
|
+
- development
|
|
82
|
+
- production
|
|
83
|
+
- stage
|
|
84
|
+
- test
|
|
54
85
|
|
|
55
|
-
|
|
56
|
-
EnforcedStyle: empty_lines
|
|
86
|
+
Style/ClassAndModuleChildren:
|
|
57
87
|
Exclude:
|
|
58
|
-
- "
|
|
59
|
-
|
|
60
|
-
Layout/EmptyLinesAroundModuleBody:
|
|
61
|
-
EnforcedStyle: empty_lines
|
|
88
|
+
- "app/controllers/**/*" # We generally use compact style here
|
|
62
89
|
|
|
63
|
-
|
|
90
|
+
Style/Documentation:
|
|
64
91
|
Exclude:
|
|
65
|
-
- "db
|
|
92
|
+
- "db/**/*" # No need to require migrations to be documented.
|
|
66
93
|
|
|
67
94
|
Style/SignalException:
|
|
68
95
|
EnforcedStyle: only_raise
|
|
69
96
|
|
|
70
|
-
Layout/SpaceBeforeFirstArg:
|
|
71
|
-
Exclude:
|
|
72
|
-
# We often add extra spaces for alignment in factories.
|
|
73
|
-
- "spec/factories/**/*"
|
|
74
|
-
- "db/migrate/*" # We often add extra spaces for alignment in migrations.
|
|
75
|
-
|
|
76
97
|
Style/StringLiterals:
|
|
77
98
|
EnforcedStyle: double_quotes
|
|
78
99
|
|
|
@@ -87,14 +108,3 @@ Style/TrailingCommaInHashLiteral:
|
|
|
87
108
|
|
|
88
109
|
Style/TrivialAccessors:
|
|
89
110
|
ExactNameMatch: true
|
|
90
|
-
|
|
91
|
-
Rails/UnknownEnv:
|
|
92
|
-
Environments:
|
|
93
|
-
- production
|
|
94
|
-
- development
|
|
95
|
-
- test
|
|
96
|
-
- stage
|
|
97
|
-
|
|
98
|
-
Rails/ApplicationRecord:
|
|
99
|
-
Exclude:
|
|
100
|
-
- "db/**/*" # Migrations should be isolated, models defined there should NOT inherit from ApplicationRecord
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tablexi_dev-generators
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Table XI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: '0'
|
|
101
101
|
requirements: []
|
|
102
102
|
rubyforge_project:
|
|
103
|
-
rubygems_version: 2.
|
|
103
|
+
rubygems_version: 2.5.2
|
|
104
104
|
signing_key:
|
|
105
105
|
specification_version: 4
|
|
106
106
|
summary: A recommended set of generators for Table XI projects..
|