king_views 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/Gemfile +19 -0
- data/Rakefile +5 -28
- data/king_form/lib/king_form/builder/base.rb +23 -9
- data/king_form/lib/king_form/builder/definition_list.rb +8 -4
- data/king_form/lib/king_form/builder/form_fields.rb +3 -2
- data/king_form/lib/king_form/builder/form_fields_overrides.rb +5 -5
- data/king_form/lib/king_form/builder/labeled.rb +3 -3
- data/king_form/lib/king_form/helper.rb +21 -4
- data/king_form/lib/king_form/nested_form_helper.rb +9 -9
- data/king_form/lib/king_form/overrides.rb +13 -13
- data/king_format/lib/helpers/formatting_helper.rb +21 -16
- data/king_format/lib/helpers/money_helper.rb +6 -6
- data/king_format/lib/king_format.rb +2 -0
- data/king_format/lib/model_mixins/has_date_fields.rb +6 -2
- data/king_format/lib/model_mixins/has_money_fields.rb +6 -2
- data/king_format/lib/model_mixins/has_percent_fields.rb +5 -1
- data/king_list/Rakefile +2 -13
- data/king_list/lib/king_list/builder/show.rb +9 -6
- data/king_list/lib/king_list/builder/table.rb +29 -72
- data/king_list/lib/king_list/list_helper.rb +60 -63
- data/king_views.gemspec +24 -71
- data/spec/king_list_spec.rb +19 -0
- data/spec/rails_app/Rakefile +7 -0
- data/spec/rails_app/app/controllers/application_controller.rb +4 -0
- data/spec/rails_app/app/controllers/posts_controller.rb +6 -0
- data/spec/rails_app/app/helpers/application_helper.rb +2 -0
- data/spec/rails_app/app/models/comment.rb +3 -0
- data/spec/rails_app/app/models/person.rb +3 -0
- data/spec/rails_app/app/models/post.rb +4 -0
- data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
- data/spec/rails_app/app/views/posts/index.haml +23 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/config/application.rb +44 -0
- data/spec/rails_app/config/boot.rb +10 -0
- data/spec/rails_app/config/database.yml +22 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/development.rb +26 -0
- data/spec/rails_app/config/environments/production.rb +49 -0
- data/spec/rails_app/config/environments/test.rb +35 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/inflections.rb +10 -0
- data/spec/rails_app/config/initializers/mime_types.rb +5 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/initializers/session_store.rb +8 -0
- data/spec/rails_app/config/locales/en.yml +5 -0
- data/spec/rails_app/config/routes.rb +60 -0
- data/spec/rails_app/db/migrate/20110306212208_create_posts.rb +14 -0
- data/spec/rails_app/db/migrate/20110306212250_create_comments.rb +15 -0
- data/spec/rails_app/db/migrate/20110420222224_create_people.rb +15 -0
- data/spec/rails_app/db/schema.rb +30 -0
- data/spec/rails_app/public/404.html +26 -0
- data/spec/rails_app/public/422.html +26 -0
- data/spec/rails_app/public/500.html +26 -0
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/spec_helper.rb +65 -0
- metadata +238 -47
- data/king_list/test/king_list_test.rb +0 -9
- data/king_list/test/test_helper.rb +0 -3
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
|
3
|
+
resources :posts
|
4
|
+
# The priority is based upon order of creation:
|
5
|
+
# first created -> highest priority.
|
6
|
+
|
7
|
+
# Sample of regular route:
|
8
|
+
# match 'products/:id' => 'catalog#view'
|
9
|
+
# Keep in mind you can assign values other than :controller and :action
|
10
|
+
|
11
|
+
# Sample of named route:
|
12
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
13
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
14
|
+
|
15
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
16
|
+
# resources :products
|
17
|
+
|
18
|
+
# Sample resource route with options:
|
19
|
+
# resources :products do
|
20
|
+
# member do
|
21
|
+
# get 'short'
|
22
|
+
# post 'toggle'
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# collection do
|
26
|
+
# get 'sold'
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Sample resource route with sub-resources:
|
31
|
+
# resources :products do
|
32
|
+
# resources :comments, :sales
|
33
|
+
# resource :seller
|
34
|
+
# end
|
35
|
+
|
36
|
+
# Sample resource route with more complex sub-resources
|
37
|
+
# resources :products do
|
38
|
+
# resources :comments
|
39
|
+
# resources :sales do
|
40
|
+
# get 'recent', :on => :collection
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Sample resource route within a namespace:
|
45
|
+
# namespace :admin do
|
46
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
47
|
+
# # (app/controllers/admin/products_controller.rb)
|
48
|
+
# resources :products
|
49
|
+
# end
|
50
|
+
|
51
|
+
# You can have the root of your site routed with "root"
|
52
|
+
# just remember to delete public/index.html.
|
53
|
+
# root :to => "welcome#index"
|
54
|
+
|
55
|
+
# See how all your routes lay out with "rake routes"
|
56
|
+
|
57
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
58
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
59
|
+
# match ':controller(/:action(/:id(.:format)))'
|
60
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended to check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(:version => 20110306212250) do
|
14
|
+
|
15
|
+
create_table "comments", :force => true do |t|
|
16
|
+
t.text "body"
|
17
|
+
t.string "author"
|
18
|
+
t.integer "post_id"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "posts", :force => true do |t|
|
24
|
+
t.string "title"
|
25
|
+
t.text "body"
|
26
|
+
t.datetime "created_at"
|
27
|
+
t.datetime "updated_at"
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
#$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
#$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
|
4
|
+
# Configure Rails Envinronment
|
5
|
+
ENV["RAILS_ENV"] = "test"
|
6
|
+
|
7
|
+
# only start SimpleCov on ruby 1.9.x
|
8
|
+
# if RUBY_VERSION[0..2].to_f >= 1.9
|
9
|
+
# require 'simplecov'
|
10
|
+
# SimpleCov.start
|
11
|
+
# end
|
12
|
+
|
13
|
+
|
14
|
+
require File.expand_path("../rails_app/config/environment.rb", __FILE__)
|
15
|
+
require "rspec/rails"
|
16
|
+
|
17
|
+
|
18
|
+
ActionMailer::Base.delivery_method = :test
|
19
|
+
ActionMailer::Base.perform_deliveries = true
|
20
|
+
ActionMailer::Base.default_url_options[:host] = "test.com"
|
21
|
+
|
22
|
+
Rails.backtrace_cleaner.remove_silencers!
|
23
|
+
|
24
|
+
# Run any available migration
|
25
|
+
ActiveRecord::Migrator.migrate File.expand_path("../rails_app/db/migrate/", __FILE__)
|
26
|
+
|
27
|
+
require File.expand_path("../../lib/king_views.rb", __FILE__)
|
28
|
+
# Load support files
|
29
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
30
|
+
|
31
|
+
RSpec.configure do |config|
|
32
|
+
# Remove this line if you don't want RSpec's should and should_not
|
33
|
+
# methods or matchers
|
34
|
+
require 'rspec/expectations'
|
35
|
+
config.include RSpec::Matchers
|
36
|
+
|
37
|
+
# == Mock Framework
|
38
|
+
config.mock_with :rspec
|
39
|
+
end
|
40
|
+
|
41
|
+
# define an rspec helper for takes_less_than
|
42
|
+
require 'benchmark'
|
43
|
+
RSpec::Matchers.define :take_less_than do |n|
|
44
|
+
chain :seconds do; end
|
45
|
+
match do |block|
|
46
|
+
@elapsed = Benchmark.realtime do
|
47
|
+
block.call
|
48
|
+
end
|
49
|
+
@elapsed <= n
|
50
|
+
puts "Took #{@elapsed} seconds"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
################################################################################
|
57
|
+
# File related
|
58
|
+
################################################################################
|
59
|
+
FIXTURE_PATH = "#{File.dirname(__FILE__)}/fixtures" unless defined?(FIXTURE_PATH)
|
60
|
+
|
61
|
+
#open a file in read-mode and return the file object
|
62
|
+
def load_file(name)
|
63
|
+
file_path = File.join(FIXTURE_PATH, "#{name}")
|
64
|
+
File.new(file_path, "r")
|
65
|
+
end
|
metadata
CHANGED
@@ -1,33 +1,166 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: king_views
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 6
|
10
|
-
version: 1.1.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Georg Leciejewski
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: haml
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sqlite3
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json_schema_tools
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.6.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.6.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activemodel
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: tzinfo
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec-rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: 'Clean up your Forms using king_form for dl or labeled forms. Use king_list
|
154
|
+
for an easy markup of tables in your lists and dl-enabled listings in your detail
|
155
|
+
views. '
|
22
156
|
email: gl@salesking.eu
|
23
157
|
executables: []
|
24
|
-
|
25
158
|
extensions: []
|
26
|
-
|
27
|
-
|
28
|
-
-
|
29
|
-
files:
|
159
|
+
extra_rdoc_files: []
|
160
|
+
files:
|
161
|
+
- ".gitignore"
|
30
162
|
- CHANGELOG.rdoc
|
163
|
+
- Gemfile
|
31
164
|
- MIT-LICENSE
|
32
165
|
- README.rdoc
|
33
166
|
- Rakefile
|
@@ -67,42 +200,100 @@ files:
|
|
67
200
|
- king_list/lib/king_list/builder/table.rb
|
68
201
|
- king_list/lib/king_list/list_helper.rb
|
69
202
|
- king_list/lib/king_list/overrides.rb
|
70
|
-
- king_list/test/king_list_test.rb
|
71
|
-
- king_list/test/test_helper.rb
|
72
203
|
- king_views.gemspec
|
73
204
|
- lib/king_views.rb
|
205
|
+
- spec/king_list_spec.rb
|
206
|
+
- spec/rails_app/Rakefile
|
207
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
208
|
+
- spec/rails_app/app/controllers/posts_controller.rb
|
209
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
210
|
+
- spec/rails_app/app/models/comment.rb
|
211
|
+
- spec/rails_app/app/models/person.rb
|
212
|
+
- spec/rails_app/app/models/post.rb
|
213
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
214
|
+
- spec/rails_app/app/views/posts/index.haml
|
215
|
+
- spec/rails_app/config.ru
|
216
|
+
- spec/rails_app/config/application.rb
|
217
|
+
- spec/rails_app/config/boot.rb
|
218
|
+
- spec/rails_app/config/database.yml
|
219
|
+
- spec/rails_app/config/environment.rb
|
220
|
+
- spec/rails_app/config/environments/development.rb
|
221
|
+
- spec/rails_app/config/environments/production.rb
|
222
|
+
- spec/rails_app/config/environments/test.rb
|
223
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
224
|
+
- spec/rails_app/config/initializers/inflections.rb
|
225
|
+
- spec/rails_app/config/initializers/mime_types.rb
|
226
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
227
|
+
- spec/rails_app/config/initializers/session_store.rb
|
228
|
+
- spec/rails_app/config/locales/en.yml
|
229
|
+
- spec/rails_app/config/routes.rb
|
230
|
+
- spec/rails_app/db/migrate/20110306212208_create_posts.rb
|
231
|
+
- spec/rails_app/db/migrate/20110306212250_create_comments.rb
|
232
|
+
- spec/rails_app/db/migrate/20110420222224_create_people.rb
|
233
|
+
- spec/rails_app/db/schema.rb
|
234
|
+
- spec/rails_app/public/404.html
|
235
|
+
- spec/rails_app/public/422.html
|
236
|
+
- spec/rails_app/public/500.html
|
237
|
+
- spec/rails_app/public/favicon.ico
|
238
|
+
- spec/rails_app/script/rails
|
239
|
+
- spec/spec_helper.rb
|
74
240
|
homepage: http://github.com/salesking/king_views
|
75
|
-
licenses:
|
76
|
-
|
241
|
+
licenses:
|
242
|
+
- MIT
|
243
|
+
metadata: {}
|
77
244
|
post_install_message:
|
78
245
|
rdoc_options: []
|
79
|
-
|
80
|
-
require_paths:
|
246
|
+
require_paths:
|
81
247
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
|
84
|
-
requirements:
|
248
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
249
|
+
requirements:
|
85
250
|
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
version: "0"
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
|
-
requirements:
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '0'
|
253
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
94
255
|
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
version: "0"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
100
258
|
requirements: []
|
101
|
-
|
102
259
|
rubyforge_project:
|
103
|
-
rubygems_version:
|
260
|
+
rubygems_version: 2.2.2
|
104
261
|
signing_key:
|
105
|
-
specification_version:
|
262
|
+
specification_version: 4
|
106
263
|
summary: Ultraclean haml views with list and forms helpers for rails
|
107
|
-
test_files:
|
108
|
-
|
264
|
+
test_files:
|
265
|
+
- spec/king_list_spec.rb
|
266
|
+
- spec/rails_app/Rakefile
|
267
|
+
- spec/rails_app/app/controllers/application_controller.rb
|
268
|
+
- spec/rails_app/app/controllers/posts_controller.rb
|
269
|
+
- spec/rails_app/app/helpers/application_helper.rb
|
270
|
+
- spec/rails_app/app/models/comment.rb
|
271
|
+
- spec/rails_app/app/models/person.rb
|
272
|
+
- spec/rails_app/app/models/post.rb
|
273
|
+
- spec/rails_app/app/views/layouts/application.html.erb
|
274
|
+
- spec/rails_app/app/views/posts/index.haml
|
275
|
+
- spec/rails_app/config.ru
|
276
|
+
- spec/rails_app/config/application.rb
|
277
|
+
- spec/rails_app/config/boot.rb
|
278
|
+
- spec/rails_app/config/database.yml
|
279
|
+
- spec/rails_app/config/environment.rb
|
280
|
+
- spec/rails_app/config/environments/development.rb
|
281
|
+
- spec/rails_app/config/environments/production.rb
|
282
|
+
- spec/rails_app/config/environments/test.rb
|
283
|
+
- spec/rails_app/config/initializers/backtrace_silencers.rb
|
284
|
+
- spec/rails_app/config/initializers/inflections.rb
|
285
|
+
- spec/rails_app/config/initializers/mime_types.rb
|
286
|
+
- spec/rails_app/config/initializers/secret_token.rb
|
287
|
+
- spec/rails_app/config/initializers/session_store.rb
|
288
|
+
- spec/rails_app/config/locales/en.yml
|
289
|
+
- spec/rails_app/config/routes.rb
|
290
|
+
- spec/rails_app/db/migrate/20110306212208_create_posts.rb
|
291
|
+
- spec/rails_app/db/migrate/20110306212250_create_comments.rb
|
292
|
+
- spec/rails_app/db/migrate/20110420222224_create_people.rb
|
293
|
+
- spec/rails_app/db/schema.rb
|
294
|
+
- spec/rails_app/public/404.html
|
295
|
+
- spec/rails_app/public/422.html
|
296
|
+
- spec/rails_app/public/500.html
|
297
|
+
- spec/rails_app/public/favicon.ico
|
298
|
+
- spec/rails_app/script/rails
|
299
|
+
- spec/spec_helper.rb
|