buildr-iidea 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,3 +1,30 @@
1
+ The extension is licensed under the following two licenses. The first license
2
+ applies to modifications made by Rhett Sutphin while the subsequent license
3
+ applies to the original source derived from the Apache Buildr project.
4
+
5
+ ===========================================================================
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining
8
+ a copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sublicense, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be
16
+ included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ ===========================================================================
27
+
1
28
  Apache License
2
29
  Version 2.0, January 2004
3
30
  http://www.apache.org/licenses/
data/README.rdoc CHANGED
@@ -40,6 +40,12 @@ The user then needs to add the following require into the build file:
40
40
 
41
41
  require 'buildr_iidea'
42
42
 
43
+ === Warning
44
+
45
+ The iidea task may generate project files that conflict with the files generated by the
46
+ builtin 'idea' and 'idea7x' tasks. As a result the builtin tasks would fail if ran while
47
+ the extension is present. To avoid this problem the extension removes these tasks.
48
+
43
49
  == Idea Specific Directives
44
50
 
45
51
  The extension specific settings of subprojects inherit the parent projects settings
data/Rakefile CHANGED
@@ -21,7 +21,4 @@ Rake::RDocTask.new :rdoc do |rdoc|
21
21
  rdoc.rdoc_files.include gem_spec.extra_rdoc_files
22
22
  end
23
23
 
24
- Rake::GemPackageTask.new(gem_spec) do |pkg|
25
- pkg.need_zip = true
26
- pkg.need_tar = true
27
- end
24
+ Rake::GemPackageTask.new(gem_spec).define
data/buildr-iidea.gemspec CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |spec|
3
3
  spec.version = `git describe`.strip.split('-').first
4
4
  spec.authors = ['Rhett Sutphin', 'Peter Donald']
5
5
  spec.email = ["rhett@detailedbalance.net","peter@realityforge.org"]
6
- spec.homepage = "http://github.com/rockninja/buildr-iidea"
6
+ spec.homepage = "http://github.com/realityforge/buildr-iidea"
7
7
  spec.summary = "Buildr tasks to generate Intellij IDEA project files"
8
8
  spec.description = <<-TEXT
9
9
  This is a buildr extension that provides tasks to generate Intellij IDEA
@@ -20,6 +20,13 @@ module Buildr
20
20
  end
21
21
 
22
22
  after_define do |project|
23
+ # Remove the old idea tasks if they exist. Either could depending on the names
24
+ # selected for the IDEA project files by iidea extension and thus have been removed.
25
+ task_list = Rake.application.instance_variable_get('@tasks')
26
+ task_list.delete("idea")
27
+ task_list.delete("idea7x")
28
+ task_list.delete("idea7x:clean")
29
+
23
30
  iidea = project.task("iidea:generate")
24
31
 
25
32
  files = [
@@ -16,4 +16,16 @@ describe "project extension" do
16
16
  it "documents the 'iidea:clean' task" do
17
17
  Rake::Task.tasks.detect{|task| task.to_s == "iidea:clean"}.comment.should_not be_nil
18
18
  end
19
+
20
+ it "removes the 'idea' task" do
21
+ Rake::Task.tasks.detect{|task| task.to_s == "idea"}.should be_nil
22
+ end
23
+
24
+ it "removes the 'idea7x' task" do
25
+ Rake::Task.tasks.detect{|task| task.to_s == "idea7x"}.should be_nil
26
+ end
27
+
28
+ it "removes the 'idea7x:clean' task" do
29
+ Rake::Task.tasks.detect{|task| task.to_s == "idea7x:clean"}.should be_nil
30
+ end
19
31
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Rhett Sutphin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-04-07 00:00:00 +10:00
18
+ date: 2010-04-09 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -61,13 +61,13 @@ files:
61
61
  - README.rdoc
62
62
  - Rakefile
63
63
  has_rdoc: true
64
- homepage: http://github.com/rockninja/buildr-iidea
64
+ homepage: http://github.com/realityforge/buildr-iidea
65
65
  licenses: []
66
66
 
67
67
  post_install_message: Thanks for installing the Intellij IDEA extension for Buildr
68
68
  rdoc_options:
69
69
  - --title
70
- - buildr-iidea 0.0.2
70
+ - buildr-iidea 0.0.3
71
71
  - --main
72
72
  - README.rdoc
73
73
  require_paths: