buildr-iidea 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,4 +1,11 @@
1
- 0.0.8 (Pending)
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
- info "Tagged locally. Push if you're sure."
31
+ puts "Tagged locally. `git push --tags` if you're sure."
31
32
  end
32
33
  end
@@ -3,7 +3,7 @@ module Buildr
3
3
  class Version
4
4
  MAJOR = "0"
5
5
  MINOR = "0"
6
- MICRO = "8"
6
+ MICRO = "9"
7
7
 
8
8
  STRING = "#{MAJOR}.#{MINOR}.#{MICRO}"
9
9
  end
data/lib/buildr_iidea.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'buildr'
2
- require File.expand_path(File.dirname(__FILE__) + '/buildr/intellij_idea/version')
3
- require File.expand_path(File.dirname(__FILE__) + '/buildr/intellij_idea/idea_file')
4
- require File.expand_path(File.dirname(__FILE__) + '/buildr/intellij_idea/idea_module')
5
- require File.expand_path(File.dirname(__FILE__) + '/buildr/intellij_idea/idea_project')
6
- require File.expand_path(File.dirname(__FILE__) + '/buildr/intellij_idea/project_extension')
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
- unless defined?(SpecHelpers)
29
- module SandboxHook
30
- def SandboxHook.included(spec_helpers)
31
- $LOAD_PATH.unshift(File.dirname(__FILE__))
32
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
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
- require "#{BUILDR_DIR}/spec/spec_helpers.rb"
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
- def root_project_filename(project)
50
- project._("#{project.name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.ipr")
51
- end
31
+ module SpecHelpers
32
+ def invoke_generate_task
33
+ task('iidea:generate').invoke
34
+ end
52
35
 
53
- def root_project_xml(project)
54
- xml_document(root_project_filename(project))
55
- end
36
+ def invoke_clean_task
37
+ task('iidea:clean').invoke
38
+ end
56
39
 
57
- def root_module_filename(project)
58
- project._("#{project.name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.iml")
59
- end
40
+ def root_project_filename(project)
41
+ project._("#{project.name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.ipr")
42
+ end
60
43
 
61
- def root_module_xml(project)
62
- xml_document(root_module_filename(project))
63
- end
44
+ def root_project_xml(project)
45
+ xml_document(root_project_filename(project))
46
+ end
64
47
 
65
- def subproject_module_filename(project, sub_project_name)
66
- project._("#{sub_project_name}/#{sub_project_name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.iml")
67
- end
48
+ def root_module_filename(project)
49
+ project._("#{project.name}#{Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX}.iml")
50
+ end
68
51
 
69
- def subproject_module_xml(project, sub_project_name)
70
- xml_document(subproject_module_filename(project, sub_project_name))
71
- end
52
+ def root_module_xml(project)
53
+ xml_document(root_module_filename(project))
54
+ end
72
55
 
73
- def xml_document(filename)
74
- File.should be_exist(filename)
75
- REXML::Document.new(File.read(filename))
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
- def xpath_to_module
79
- "/project/component[@name='ProjectModuleManager']/modules/module"
80
- end
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
- - 0
8
- - 0
9
- - 8
10
- version: 0.0.8
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-07-15 00:00:00 -05:00
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/buildr/intellij_idea/idea_file.rb
42
- - lib/buildr/intellij_idea/idea_module.rb
43
- - lib/buildr/intellij_idea/idea_project.rb
44
- - lib/buildr/intellij_idea/project_extension.rb
45
- - lib/buildr/intellij_idea/version.rb
46
- - lib/buildr_iidea.rb
47
- - spec/buildr/intellij_idea/clean_spec.rb
48
- - spec/buildr/intellij_idea/dependency_spec.rb
49
- - spec/buildr/intellij_idea/extra_modules_spec.rb
50
- - spec/buildr/intellij_idea/facet_generation_spec.rb
51
- - spec/buildr/intellij_idea/group_spec.rb
52
- - spec/buildr/intellij_idea/idea_file_generation_spec.rb
53
- - spec/buildr/intellij_idea/inform_spec.rb
54
- - spec/buildr/intellij_idea/initial_components_spec.rb
55
- - spec/buildr/intellij_idea/module_content_generation_spec.rb
56
- - spec/buildr/intellij_idea/module_defaults.rb
57
- - spec/buildr/intellij_idea/module_property_inheritance_spec.rb
58
- - spec/buildr/intellij_idea/project_extension_spec.rb
59
- - spec/buildr/intellij_idea/template_spec.rb
60
- - spec/buildr_dir
61
- - spec/spec.opts
62
- - spec/spec_helper.rb
63
- - spec/xpath_matchers.rb
64
- - buildr-iidea.gemspec
65
- - LICENSE
66
- - NOTICE
67
- - README.rdoc
68
- - CHANGELOG
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.8
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
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
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
- - !ruby/object:Gem::Version
96
- hash: 3
97
- segments:
98
- - 0
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