rack-app-front_end 0.2.0 → 0.3.0

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: 701a95d72e72d60f77ca4fe30f49baa90160a845
4
- data.tar.gz: 3d833a3e63180ccbd613f72af2c47fb6e6090946
3
+ metadata.gz: 51ef4d45f171e6d23cac5c08eab2f9d269099766
4
+ data.tar.gz: 572457c778986b295db92390cf679b7118872abd
5
5
  SHA512:
6
- metadata.gz: 9b9bcaead7908d00bb8e7b03a24dfa29b51d31e19faf8aff0edefbcdc54c770148d95fe8b33b8232e438733dd117036da90d28a1e682437ae323d3821ecf674d
7
- data.tar.gz: 8f652b17dac308c8eb44f54d2f8f92a474ad4dea341998f5e3a9cf941ae3147c3749c0c52b2cdfc728f3fac02e29154c4ab58897685738dd391c431c750dc1a1
6
+ metadata.gz: a2a5a6ea812512d89edf8fbe192b600b52aacf9aae51368e215a88eaf9271aae61b7f713fd99adb13fb26c5274f9bd4ed4f951bee0c1692dfa51f01b44a718b8
7
+ data.tar.gz: 32e23043f82402a7e133cf471544001f22030b3f72c9e823fbb933b728d3438372fd61a450aa47b32c9f0f81168a2ecd99dcd5e41ed4e450507a43ecd01aa7d1
data/README.md CHANGED
@@ -26,8 +26,8 @@ class App < Rack::App
26
26
 
27
27
  extend Rack::App::FrontEnd
28
28
 
29
- mount_folder '/public'
30
- mount_folder 'relative/folder/from/this'
29
+ mount_folder '/from/project/root/path'
30
+ mount_folder 'relative/folder/from/this/file/to/folder'
31
31
 
32
32
  end
33
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -1,4 +1,3 @@
1
- require 'pwd'
2
1
  class Rack::App::FrontEnd::FolderMounter
3
2
 
4
3
  def initialize(app_class)
@@ -15,14 +14,6 @@ class Rack::App::FrontEnd::FolderMounter
15
14
  end
16
15
  end
17
16
 
18
- def get_source_path(folder_path)
19
- if folder_path.to_s[0] == File::Separator
20
- PWD.join(folder_path)
21
- else
22
- File.join(File.dirname(caller[1].split(':')[0]),folder_path)
23
- end
24
- end
25
-
26
17
  protected
27
18
 
28
19
  def template_paths_for(source_folder_path)
@@ -1,4 +1,3 @@
1
- require 'pwd'
2
1
  module Rack::App::FrontEnd::Utils
3
2
 
4
3
  extend self
@@ -6,7 +5,7 @@ module Rack::App::FrontEnd::Utils
6
5
  def get_full_path(file_path,caller_index=1)
7
6
  return nil if file_path.nil?
8
7
  if file_path.to_s[0] == File::Separator
9
- PWD.join(file_path)
8
+ Rack::App::Utils.pwd(file_path)
10
9
  else
11
10
  File.join(File.dirname(caller[caller_index].split(':')[0]),file_path)
12
11
  end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "maruku"
27
27
 
28
28
  spec.add_dependency 'rack-app'
29
+ spec.add_dependency 'kramdown'
29
30
  spec.add_dependency 'tilt'
30
- spec.add_dependency 'pwd'
31
31
 
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-app-front_end
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: tilt
84
+ name: kramdown
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pwd
98
+ name: tilt
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="