inesita 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/inesita.gemspec +1 -1
- data/lib/inesita/cli/template/config.ru.tt +1 -1
- data/lib/inesita/config.rb +0 -1
- data/lib/inesita/server.rb +1 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fae836db1a56ed3ec4eb46d90911a3193e2fff023663bee516db9bdb74f11b7a
|
4
|
+
data.tar.gz: db2ac1f84665ecdc136b5e9991306ed0a745a4a74b48bb975753da3f14ff715e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39681fb3be0dd1aa70d9590437e37bcfe7f75e29e48ae53ff8fcc4a5aa0a94397ffaa1594f1443daf693695694935131b3b1cb801bf86705fc23fd431a216780
|
7
|
+
data.tar.gz: 9bf29632c0256c27a49de82fe1af8f87ae2b1d3b90d45bf46142803598d022dd1996aeebcf6e896b8dc16a4943aff15ca3471b1b645ae78ed7ecd9c90ba3551b
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Inesita [![Gem Version](https://badge.fury.io/rb/inesita.svg)](http://badge.fury.io/rb/inesita) [![Code Climate](https://codeclimate.com/github/inesita-rb/inesita/badges/gpa.svg)](https://codeclimate.com/github/inesita-rb/inesita) [![
|
1
|
+
# Inesita [![Gem Version](https://badge.fury.io/rb/inesita.svg)](http://badge.fury.io/rb/inesita) [![Code Climate](https://codeclimate.com/github/inesita-rb/inesita/badges/gpa.svg)](https://codeclimate.com/github/inesita-rb/inesita) [![Build Status](https://travis-ci.org/inesita-rb/inesita.svg?branch=master)](https://travis-ci.org/inesita-rb/inesita) [![Join the chat at https://gitter.im/inesita-rb/inesita](https://img.shields.io/badge/%E2%8A%AA%20GITTER%20-JOIN%20CHAT%20%E2%86%92-brightgreen.svg)](https://gitter.im/inesita-rb/inesita?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
2
2
|
|
3
3
|
Inesita is a web frontend framework for fast building browser application using Ruby. It uses Virtual DOM for page render.
|
4
4
|
|
data/inesita.gemspec
CHANGED
data/lib/inesita/config.rb
CHANGED
data/lib/inesita/server.rb
CHANGED
@@ -15,7 +15,6 @@ module Inesita
|
|
15
15
|
setup_env(opts)
|
16
16
|
@setup_sprockets = opts.delete(:setup_sprockets) || './.sprockets.rb'
|
17
17
|
@assets_app = create_assets_app
|
18
|
-
@source_maps_app = create_source_maps_app
|
19
18
|
@app = create_app
|
20
19
|
Inesita.assets_code = assets_code
|
21
20
|
end
|
@@ -41,23 +40,18 @@ module Inesita
|
|
41
40
|
|
42
41
|
def create_app
|
43
42
|
assets_app = @assets_app
|
44
|
-
source_maps_app = @source_maps_app
|
45
43
|
static_dir = @static_dir
|
46
44
|
|
47
45
|
Rack::Builder.new do
|
48
46
|
use Rack::Static, :urls => [static_dir]
|
49
47
|
|
50
48
|
use Rack::Rewrite do
|
51
|
-
rewrite(/^(?!#{Config::ASSETS_PREFIX}
|
49
|
+
rewrite(/^(?!#{Config::ASSETS_PREFIX}).*/, Config::ASSETS_PREFIX)
|
52
50
|
end
|
53
51
|
|
54
52
|
map Config::ASSETS_PREFIX do
|
55
53
|
run assets_app
|
56
54
|
end
|
57
|
-
|
58
|
-
map Config::SOURCE_MAP_PREFIX do
|
59
|
-
run source_maps_app
|
60
|
-
end
|
61
55
|
end
|
62
56
|
end
|
63
57
|
|
@@ -90,11 +84,6 @@ module Inesita
|
|
90
84
|
self.instance_eval(File.read(dir)) if File.exists?(dir)
|
91
85
|
end
|
92
86
|
|
93
|
-
def create_source_maps_app
|
94
|
-
::Opal::Sprockets::SourceMapHeaderPatch.inject!(Config::SOURCE_MAP_PREFIX)
|
95
|
-
Opal::SourceMapServer.new(@assets_app, Config::SOURCE_MAP_PREFIX)
|
96
|
-
end
|
97
|
-
|
98
87
|
def call(env)
|
99
88
|
@app.call(env)
|
100
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inesita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Kalbarczyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|