rack-sprockets 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,20 +47,12 @@ module Rack::Sprockets
47
47
  unless options.has_key?(option_name(:root)) and !options(:root).nil?
48
48
  raise(ArgumentError, "no :root option set")
49
49
  end
50
- unless File.exists?(options(:root))
51
- raise(ArgumentError, "the :root path ('#{options(:root)}') does not exist")
52
- end
53
-
54
50
  set :root, File.expand_path(options(:root))
55
51
 
56
52
  # ensure a source path is specified and does exists
57
53
  unless options.has_key?(option_name(:source)) and !options(:source).nil?
58
54
  raise(ArgumentError, "no :source option set")
59
55
  end
60
- source_path = File.join(options(:root), options(:source))
61
- unless File.exists?(source_path)
62
- raise(ArgumentError, "the :source path ('#{source_path}') does not exist")
63
- end
64
56
  end
65
57
 
66
58
  end
@@ -11,7 +11,7 @@ module Rack::Sprockets
11
11
 
12
12
  # Rack response tuple accessors.
13
13
  attr_accessor :status, :headers, :body
14
-
14
+
15
15
  class << self
16
16
 
17
17
  # Calculate appropriate content_length
@@ -22,7 +22,7 @@ module Rack::Sprockets
22
22
  body.size
23
23
  end
24
24
  end
25
-
25
+
26
26
  end
27
27
 
28
28
  # Create a Response instance given the env
@@ -36,10 +36,10 @@ module Rack::Sprockets
36
36
  headers["Content-Type"] = Rack::Sprockets::MIME_TYPE
37
37
  headers["Content-Length"] = self.class.content_length(body).to_s
38
38
  end
39
-
39
+
40
40
  def to_rack
41
- [status, headers.to_hash, body]
41
+ [status, headers.to_hash, [body]]
42
42
  end
43
43
 
44
44
  end
45
- end
45
+ end
@@ -3,7 +3,7 @@ module RackSprockets
3
3
 
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- TINY = 2
6
+ TINY = 3
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 3
9
+ version: 1.0.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Kelly Redding
@@ -9,69 +14,92 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-14 00:00:00 -06:00
17
+ date: 2010-04-14 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: shoulda
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 10
30
+ - 0
23
31
  version: 2.10.0
24
- version:
32
+ type: :development
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: sinatra
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 9
44
+ - 4
33
45
  version: 0.9.4
34
- version:
46
+ type: :development
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: rack-test
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ - 5
58
+ - 3
43
59
  version: 0.5.3
44
- version:
60
+ type: :development
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: webrat
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ - 6
72
+ - 0
53
73
  version: 0.6.0
54
- version:
74
+ type: :development
75
+ version_requirements: *id004
55
76
  - !ruby/object:Gem::Dependency
56
77
  name: rack
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
60
80
  requirements:
61
81
  - - ">="
62
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ - 4
63
86
  version: "0.4"
64
- version:
87
+ type: :runtime
88
+ version_requirements: *id005
65
89
  - !ruby/object:Gem::Dependency
66
90
  name: sprockets
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
91
+ prerelease: false
92
+ requirement: &id006 !ruby/object:Gem::Requirement
70
93
  requirements:
71
94
  - - ">="
72
95
  - !ruby/object:Gem::Version
96
+ segments:
97
+ - 1
98
+ - 0
99
+ - 0
73
100
  version: 1.0.0
74
- version:
101
+ type: :runtime
102
+ version_requirements: *id006
75
103
  description:
76
104
  email: kelly@kelredd.com
77
105
  executables: []
@@ -105,18 +133,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
133
  requirements:
106
134
  - - ">="
107
135
  - !ruby/object:Gem::Version
136
+ segments:
137
+ - 0
108
138
  version: "0"
109
- version:
110
139
  required_rubygems_version: !ruby/object:Gem::Requirement
111
140
  requirements:
112
141
  - - ">="
113
142
  - !ruby/object:Gem::Version
143
+ segments:
144
+ - 0
114
145
  version: "0"
115
- version:
116
146
  requirements: []
117
147
 
118
148
  rubyforge_project:
119
- rubygems_version: 1.3.5
149
+ rubygems_version: 1.3.6
120
150
  signing_key:
121
151
  specification_version: 3
122
152
  summary: Sprockets javascript preprocessing for Rack apps.