component_library 0.0.2 → 0.0.3

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: cdbee49ecd63836a26a371a4c2a16f315d7aa185
4
- data.tar.gz: fecb47a1c43479c257865856a4c73cb6ce4a199a
3
+ metadata.gz: b4185601bb49faa1ee46a96f5c110cda52f8e52e
4
+ data.tar.gz: b0371017de86bfc068d7cd5883a97b33a3e1cf06
5
5
  SHA512:
6
- metadata.gz: 5ca5b4e4b68fa2c007a0b5482e4e693c8fe960e303112b1d98b681a917d3c011e6b295266551d5095f4d8d0931b574993eac4d2ca3acd38590336c31dd38ce8a
7
- data.tar.gz: 8314630da1b459dc286688b0a8b5d30303c148a39f03e37c3669af52ce733245fe58e780cc75c8381b1df1fc499ad28204d82a8369f542aff455cdbda417c1a5
6
+ metadata.gz: 26b2065319be021705f565d42aa15641655bcc78df317403bcc36f501d4fea6bea2e6f6f66f6618f2da8b8b2f15f1ff7b0e37b15f4399b62bd8a68a38f1d8923
7
+ data.tar.gz: 5c04680d48bbc96677b13b5cb5bc1cbea1fefb36765fba89e16244dab2426617d1c810a1ed1be5b1953a81155add057b1d81c95b668f41c1ba651a2da0c70286
@@ -1,2 +1,3 @@
1
1
  // Place all the behaviors and hooks related to the matching controller here.
2
2
  // All this logic will automatically be available in application.js.
3
+ //= require_tree .
@@ -2,8 +2,8 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Component</title>
5
- <%= stylesheet_link_tag 'library', ComponentLibrary.application_css, media: 'all' %>
6
- <%= javascript_include_tag 'prism' %>
5
+ <%= stylesheet_link_tag ComponentLibrary.stylesheet_path, ComponentLibrary.application_css, media: 'all' %>
6
+ <%= javascript_include_tag ComponentLibrary.javascript_path %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
9
  <body>
@@ -11,4 +11,12 @@ module ComponentLibrary
11
11
  def self.setup(&block)
12
12
  yield self
13
13
  end
14
+
15
+ def self.stylesheet_path
16
+ '_component_library/library'
17
+ end
18
+
19
+ def self.javascript_path
20
+ '_component_library/library'
21
+ end
14
22
  end
@@ -1,7 +1,7 @@
1
1
  module ComponentLibrary
2
2
  class Engine < ::Rails::Engine
3
3
  initializer "component_library.assets.precompile" do |app|
4
- app.config.assets.precompile += %w(library.css library.js prism.js)
4
+ app.config.assets.precompile += ["#{ComponentLibrary.stylesheet_path}.css", ComponentLibrary.javascript_path]
5
5
  end
6
6
 
7
7
  config.generators do |g|
@@ -1,3 +1,3 @@
1
1
  module ComponentLibrary
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: component_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Archer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 4.2.5.2
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 4.2.5.2
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: sqlite3
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +38,20 @@ dependencies:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
40
  version: '3.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 4.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sass
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -82,10 +82,10 @@ files:
82
82
  - MIT-LICENSE
83
83
  - README.rdoc
84
84
  - Rakefile
85
- - app/assets/javascripts/library.js
86
- - app/assets/javascripts/prism.js
87
- - app/assets/stylesheets/_prism.scss
88
- - app/assets/stylesheets/library.scss
85
+ - app/assets/javascripts/_component_library/_prism.js
86
+ - app/assets/javascripts/_component_library/library.js
87
+ - app/assets/stylesheets/_component_library/_prism.scss
88
+ - app/assets/stylesheets/_component_library/library.scss
89
89
  - app/controllers/library_controller.rb
90
90
  - app/models/library/component.rb
91
91
  - app/models/library/librarian.rb