kayessess 0.2.11 → 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: 54bdb5cf453d21e7305135eab49cf9ec1b50d1cc
4
- data.tar.gz: ae66af79ceaf93e6fa309d0a771f0345ef043de3
3
+ metadata.gz: e2de51a7cc55b67425a01fc35ca0dbe537bea201
4
+ data.tar.gz: 32a50cb7c14bd59c716772a08d674984f9ab454c
5
5
  SHA512:
6
- metadata.gz: 4b6e768efe81a812c66de56279503a455a06b6ee3055aa897450904792cd2939fc5c56ae977c4fff1562be467a3b065dd4763e33b2e7f931e31e0c477bb9f0cb
7
- data.tar.gz: c6dd8437c2bf96afe0b2b156aabe5cdcb375d49dabc361020beeeab648d49d9c9879faaea41215850114bf83bdf33d762acfea0ffa25b37145c3643f626eaf6d
6
+ metadata.gz: 2b5311afe955280a07f3fd824f2c44dc7a09e15c5d37b46ad8f226d7ed17270dfbdc7f9a1ca28b96dd0125d76b07254a960972cd4b2a8f5724349a731d0cabb0
7
+ data.tar.gz: df2850b3161bfceff172093019167b33473ebe6963a8df814c50b0de432c00e03e5951fb40b1b87fb62894917065a1a69bece8a9bffbdfdf99974c1ee0f4aa49
@@ -13,10 +13,11 @@ module Kayessess
13
13
  end
14
14
 
15
15
  def example
16
+ @example = true
16
17
  render layout: 'kayessess/example'
17
18
  end
18
19
 
19
- private
20
+ private
20
21
 
21
22
  def find_node
22
23
  @node = @styleguide.section(params[:id])
@@ -1,17 +1,15 @@
1
- <div class="kayessess__examples">
2
- <div class="kayessess__examples__example <%= section_example.extra_classes %>">
3
- <%= section_example.html %>
4
- </div>
5
-
6
- <% section_example.modifiers.each do |modifier| %>
7
- <div class="kayessess__examples__example is-modifier">
8
- <code class="kayessess__code"><%= modifier.name %></code>
9
- <%= section_example.html_for_modifier(modifier) %>
10
- </div>
11
- <% end %>
1
+ <div class="kayessess__examples__example <%= section_example.extra_classes %>">
2
+ <%= section_example.html %>
12
3
  </div>
13
4
 
5
+ <% section_example.modifiers.each do |modifier| %>
6
+ <div class="kayessess__examples__example is-modifier">
7
+ <code class="kayessess__code"><%= modifier.name %></code>
8
+ <%= section_example.html_for_modifier(modifier) %>
9
+ </div>
10
+ <% end %>
11
+
14
12
  <div class="kayessess__example__code">
15
13
  <h6 class="kayessess__example__code__heading">Code Example</h6>
16
- <%= section_example.html_unescaped %>
14
+ <%#= section_example.html_unescaped %>
17
15
  </div>
@@ -1 +1,3 @@
1
- <%= render :partial => @node.example_partial_path, locals: {section: @node} %>
1
+ <div class="kayessess__examples">
2
+ <%= render :partial => @node.example_partial_path, locals: {section: @node} %>
3
+ </div>
@@ -8,7 +8,7 @@
8
8
  <%= stylesheet_link_tag "application", media: "all" %>
9
9
  <%= stylesheet_link_tag "kayessess/kayessess.css", media: "all" %>
10
10
  </head>
11
- <body>
11
+ <body class="kayessess__body">
12
12
  <%= yield %>
13
13
  <%= javascript_include_tag "application" %>
14
14
  <%= javascript_include_tag "kayessess/kayessess" %>
@@ -1,7 +1,6 @@
1
1
  module Kayessess
2
2
  class Engine < ::Rails::Engine
3
3
 
4
- config.autoload_paths << File.expand_path("../lib", __FILE__)
5
4
  isolate_namespace Kayessess
6
5
  engine_name "kayessess"
7
6
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module Kayessess
2
3
 
3
4
  # SectionExample is a untility class for helping to render Section Examples.
@@ -1,4 +1,4 @@
1
1
  module Kayessess
2
2
  PACKAGE = 'kayessess'
3
- VERSION = '0.2.11'
3
+ VERSION = '0.3.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kayessess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Morris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2014-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bourbon
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '>='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.5.2
75
+ version: 0.5.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '>='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.5.2
82
+ version: 0.5.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: to_slug
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -255,6 +255,7 @@ executables: []
255
255
  extensions: []
256
256
  extra_rdoc_files: []
257
257
  files:
258
+ - README.md
258
259
  - app/assets/javascripts/kayessess/kayessess.js.coffee
259
260
  - app/assets/javascripts/kayessess/kss.coffee
260
261
  - app/assets/stylesheets/kayessess/_constants.scss
@@ -287,6 +288,7 @@ files:
287
288
  - app/views/layouts/kayessess/application.html.erb
288
289
  - app/views/layouts/kayessess/example.html.erb
289
290
  - config/routes.rb
291
+ - lib/kayessess.rb
290
292
  - lib/kayessess/engine.rb
291
293
  - lib/kayessess/node.rb
292
294
  - lib/kayessess/section.rb
@@ -294,8 +296,6 @@ files:
294
296
  - lib/kayessess/styleguide.rb
295
297
  - lib/kayessess/tree.rb
296
298
  - lib/kayessess/version.rb
297
- - lib/kayessess.rb
298
- - README.md
299
299
  - spec/internal/app/assets/stylesheets/_buttons.scss
300
300
  - spec/internal/app/assets/stylesheets/_media.scss
301
301
  - spec/internal/app/assets/stylesheets/application.css.scss
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
500
500
  version: '0'
501
501
  requirements: []
502
502
  rubyforge_project:
503
- rubygems_version: 2.1.11
503
+ rubygems_version: 2.2.2
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: A Rails gem for simplifying using KSS.