rail 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/rail/application.rb +9 -3
- data/lib/rail/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37044477e117facbe9e5e675ee19e1b8088d5aa6
|
4
|
+
data.tar.gz: 0588d8fd31eab039d6fc11344a4779a6b068f848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4eda036b542c53e9fdb22a25c13d476beb4cb6fdb370404ac3e5796abf9f90bd418fb32a4d3162d31edc27f335be4ab97dc948327d3679cfcdc96042d7422d
|
7
|
+
data.tar.gz: dde7176c4d1b6c5bae9b79cc3e39dec81188dbdd0ffe49bc0973f312720282357e0318b762c7893ef45b8920ba951fbfc31606487d5da8dd83ff8bcbc4b4ed68
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -17,7 +17,7 @@ First of all, include the gem in your `Gemfile`. Here is an example:
|
|
17
17
|
```ruby
|
18
18
|
source 'https://rubygems.org'
|
19
19
|
|
20
|
-
gem 'rail', '~> 0.0.
|
20
|
+
gem 'rail', '~> 0.0.5'
|
21
21
|
|
22
22
|
# The rest is optional
|
23
23
|
gem 'redcarpet', '~> 3.1.2' # your favorit complement to Haml
|
data/lib/rail/application.rb
CHANGED
@@ -40,7 +40,10 @@ module Rail
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.precompile
|
43
|
-
|
43
|
+
if config.precompile.empty?
|
44
|
+
puts 'Nothing to precompile.'
|
45
|
+
return
|
46
|
+
end
|
44
47
|
|
45
48
|
application = self.new
|
46
49
|
|
@@ -55,9 +58,12 @@ module Rail
|
|
55
58
|
|
56
59
|
puts "#{ path } -> #{ file }"
|
57
60
|
|
58
|
-
|
61
|
+
request = Request.new('REQUEST_METHOD' => 'GET', 'PATH_INFO' => path)
|
62
|
+
_, _, source = application.pipeline.process(request)
|
59
63
|
|
60
|
-
File.open(file, 'w')
|
64
|
+
File.open(file, 'w') do |file|
|
65
|
+
source.each { |chunk| file.write(chunk) }
|
66
|
+
end
|
61
67
|
end
|
62
68
|
|
63
69
|
puts
|
data/lib/rail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Ukhov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|