component_library 0.0.5 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60e2785e6c63e005e6189c952017fef5a5988f8b
4
- data.tar.gz: 107370624a36df202e474cf0c3c6ec361951a0a0
3
+ metadata.gz: 5e15d6d319bb3d6856f70b71a7929ac47bb73964
4
+ data.tar.gz: 50a8a3e046f13ccc794fdf1bae0127c44dd8ee59
5
5
  SHA512:
6
- metadata.gz: 2354ca619669a0869992b7a254ba68283428327f09a0590b078e53f166a1f2bfb49ab2c3750f0489618f53f79451ad44216934952a77eb43c65eb6cd520fc859
7
- data.tar.gz: ac8f14d8f1f8d67b5479741ec54839d31bc9659c0df20fb2e50603db237ce4743c29cda52ca50dcc99bff7465c527ff46b4013204bc5874ec80194f8309a6939
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
@@ -1,3 +1,3 @@
1
1
  module ComponentLibrary
2
- VERSION = "0.0.5"
2
+ VERSION = "1.0.0"
3
3
  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.5
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-18 00:00:00.000000000 Z
12
+ date: 2016-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3