buildr-iidea 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -1
- data/Rakefile +2 -1
- data/lib/buildr/intellij_idea/version.rb +1 -1
- data/lib/buildr_iidea.rb +5 -5
- data/spec/spec_helper.rb +38 -50
- metadata +56 -60
- data/spec/buildr_dir +0 -1
data/CHANGELOG
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
0.0.8
|
1
|
+
0.0.9 (September 8, 2010)
|
2
|
+
* Changed: Stop using absolute paths in requires.
|
3
|
+
|
4
|
+
0.0.8 (July 15, 2010)
|
5
|
+
* Fixed: Build correct IML for a project which depends on another project's
|
6
|
+
test deps.
|
7
|
+
* Fixed: Build correct IML for a project which depends on a
|
8
|
+
directory-of-classes (vs. a jar).
|
2
9
|
|
3
10
|
0.0.7 (July 7, 2010)
|
4
11
|
* Fixed: Regression involving source and exclude paths for nested projects.
|
data/Rakefile
CHANGED
@@ -25,8 +25,9 @@ end
|
|
25
25
|
Rake::GemPackageTask.new(gem_spec).define
|
26
26
|
|
27
27
|
namespace :deploy do
|
28
|
+
desc "Tag release with current version"
|
28
29
|
task :tag do
|
29
30
|
system("git tag -a #{Buildr::IntellijIdea::Version::STRING} -m 'Released #{Buildr::IntellijIdea::Version::STRING}'")
|
30
|
-
|
31
|
+
puts "Tagged locally. `git push --tags` if you're sure."
|
31
32
|
end
|
32
33
|
end
|
data/lib/buildr_iidea.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'buildr'
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
2
|
+
require 'buildr/intellij_idea/version'
|
3
|
+
require 'buildr/intellij_idea/idea_file'
|
4
|
+
require 'buildr/intellij_idea/idea_module'
|
5
|
+
require 'buildr/intellij_idea/idea_project'
|
6
|
+
require 'buildr/intellij_idea/project_extension'
|
data/spec/spec_helper.rb
CHANGED
@@ -17,68 +17,56 @@ unless File.exist?("#{BUILDR_DIR}/buildr.gemspec")
|
|
17
17
|
raise "Unable to find buildr.gemspec in #{BUILDR_DIR == DEFAULT_BUILDR_DIR ? 'guessed' : 'specified'} $BUILDR_DIR (#{BUILDR_DIR})"
|
18
18
|
end
|
19
19
|
|
20
|
-
require 'rubygems'
|
21
|
-
|
22
|
-
# For testing we use the gem requirements specified on the buildr.gemspec
|
23
|
-
Gem::Specification.load(File.expand_path("#{BUILDR_DIR}/buildr.gemspec", File.dirname(__FILE__))).
|
24
|
-
dependencies.each { |dep| gem dep.name, dep.requirement.to_s }
|
25
|
-
|
26
|
-
|
27
20
|
# hook into buildr's spec_helpers load process
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
require 'buildr_iidea'
|
34
|
-
end
|
21
|
+
module SandboxHook
|
22
|
+
def SandboxHook.included(spec_helpers)
|
23
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
24
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
25
|
+
require 'buildr_iidea'
|
35
26
|
end
|
27
|
+
end
|
36
28
|
|
37
|
-
|
38
|
-
|
39
|
-
module SpecHelpers
|
40
|
-
|
41
|
-
def invoke_generate_task
|
42
|
-
task('iidea:generate').invoke
|
43
|
-
end
|
44
|
-
|
45
|
-
def invoke_clean_task
|
46
|
-
task('iidea:clean').invoke
|
47
|
-
end
|
29
|
+
require "#{BUILDR_DIR}/spec/spec_helpers.rb"
|
48
30
|
|
49
|
-
|
50
|
-
|
51
|
-
|
31
|
+
module SpecHelpers
|
32
|
+
def invoke_generate_task
|
33
|
+
task('iidea:generate').invoke
|
34
|
+
end
|
52
35
|
|
53
|
-
|
54
|
-
|
55
|
-
|
36
|
+
def invoke_clean_task
|
37
|
+
task('iidea:clean').invoke
|
38
|
+
end
|
56
39
|
|
57
|
-
|
58
|
-
|
59
|
-
|
40
|
+
def root_project_filename(project)
|
41
|
+
project._("#{project.name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.ipr")
|
42
|
+
end
|
60
43
|
|
61
|
-
|
62
|
-
|
63
|
-
|
44
|
+
def root_project_xml(project)
|
45
|
+
xml_document(root_project_filename(project))
|
46
|
+
end
|
64
47
|
|
65
|
-
|
66
|
-
|
67
|
-
|
48
|
+
def root_module_filename(project)
|
49
|
+
project._("#{project.name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.iml")
|
50
|
+
end
|
68
51
|
|
69
|
-
|
70
|
-
|
71
|
-
|
52
|
+
def root_module_xml(project)
|
53
|
+
xml_document(root_module_filename(project))
|
54
|
+
end
|
72
55
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
end
|
56
|
+
def subproject_module_filename(project, sub_project_name)
|
57
|
+
project._("#{sub_project_name}/#{sub_project_name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.iml")
|
58
|
+
end
|
77
59
|
|
78
|
-
|
79
|
-
|
80
|
-
|
60
|
+
def subproject_module_xml(project, sub_project_name)
|
61
|
+
xml_document(subproject_module_filename(project, sub_project_name))
|
62
|
+
end
|
81
63
|
|
64
|
+
def xml_document(filename)
|
65
|
+
File.should be_exist(filename)
|
66
|
+
REXML::Document.new(File.read(filename))
|
82
67
|
end
|
83
68
|
|
69
|
+
def xpath_to_module
|
70
|
+
"/project/component[@name='ProjectModuleManager']/modules/module"
|
71
|
+
end
|
84
72
|
end
|
metadata
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr-iidea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 15
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.0.
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
version: 0.0.9
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
|
-
- Rhett Sutphin
|
14
|
-
- Peter Donald
|
12
|
+
- Rhett Sutphin
|
13
|
+
- Peter Donald
|
15
14
|
autorequire:
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-
|
18
|
+
date: 2010-09-08 00:00:00 +10:00
|
20
19
|
default_executable:
|
21
20
|
dependencies: []
|
22
21
|
|
@@ -26,77 +25,74 @@ description: |
|
|
26
25
|
settings of each project and extension specific settings.
|
27
26
|
|
28
27
|
email:
|
29
|
-
- rhett@detailedbalance.net
|
30
|
-
- peter@realityforge.org
|
28
|
+
- rhett@detailedbalance.net
|
29
|
+
- peter@realityforge.org
|
31
30
|
executables: []
|
32
31
|
|
33
32
|
extensions: []
|
34
33
|
|
35
34
|
extra_rdoc_files:
|
36
|
-
- README.rdoc
|
37
|
-
- LICENSE
|
38
|
-
- NOTICE
|
39
|
-
- CHANGELOG
|
35
|
+
- README.rdoc
|
36
|
+
- LICENSE
|
37
|
+
- NOTICE
|
38
|
+
- CHANGELOG
|
40
39
|
files:
|
41
|
-
- lib/
|
42
|
-
- lib/buildr/intellij_idea/
|
43
|
-
- lib/buildr/intellij_idea/idea_project.rb
|
44
|
-
- lib/buildr/intellij_idea/project_extension.rb
|
45
|
-
- lib/buildr/intellij_idea/
|
46
|
-
- lib/
|
47
|
-
- spec/
|
48
|
-
- spec/
|
49
|
-
- spec/
|
50
|
-
- spec/buildr/intellij_idea/
|
51
|
-
- spec/buildr/intellij_idea/
|
52
|
-
- spec/buildr/intellij_idea/
|
53
|
-
- spec/buildr/intellij_idea/
|
54
|
-
- spec/buildr/intellij_idea/
|
55
|
-
- spec/buildr/intellij_idea/
|
56
|
-
- spec/buildr/intellij_idea/
|
57
|
-
- spec/buildr/intellij_idea/
|
58
|
-
- spec/buildr/intellij_idea/
|
59
|
-
- spec/buildr/intellij_idea/
|
60
|
-
- spec/
|
61
|
-
- spec/
|
62
|
-
- spec/
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
- Rakefile
|
40
|
+
- lib/buildr_iidea.rb
|
41
|
+
- lib/buildr/intellij_idea/version.rb
|
42
|
+
- lib/buildr/intellij_idea/idea_project.rb
|
43
|
+
- lib/buildr/intellij_idea/project_extension.rb
|
44
|
+
- lib/buildr/intellij_idea/idea_module.rb
|
45
|
+
- lib/buildr/intellij_idea/idea_file.rb
|
46
|
+
- spec/spec_helper.rb
|
47
|
+
- spec/xpath_matchers.rb
|
48
|
+
- spec/spec.opts
|
49
|
+
- spec/buildr/intellij_idea/inform_spec.rb
|
50
|
+
- spec/buildr/intellij_idea/facet_generation_spec.rb
|
51
|
+
- spec/buildr/intellij_idea/project_extension_spec.rb
|
52
|
+
- spec/buildr/intellij_idea/module_property_inheritance_spec.rb
|
53
|
+
- spec/buildr/intellij_idea/idea_file_generation_spec.rb
|
54
|
+
- spec/buildr/intellij_idea/module_defaults.rb
|
55
|
+
- spec/buildr/intellij_idea/group_spec.rb
|
56
|
+
- spec/buildr/intellij_idea/extra_modules_spec.rb
|
57
|
+
- spec/buildr/intellij_idea/initial_components_spec.rb
|
58
|
+
- spec/buildr/intellij_idea/clean_spec.rb
|
59
|
+
- spec/buildr/intellij_idea/dependency_spec.rb
|
60
|
+
- spec/buildr/intellij_idea/module_content_generation_spec.rb
|
61
|
+
- spec/buildr/intellij_idea/template_spec.rb
|
62
|
+
- buildr-iidea.gemspec
|
63
|
+
- LICENSE
|
64
|
+
- NOTICE
|
65
|
+
- README.rdoc
|
66
|
+
- CHANGELOG
|
67
|
+
- Rakefile
|
70
68
|
has_rdoc: true
|
71
69
|
homepage: http://github.com/realityforge/buildr-iidea
|
72
70
|
licenses: []
|
73
71
|
|
74
72
|
post_install_message: Thanks for installing the Intellij IDEA extension for Buildr
|
75
73
|
rdoc_options:
|
76
|
-
- --title
|
77
|
-
- buildr-iidea 0.0.
|
78
|
-
- --main
|
79
|
-
- README.rdoc
|
74
|
+
- --title
|
75
|
+
- buildr-iidea 0.0.9
|
76
|
+
- --main
|
77
|
+
- README.rdoc
|
80
78
|
require_paths:
|
81
|
-
- lib
|
79
|
+
- lib
|
82
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
81
|
none: false
|
84
82
|
requirements:
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
version: "0"
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
91
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
89
|
none: false
|
93
90
|
requirements:
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
version: "0"
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
version: "0"
|
100
96
|
requirements: []
|
101
97
|
|
102
98
|
rubyforge_project:
|
data/spec/buildr_dir
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
/Users/rsutphin/buildr/svn/trunk
|