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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a612568f59392de67e706c41d61e7320b5f60ac894da8618b28b368e029a6a6
4
- data.tar.gz: 901d38803661101d455962a1a5d7c9838c9bcdf6b31068f0569b637a655f226c
3
+ metadata.gz: fae836db1a56ed3ec4eb46d90911a3193e2fff023663bee516db9bdb74f11b7a
4
+ data.tar.gz: db2ac1f84665ecdc136b5e9991306ed0a745a4a74b48bb975753da3f14ff715e
5
5
  SHA512:
6
- metadata.gz: ab0ef641a0ead59a453db7d6f1abc4eda97a0ab90aa573ca5c3794ce02433d7a4d3920383c8eb802bcbf1babe1ff1d578e5bb7225eb4eb738989bb9731973582
7
- data.tar.gz: 66b5cae8ffceab6fb4eb394bb77cc05468c0b12210e4bd342dc6943837d048af2aaff2d07a4314cf2fa9fbc60366331ab9f8935c6074b503c68e865870a52a62
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) [![Dependency Status](https://gemnasium.com/inesita-rb/inesita.svg)](https://gemnasium.com/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)
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'inesita'
3
- s.version = '0.8.1'
3
+ s.version = '0.8.2'
4
4
  s.authors = ['Michał Kalbarczyk']
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/inesita-rb/inesita'
@@ -6,4 +6,4 @@ Bundler.require
6
6
  use Inesita::LiveReload
7
7
 
8
8
  # run inesita server
9
- run Inesita::Server.new()
9
+ run Inesita::Server.new
@@ -1,6 +1,5 @@
1
1
  module Inesita
2
2
  module Config
3
- SOURCE_MAP_PREFIX = '/__OPAL_MAPS__'
4
3
  ASSETS_PREFIX = '/__ASSETS__'
5
4
  STATIC_DIR = '/static'
6
5
  BUILD_DIR = 'dist'
@@ -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}|#{Config::SOURCE_MAP_PREFIX}).*/, 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.1
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-08-17 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal