rail 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f1c4f5ee81f202993f47ed82f6076060fbc1110
4
- data.tar.gz: 1504841ca0e7db7d3045a2063ef8c6a565772842
3
+ metadata.gz: 37044477e117facbe9e5e675ee19e1b8088d5aa6
4
+ data.tar.gz: 0588d8fd31eab039d6fc11344a4779a6b068f848
5
5
  SHA512:
6
- metadata.gz: 5368da0a014a3c93acdf90aa3553e84d6955ae5af500b529fcc3a45b324aedaa607c75bb3f6216aed49aa267ea765ce2ea3d6022ae542f91d413947d0f783429
7
- data.tar.gz: 6b296d267fa2e1920b973546b7da455d9edc2cd010f647322a6392edc6f75ed9ad549886cb5ed57bafd1f71304bb114c5db3b95c8cbf04567f934f52143ba058
6
+ metadata.gz: 2a4eda036b542c53e9fdb22a25c13d476beb4cb6fdb370404ac3e5796abf9f90bd418fb32a4d3162d31edc27f335be4ab97dc948327d3679cfcdc96042d7422d
7
+ data.tar.gz: dde7176c4d1b6c5bae9b79cc3e39dec81188dbdd0ffe49bc0973f312720282357e0318b762c7893ef45b8920ba951fbfc31606487d5da8dd83ff8bcbc4b4ed68
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Rail 0.0.5 (June 29, 2014)
2
+
3
+ * Enforced usage of the pipeline when precompiling assets.
4
+
1
5
  ## Rail 0.0.4 (June 26, 2014)
2
6
 
3
7
  * Proper format of README making YARD happy.
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.4'
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
@@ -40,7 +40,10 @@ module Rail
40
40
  end
41
41
 
42
42
  def self.precompile
43
- return if config.precompile.empty?
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
- _, _, source = application.call('PATH_INFO' => path)
61
+ request = Request.new('REQUEST_METHOD' => 'GET', 'PATH_INFO' => path)
62
+ _, _, source = application.pipeline.process(request)
59
63
 
60
- File.open(file, 'w') { |f| f.write(source.to_s) }
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
@@ -1,3 +1,3 @@
1
1
  module Rail
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
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
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-26 00:00:00.000000000 Z
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake