hoe-ignore 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.extra_files << "../some/external/dependency.rb"
7
+ #
8
+ # at.libs << ":../some/external"
9
+ #
10
+ # at.add_exception 'vendor'
11
+ #
12
+ # at.add_mapping(/dependency.rb/) do |f, _|
13
+ # at.files_matching(/test_.*rb$/)
14
+ # end
15
+ #
16
+ # %w(TestA TestB).each do |klass|
17
+ # at.extra_class_map[klass] = "test/test_misc.rb"
18
+ # end
19
+ # end
20
+
21
+ # Autotest.add_hook :run_command do |at|
22
+ # system "rake build"
23
+ # end
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2013-07-06
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
@@ -0,0 +1,6 @@
1
+ .autotest
2
+ History.txt
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ lib/hoe/ignore.rb
@@ -0,0 +1,57 @@
1
+ = hoe-ignore
2
+
3
+ * FIX (url)
4
+
5
+ == DESCRIPTION:
6
+
7
+ FIX (describe your package)
8
+
9
+ == FEATURES/PROBLEMS:
10
+
11
+ * FIX (list of features or problems)
12
+
13
+ == SYNOPSIS:
14
+
15
+ FIX (code sample of usage)
16
+
17
+ == REQUIREMENTS:
18
+
19
+ * FIX (list of requirements)
20
+
21
+ == INSTALL:
22
+
23
+ * FIX (sudo gem install, anything else)
24
+
25
+ == DEVELOPERS:
26
+
27
+ After checking out the source, run:
28
+
29
+ $ rake newb
30
+
31
+ This task will install any missing dependencies, run the tests/specs,
32
+ and generate the RDoc.
33
+
34
+ == LICENSE:
35
+
36
+ (The MIT License)
37
+
38
+ Copyright (c) 2013 FIX
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining
41
+ a copy of this software and associated documentation files (the
42
+ 'Software'), to deal in the Software without restriction, including
43
+ without limitation the rights to use, copy, modify, merge, publish,
44
+ distribute, sublicense, and/or sell copies of the Software, and to
45
+ permit persons to whom the Software is furnished to do so, subject to
46
+ the following conditions:
47
+
48
+ The above copyright notice and this permission notice shall be
49
+ included in all copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
52
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
53
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
54
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
55
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
56
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
57
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,32 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'hoe'
5
+
6
+ # Hoe.plugin :bundler
7
+ # Hoe.plugin :compiler
8
+ # Hoe.plugin :doofus
9
+ # Hoe.plugin :gem_prelude_sucks
10
+ # Hoe.plugin :geminabox
11
+ # Hoe.plugin :gemspec
12
+ # Hoe.plugin :git
13
+ # Hoe.plugin :inline
14
+ # Hoe.plugin :kpeg
15
+ # Hoe.plugin :minitest
16
+ # Hoe.plugin :racc
17
+ # Hoe.plugin :rcov
18
+ # Hoe.plugin :rubyforge
19
+
20
+ Hoe.spec 'hoe-ignore' do
21
+ # HEY! If you fill these out in ~/.hoe_template/Rakefile.erb then
22
+ # you'll never have to touch them again!
23
+ # (delete this comment too, of course)
24
+
25
+ self.urls = %w!https://github.com/evanphx/hoe-ignore!
26
+
27
+ developer 'Evan Phoenix', 'evan@phx.io'
28
+
29
+ # self.rubyforge_name = 'hoe-ignorex' # if different than 'hoe-ignore'
30
+ end
31
+
32
+ # vim: syntax=ruby
@@ -0,0 +1,55 @@
1
+ require 'hoe/debug'
2
+
3
+ class Hoe
4
+ module Ignore
5
+
6
+ include Rake::DSL if defined? ::Rake::DSL
7
+
8
+ VERSION = '1.0.0'
9
+
10
+ def initialize_ignore
11
+ end
12
+
13
+ def define_ignore_tasks
14
+ return unless File.exists? ".hoeignore"
15
+
16
+ task :check_manifest => :clean do
17
+ check_manifest
18
+ end
19
+ end
20
+
21
+ def check_manifest
22
+ dirs, fmatch = File.read(".hoeignore").split("\n").partition { |x| x[-1,1] == "/" }
23
+
24
+ f = "Manifest.tmp"
25
+ require 'find'
26
+ files = []
27
+ with_config do |config, _|
28
+ exclusions = config["exclude"]
29
+
30
+ Find.find '.' do |path|
31
+ if File.directory? path
32
+ Find.prune if dirs.index("#{path[2..-1]}/")
33
+ next
34
+ end
35
+
36
+ next unless File.file? path
37
+ next if fmatch.find { |x| File.fnmatch?(x, path[2..-1]) }
38
+ files << path[2..-1]
39
+ end
40
+
41
+ files = files.sort.join "\n"
42
+
43
+ File.open f, 'w' do |fp| fp.puts files end
44
+
45
+ verbose = { :verbose => Rake.application.options.verbose }
46
+
47
+ begin
48
+ sh "#{Hoe::Debug::DIFF} -du Manifest.txt #{f}", verbose
49
+ ensure
50
+ rm f, verbose
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoe-ignore
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Evan Phoenix
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rdoc
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '4.0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '4.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: hoe
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.6'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.6'
46
+ description: FIX (describe your package)
47
+ email:
48
+ - evan@phx.io
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files:
52
+ - History.txt
53
+ - Manifest.txt
54
+ - README.txt
55
+ files:
56
+ - .autotest
57
+ - History.txt
58
+ - Manifest.txt
59
+ - README.txt
60
+ - Rakefile
61
+ - lib/hoe/ignore.rb
62
+ homepage: https://github.com/evanphx/hoe-ignore
63
+ licenses: []
64
+ post_install_message:
65
+ rdoc_options:
66
+ - --main
67
+ - README.txt
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project: hoe-ignore
84
+ rubygems_version: 1.8.25
85
+ signing_key:
86
+ specification_version: 3
87
+ summary: FIX (describe your package)
88
+ test_files: []