rails-sandbox-assets 0.1.1 → 0.1.2

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: 3b769fabdc29fdf41fd4ca44666385150ef5f305
4
- data.tar.gz: a53dc702f4b54fbdcbf56e35a6ac5e071be21938
3
+ metadata.gz: 8d812a8df32c8133627e6a26e7495bbd12648c58
4
+ data.tar.gz: f481cd5554f9107ffdbd21d736b2128de559543d
5
5
  SHA512:
6
- metadata.gz: 63283310102d5c38a569a53babf0e00d0183acefd91b839ea3bfb4b93d4f8e013b0f99fc583831789263146872eaa9da6da275e8a1af839833758fda856ffa46
7
- data.tar.gz: 6177866ac7794172130c9bd3eace01b1bc069973d6688f67cedfc148ca6d04a0218c181f1542352efa3d470638d561291d5dbbaec1845b567d5afbc209e3c13f
6
+ metadata.gz: 85f18b40153b426ab699e93554f6a96bd5ac53eb34f65f39535b931a3c43e20e86acff1312629bfb1af8b54a4b2246a8646cc5bd207aaff39ab672e4b97386bd
7
+ data.tar.gz: c2939b158722280377ea28ca2c21c6e0829c95d7420b691ef0fc89b28e904dc6692585d82a4eb3e881284f86dd980216335595c3b1e578963b1538251909581c
@@ -1,3 +1,3 @@
1
1
  module SandboxAssets
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,11 +1,12 @@
1
1
  namespace :sandbox_assets do
2
2
  desc "Run Sandboxed Assets server"
3
3
  task :serve => :environment do
4
- app = SandboxAssets::Engine
5
- port = app.config.sandbox_assets.port
6
- app.routes.define_mounted_helper 'sandbox_assets_engine'
4
+ Rails.application.tap do |app|
5
+ app.routes.draw { mount SandboxAssets::Engine => '/' }
6
+ port = app.config.sandbox_assets.port
7
7
 
8
- puts "Your assets will be soon available at http://localhost:#{port}\n\n"
9
- Rack::Server.start app: app, Port: port
8
+ puts "Your assets will be soon available at http://localhost:#{port}\n\n"
9
+ Rack::Server.start app: app, Port: port
10
+ end
10
11
  end
11
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-sandbox-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-29 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails