Class: DependencyManager

Inherits:
Object
  • Object
show all
Defined in:
lib/vraptor-scaffold/generators/app/dependency_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DependencyManager

Returns a new instance of DependencyManager.



5
6
7
# File 'lib/vraptor-scaffold/generators/app/dependency_manager.rb', line 5

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/vraptor-scaffold/generators/app/dependency_manager.rb', line 3

def options
  @options
end

Instance Method Details

#compile_scopeObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/vraptor-scaffold/generators/app/dependency_manager.rb', line 9

def compile_scope
  [Dependency.new("br.com.caelum", "vraptor", "3.4.1"),
  Dependency.new("javax.servlet", "jstl", "1.2"),
  Dependency.new("org.hsqldb", "hsqldb", "2.2.8"),
  Dependency.new("org.hibernate", "hibernate-entitymanager", "4.0.1.Final"),
  Dependency.new("org.hibernate", "hibernate-c3p0", "4.0.1.Final"),
  Dependency.new("org.hibernate", "hibernate-validator", "4.2.0.Final"),
  Dependency.new("joda-time", "joda-time", "2.0"),
  Dependency.new("com.thoughtworks.xstream", "xstream", "1.4.1"),
  Dependency.new("com.google.code.gson", "gson", "2.2.1"),
  Dependency.new("org.codehaus.jettison", "jettison", "1.3"),
  Dependency.new("com.github.filipesperandio.vraptor", "vraptor-hypermedia", "3.4.1.9.deserializer"),
  Dependency.new("org.eclipse.jetty", "jetty-webapp", "7.4.4.v20110707"),
  Dependency.new("org.mortbay.jetty", "jsp-2.1-glassfish", "2.1.v20100127"),
  Dependency.new("javax.servlet", "servlet-api", "2.5")]
end

#test_scopeObject



26
27
28
29
30
# File 'lib/vraptor-scaffold/generators/app/dependency_manager.rb', line 26

def test_scope
  [Dependency.new("junit", "junit", "4.10"),
  Dependency.new("org.hamcrest", "hamcrest-all", "1.1"),
  Dependency.new("org.mockito", "mockito-all", "1.9.0")]
end