component_library 0.0.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/library_controller.rb +2 -2
- data/lib/component_library/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e15d6d319bb3d6856f70b71a7929ac47bb73964
|
4
|
+
data.tar.gz: 50a8a3e046f13ccc794fdf1bae0127c44dd8ee59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc77e22338bb1d3229513602e5fd673ff48417ab89ba806f79def986efe80954d4638a17efea604c3b9ba153ae1b88deca6d4b2144933079a314bee2acc3eda4
|
7
|
+
data.tar.gz: 1b005fd79451265bc2bbff6275aa773c4a84c1e37d625c73cce4b84f5eefcceae1704e731f8513ee43b6d1aae24ce035430cfe848cc46f445746438a263adab2
|
@@ -2,13 +2,13 @@ class LibraryController < ApplicationController
|
|
2
2
|
layout "component_library"
|
3
3
|
|
4
4
|
def index
|
5
|
-
dir = Dir.glob("#{Rails.root}/app/views/#{ComponentLibrary.root_directory}/**/*.erb")
|
5
|
+
dir = Dir.glob("#{Rails.root}/app/views/#{ComponentLibrary.root_directory}/**/*.erb").sort
|
6
6
|
@library = Library::Librarian.new(dir, ComponentLibrary.root_directory)
|
7
7
|
end
|
8
8
|
|
9
9
|
def show
|
10
10
|
suffix = params[:format] == 'erb' ? ".erb" : "/**/*.erb"
|
11
|
-
dir = Dir.glob("#{Rails.root}/app/views/#{ComponentLibrary.root_directory}/#{params[:path]}#{suffix}")
|
11
|
+
dir = Dir.glob("#{Rails.root}/app/views/#{ComponentLibrary.root_directory}/#{params[:path]}#{suffix}").sort
|
12
12
|
@library = Library::Librarian.new(dir, ComponentLibrary.root_directory, params[:path])
|
13
13
|
raise ActionController::RoutingError.new('Not Found') if @library.components.empty?
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: component_library
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Archer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|