bkss-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +167 -0
- data/Rakefile +21 -0
- data/app/assets/javascripts/modernizr.js +4 -0
- data/app/assets/stylesheets/styleguide.sass +599 -0
- data/app/controllers/styleguides_controller.rb +58 -0
- data/app/helpers/styleguide_helper.rb +147 -0
- data/app/views/layouts/styleguide.html.erb +16 -0
- data/app/views/layouts/styleguide_page.html.erb +147 -0
- data/app/views/styleguides/_block.html.erb +51 -0
- data/app/views/styleguides/_specimen.html.erb +10 -0
- data/app/views/styleguides/_swatch.html.erb +10 -0
- data/app/views/styleguides/all.html.erb +8 -0
- data/config/routes.rb +5 -0
- data/lib/generators/nkss/install_generator.rb +18 -0
- data/lib/generators/templates/1.html.erb +8 -0
- data/lib/generators/templates/example-for-styleguides.css +17 -0
- data/lib/generators/templates/styleguide-extras.css +1 -0
- data/lib/generators/templates/styleguide-extras.scss +1 -0
- data/lib/generators/templates/styleguide.html.erb +19 -0
- data/lib/generators/templates/styleguides.yml +4 -0
- data/lib/nkss.rb +5 -0
- data/lib/nkss/engine.rb +6 -0
- data/lib/nkss/rails.rb +1 -0
- data/lib/nkss/version.rb +3 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +22 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/helpers/styleguide_helper_spec.rb +99 -0
- data/spec/spec_helper.rb +17 -0
- metadata +222 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = '2247cbbf82013bb71cd7ef9c9ea3ced2bff6377c70e46fd6a1a12961ddb22fe70cf87aafbab03a8c5ecd20ceb164e8f5413c5958bd977bef6fa5144325e47603'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,56 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
|
+
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
10
|
+
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
+
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
+
# resources :products
|
16
|
+
|
17
|
+
# Example resource route with options:
|
18
|
+
# resources :products do
|
19
|
+
# member do
|
20
|
+
# get 'short'
|
21
|
+
# post 'toggle'
|
22
|
+
# end
|
23
|
+
#
|
24
|
+
# collection do
|
25
|
+
# get 'sold'
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
29
|
+
# Example resource route with sub-resources:
|
30
|
+
# resources :products do
|
31
|
+
# resources :comments, :sales
|
32
|
+
# resource :seller
|
33
|
+
# end
|
34
|
+
|
35
|
+
# Example resource route with more complex sub-resources:
|
36
|
+
# resources :products do
|
37
|
+
# resources :comments
|
38
|
+
# resources :sales do
|
39
|
+
# get 'recent', on: :collection
|
40
|
+
# end
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
51
|
+
# namespace :admin do
|
52
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
+
# # (app/controllers/admin/products_controller.rb)
|
54
|
+
# resources :products
|
55
|
+
# end
|
56
|
+
end
|
File without changes
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
@@ -0,0 +1,99 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe StyleguideHelper do
|
4
|
+
before(:all) do
|
5
|
+
@block = proc do
|
6
|
+
kss_block('2.1') do
|
7
|
+
# not this line
|
8
|
+
# not this one either
|
9
|
+
end
|
10
|
+
|
11
|
+
kss_block('2.2') do
|
12
|
+
# first line of the block
|
13
|
+
|
14
|
+
# empty line should be included
|
15
|
+
# last line of the block
|
16
|
+
end # kss_block end
|
17
|
+
end # proc block end
|
18
|
+
end
|
19
|
+
|
20
|
+
# NOTE tested in acceptance
|
21
|
+
# describe "#kss_block" do
|
22
|
+
# end
|
23
|
+
|
24
|
+
describe "#kss_specimen" do
|
25
|
+
subject { helper.kss_specimen }
|
26
|
+
|
27
|
+
it { should include 'class=\'sg-specimen\'' }
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "#kss_swatch" do
|
31
|
+
subject { kss_swatch('a name', 'pink', options) }
|
32
|
+
|
33
|
+
context "not specifying any options" do
|
34
|
+
subject { kss_swatch('a name', 'pink') }
|
35
|
+
|
36
|
+
it { should include 'color: pink' }
|
37
|
+
it { should include 'class=\'sg-swatch \'' }
|
38
|
+
end
|
39
|
+
|
40
|
+
context "specifying dark background" do
|
41
|
+
let(:options) { {:dark => true} }
|
42
|
+
|
43
|
+
it { should include 'class=\'sg-swatch sg-dark\'' }
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "#lorem" do
|
48
|
+
subject { helper.lorem }
|
49
|
+
|
50
|
+
it { should == Faker::Lorem }
|
51
|
+
end
|
52
|
+
|
53
|
+
describe "#markdown" do
|
54
|
+
subject { helper.markdown("**Strong** _emphases_") }
|
55
|
+
|
56
|
+
it { should == "<p><strong>Strong</strong> <em>emphases</em></p>" }
|
57
|
+
end
|
58
|
+
|
59
|
+
# protected
|
60
|
+
|
61
|
+
describe "#capture_source" do
|
62
|
+
subject { helper.capture_source(section_id, @block) }
|
63
|
+
|
64
|
+
context "when section is not found in the block" do
|
65
|
+
let(:section_id) { '1.1' }
|
66
|
+
|
67
|
+
specify { expect { subject }.to raise_error(IndexError) }
|
68
|
+
end
|
69
|
+
|
70
|
+
context "when section is found in the block" do
|
71
|
+
let(:section_id) { '2.2' }
|
72
|
+
|
73
|
+
it('matches the four lines defined at the top of this file') do
|
74
|
+
should ==
|
75
|
+
" # first line of the block\n"\
|
76
|
+
"\n"\
|
77
|
+
" # empty line should be included\n"\
|
78
|
+
" # last line of the block"
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe "#source_language" do
|
84
|
+
subject { helper.source_language(block) }
|
85
|
+
|
86
|
+
context "when block file ends with erb" do
|
87
|
+
let(:block) { double(:block, :source_location => ['a.html.erb', 1]) }
|
88
|
+
|
89
|
+
it { should == 'erb' }
|
90
|
+
end
|
91
|
+
|
92
|
+
context "when block file ends with haml" do
|
93
|
+
let(:block) { double(:block, :source_location => ['a.html.haml', 1]) }
|
94
|
+
|
95
|
+
it { should == 'haml' }
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.mock_with :rspec
|
14
|
+
config.use_transactional_fixtures = true
|
15
|
+
config.infer_base_class_for_anonymous_controllers = false
|
16
|
+
config.order = 'random'
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,222 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bkss-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rico Sta. Cruz
|
8
|
+
- Nadarei, Inc.
|
9
|
+
- Steven Weller
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ! '>='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.2.0
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: kss
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: ffaker
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: BlueCloth
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rspec-rails
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: sqlite3
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ! '>='
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
description: Nkss-rails is a drop-in, easy-to-use, gorgeous-by-default Rails plugin
|
100
|
+
you can put into your projects so you can instantly have cute docs.
|
101
|
+
email:
|
102
|
+
- thijs@80beans.com
|
103
|
+
executables: []
|
104
|
+
extensions: []
|
105
|
+
extra_rdoc_files: []
|
106
|
+
files:
|
107
|
+
- app/assets/javascripts/modernizr.js
|
108
|
+
- app/assets/stylesheets/styleguide.sass
|
109
|
+
- app/controllers/styleguides_controller.rb
|
110
|
+
- app/helpers/styleguide_helper.rb
|
111
|
+
- app/views/layouts/styleguide.html.erb
|
112
|
+
- app/views/layouts/styleguide_page.html.erb
|
113
|
+
- app/views/styleguides/_block.html.erb
|
114
|
+
- app/views/styleguides/_specimen.html.erb
|
115
|
+
- app/views/styleguides/_swatch.html.erb
|
116
|
+
- app/views/styleguides/all.html.erb
|
117
|
+
- config/routes.rb
|
118
|
+
- lib/generators/nkss/install_generator.rb
|
119
|
+
- lib/generators/templates/1.html.erb
|
120
|
+
- lib/generators/templates/example-for-styleguides.css
|
121
|
+
- lib/generators/templates/styleguide-extras.css
|
122
|
+
- lib/generators/templates/styleguide-extras.scss
|
123
|
+
- lib/generators/templates/styleguide.html.erb
|
124
|
+
- lib/generators/templates/styleguides.yml
|
125
|
+
- lib/nkss/engine.rb
|
126
|
+
- lib/nkss/rails.rb
|
127
|
+
- lib/nkss/version.rb
|
128
|
+
- lib/nkss.rb
|
129
|
+
- Rakefile
|
130
|
+
- README.md
|
131
|
+
- spec/dummy/app/assets/javascripts/application.js
|
132
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
133
|
+
- spec/dummy/app/controllers/application_controller.rb
|
134
|
+
- spec/dummy/app/helpers/application_helper.rb
|
135
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
136
|
+
- spec/dummy/bin/bundle
|
137
|
+
- spec/dummy/bin/rails
|
138
|
+
- spec/dummy/bin/rake
|
139
|
+
- spec/dummy/config/application.rb
|
140
|
+
- spec/dummy/config/boot.rb
|
141
|
+
- spec/dummy/config/database.yml
|
142
|
+
- spec/dummy/config/environment.rb
|
143
|
+
- spec/dummy/config/environments/development.rb
|
144
|
+
- spec/dummy/config/environments/production.rb
|
145
|
+
- spec/dummy/config/environments/test.rb
|
146
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
147
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
148
|
+
- spec/dummy/config/initializers/inflections.rb
|
149
|
+
- spec/dummy/config/initializers/mime_types.rb
|
150
|
+
- spec/dummy/config/initializers/secret_token.rb
|
151
|
+
- spec/dummy/config/initializers/session_store.rb
|
152
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
153
|
+
- spec/dummy/config/locales/en.yml
|
154
|
+
- spec/dummy/config/routes.rb
|
155
|
+
- spec/dummy/config.ru
|
156
|
+
- spec/dummy/db/test.sqlite3
|
157
|
+
- spec/dummy/public/404.html
|
158
|
+
- spec/dummy/public/422.html
|
159
|
+
- spec/dummy/public/500.html
|
160
|
+
- spec/dummy/public/favicon.ico
|
161
|
+
- spec/dummy/Rakefile
|
162
|
+
- spec/dummy/README.rdoc
|
163
|
+
- spec/helpers/styleguide_helper_spec.rb
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
homepage: https://github.com/80beans/nkss-rails
|
166
|
+
licenses: []
|
167
|
+
metadata: {}
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
require_paths:
|
171
|
+
- lib
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ! '>='
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 2.0.3
|
185
|
+
signing_key:
|
186
|
+
specification_version: 4
|
187
|
+
summary: Create pretty styleguides for your Rails 3.2 projects.
|
188
|
+
test_files:
|
189
|
+
- spec/dummy/app/assets/javascripts/application.js
|
190
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
191
|
+
- spec/dummy/app/controllers/application_controller.rb
|
192
|
+
- spec/dummy/app/helpers/application_helper.rb
|
193
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
194
|
+
- spec/dummy/bin/bundle
|
195
|
+
- spec/dummy/bin/rails
|
196
|
+
- spec/dummy/bin/rake
|
197
|
+
- spec/dummy/config/application.rb
|
198
|
+
- spec/dummy/config/boot.rb
|
199
|
+
- spec/dummy/config/database.yml
|
200
|
+
- spec/dummy/config/environment.rb
|
201
|
+
- spec/dummy/config/environments/development.rb
|
202
|
+
- spec/dummy/config/environments/production.rb
|
203
|
+
- spec/dummy/config/environments/test.rb
|
204
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
205
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
206
|
+
- spec/dummy/config/initializers/inflections.rb
|
207
|
+
- spec/dummy/config/initializers/mime_types.rb
|
208
|
+
- spec/dummy/config/initializers/secret_token.rb
|
209
|
+
- spec/dummy/config/initializers/session_store.rb
|
210
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
211
|
+
- spec/dummy/config/locales/en.yml
|
212
|
+
- spec/dummy/config/routes.rb
|
213
|
+
- spec/dummy/config.ru
|
214
|
+
- spec/dummy/db/test.sqlite3
|
215
|
+
- spec/dummy/public/404.html
|
216
|
+
- spec/dummy/public/422.html
|
217
|
+
- spec/dummy/public/500.html
|
218
|
+
- spec/dummy/public/favicon.ico
|
219
|
+
- spec/dummy/Rakefile
|
220
|
+
- spec/dummy/README.rdoc
|
221
|
+
- spec/helpers/styleguide_helper_spec.rb
|
222
|
+
- spec/spec_helper.rb
|