inesita 1.0.pre.6 → 1.0.pre.8

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: 8e2548a53c3987435cf69c54af23e728a766322e64732fcb876693f367ee2992
4
- data.tar.gz: a0d9e09d3e557e5de5f5928b7eef5a882621b57b2b085f2043f2f033f64e3d0c
3
+ metadata.gz: 845d81b2f584ef901f1663899fe40b2f356cc490ae9de224e1ea8ab12e859ba1
4
+ data.tar.gz: abc186b533865816e80849d47f5bad332f3f8c58a83394c9218ef85d8b53cc0e
5
5
  SHA512:
6
- metadata.gz: 570edb6cb73bd9ffbee1d0f8fd16cd8cbf4fbbd6a44b2292274b650396f816187d4bc2781e1b52533a12fe6fd229b4da64d5d4af33820eea606e1bec65b5d51b
7
- data.tar.gz: 3333bc6f94a93ebaab03537efafd50bfb78ddf596800d4f968786b0e5aba6aead5324468e249e1865aca7c87296022a0586e5e673bdfbb7b9bc1ae9659d7e120
6
+ metadata.gz: c33cffbb7eceb0990daa39d4f02502de08145f330a92582569335c62cc296a0caba251fea8a01930976651bcbad1477f783ae19724821c3f2aa61aad2887bdf0
7
+ data.tar.gz: 94701d1d0f6c4b7e7a273f2061f81b4a1ead79eff7476729e9137d9041a758832b69d50b89546c1b0926102dc5ccb3190367205c5e239e3fcd085d48f8c57188
data/inesita.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'inesita'
3
- s.version = '1.0.pre.6'
3
+ s.version = '1.0.pre.8'
4
4
  s.authors = ['Michał Kalbarczyk']
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/inesita-rb/inesita'
@@ -60,9 +60,10 @@ module Inesita
60
60
 
61
61
  Dir.glob("./#{static_dir}/**/*").each do |file|
62
62
  if File.directory?(file)
63
- empty_directory File.join(destination_dir, file), force: force
63
+ puts file.inspect
64
+ empty_directory File.join(destination_dir, file.gsub(static_dir, 'assets')), force: force
64
65
  else
65
- copy_file File.absolute_path(file), File.join(destination_dir, file.gsub(static_dir, 'static')), force: force
66
+ copy_file File.absolute_path(file), File.join(destination_dir, file.gsub(static_dir, 'assets')), force: force
66
67
  end
67
68
  end
68
69
  end
@@ -3,7 +3,7 @@ class Home
3
3
 
4
4
  def render
5
5
  div.jumbotron.text_center.bg_light do
6
- img src: '/static/inesita-rb.png'
6
+ img src: '/assets/inesita-rb.png'
7
7
  h1 do
8
8
  text "Hello I'm Inesita"
9
9
  end
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <title><%= config[:project_name] %></title>
6
6
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
7
- <link rel="stylesheet" href="/static/stylesheet.css"/>
7
+ <link rel="stylesheet" href="/assets/stylesheet.css"/>
8
8
  <%= Inesita.assets_code %>
9
9
  </head>
10
10
  <body>
@@ -1,6 +1,6 @@
1
1
  module Inesita
2
2
  module Config
3
- STATIC_DIR = '/static'
3
+ STATIC_DIR = 'static'
4
4
  BUILD_DIR = 'dist'
5
5
  APP_DIR = 'app'
6
6
  SERVER_MAIN = 'application'
@@ -4,7 +4,6 @@ module Inesita
4
4
  server = server(*args, &block)
5
5
 
6
6
  @rack = Rack::Builder.new do
7
- use Rack::Static, urls: [Inesita::Config::STATIC_DIR]
8
7
  run server
9
8
  end
10
9
 
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: 1.0.pre.6
4
+ version: 1.0.pre.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Kalbarczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: 1.3.1
210
210
  requirements: []
211
- rubygems_version: 3.4.12
211
+ rubygems_version: 3.4.10
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Frontend web framework for Opal