mudguard 0.1.1 → 0.1.3

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
  SHA256:
3
- metadata.gz: 704ed528bcdd940b57ef601a5841eb5585ba5a32b2ef2ae9c184e8f544daba00
4
- data.tar.gz: 18603a36e5cc7e95569d3c184df7ec9955ec6d11f1cb299ad9790b20d09f4b88
3
+ metadata.gz: '076099989a94de468e2c43e3abe2ee8cfc1c1ab5a0f7b25291f609e597f1e04c'
4
+ data.tar.gz: dff2e30cf95d50679ec2f03a65944dfc84c96f7daa2bf26557a790ba325d6a4d
5
5
  SHA512:
6
- metadata.gz: f136a1d09aa59ffc8f71a842cfef6b513ac1c381d4fe09d7a0660921008b7780f5e595782d343c27f6899d9edd6fe3af6729a3b12bc15aff183129455aa1a36e
7
- data.tar.gz: 51bc6a0961d73cfad36c32d359c34a22eb0faaf31bf38ca67cbba7c626f6995a25267c3004776744dcacd7b15779e9c1b0778e0ac7c5633ef40ff9c045a1a04c
6
+ metadata.gz: 66ca1a68eb9b7f12864da3c83ef74df51afb305cb1fb4ccbdccb267e9189ba2adfdc9c756b69637fab29ae8a28e5c5d246a1cdfc4d3beab1697f82d7fc3de704
7
+ data.tar.gz: 54b2984f6c619c21e59c2056b1237dd05ff4d8915eb45570d69a119f4b676fd30046b215106c7142ebfc40ac4a4b5cbc681b7b7be7bc828c704c0a0022707185
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mudguard (0.1.1)
4
+ mudguard (0.1.3)
5
5
  parser (~> 2.7)
6
6
 
7
7
  GEM
data/exe/mudguard ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require "mudguard"
3
+
4
+ Mudguard.check("")
5
+ puts "OK"
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "policies"
4
+ require_relative "error"
4
5
 
5
6
  module Mudguard
6
7
  # A file containing the Mudguard-Policies
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mudguard
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rspec/core/rake_task"
4
+ require "mudguard/version"
5
+
6
+ namespace :gem do
7
+ desc "Publishes the gem on rubygems.org"
8
+ task publish: "gem:build" do
9
+ exec("gem push mudguard-#{Mudguard::VERSION}.gem")
10
+ end
11
+ desc "Builds the gem"
12
+ task :build do
13
+ exec("gem build mudguard.gemspec")
14
+ end
15
+ end
data/mudguard.gemspec CHANGED
@@ -23,10 +23,10 @@ Gem::Specification.new do |spec|
23
23
  # added into git.
24
24
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
25
  `git ls-files -z`.split("\x0")
26
- .reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ .reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
27
27
  end
28
28
  spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.executables = "mudguard"
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 2.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mudguard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorg Jenni
@@ -153,7 +153,8 @@ dependencies:
153
153
  description:
154
154
  email:
155
155
  - jorg.jenni@jennius.co.uk
156
- executables: []
156
+ executables:
157
+ - mudguard
157
158
  extensions: []
158
159
  extra_rdoc_files: []
159
160
  files:
@@ -168,12 +169,7 @@ files:
168
169
  - LICENSE.txt
169
170
  - README.md
170
171
  - Rakefile
171
- - bin/_guard-core
172
- - bin/console
173
- - bin/guard
174
- - bin/rake
175
- - bin/rubocop
176
- - bin/setup
172
+ - exe/mudguard
177
173
  - lib/mudguard.rb
178
174
  - lib/mudguard/error.rb
179
175
  - lib/mudguard/policies.rb
@@ -181,6 +177,7 @@ files:
181
177
  - lib/mudguard/ruby_analyser.rb
182
178
  - lib/mudguard/ruby_files.rb
183
179
  - lib/mudguard/version.rb
180
+ - lib/tasks/gem.rake
184
181
  - lib/tasks/rubocop.rake
185
182
  - lib/tasks/test.rake
186
183
  - mudguard.gemspec
data/bin/_guard-core DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application '_guard-core' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("guard", "_guard-core")
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "mudguard"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/guard DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'guard' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("guard", "guard")
data/bin/rake DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'rake' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("rake", "rake")
data/bin/rubocop DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'rubocop' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("rubocop", "rubocop")
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here