advertilecop 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 369260db496e622486e960e4b5b30b607855e473
4
- data.tar.gz: '095809039e7e4f7e0da68973870d82a66bba32e2'
3
+ metadata.gz: bf69c6bccc2dd7b7bd8599422a4548eb33f45b94
4
+ data.tar.gz: 4584564a96ba232e3e998ffdb8ec2999316d6243
5
5
  SHA512:
6
- metadata.gz: 81fe3568c0ee0089c83c0fa775e1ecd8715af4bd37e09f6e21e65e1f4676d0deb0fa8cfad753516f5951cb5ef2412684342393594aad6d3966e54f615b663803
7
- data.tar.gz: 6dfbc8f00093471dadd3750bf1f6255a0c57cddd3a9700d4b9ecc4709837a0ab2b3c82b6328ac7e6dfc49536f7646970212582a9488c76bbc1cb63f4eda05ffd
6
+ metadata.gz: ba06383ca93b054605cb9712164a0c76fb315c667192cc5ffd2987a5364d4eedfb04f64b3cab0f089a8133e1a5a98d5a3892b5e102ea74c8bf64c37a1ea3e379
7
+ data.tar.gz: 620a637d0d3d64704593d561cce31254c0c4a6332239d67dae6ad2f22baf96792834ae8be28b62d202155d3650525c89c3ba7029316b69d617eb497e966e74e8
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,17 @@
1
+ image: ruby:2.1
2
+ before_script:
3
+ - bundle install
4
+
5
+ stages:
6
+ - test
7
+ - release
8
+
9
+ lint:
10
+ stage: test
11
+ script:
12
+ - bundle exec advertilecop
13
+
14
+ release:
15
+ stage: release
16
+ script:
17
+ - echo "Not implemented"
data/README.md CHANGED
@@ -60,7 +60,7 @@ Anything that can be auto corrected will be, this will save you a lot of time!
60
60
 
61
61
  ## Overriding tests
62
62
 
63
- It is possible to override specific Rubocop settings by having a _.rubocop.yml_ in the project root. When present, advertilecop uses this file instead of _advertilecop.yml_. This file can, however, the settings of _advertilecop.yml_ by having the following lines:
63
+ It is possible to override specific Rubocop settings by having a _.rubocop.yml_ in the project root. When present, advertilecop uses this file instead of _advertilecop.yml_. This file can, however, inherit the settings of _advertilecop.yml_ by having the following lines:
64
64
 
65
65
  ```yml
66
66
  inherit_gem:
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require "bundler/gem_tasks"
4
2
  require "advertilecop/rake_task"
5
3
 
@@ -9,5 +7,5 @@ task :advertilecop_cli do
9
7
  sh "bin/advertilecop"
10
8
  end
11
9
 
12
- task default: [:advertilecop, :advertilecop_cli]
13
- task build: [:advertilecop, :advertilecop_cli]
10
+ task default: %i[advertilecop advertilecop_cli]
11
+ task build: %i[advertilecop advertilecop_cli]
data/advertilecop.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # coding: utf-8
1
+
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "advertilecop/version"
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "rubocop"
21
+ spec.add_dependency "rubocop", "< 0.53.0"
22
22
  spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "rake"
24
24
  end
data/bin/advertilecop CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: utf-8
3
-
4
- $LOAD_PATH.unshift(File.dirname(File.realpath(__FILE__)) + "/../lib")
2
+ $LOAD_PATH.unshift(__dir__ + "/../lib")
5
3
 
6
4
  require "advertilecop"
7
5
  require "benchmark"
data/lib/advertilecop.rb CHANGED
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require "rubocop"
4
2
 
5
3
  module RuboCop
@@ -1,10 +1,8 @@
1
- # encoding: utf-8
2
-
3
1
  require "rubocop/rake_task"
4
2
 
5
3
  module AdvertileCop
6
4
  class RakeTask < RuboCop::RakeTask
7
- def initialize(name, *args, &task_block) # rubocop:disable Metrics/AbcSize
5
+ def initialize(name, *args, &task_block)
8
6
  setup_ivars(args)
9
7
 
10
8
  desc "Run RuboCop" unless ::Rake.application.last_description
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module AdvertileCop
4
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
5
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advertilecop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mika Hel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-05 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.53.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.53.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
+ - ".gitlab-ci.yml"
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md