kss-rails 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ # 1.0
2
+
3
+ * Initial release
4
+
5
+ # 1.0.1
6
+
7
+ * Added kss/application layout to the KSS::ApplicationController
data/README.md CHANGED
@@ -17,7 +17,7 @@ group :development do
17
17
  end
18
18
  ```
19
19
 
20
- Run the install generator:
20
+ Run the install generator which will copy over some initial templates for you to base your styleguide definitions off of. There may be some extra changes to the layouts that you need to do, but that is dependent on how crazy your application is.
21
21
 
22
22
  ```
23
23
  rails generate kss:install
@@ -45,13 +45,12 @@ But if you're looking to add more layout styles or updating the templates, you c
45
45
 
46
46
  ## Credits
47
47
 
48
- All credit goes to Kyle Neath for creating the KSS gem and hopefully this allow people to create styleguides for every site they work on without much effort.
48
+ All credit goes to Kyle Neath for creating the KSS gem and hopefully this will allow people to create styleguides for every site they work on with little to no additional effort.
49
49
 
50
50
  ## Note on Patches/Pull Requests
51
51
 
52
52
  - Fork the project.
53
53
  - Make your feature addition or bug fix.
54
- - Add tests for it. This is important so I don't break it in a future version unintentionally.
55
54
  - Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
56
55
  - Send me a pull request. Bonus points for topic branches.
57
56
 
@@ -1,5 +1,7 @@
1
1
  module Kss
2
2
  class ApplicationController < ::ApplicationController
3
+ layout 'kss/application'
4
+
3
5
  private
4
6
 
5
7
  def styleguide
@@ -16,7 +16,7 @@
16
16
  <% section.modifiers.each do |modifier| %>
17
17
  <div class="styleguide-element styleguide-modifier">
18
18
  <span class="styleguide-modifier-name"><%= modifier.name %></span>
19
- <%= example_html.sub('$modifier_class', " #{modifier.class_name}").html_safe %>
19
+ <%= example_html.gsub('$modifier_class', modifier.class_name).html_safe %>
20
20
  </div>
21
21
  <% end %>
22
22
  </div>
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
12
12
  gem.name = "kss-rails"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '1.0'
14
+ gem.version = '1.0.1'
15
15
 
16
16
  gem.add_dependency 'kss'
17
17
  gem.add_dependency 'rails', '>= 3.0.0'
@@ -3,7 +3,7 @@ require 'rails/generators/base'
3
3
  module Kss
4
4
  class InstallGenerator < Rails::Generators::Base
5
5
  source_root File.expand_path('../../templates', __FILE__)
6
- desc "KSS Rails Install"
6
+ desc 'KSS Rails Install'
7
7
 
8
8
  def install_steps
9
9
  copy_file 'index.html.erb', 'app/views/kss/home/index.html.erb'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-07 00:00:00.000000000Z
12
+ date: 2012-01-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kss
16
- requirement: &70218052170120 !ruby/object:Gem::Requirement
16
+ requirement: &70160073644480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70218052170120
24
+ version_requirements: *70160073644480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70218052169000 !ruby/object:Gem::Requirement
27
+ requirement: &70160073643780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70218052169000
35
+ version_requirements: *70160073643780
36
36
  description: Rails 3 engine to provide a living styleguide from Kyle Neath's KSS.
37
37
  email:
38
38
  - me@garrettbjerkhoel.com
@@ -41,6 +41,7 @@ extensions: []
41
41
  extra_rdoc_files: []
42
42
  files:
43
43
  - .gitignore
44
+ - CHANGELOG.md
44
45
  - Gemfile
45
46
  - MIT-LICENSE
46
47
  - README.md