dcrec1-rspec-vraptor 0.9.7 → 0.9.8

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/Rakefile CHANGED
@@ -6,9 +6,9 @@ require 'rubygems/specification'
6
6
  require 'rake'
7
7
  require 'rake/gempackagetask'
8
8
  require 'spec/rake/spectask'
9
-
9
+
10
10
  GEM = "rspec-vraptor"
11
- GEM_VERSION = "0.9.7"
11
+ GEM_VERSION = "0.9.8"
12
12
  SUMMARY = "RSpec for VRaptor Sexy/Nice URLs"
13
13
  AUTHOR = "Diego Carrion"
14
14
  EMAIL = "dc.rec1@gmail.com"
@@ -21,7 +21,7 @@ spec = Gem::Specification.new do |s|
21
21
  s.summary = SUMMARY
22
22
  s.require_paths = ['lib']
23
23
  s.files = FileList['lib/**/*.rb','[A-Z]*'].to_a
24
-
24
+
25
25
  s.author = AUTHOR
26
26
  s.email = EMAIL
27
27
  s.homepage = HOMEPAGE
@@ -36,11 +36,11 @@ end
36
36
 
37
37
  task :set_sexy do
38
38
  $CLASSPATH << 'inc/vraptor-2.6.3.jar'
39
- $CLASSPATH << 'inc/picocontainer-1.3.jar'
39
+ $CLASSPATH << 'inc/picocontainer-1.3.jar'
40
40
  end
41
41
 
42
42
  task :set_nice do
43
- $CLASSPATH << 'inc/vraptor-2.6.0.jar'
43
+ $CLASSPATH << 'inc/vraptor-2.6.0.jar'
44
44
  $CLASSPATH << 'inc/picocontainer-2.7.jar'
45
45
  end
46
46
 
@@ -49,16 +49,16 @@ task :'spec:nice' => [:set_nice, :spec]
49
49
 
50
50
  desc "Run specs for VRaptor Sexy URLs"
51
51
  task :'spec:sexy' => [:set_sexy, :spec]
52
-
52
+
53
53
  Rake::GemPackageTask.new(spec) do |pkg|
54
54
  pkg.gem_spec = spec
55
55
  end
56
-
56
+
57
57
  desc "Install the gem locally"
58
58
  task :install => [:package] do
59
59
  sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
60
60
  end
61
-
61
+
62
62
  desc "Create a gemspec file"
63
63
  task :make_spec do
64
64
  File.open("#{GEM}.gemspec", "w") do |file|
@@ -1,35 +1,35 @@
1
1
  class MockedServletContext
2
2
  include ServletContext
3
3
  attr_accessor :attributes, :init_parameters, :basic_path
4
-
4
+
5
5
  def initialize
6
6
  @attributes = {}
7
7
  end
8
-
8
+
9
9
  def get_init_parameter(x)
10
10
  end
11
-
11
+
12
12
  def get_context(uri_path)
13
13
  nil
14
14
  end
15
-
15
+
16
16
  def get_major_version
17
17
  0
18
18
  end
19
-
19
+
20
20
  def get_minor_version
21
21
  0
22
22
  end
23
-
23
+
24
24
  def get_mime_type(file)
25
25
  nil
26
26
  end
27
-
27
+
28
28
  def get_resource_paths(path)
29
- paths = HashSet.new
29
+ paths = HashSet.new
30
30
  path = @basic_path = ($CLASSPATH.select {|p| p.include? "/classes/"})[0].sub("file:", "") if path.eql? "/WEB-INF/classes/"
31
31
  Dir[path + "*"].each do |path|
32
- path = path + "/" unless File::directory?(path)
32
+ path = path + "/" if File::directory?(path)
33
33
  path = path.gsub(@basic_path, "/WEB-INF/classes/") if path.include? ".class"
34
34
  paths.add path
35
35
  end
@@ -38,15 +38,15 @@ class MockedServletContext
38
38
 
39
39
  def get_resource(x)
40
40
  end
41
-
41
+
42
42
  def get_real_path(path)
43
43
  path
44
44
  end
45
-
45
+
46
46
  def set_attribute(x, y)
47
47
  @attributes.merge!({x => y})
48
48
  end
49
-
49
+
50
50
  def get_attribute(x)
51
51
  @attributes[x]
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcrec1-rspec-vraptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Carrion
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-01 00:00:00 -07:00
12
+ date: 2009-09-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15