hoe-rubocop 0.0.9.20150925201419

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 40d94955ef42063dda91a89083b310265905e2c0
4
+ data.tar.gz: 81e31fa6a5bbd5b98b2486ced5d80d3c6aeceb9e
5
+ SHA512:
6
+ metadata.gz: b1b56e579dde13bb10256763990a61066b8b4bf27e4b8126acb29023b620bfbfb6d311c09c39860ce95b2de61b0e00690521577e09cbb2adcd1bfa5eaae629ea
7
+ data.tar.gz: c16fa7d98b9c930b76da03f82864fc5bd05881923db20363a10f20bc020552639dd6882a481a16602eafcabd4e0dc6b5ce3d7d9997c9a058fa42b4056074b58b
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
data/.autotest ADDED
@@ -0,0 +1,25 @@
1
+ # -*- ruby -*-
2
+
3
+ require "autotest/restart"
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.testlib = "minitest/unit"
7
+ #
8
+ # at.extra_files << "../some/external/dependency.rb"
9
+ #
10
+ # at.libs << ":../some/external"
11
+ #
12
+ # at.add_exception "vendor"
13
+ #
14
+ # at.add_mapping(/dependency.rb/) do |f, _|
15
+ # at.files_matching(/test_.*rb$/)
16
+ # end
17
+ #
18
+ # %w(TestA TestB).each do |klass|
19
+ # at.extra_class_map[klass] = "test/test_misc.rb"
20
+ # end
21
+ # end
22
+
23
+ # Autotest.add_hook :run_command do |at|
24
+ # system "rake build"
25
+ # end
data/.gemnasium.yml ADDED
@@ -0,0 +1,5 @@
1
+ # api_endpoint: http://private-77f5-gemnasium.apiary-mock.com
2
+ api_key: 0f4473f5825f325227eb7a3a9a3425af # You personal (secret) API key. Get it at https://gemnasium.com/settings/api_access
3
+ project_name: hoe-rubocop # A name to remember your project.
4
+ project_slug: saigkill/hoe-rubocop # Unique slug for this project. Get it on the "project settings" page.
5
+ project_branch: master # /!\ If you don't use git, remove this line
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/.rubocop.yml ADDED
@@ -0,0 +1,39 @@
1
+ AllCops:
2
+
3
+ Include:
4
+ - 'lib/**/*.rb'
5
+ - 'test/**/*.rb'
6
+
7
+ Exclude:
8
+ - 'Rakefile'
9
+
10
+ DisplayCopNames: true
11
+
12
+ Metrics/LineLength:
13
+ Enabled: true
14
+ Max: 80
15
+
16
+ Metrics/CyclomaticComplexity:
17
+ Severity: warning
18
+
19
+ Style/PerlBackrefs:
20
+ AutoCorrect: true
21
+
22
+ Metrics/ParameterLists:
23
+ Max: 10
24
+ CountKeywordArgs: true
25
+
26
+ Metrics/ClassLength:
27
+ CountComments: false # count full line comments?
28
+ Max: 150
29
+
30
+ Metrics/ModuleLength:
31
+ CountComments: false # count full line comments?
32
+ Max: 190
33
+
34
+ Metrics/MethodLength:
35
+ CountComments: false # count full line comments?
36
+ Max: 20
37
+
38
+ Style/RedundantReturn:
39
+ Enabled: false
data/.scrutinizer.yml ADDED
@@ -0,0 +1,17 @@
1
+ checks:
2
+ ruby:
3
+ code_rating: true
4
+ duplicate_code: true
5
+ style_while_until_do: true
6
+ style_signal_exception:
7
+ enforced_style: semantic
8
+ style_redundant_exception: true
9
+ style_raise_args:
10
+ enforced_style: exploded
11
+ style_predicate_name: true
12
+ style_comment_annotation: true
13
+ rails_output: true
14
+
15
+ filter:
16
+ excluded_paths:
17
+ - 'test/*'
data/.travis.yml ADDED
@@ -0,0 +1,27 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ - 2.2.1
5
+
6
+ dist: trusty
7
+
8
+ os:
9
+ - linux
10
+
11
+ env:
12
+ global:
13
+ - JRUBY_OPTS=-Xcext.enabled=true
14
+ - CI=true
15
+ - TRAVIS=true
16
+ - LANG=en_US.UTF-8
17
+ - LC_ALL=en_US.UTF-8
18
+
19
+ before_install:
20
+ - gem install bundler
21
+
22
+ after_success:
23
+ - CI=true TRAVIS=true coveralls --verbose
24
+
25
+ notifications:
26
+ email:
27
+ - samannsml@directbox.com
@@ -0,0 +1,17 @@
1
+ # @markup markdown
2
+ # @title Code of Conduct
3
+ # @author Sascha Manns
4
+
5
+ # Contributor Code of Conduct
6
+
7
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
8
+
9
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
10
+
11
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
12
+
13
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
14
+
15
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
16
+
17
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,25 @@
1
+ # Contributing
2
+
3
+ ## Branches
4
+
5
+ ### `master` branch
6
+
7
+ The master branch is the current stable released version.
8
+
9
+ ### `develop` branch
10
+
11
+ The develop branch is the current edge of development.
12
+
13
+ ## Pull requests
14
+
15
+ * https://github.com/saigkill/hoe-rubocop/pulls
16
+
17
+ Please base all pull requests off the `develop` branch. Merges to
18
+ `master` only occur through the `develop` branch. Pull requests
19
+ based on `master` will likely be cherry picked.
20
+
21
+ ## Issues
22
+
23
+ Need to report an issue? Use that issue tracker:
24
+
25
+ * http://saigkill-bugs.myjetbrains.com/youtrack/issues
data/Gemfile ADDED
@@ -0,0 +1,30 @@
1
+ # -*- ruby -*-
2
+
3
+ # DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
4
+
5
+ source "https://rubygems.org/"
6
+
7
+ gem "RubyInline", "~>3.9"
8
+
9
+ gem "hoe-manualgen", "~>0.3.0", :group => [:development, :test]
10
+ gem "minitest", "~>5.8", :group => [:development, :test]
11
+ gem "rdoc", "~>4.0", :group => [:development, :test]
12
+ gem "racc", "~>1.4.6", :group => [:development, :test]
13
+ gem "hoe-doofus", "~>1.0", :group => [:development, :test]
14
+ gem "hoe-bundler", "~>1.2", :group => [:development, :test]
15
+ gem "hoe-gemspec", "~>1.0", :group => [:development, :test]
16
+ gem "hoe-git", "~>1.6", :group => [:development, :test]
17
+ gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
18
+ gem "hoe-seattlerb", "~>1.3", :group => [:development, :test]
19
+ gem "hoe-version", "~>1.2", :group => [:development, :test]
20
+ gem "hoe-reek", "~>1.0", :group => [:development, :test]
21
+ gem "hoe-rubocop", "~> 0.1.0", :group => [:development, :test]
22
+ gem "ZenTest", "~>4.11", :group => [:development, :test]
23
+ gem "rake", "~>10.0", :group => [:development, :test]
24
+ gem "gem-release", "~>0.7", :group => [:development, :test]
25
+ gem "indexer", "~>0.3", :group => [:development, :test]
26
+ gem "reek", "~>3.3", :group => [:development, :test]
27
+ gem "rubocop", "~>0.34", :group => [:development, :test]
28
+ gem "hoe", "~>3.14", :group => [:development, :test]
29
+
30
+ # vim: syntax=ruby
data/Gemfile.lock ADDED
@@ -0,0 +1,105 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ RedCloth (4.2.9)
5
+ RubyInline (3.12.4)
6
+ ZenTest (~> 4.3)
7
+ ZenTest (4.11.0)
8
+ abstract_type (0.0.7)
9
+ adamantium (0.2.0)
10
+ ice_nine (~> 0.11.0)
11
+ memoizable (~> 0.4.0)
12
+ ast (2.1.0)
13
+ astrolabe (1.3.1)
14
+ parser (~> 2.2)
15
+ concord (0.1.5)
16
+ adamantium (~> 0.2.0)
17
+ equalizer (~> 0.0.9)
18
+ diff-lcs (1.2.5)
19
+ equalizer (0.0.11)
20
+ gem-release (0.7.4)
21
+ hoe (3.14.2)
22
+ rake (>= 0.8, < 11.0)
23
+ hoe-bundler (1.2.0)
24
+ hoe (>= 2.2.0)
25
+ hoe-doofus (1.0.0)
26
+ hoe-gemspec (1.0.0)
27
+ hoe (>= 2.2.0)
28
+ hoe-git (1.6.0)
29
+ hoe-manualgen (0.3.0)
30
+ RedCloth (~> 4.2)
31
+ hoe (~> 3.0)
32
+ rcodetools (~> 0.8)
33
+ hoe-reek (1.0.0)
34
+ hoe
35
+ reek
36
+ hoe-rubocop (0.1.0)
37
+ RubyInline (~> 3.9)
38
+ hoe-rubygems (1.0.0)
39
+ hoe-seattlerb (1.3.4)
40
+ hoe-version (1.2.0)
41
+ ice_nine (0.11.1)
42
+ indexer (0.3.1)
43
+ memoizable (0.4.2)
44
+ thread_safe (~> 0.3, >= 0.3.1)
45
+ minitest (5.8.1)
46
+ parser (2.2.2.6)
47
+ ast (>= 1.1, < 3.0)
48
+ powerpack (0.1.1)
49
+ private_attr (1.1.0)
50
+ procto (0.0.2)
51
+ racc (1.4.12)
52
+ rainbow (2.0.0)
53
+ rake (10.4.2)
54
+ rcodetools (0.8.5.0)
55
+ rdoc (4.2.0)
56
+ reek (3.4.1)
57
+ parser (~> 2.2.2.5)
58
+ private_attr (~> 1.1)
59
+ rainbow (~> 2.0)
60
+ unparser (~> 0.2.2)
61
+ rubocop (0.34.2)
62
+ astrolabe (~> 1.3)
63
+ parser (>= 2.2.2.5, < 3.0)
64
+ powerpack (~> 0.1)
65
+ rainbow (>= 1.99.1, < 3.0)
66
+ ruby-progressbar (~> 1.4)
67
+ ruby-progressbar (1.7.5)
68
+ thread_safe (0.3.5)
69
+ unparser (0.2.4)
70
+ abstract_type (~> 0.0.7)
71
+ adamantium (~> 0.2.0)
72
+ concord (~> 0.1.5)
73
+ diff-lcs (~> 1.2.5)
74
+ equalizer (~> 0.0.9)
75
+ parser (~> 2.2.2)
76
+ procto (~> 0.0.2)
77
+
78
+ PLATFORMS
79
+ ruby
80
+
81
+ DEPENDENCIES
82
+ RubyInline (~> 3.9)
83
+ ZenTest (~> 4.11)
84
+ gem-release (~> 0.7)
85
+ hoe (~> 3.14)
86
+ hoe-bundler (~> 1.2)
87
+ hoe-doofus (~> 1.0)
88
+ hoe-gemspec (~> 1.0)
89
+ hoe-git (~> 1.6)
90
+ hoe-manualgen (~> 0.3.0)
91
+ hoe-reek (~> 1.0)
92
+ hoe-rubocop (~> 0.1.0)
93
+ hoe-rubygems (~> 1.0)
94
+ hoe-seattlerb (~> 1.3)
95
+ hoe-version (~> 1.2)
96
+ indexer (~> 0.3)
97
+ minitest (~> 5.8)
98
+ racc (~> 1.4.6)
99
+ rake (~> 10.0)
100
+ rdoc (~> 4.0)
101
+ reek (~> 3.3)
102
+ rubocop (~> 0.34)
103
+
104
+ BUNDLED WITH
105
+ 1.10.6
data/History.rdoc ADDED
@@ -0,0 +1,6 @@
1
+ === 0.1.0 / 2015-09-25
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
data/Index.yml ADDED
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: hoe-rubocop
3
+ version: 0.1.0
4
+ title: hoe-rubocop
5
+ summary: This hoe plugin extends hoe for using some rake tasks to control rubocop.
6
+
7
+ description:
8
+ This plugin extends hoe for using some rake tasks to control rubocop.
9
+
10
+ authors:
11
+ - Sascha Manns <samannsml@directbox.com>
12
+
13
+ requirements:
14
+ - setup
15
+ - notifier
16
+ - hoe-doofus (build)
17
+ - hoe-bundler (build)
18
+ - hoe-gemspec (build)
19
+ - hoe-git (build)
20
+ - hoe-rubygem (build)
21
+ - hoe-seattlerb (build)
22
+ - hoe-version (build)
23
+ - hoe-manualgen (build)
24
+ - hoe-rubocop (build)
25
+ - hoe-reek (build)
26
+ - indexer (build)
27
+ - bundler (build)
28
+ - rdoc (build)
29
+ - gem-release (build)
30
+ - rspec (build)
31
+ - simplecov (build)
32
+ - indexer (build)
33
+ - rake (build)
34
+ - test (test)
35
+ - ZenTest (test)
36
+ - reek (test)
37
+ - rubocop (test)
38
+
39
+ repositories:
40
+ upstream: https://github.com/saigkill/hoe-rubocop.git
41
+
42
+ resources:
43
+ home: http://saigkill.github.io
44
+ code: https://github.com/saigkill/hoe-rubocop
45
+ bugs: http://saigkill-bugs.myjetbrains.com/youtrack
46
+ issues: http://saigkill-bugs.myjetbrains.com/youtrack
47
+
48
+ categories:
49
+ - hoe
50
+ - packaging
51
+ - rubygems
52
+ - rubocop
53
+
54
+ copyrights:
55
+ - 2015 Sascha Manns (MIT)
56
+
data/Manifest.txt ADDED
@@ -0,0 +1,19 @@
1
+ .autotest
2
+ .coveralls.yml
3
+ .gemnasium.yml
4
+ .rspec
5
+ .rubocop.yml
6
+ .scrutinizer.yml
7
+ .travis.yml
8
+ CODE_OF_CONDUCT.md
9
+ CONTRIBUTING.md
10
+ Gemfile
11
+ Gemfile.lock
12
+ History.rdoc
13
+ Index.yml
14
+ Manifest.txt
15
+ README.rdoc
16
+ Rakefile
17
+ VERSION
18
+ config.reek
19
+ lib/hoe/rubocop.rb
data/README.rdoc ADDED
@@ -0,0 +1,79 @@
1
+ = hoe-rubocop
2
+
3
+ home :: http://saigkill.github.io
4
+ code :: http://github.com/saigkill/hoe-rubocop
5
+ rdoc :: http://www.rubydoc.info/gems/hoe-rubocop
6
+ bugs :: http://saigkill-bugs.myjetbrains.com/youtrack/issues
7
+ last public version :: {<img src="https://badge.fury.io/rb/hoe-rubocop.png" alt="Build Status" />}[http://rubygems.org/gems/hoe-rubocop]
8
+ downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-rubocop.svg" alt="Build Status" />}[http://rubygems.org/gems/hoe-rubocop]
9
+ downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-rubocop.svg" alt="Build Status" />}[http://rubygems.org/gems/hoe-rubocop]
10
+ code quality :: {<img src="https://codeclimate.com/github/saigkill/hoe-rubocop.png" alt="Build Status" />}[https://codeclimate.com/github/saigkill/hoe-rubocop]
11
+ dependency check :: {<img src="https://gemnasium.com/saigkill/hoe-rubocop.png" alt="Build Status" />}[https://gemnasium.com/saigkill/hoe-rubocop]
12
+ still maintained? :: {<img src="http://stillmaintained.com/saigkill/hoe-rubocop.png" alt="Build Status" />}[http://stillmaintained.com/saigkill/hoe-rubocop]
13
+ donations :: {<img src="https://pledgie.com/campaigns/30256.png?skin_name=chrome" alt="Build Status" />}[https://pledgie.com/campaigns/30256]
14
+ donations :: {<img src="http://img.shields.io/gratipay/saigkill.svg" alt="Build Status" />}[https://gratipay.com/~saigkill/]
15
+ donations :: {<img src="http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png" alt="Build Status" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
16
+
17
+
18
+ == DESCRIPTION:
19
+
20
+ This hoe plugin extends hoe for using some rake tasks to control rubocop.
21
+
22
+ == FEATURES/PROBLEMS:
23
+
24
+ * This plugin extends hoe for using some rake tasks to control rubocop.
25
+
26
+ == SYNOPSIS:
27
+
28
+ Use in your Rakefile:
29
+
30
+ Hoe.plugin :rubocop
31
+
32
+ Hoe.spec 'yourproject' do
33
+ ...
34
+ end
35
+
36
+ Also add hoe-rubocop to your requirements.
37
+
38
+ == REQUIREMENTS:
39
+
40
+ * rake
41
+ * rubocop
42
+
43
+ == INSTALL:
44
+
45
+ * gem install hoe-rubocop
46
+
47
+ == DEVELOPERS:
48
+
49
+ After checking out the source, run:
50
+
51
+ $ rake newb
52
+
53
+ This task will install any missing dependencies, run the tests/specs,
54
+ and generate the RDoc.
55
+
56
+ == LICENSE:
57
+
58
+ (The MIT License)
59
+
60
+ Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
61
+
62
+ Permission is hereby granted, free of charge, to any person obtaining
63
+ a copy of this software and associated documentation files (the
64
+ 'Software'), to deal in the Software without restriction, including
65
+ without limitation the rights to use, copy, modify, merge, publish,
66
+ distribute, sublicense, and/or sell copies of the Software, and to
67
+ permit persons to whom the Software is furnished to do so, subject to
68
+ the following conditions:
69
+
70
+ The above copyright notice and this permission notice shall be
71
+ included in all copies or substantial portions of the Software.
72
+
73
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
74
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
75
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
76
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
77
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
78
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
79
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,142 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'bundler/gem_tasks'
5
+ require 'hoe'
6
+
7
+ Hoe.plugin :bundler
8
+ Hoe.plugin :doofus
9
+ Hoe.plugin :email
10
+ Hoe.plugin :gemspec
11
+ Hoe.plugin :git
12
+ Hoe.plugin :history
13
+ Hoe.plugin :inline
14
+ Hoe.plugin :manifest
15
+ Hoe.plugin :perforce
16
+ Hoe.plugin :racc
17
+ Hoe.plugin :rdoc
18
+ Hoe.plugin :rubygems
19
+ Hoe.plugin :rubocop
20
+ Hoe.plugin :seattlerb
21
+ Hoe.plugin :version
22
+ Hoe.plugin :website
23
+
24
+ # rubocop:disable Metrics/LineLength
25
+ Hoe.spec 'hoe-rubocop' do
26
+ developer('Sascha Manns', 'samannsml@directbox.com')
27
+ license 'MIT' # this should match the license in the README
28
+ require_ruby_version '>= 2.2.0'
29
+
30
+ email_to << 'ruby-talk@ruby-lang.org'
31
+
32
+ self.history_file = 'History.rdoc'
33
+ self.readme_file = 'README.rdoc'
34
+ self.extra_rdoc_files = FileList['*.rdoc'].to_a
35
+ self.post_install_message = 'Please file bugreports and feature requests on: http://saigkill-bugs.myjetbrains.com/youtrack/issues'
36
+
37
+ #dependency 'setup', '~> 5.2'
38
+
39
+ extra_dev_deps << ['hoe-doofus', '~> 1.0']
40
+ extra_dev_deps << ['hoe-bundler', '~> 1.2']
41
+ extra_dev_deps << ['hoe-gemspec', '~> 1.0']
42
+ extra_dev_deps << ['hoe-git', '~> 1.6']
43
+ extra_dev_deps << ['hoe-rubygems', '~> 1.0']
44
+ extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
45
+ extra_dev_deps << ['hoe-version', '~> 1.2']
46
+ extra_dev_deps << ['hoe-manualgen', '~> 0.3']
47
+ extra_dev_deps << ['hoe-rubocop', '~> 0.1']
48
+ extra_dev_deps << ['hoe-reek', '~> 1.0']
49
+ extra_dev_deps << ['ZenTest', '~> 4.11']
50
+ extra_dev_deps << ['rake', '~> 10.0']
51
+ extra_dev_deps << ['gem-release', '~> 0.7']
52
+ extra_dev_deps << ['indexer', '~> 0.3']
53
+ extra_dev_deps << ['reek', '~> 3.3', '>= 3.3.1']
54
+ extra_dev_deps << ['rubocop', '~> 0.34', '>= 0.34.1']
55
+ end
56
+
57
+ require 'yaml'
58
+ require 'fileutils'
59
+ require 'hoe/rubocop'
60
+ require 'rainbow/ext/string'
61
+ desc 'Prepares for release'
62
+ task :make_release do
63
+ version = Hoe::Rubocop::VERSION
64
+ home = Dir.home
65
+ target = "#{home}/RubymineProjects/saigkill.github.com/_posts"
66
+ time = Time.new
67
+ date = time.strftime('%Y-%m-%d')
68
+ config = YAML.load_file('Index.yml')
69
+ oldversion = config['version']
70
+
71
+ puts '######################################################'.color(:yellow)
72
+ puts '# latex_curriculum_vitae Release #'.color(:yellow)
73
+ puts "# Version: #{version} #".color(:yellow)
74
+ puts '######################################################'.color(:yellow)
75
+
76
+ puts 'Recreating Gemfile'.color(:yellow)
77
+ Rake::Task["bundler:gemfile"]
78
+ puts 'Updating Gemfile.lock'.color(:yellow)
79
+ system('bundle update')
80
+ puts 'Updating gemspec'.color(:yellow)
81
+ Rake::Task["gem:spec"]
82
+ puts 'Updating index'.color(:yellow)
83
+ search_replace(oldversion, version, 'Index.yml')
84
+ search_replace(oldversion, version, 'VERSION')
85
+ system('index --using VERSION Index.yml')
86
+ system('git add .index')
87
+ puts 'Updating Manifest'.color(:yellow)
88
+ Rake::Task["git:manifest"]
89
+ system('git add Manifest.txt')
90
+ puts 'Updating workspace'.color(:yellow)
91
+ system('git add .idea/*')
92
+ system('git commit -m "Updated workspace"')
93
+ system('git push')
94
+ puts 'Preparing versionized branch'.color(:yellow)
95
+ Rake::Task["branch"]
96
+ puts 'Making release'.color(:yellow)
97
+ system("rake release VERSION=#{version}")
98
+
99
+ blogbody = 'blog-content'
100
+ system("rake debug_email > #{blogbody}")
101
+ search_replace('Subject', '#', blogbody)
102
+ data = File.read(blogbody)
103
+
104
+ FileUtils.touch "#{target}/#{date}-hoe-rubocop-#{version}-released-en.md"
105
+ File.write "#{target}/#{date}-hoe-rubocop-#{version}-released-en.md", <<EOF
106
+ ---
107
+ layout: post
108
+ title: "hoe-rubocop #{version} - A program for controlling the rubocop rake task in hoe."
109
+ description: "It supports Ruboto rake tasks inside hoe."
110
+ category: "programming"
111
+ tags: [ruby, opensource, hoe-rubocop, en-US]
112
+ ---
113
+ {% include JB/setup %}
114
+
115
+ #{data}
116
+ EOF
117
+
118
+ puts 'Prepared your Blogpost. Please add the changes of this release'.color(:green)
119
+ puts 'Now ready for social media posting'.color(:green)
120
+
121
+ system('rm pkg/*') if File.exist?('pkg')
122
+ puts 'Run now rake version:bump & rake version:write'.color(:yellow)
123
+ end
124
+
125
+ # TODO: Fix MannsShared so that it can be used inside Rake then delete this method
126
+
127
+ # Method for replacing content in a file
128
+ # @param [String] search is the search text in the target file
129
+ # @param [String] replace the replace text
130
+ # @param [String] file Target file like Author_Group.xml
131
+ # @return [String] true or false
132
+ def self.search_replace(search, replace, file)
133
+ text = File.read(file)
134
+ new_value = text.gsub(search, replace)
135
+ puts new_value
136
+ File.open(file, 'w') do |file1|
137
+ file1.puts new_value
138
+ end
139
+ end
140
+
141
+
142
+ # vim: syntax=ruby
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/config.reek ADDED
@@ -0,0 +1,111 @@
1
+ ---
2
+ Attribute:
3
+ enabled: false
4
+ exclude: []
5
+ BooleanParameter:
6
+ enabled: true
7
+ exclude: []
8
+ ClassVariable:
9
+ enabled: true
10
+ exclude: []
11
+ ControlParameter:
12
+ enabled: true
13
+ exclude: []
14
+ DataClump:
15
+ enabled: true
16
+ exclude: []
17
+ max_copies: 2
18
+ min_clump_size: 2
19
+ DuplicateMethodCall:
20
+ enabled: true
21
+ exclude: []
22
+ max_calls: 3
23
+ allow_calls: []
24
+ FeatureEnvy:
25
+ enabled: true
26
+ exclude: []
27
+ IrresponsibleModule:
28
+ enabled: true
29
+ exclude: []
30
+ LongParameterList:
31
+ enabled: true
32
+ exclude: []
33
+ max_params: 3
34
+ overrides:
35
+ initialize:
36
+ max_params: 5
37
+ LongYieldList:
38
+ enabled: true
39
+ exclude: []
40
+ max_params: 3
41
+ ModuleInitialize:
42
+ enabled: true
43
+ exclude: []
44
+ NestedIterators:
45
+ enabled: true
46
+ exclude: []
47
+ max_allowed_nesting: 1
48
+ ignore_iterators: []
49
+ NilCheck:
50
+ enabled: true
51
+ exclude: []
52
+ PrimaDonnaMethod:
53
+ enabled: true
54
+ exclude: []
55
+ RepeatedConditional:
56
+ enabled: true
57
+ exclude: []
58
+ max_ifs: 2
59
+ TooManyInstanceVariables:
60
+ enabled: true
61
+ exclude: []
62
+ max_instance_variables: 9
63
+ TooManyMethods:
64
+ enabled: true
65
+ exclude: []
66
+ max_methods: 25
67
+ TooManyStatements:
68
+ enabled: true
69
+ exclude:
70
+ - initialize
71
+ max_statements: 15
72
+ UncommunicativeMethodName:
73
+ enabled: true
74
+ exclude: []
75
+ reject:
76
+ - !ruby/regexp /^[a-z]$/
77
+ - !ruby/regexp /[0-9]$/
78
+ - !ruby/regexp /[A-Z]/
79
+ accept: []
80
+ UncommunicativeModuleName:
81
+ enabled: true
82
+ exclude: []
83
+ reject:
84
+ - !ruby/regexp /^.$/
85
+ - !ruby/regexp /[0-9]$/
86
+ accept:
87
+ - Inline::C
88
+ UncommunicativeParameterName:
89
+ enabled: true
90
+ exclude: []
91
+ reject:
92
+ - !ruby/regexp /^.$/
93
+ - !ruby/regexp /[0-9]$/
94
+ - !ruby/regexp /[A-Z]/
95
+ - !ruby/regexp /^_/
96
+ accept: []
97
+ UncommunicativeVariableName:
98
+ enabled: true
99
+ exclude: []
100
+ reject:
101
+ - !ruby/regexp /^.$/
102
+ - !ruby/regexp /[0-9]$/
103
+ - !ruby/regexp /[A-Z]/
104
+ accept:
105
+ - _
106
+ UnusedParameters:
107
+ enabled: true
108
+ exclude: []
109
+ UtilityFunction:
110
+ enabled: true
111
+ exclude: []
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+ # @encoding: utf-8
3
+ # @author: Sascha Manns
4
+ # @abstract: hoe-rubocop
5
+ #
6
+ # Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
7
+ # License: MIT
8
+
9
+ # Dependencies
10
+
11
+
12
+ # Main module for hoe-rubocop
13
+ module Hoe::Rubocop
14
+ VERSION = "0.1.0"
15
+
16
+ attr_accessor :rubocop
17
+
18
+ def initialize_rubocop
19
+ require 'rubocop/rake_task'
20
+ end
21
+
22
+ def define_rubocop_tasks
23
+ RuboCop::RakeTask.new(:rubocop)
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,426 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoe-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9.20150925201419
5
+ platform: ruby
6
+ authors:
7
+ - Sascha Manns
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDhTCCAm2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBEMRIwEAYDVQQDDAlzYW1h
14
+ bm5zbWwxGTAXBgoJkiaJk/IsZAEZFglkaXJlY3Rib3gxEzARBgoJkiaJk/IsZAEZ
15
+ FgNjb20wHhcNMTUwOTE1MTAwOTQwWhcNMTYwOTE0MTAwOTQwWjBEMRIwEAYDVQQD
16
+ DAlzYW1hbm5zbWwxGTAXBgoJkiaJk/IsZAEZFglkaXJlY3Rib3gxEzARBgoJkiaJ
17
+ k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQChvBUV
18
+ qkj1as15E6mSt42Vf+bwwn6y5IINU8WyMByK85WPENyWpOTOsrwTSpai3b/fO6JE
19
+ RzGyC/IDQXy5IcnWAXIRG/lRy4MOHeReShVH0TWP9e63jhsjffb3oiE9WyVMyp6j
20
+ 7mBDsYQlpd9dzIxBjhOuezqHTats1Zx3YmgTKqcxIGagw+91taJE3eXQRh9OTply
21
+ 6nFe4EeEDZIDkpGxgWPdPXhdEOh70z9if0Li0iuwzKD7nI2YDrQPZ6yzohwJSCxJ
22
+ G1cvwyew70s9xneJ63C+EoBDdSzjYOi9ov08sLYm6XphYmXkansZX9XLvlkm7oNU
23
+ RauozHFRkVgou2yPAgMBAAGjgYEwfzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAd
24
+ BgNVHQ4EFgQU2Z0THCX7uI/mtn0lN5RlIUhQHkMwIgYDVR0RBBswGYEXc2FtYW5u
25
+ c21sQGRpcmVjdGJveC5jb20wIgYDVR0SBBswGYEXc2FtYW5uc21sQGRpcmVjdGJv
26
+ eC5jb20wDQYJKoZIhvcNAQEFBQADggEBABcwHO1C0EOos6v4jYYqcxMqryJnGH9O
27
+ ZOGyesU4BsVuVfKznMZ2hMnb5UW1JgxcZgTdhh4LuZ5NuDUd4DJyUGVKKVIxPFzs
28
+ T1YreFIygjNZDlF338gY4R8OgzgM7j/k5mxg1gL0/4zgHVNRFsb4lB0xN+b/9iY4
29
+ OQ2nBbEye41AtFzskC/Qdsj5uvG/g2wy8fMDZ6+VI4nNb/bHJahShz2kqRap461j
30
+ cEuJ8AWKUjdkdt1Nba7qmareRtc2+pEiITV5ANv24b8vsmq9/8nbxQckdO7+NQRP
31
+ pTQZhJ4mX28Qe1F9IE4F4UDeo8gQSPHJOttZA33sRLC19sH67dLq4pM=
32
+ -----END CERTIFICATE-----
33
+ date: 2015-09-25 00:00:00.000000000 Z
34
+ dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: RubyInline
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '3.9'
42
+ type: :runtime
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.9'
49
+ - !ruby/object:Gem::Dependency
50
+ name: setup
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '5.2'
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '5.2'
63
+ - !ruby/object:Gem::Dependency
64
+ name: hoe-manualgen
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 0.3.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 0.3.0
77
+ - !ruby/object:Gem::Dependency
78
+ name: minitest
79
+ requirement: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '5.8'
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '5.8'
91
+ - !ruby/object:Gem::Dependency
92
+ name: rdoc
93
+ requirement: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '4.0'
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '4.0'
105
+ - !ruby/object:Gem::Dependency
106
+ name: racc
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.4.6
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 1.4.6
119
+ - !ruby/object:Gem::Dependency
120
+ name: hoe-doofus
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '1.0'
126
+ type: :development
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '1.0'
133
+ - !ruby/object:Gem::Dependency
134
+ name: hoe-bundler
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '1.2'
140
+ type: :development
141
+ prerelease: false
142
+ version_requirements: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '1.2'
147
+ - !ruby/object:Gem::Dependency
148
+ name: hoe-gemspec
149
+ requirement: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '1.0'
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '1.0'
161
+ - !ruby/object:Gem::Dependency
162
+ name: hoe-git
163
+ requirement: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '1.6'
168
+ type: :development
169
+ prerelease: false
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '1.6'
175
+ - !ruby/object:Gem::Dependency
176
+ name: hoe-rubygems
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '1.0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '1.0'
189
+ - !ruby/object:Gem::Dependency
190
+ name: hoe-seattlerb
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: '1.3'
196
+ type: :development
197
+ prerelease: false
198
+ version_requirements: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: '1.3'
203
+ - !ruby/object:Gem::Dependency
204
+ name: hoe-version
205
+ requirement: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '1.2'
210
+ type: :development
211
+ prerelease: false
212
+ version_requirements: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - "~>"
215
+ - !ruby/object:Gem::Version
216
+ version: '1.2'
217
+ - !ruby/object:Gem::Dependency
218
+ name: hoe-reek
219
+ requirement: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - "~>"
222
+ - !ruby/object:Gem::Version
223
+ version: '1.0'
224
+ type: :development
225
+ prerelease: false
226
+ version_requirements: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: '1.0'
231
+ - !ruby/object:Gem::Dependency
232
+ name: ZenTest
233
+ requirement: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '4.11'
238
+ type: :development
239
+ prerelease: false
240
+ version_requirements: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - "~>"
243
+ - !ruby/object:Gem::Version
244
+ version: '4.11'
245
+ - !ruby/object:Gem::Dependency
246
+ name: rake
247
+ requirement: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - "~>"
250
+ - !ruby/object:Gem::Version
251
+ version: '10.0'
252
+ type: :development
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - "~>"
257
+ - !ruby/object:Gem::Version
258
+ version: '10.0'
259
+ - !ruby/object:Gem::Dependency
260
+ name: simplecov
261
+ requirement: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - "~>"
264
+ - !ruby/object:Gem::Version
265
+ version: '0.7'
266
+ type: :development
267
+ prerelease: false
268
+ version_requirements: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - "~>"
271
+ - !ruby/object:Gem::Version
272
+ version: '0.7'
273
+ - !ruby/object:Gem::Dependency
274
+ name: coveralls
275
+ requirement: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - "~>"
278
+ - !ruby/object:Gem::Version
279
+ version: '0.8'
280
+ type: :development
281
+ prerelease: false
282
+ version_requirements: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - "~>"
285
+ - !ruby/object:Gem::Version
286
+ version: '0.8'
287
+ - !ruby/object:Gem::Dependency
288
+ name: gem-release
289
+ requirement: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - "~>"
292
+ - !ruby/object:Gem::Version
293
+ version: '0.7'
294
+ type: :development
295
+ prerelease: false
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - "~>"
299
+ - !ruby/object:Gem::Version
300
+ version: '0.7'
301
+ - !ruby/object:Gem::Dependency
302
+ name: indexer
303
+ requirement: !ruby/object:Gem::Requirement
304
+ requirements:
305
+ - - "~>"
306
+ - !ruby/object:Gem::Version
307
+ version: '0.3'
308
+ type: :development
309
+ prerelease: false
310
+ version_requirements: !ruby/object:Gem::Requirement
311
+ requirements:
312
+ - - "~>"
313
+ - !ruby/object:Gem::Version
314
+ version: '0.3'
315
+ - !ruby/object:Gem::Dependency
316
+ name: reek
317
+ requirement: !ruby/object:Gem::Requirement
318
+ requirements:
319
+ - - ">="
320
+ - !ruby/object:Gem::Version
321
+ version: 3.3.1
322
+ - - "~>"
323
+ - !ruby/object:Gem::Version
324
+ version: '3.3'
325
+ type: :development
326
+ prerelease: false
327
+ version_requirements: !ruby/object:Gem::Requirement
328
+ requirements:
329
+ - - ">="
330
+ - !ruby/object:Gem::Version
331
+ version: 3.3.1
332
+ - - "~>"
333
+ - !ruby/object:Gem::Version
334
+ version: '3.3'
335
+ - !ruby/object:Gem::Dependency
336
+ name: rubocop
337
+ requirement: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - ">="
340
+ - !ruby/object:Gem::Version
341
+ version: 0.34.1
342
+ - - "~>"
343
+ - !ruby/object:Gem::Version
344
+ version: '0.34'
345
+ type: :development
346
+ prerelease: false
347
+ version_requirements: !ruby/object:Gem::Requirement
348
+ requirements:
349
+ - - ">="
350
+ - !ruby/object:Gem::Version
351
+ version: 0.34.1
352
+ - - "~>"
353
+ - !ruby/object:Gem::Version
354
+ version: '0.34'
355
+ - !ruby/object:Gem::Dependency
356
+ name: hoe
357
+ requirement: !ruby/object:Gem::Requirement
358
+ requirements:
359
+ - - "~>"
360
+ - !ruby/object:Gem::Version
361
+ version: '3.14'
362
+ type: :development
363
+ prerelease: false
364
+ version_requirements: !ruby/object:Gem::Requirement
365
+ requirements:
366
+ - - "~>"
367
+ - !ruby/object:Gem::Version
368
+ version: '3.14'
369
+ description: FIX (describe your package)
370
+ email:
371
+ - samannsml@directbox.com
372
+ executables: []
373
+ extensions: []
374
+ extra_rdoc_files:
375
+ - CODE_OF_CONDUCT.md
376
+ - CONTRIBUTING.md
377
+ - History.rdoc
378
+ - Manifest.txt
379
+ - README.rdoc
380
+ files:
381
+ - ".autotest"
382
+ - ".gemnasium.yml"
383
+ - ".rspec"
384
+ - ".rubocop.yml"
385
+ - ".scrutinizer.yml"
386
+ - ".travis.yml"
387
+ - CODE_OF_CONDUCT.md
388
+ - CONTRIBUTING.md
389
+ - Gemfile
390
+ - Gemfile.lock
391
+ - History.rdoc
392
+ - Index.yml
393
+ - Manifest.txt
394
+ - README.rdoc
395
+ - Rakefile
396
+ - VERSION
397
+ - config.reek
398
+ - lib/hoe/rubocop.rb
399
+ homepage: http://saigkill.github.io
400
+ licenses:
401
+ - MIT
402
+ metadata: {}
403
+ post_install_message: "*** Run rake setup to finish the installation *** Please file
404
+ bugreports and feature requests on: http://saigkill-bugs.myjetbrains.com/youtrack/issues"
405
+ rdoc_options:
406
+ - "--main"
407
+ - README.rdoc
408
+ require_paths:
409
+ - lib
410
+ required_ruby_version: !ruby/object:Gem::Requirement
411
+ requirements:
412
+ - - ">="
413
+ - !ruby/object:Gem::Version
414
+ version: 2.2.0
415
+ required_rubygems_version: !ruby/object:Gem::Requirement
416
+ requirements:
417
+ - - ">="
418
+ - !ruby/object:Gem::Version
419
+ version: '0'
420
+ requirements: []
421
+ rubyforge_project:
422
+ rubygems_version: 2.4.8
423
+ signing_key:
424
+ specification_version: 4
425
+ summary: FIX (describe your package)
426
+ test_files: []
metadata.gz.sig ADDED
Binary file