flatrack 1.0.0.alpha3 → 1.0.0.alpha4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bc30227c382591f8363ba663ff1557e90fe8c7a
4
- data.tar.gz: 835e3b73f93a85199af36a262a1cd78f8fbd20e4
3
+ metadata.gz: 5b504a55fd4332f09840c6936e57e8c68be4b188
4
+ data.tar.gz: 450dcc207ab56cbb4b49ad2c7ca0130db519a79d
5
5
  SHA512:
6
- metadata.gz: 4fac78726e9353b7cc1e100638932815cc0950ef7a0bf89304108e0aead622f33691acdad5d2bfda1736ab9c6bc84f47636f218dcd63677ed45447f015ce1c0c
7
- data.tar.gz: 604fcaf7ed419d6aad6d42e524d162a95b8e1f34b32a06f73dcbbd6c63e43e9b49b08257663c22af36fba43d94b5b1a7857b02328dc6ebf277422d7280e2781d
6
+ metadata.gz: e6fbafc03913f6176229d33fa330943800a691c122433a7efbcf626baf134030d1075b010f5341e0f1cab5fc30136b997b0949ee166580fae030426f16ef4811
7
+ data.tar.gz: 7dfa3fc62f1c3d4a6cbf6e1a4ecf770bbb3e0b281f45b795d16d7aba6cb0a7187cbe24462fbbc4c24e84dc3832cff321f594b9b2e31c901546e462d476123de3
data/flatrack.gemspec CHANGED
@@ -21,13 +21,14 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  # Ruby Version
24
- spec.required_ruby_version = '>= 1.6.8'
24
+ spec.required_ruby_version = '>= 1.9.3'
25
25
 
26
26
  # Dependencies
27
27
  spec.add_dependency 'rack'
28
28
  spec.add_dependency 'activesupport'
29
29
  spec.add_dependency 'sass'
30
30
  spec.add_dependency 'sprockets'
31
+ spec.add_dependency 'sprockets-sass'
31
32
  spec.add_dependency 'thor'
32
33
  spec.add_dependency 'coffee-script'
33
34
  spec.add_dependency 'rake'
data/lib/flatrack/cli.rb CHANGED
@@ -15,6 +15,8 @@ module Flatrack
15
15
  path = File.expand_path name
16
16
  self.destination_root = path
17
17
  template '.gitignore', '.gitignore'
18
+ template 'boot.rb', 'boot.rb'
19
+ template 'Rakefile', 'Rakefile'
18
20
  template 'Gemfile.erb', 'Gemfile'
19
21
  template 'config.ru', 'config.ru'
20
22
  template 'layout.html.erb', 'layouts/layout.html.erb'
@@ -1,6 +1,7 @@
1
1
  module Flatrack
2
2
  class Response
3
3
  class ViewContext
4
+ include AssetExtensions
4
5
 
5
6
  def initialize(response)
6
7
  @response = response
@@ -1,3 +1,3 @@
1
1
  module Flatrack
2
- VERSION = "1.0.0.alpha3"
2
+ VERSION = "1.0.0.alpha4"
3
3
  end
data/lib/flatrack.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'flatrack/version'
2
- require 'sprockets'
3
2
  require 'active_support/all'
3
+ require 'sprockets'
4
+ require 'sprockets-sass'
5
+ require 'sass'
4
6
 
5
7
  module Flatrack
6
8
  extend ActiveSupport::Autoload
data/templates/.gitignore CHANGED
@@ -1 +1,2 @@
1
- public/assets
1
+ public/assets
2
+ .sass-cache
@@ -0,0 +1,4 @@
1
+ require './boot'
2
+ require 'rake/asset_tasks'
3
+
4
+ Rake::AssetTasks.new
data/templates/boot.rb ADDED
@@ -0,0 +1,4 @@
1
+ STDOUT.sync = true
2
+
3
+ require 'bundler/setup'
4
+ Bundler.require(:default)
data/templates/config.ru CHANGED
@@ -1,6 +1,2 @@
1
- STDOUT.sync = true
2
-
3
- require 'bundler/setup'
4
- Bundler.require(:default)
5
-
1
+ require './boot'
6
2
  run Flatrack::Site
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flatrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha3
4
+ version: 1.0.0.alpha4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Waldrip
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sprockets-sass
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: thor
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -171,6 +185,8 @@ files:
171
185
  - spec/spec_helper.rb
172
186
  - templates/.gitignore
173
187
  - templates/Gemfile.erb
188
+ - templates/Rakefile
189
+ - templates/boot.rb
174
190
  - templates/config.ru
175
191
  - templates/layout.html.erb
176
192
  - templates/page.html.erb
@@ -187,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
203
  requirements:
188
204
  - - ">="
189
205
  - !ruby/object:Gem::Version
190
- version: 1.6.8
206
+ version: 1.9.3
191
207
  required_rubygems_version: !ruby/object:Gem::Requirement
192
208
  requirements:
193
209
  - - ">"