lifen-ruby-style 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 97cd12d32dce8bcba044dac64fb223aeabcfc637
4
+ data.tar.gz: 6f5353668684d86f3a4497b4d0168756e5025e14
5
+ SHA512:
6
+ metadata.gz: f73e6940b550a7750bf182fc1d86b6ba046450fc28239442c06eb6d8c73d7f34c59d3b0e909bf1363392683709e1efbdf0fcf476262964954234db84ea5b3d5e
7
+ data.tar.gz: dda906eb532f2c474971252db1cad6bd2e98632e81e645941e342f4d1b7c09f4fa56004beddfea4e553b618c54443bbec979df4d84c4b8d44250a1b25291d45f
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .DS_Store
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
@@ -0,0 +1 @@
1
+ inherit_from: default.yml
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify dependencies in percy-style.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Lifen.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # lifen-ruby-style
2
+
3
+ Configuration de Rubocop chez Lifen.
4
+
5
+ ## Installation
6
+
7
+ Il suffit d'ajouter dans le Gemfile:
8
+
9
+ ```ruby
10
+ group :test, :development do
11
+ gem 'lifen-ruby-style'
12
+ end
13
+ ```
14
+
15
+ Ou dans le gemspec s'il s'agit d'une librairie:
16
+
17
+ ```ruby
18
+ spec.add_development_dependency 'lifen-ruby-style'
19
+ ```
20
+
21
+ Puis :
22
+
23
+ ```bash
24
+ $ bundle install
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Il faut créer le fichier `.rubocop.yml` avec le code suivant :
30
+
31
+ ```yaml
32
+ inherit_gem:
33
+ lifen-ruby-style:
34
+ - default.yml
35
+ ```
36
+
37
+ Puis pour vérifier la configuration :
38
+
39
+ ```bash
40
+ $ bundle exec rubocop
41
+ ```
42
+
43
+ Il n'est pas nécessaire d'ajouter Rubocop dans les dépendances de l'application.
@@ -0,0 +1,16 @@
1
+ # Releasing
2
+
3
+ 1. Update version.rb file accordingly.
4
+ 1. Tag the release: `git tag vVERSION`
5
+ 1. Push changes: `git push --tags`
6
+ 1. Update the release notes on GitHub.com
7
+ 1. Build and publish:
8
+
9
+ ```bash
10
+ bundle exec rake build
11
+ gem push pkg/lifen-ruby-style-X.XX.XX.gem
12
+ ```
13
+
14
+ * Announce the new release,
15
+ making sure to say "thank you" to the contributors
16
+ who helped shape this version!
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,33 @@
1
+ AllCops:
2
+ DisplayCopNames: true
3
+ DisplayStyleGuide: true
4
+ ExtraDetails: false
5
+ TargetRubyVersion: 2.5
6
+ Exclude:
7
+ - 'spec/**/*.rb'
8
+ Layout/AccessModifierIndentation:
9
+ EnforcedStyle: indent
10
+ Layout/EmptyLinesAroundClassBody:
11
+ EnforcedStyle: empty_lines
12
+ Layout/IndentationConsistency:
13
+ EnforcedStyle: rails
14
+ Layout/SpaceInsideHashLiteralBraces:
15
+ EnforcedStyle: no_space
16
+ Metrics/BlockLength:
17
+ Enabled: false
18
+ Metrics/LineLength:
19
+ Enabled: false
20
+ Metrics/MethodLength:
21
+ Enabled: false
22
+ Naming/MemoizedInstanceVariableName:
23
+ Enabled: false
24
+ Style/BlockDelimiters:
25
+ EnforcedStyle: braces_for_chaining
26
+ Style/Documentation:
27
+ Enabled: false
28
+ Style/FrozenStringLiteralComment:
29
+ EnforcedStyle: never
30
+ Style/NegatedIf:
31
+ Enabled: false
32
+ Style/SymbolArray:
33
+ EnforcedStyle: brackets
@@ -0,0 +1,7 @@
1
+ require 'lifen/ruby_style/version'
2
+
3
+ module Lifen
4
+ module RubyStyle
5
+ # Nothing to see here.
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Lifen
2
+ module RubyStyle
3
+ VERSION = '0.0.1'.freeze
4
+ end
5
+ end
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "lifen/ruby_style/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "lifen-ruby-style"
8
+ spec.version = Lifen::RubyStyle::VERSION
9
+ spec.authors = ["Team Lifen"]
10
+ spec.email = ["contact@lifen.fr"]
11
+
12
+ spec.summary = 'Lifen style guides and shared style configs.'
13
+ spec.homepage = 'https://github.com/honestica/lifen-ruby-style'
14
+
15
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
+ else
20
+ raise "RubyGems 2.0 or newer is required to protect against " \
21
+ "public gem pushes."
22
+ end
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
+ f.match(%r{^(test|spec|features)/})
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_dependency "rubocop", "~> 0.57"
32
+ spec.add_development_dependency "bundler", "~> 1.15"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ end
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lifen-ruby-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Team Lifen
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.57'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.57'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.15'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description:
56
+ email:
57
+ - contact@lifen.fr
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rubocop.yml"
64
+ - Gemfile
65
+ - LICENSE
66
+ - README.md
67
+ - RELEASING.md
68
+ - Rakefile
69
+ - default.yml
70
+ - lib/lifen/ruby_style.rb
71
+ - lib/lifen/ruby_style/version.rb
72
+ - lifen-ruby-style.gemspec
73
+ homepage: https://github.com/honestica/lifen-ruby-style
74
+ licenses: []
75
+ metadata:
76
+ allowed_push_host: https://rubygems.org
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 2.6.11
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: Lifen style guides and shared style configs.
97
+ test_files: []