kilt-cms 0.9.13 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -5
  3. data/app/controllers/kilt/kilt_controller.rb +1 -1
  4. data/app/views/kilt/form/{boolean.html.erb → _boolean.html.erb} +0 -0
  5. data/app/views/kilt/form/{datetime.html.erb → _datetime.html.erb} +0 -0
  6. data/app/views/kilt/form/{file.html.erb → _file.html.erb} +1 -1
  7. data/app/views/kilt/form/{html.html.erb → _html.html.erb} +0 -0
  8. data/app/views/kilt/form/{image.html.erb → _image.html.erb} +1 -1
  9. data/app/views/kilt/form/{longtext.html.erb → _longtext.html.erb} +0 -0
  10. data/app/views/kilt/form/{number.html.erb → _number.html.erb} +0 -0
  11. data/app/views/kilt/form/{select_one.html.erb → _select_one.html.erb} +0 -0
  12. data/app/views/kilt/form/{text.html.erb → _text.html.erb} +0 -0
  13. data/app/views/kilt/form/{vimeo.html.erb → _vimeo.html.erb} +0 -0
  14. data/app/views/kilt/form/{youtube.html.erb → _youtube.html.erb} +0 -0
  15. data/app/views/kilt/kilt/_form.html.erb +12 -10
  16. data/app/views/kilt/kilt/edit.html.erb +1 -1
  17. data/app/views/kilt/kilt/index.html.erb +3 -2
  18. data/app/views/kilt/kilt/list.html.erb +6 -9
  19. data/app/views/kilt/kilt/new.html.erb +1 -1
  20. data/app/views/layouts/kilt/cms/_menu.html.erb +2 -6
  21. data/lib/generators/kilt/backend_generator.rb +28 -6
  22. data/lib/generators/kilt/templates/backend/create_kilt_objects.rb +13 -0
  23. data/lib/generators/kilt/templates/backend/creds.yml.example +10 -5
  24. data/lib/generators/kilt/templates/backend/creds.yml.rethinkdb.example +22 -0
  25. data/lib/kilt.rb +34 -54
  26. data/lib/kilt/base.rb +3 -2
  27. data/lib/kilt/db/active_record.rb +50 -0
  28. data/lib/kilt/db/rethink_db.rb +108 -0
  29. data/lib/kilt/form.rb +7 -5
  30. data/lib/kilt/formatting.rb +39 -0
  31. data/lib/kilt/object.rb +32 -31
  32. data/lib/kilt/utils.rb +32 -39
  33. data/lib/kilt_object.rb +3 -0
  34. data/test/dummy/config/application.rb +1 -1
  35. data/test/dummy/config/database.yml +5 -0
  36. data/test/dummy/config/initializers/kilt.rb +1 -1
  37. data/test/dummy/config/kilt/config.yml +4 -13
  38. data/test/dummy/config/kilt/creds.yml +16 -11
  39. data/test/dummy/config/kilt/creds.yml.rethinkdb.example +22 -0
  40. data/test/dummy/config/routes.rb +1 -1
  41. data/test/dummy/db/migrate/20140519110428_create_kilt_objects.rb +13 -0
  42. data/test/dummy/db/schema.rb +29 -0
  43. data/test/dummy/log/development.log +551 -0
  44. data/test/dummy/public/uploads/image/timbo.jpg +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/18837248cb3274df9b7c6b0a5dcd56a5 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/20dffc9385ea740ceca470ee4e4b2197 +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/23733156ea27da67211ba7ff763d76f0 +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/3148655edeef1c319d57d0f9570acfd5 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/32ab48c63ad3bb6ddc1f419e51adb5db +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/36715e644093cfcb33ac795f3c9d66fe +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/36f9a7f6f43adb582ac6eec43b58eb30 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/3d8ca1585ee95c5efb388645d66cf377 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/413be9c73d25c7febe933f4619da7cf8 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/4a935342c0113b534ad7622234965544 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/4b5c4a1edd3823a6a6c39e06b6eb230a +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/4c5736bf0bd429296d1a32930364897e +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/4f26158b7a804a3e3c47ce0ceff2798c +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/542fc810f9cd36e7bed9a3e5e9670995 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/56f1e7d57d31bf3315e1e33732d57faa +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/5bea4c2d87ec725262213ed51575b485 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/6b6e86e81f5e8f80bb2b3d1e8f7ed7f3 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/6c2ddc22c04321c269de383e37cb519b +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/7035e5c60f5da3b7fc12c472677483d0 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/704c682957c2beb38a1927ddb66cc557 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/74b6c3e00222b8bf31b0ecf50fcb0d38 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/91021bdb7ebb3d4f6fdf4e49909d4c07 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/914095efd3b33401a7f29f9fb05d72d6 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/9dd98bca318fb820a8451cafce020588 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/9f2c00a36b5b8c713a797b508c778a65 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/a88ab4e49bb7203b8e0586c38efdd2b0 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/acfc15d25fde8b933b06c91324755751 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/c0671678b70011547b80da0669d031cc +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/d6973c1d43f8ca41b98a6b640fda2616 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/dc676330961fd22be77c48cb77ec065f +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/ddc29f2c13cd99d017fd526b61dcb951 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/de45247cb814cafe20e9e46c79e470fe +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/df0b7c3ac590a286561806e813c2974f +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/dfa8b85e3c1273b7e69839e4e607c3e1 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/e22d705d0c889ec4837f183a9beec0f3 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/e3a4ad3549e1e57d03698a36daeff406 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/ef7c8ce46dfc9e9087ce84dbdfdd0011 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/f4b5dd06a6113950c0f481cbc5a31a66 +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  89. data/test/dummy/tmp/data/meta_request/1c3d4a4b-d7e1-4126-8bfc-572acbc2f675.json +1 -0
  90. data/test/dummy/tmp/data/meta_request/449ff78e-30d2-4cc5-bbb7-3397d04a4c46.json +1 -0
  91. data/test/dummy/tmp/data/meta_request/5974cfb9-99bd-4d5c-a4e1-6e352ecd2dd8.json +1 -0
  92. data/test/dummy/tmp/data/meta_request/960de12b-b1c5-4d44-937b-e3d8c00d682c.json +1 -0
  93. data/test/dummy/tmp/data/meta_request/9df9ad77-1b70-4fb7-ad18-f31f28c60c6c.json +1 -0
  94. data/test/dummy/tmp/data/meta_request/a5374758-4e16-487a-ab11-9a69a1abed2e.json +1 -0
  95. data/test/dummy/tmp/data/meta_request/a65d97b2-df1f-445e-99d5-615c4db5c4e1.json +1 -0
  96. data/test/dummy/tmp/data/meta_request/b3693c6f-23cd-4afe-ae82-38078eaa643a.json +1 -0
  97. data/test/dummy/tmp/data/meta_request/daa1c80a-bad3-4bc1-8f67-d586979cbedc.json +1 -0
  98. data/test/dummy/tmp/data/meta_request/e2e7621f-08e5-46dd-83c2-b87eb6d5fd45.json +1 -0
  99. data/test/empty.sqlite3 +0 -0
  100. data/test/generators/kilt/backend_generator_spec.rb +70 -0
  101. data/test/kilt/form_spec.rb +40 -51
  102. data/test/kilt/formatting_spec.rb +66 -0
  103. data/test/kilt/object_spec.rb +204 -0
  104. data/test/kilt/utils_spec.rb +147 -0
  105. data/test/kilt_object_spec.rb +12 -0
  106. data/test/kilt_spec.rb +422 -0
  107. data/test/minitest_helper.rb +58 -0
  108. metadata +164 -66
  109. data/test/dummy/tmp/data/meta_request/191f094a-5e87-4654-bc80-5acb51d3f903.json +0 -1
  110. data/test/dummy/tmp/data/meta_request/1eb9499d-2e84-47df-ac0a-da308031aa3a.json +0 -1
  111. data/test/dummy/tmp/data/meta_request/300cabd2-6e51-4b1b-ab55-a072049c2a0f.json +0 -1
  112. data/test/dummy/tmp/data/meta_request/3ec7ea74-e7a7-4f4d-9434-e08edfc12b8a.json +0 -1
  113. data/test/dummy/tmp/data/meta_request/5bb81411-321e-4cba-9ffa-87fcd8105ef4.json +0 -1
  114. data/test/dummy/tmp/data/meta_request/9d6e10c1-5b14-4199-852e-9f1e97132b8f.json +0 -1
  115. data/test/dummy/tmp/data/meta_request/a6403ed9-21f1-4a00-9725-4a1c544214f6.json +0 -1
  116. data/test/dummy/tmp/data/meta_request/b4487e0b-0a08-40a3-a364-e715e6765631.json +0 -1
  117. data/test/dummy/tmp/data/meta_request/d399f913-d3a5-4de3-b012-848377a702fc.json +0 -1
  118. data/test/dummy/tmp/data/meta_request/dcf95267-1855-4062-85c8-e880f8d62443.json +0 -1
@@ -1,9 +1,67 @@
1
+ ENV['RAILS_ENV'] = 'test'
2
+ require 'fileutils'
1
3
  require 'rails'
2
4
  require 'action_pack'
3
5
  require 'action_view'
4
6
  require 'active_support'
7
+ require 'active_record'
5
8
  require File.expand_path(File.dirname(__FILE__) + '/../lib/kilt')
6
9
  require 'minitest/autorun'
7
10
  require 'minitest/spec'
8
11
  require 'minitest/pride'
12
+ require 'hashie'
13
+ require 'timecop'
9
14
  require 'mocha/setup'
15
+
16
+ def default_test_config
17
+ config = Hashie::Mash.new
18
+
19
+ config.test = Hashie::Mash.new
20
+ config.test.db = Hashie::Mash.new(db: 'kilt_test', host: '127.0.0.1', port: '28015')
21
+
22
+ config.name = 'Test App'
23
+ config.objects = Hashie::Mash.new(cat: Hashie::Mash.new(fields: { name: 'text', size: 'text', headshot: 'image', resume: 'file' } ),
24
+ dog: Hashie::Mash.new(fields: { name: 'text', size: 'text', headshot: 'image', resume: 'file' } ),
25
+ no_namey: Hashie::Mash.new(fields: { } ),
26
+ horse: Hashie::Mash.new(fields: { name: 'text' } ),
27
+ big_green_alligator: Hashie::Mash.new(fields: { name: 'text' } ),
28
+ apple: Hashie::Mash.new(name: 'Orange', fields: { name: 'text' } ))
29
+ config
30
+ end
31
+
32
+ def setup_the_database
33
+ setup_the_database_with default_test_config
34
+ end
35
+
36
+ def setup_the_database_with config
37
+ Kilt.config = config
38
+ Kilt::Utils.use_db(:active_record) if ENV['TRAVIS']
39
+ Kilt::Utils.setup_db
40
+ end
41
+
42
+ def clear_out_the_database
43
+ clear_out_active_record
44
+ clear_out_rethinkdb
45
+ end
46
+
47
+ def clear_out_active_record
48
+
49
+ empty_file = File.expand_path(File.dirname(__FILE__) + '/empty.sqlite3')
50
+ test_file = File.expand_path(File.dirname(__FILE__) + '/test.sqlite3')
51
+
52
+ File.delete(test_file) if File.exists? test_file
53
+ FileUtils.cp empty_file, test_file
54
+
55
+ options = {
56
+ adapter: 'sqlite3',
57
+ database: File.expand_path(File.dirname(__FILE__) + '/test.sqlite3')
58
+ }
59
+ ActiveRecord::Base.establish_connection options
60
+ end
61
+
62
+ def clear_out_rethinkdb
63
+ Kilt::Utils.database.delete_all
64
+ rescue
65
+ end
66
+
67
+ setup_the_database
metadata CHANGED
@@ -1,183 +1,239 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kilt-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.13
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashe Avenue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rethinkdb
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rails_config
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jquery-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jquery-ui-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
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
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: uglifier
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: aws-sdk
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
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
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: better_errors
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - '>='
129
+ - - ">="
116
130
  - !ruby/object:Gem::Version
117
131
  version: '0'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - '>='
136
+ - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: binding_of_caller
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - '>='
143
+ - - ">="
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - '>='
150
+ - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: meta_request
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - '>='
157
+ - - ">="
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - '>='
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: rspec-rails
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - '>='
171
+ - - ">="
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - '>='
178
+ - - ">="
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: mocha
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
- - - '>='
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: hashie
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: timecop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
172
214
  - !ruby/object:Gem::Version
173
215
  version: '0'
174
216
  type: :development
175
217
  prerelease: false
176
218
  version_requirements: !ruby/object:Gem::Requirement
177
219
  requirements:
178
- - - '>='
220
+ - - ">="
179
221
  - !ruby/object:Gem::Version
180
222
  version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: minitest
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '='
228
+ - !ruby/object:Gem::Version
229
+ version: 4.7.5
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '='
235
+ - !ruby/object:Gem::Version
236
+ version: 4.7.5
181
237
  description: Microsite Platform for Rails 4 built with RethinkDB
182
238
  email:
183
239
  - community@asheavenue.com
@@ -185,6 +241,8 @@ executables: []
185
241
  extensions: []
186
242
  extra_rdoc_files: []
187
243
  files:
244
+ - README.rdoc
245
+ - Rakefile
188
246
  - app/assets/images/kilt/animated-overlay.gif
189
247
  - app/assets/images/kilt/ui-bg_flat_0_000_40x100.png
190
248
  - app/assets/images/kilt/ui-bg_flat_0_fff_40x100.png
@@ -200,32 +258,34 @@ files:
200
258
  - app/assets/stylesheets/kilt/application.css
201
259
  - app/assets/stylesheets/kilt/screen.css
202
260
  - app/controllers/kilt/kilt_controller.rb
261
+ - app/views/kilt/form/_boolean.html.erb
262
+ - app/views/kilt/form/_datetime.html.erb
203
263
  - app/views/kilt/form/_default.html.erb
204
- - app/views/kilt/form/boolean.html.erb
205
- - app/views/kilt/form/datetime.html.erb
206
- - app/views/kilt/form/file.html.erb
207
- - app/views/kilt/form/html.html.erb
208
- - app/views/kilt/form/image.html.erb
209
- - app/views/kilt/form/longtext.html.erb
210
- - app/views/kilt/form/number.html.erb
211
- - app/views/kilt/form/select_one.html.erb
212
- - app/views/kilt/form/text.html.erb
213
- - app/views/kilt/form/vimeo.html.erb
214
- - app/views/kilt/form/youtube.html.erb
264
+ - app/views/kilt/form/_file.html.erb
265
+ - app/views/kilt/form/_html.html.erb
266
+ - app/views/kilt/form/_image.html.erb
267
+ - app/views/kilt/form/_longtext.html.erb
268
+ - app/views/kilt/form/_number.html.erb
269
+ - app/views/kilt/form/_select_one.html.erb
270
+ - app/views/kilt/form/_text.html.erb
271
+ - app/views/kilt/form/_vimeo.html.erb
272
+ - app/views/kilt/form/_youtube.html.erb
215
273
  - app/views/kilt/kilt/_form.html.erb
216
274
  - app/views/kilt/kilt/edit.html.erb
217
275
  - app/views/kilt/kilt/index.html.erb
218
276
  - app/views/kilt/kilt/list.html.erb
219
277
  - app/views/kilt/kilt/new.html.erb
220
- - app/views/layouts/kilt/cms/_menu.html.erb
221
278
  - app/views/layouts/kilt/cms.html.erb
279
+ - app/views/layouts/kilt/cms/_menu.html.erb
222
280
  - config/routes.rb
223
281
  - lib/generators/kilt/backend_generator.rb
224
282
  - lib/generators/kilt/frontend_generator.rb
225
283
  - lib/generators/kilt/install_generator.rb
226
284
  - lib/generators/kilt/object_generator.rb
227
285
  - lib/generators/kilt/templates/backend/config.yml.erb
286
+ - lib/generators/kilt/templates/backend/create_kilt_objects.rb
228
287
  - lib/generators/kilt/templates/backend/creds.yml.example
288
+ - lib/generators/kilt/templates/backend/creds.yml.rethinkdb.example
229
289
  - lib/generators/kilt/templates/backend/kilt.rb
230
290
  - lib/generators/kilt/templates/frontend/application.html.erb
231
291
  - lib/generators/kilt/templates/frontend/assets/javascripts/application.js
@@ -236,18 +296,21 @@ files:
236
296
  - lib/generators/kilt/templates/frontend/dummy.js.erb
237
297
  - lib/generators/kilt/templates/frontend/home_controller.rb.erb
238
298
  - lib/generators/kilt/templates/frontend/index.html.erb
299
+ - lib/kilt.rb
239
300
  - lib/kilt/base.rb
301
+ - lib/kilt/db/active_record.rb
302
+ - lib/kilt/db/rethink_db.rb
240
303
  - lib/kilt/engine.rb
241
304
  - lib/kilt/exceptions.rb
242
305
  - lib/kilt/form.rb
306
+ - lib/kilt/formatting.rb
243
307
  - lib/kilt/object.rb
244
308
  - lib/kilt/object_collection.rb
245
309
  - lib/kilt/upload.rb
246
310
  - lib/kilt/utils.rb
247
- - lib/kilt.rb
311
+ - lib/kilt_object.rb
248
312
  - lib/tasks/kilt_tasks.rake
249
- - Rakefile
250
- - README.rdoc
313
+ - test/dummy/Rakefile
251
314
  - test/dummy/app/assets/javascripts/application.js
252
315
  - test/dummy/app/assets/javascripts/dummy.js
253
316
  - test/dummy/app/assets/javascripts/html5shiv.js
@@ -261,8 +324,10 @@ files:
261
324
  - test/dummy/bin/bundle
262
325
  - test/dummy/bin/rails
263
326
  - test/dummy/bin/rake
327
+ - test/dummy/config.ru
264
328
  - test/dummy/config/application.rb
265
329
  - test/dummy/config/boot.rb
330
+ - test/dummy/config/database.yml
266
331
  - test/dummy/config/environment.rb
267
332
  - test/dummy/config/environments/development.rb
268
333
  - test/dummy/config/environments/test.rb
@@ -277,23 +342,28 @@ files:
277
342
  - test/dummy/config/kilt/config.yml
278
343
  - test/dummy/config/kilt/creds.yml
279
344
  - test/dummy/config/kilt/creds.yml.example
345
+ - test/dummy/config/kilt/creds.yml.rethinkdb.example
280
346
  - test/dummy/config/routes.rb
281
- - test/dummy/config.ru
347
+ - test/dummy/db/migrate/20140519110428_create_kilt_objects.rb
348
+ - test/dummy/db/schema.rb
282
349
  - test/dummy/log/development.log
283
350
  - test/dummy/log/test.log
284
351
  - test/dummy/public/uploads/image/photo.JPG
285
- - test/dummy/Rakefile
352
+ - test/dummy/public/uploads/image/timbo.jpg
286
353
  - test/dummy/tmp/cache/assets/development/sprockets/03cdc43618f8bef3dfc725a1886c40ed
287
354
  - test/dummy/tmp/cache/assets/development/sprockets/0d8e5c7178ebdb79e5b9cc4ef439eae8
288
355
  - test/dummy/tmp/cache/assets/development/sprockets/13a3d23d13c1459a86283c4fe577a775
289
356
  - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
290
357
  - test/dummy/tmp/cache/assets/development/sprockets/18837248cb3274df9b7c6b0a5dcd56a5
291
358
  - test/dummy/tmp/cache/assets/development/sprockets/1c198a7e1d4ae808a6adf4c4809061eb
359
+ - test/dummy/tmp/cache/assets/development/sprockets/20dffc9385ea740ceca470ee4e4b2197
292
360
  - test/dummy/tmp/cache/assets/development/sprockets/23733156ea27da67211ba7ff763d76f0
293
361
  - test/dummy/tmp/cache/assets/development/sprockets/2e57def2c82ce30227eefea2360d5f50
294
362
  - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
363
+ - test/dummy/tmp/cache/assets/development/sprockets/3148655edeef1c319d57d0f9570acfd5
295
364
  - test/dummy/tmp/cache/assets/development/sprockets/32ab48c63ad3bb6ddc1f419e51adb5db
296
365
  - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
366
+ - test/dummy/tmp/cache/assets/development/sprockets/36715e644093cfcb33ac795f3c9d66fe
297
367
  - test/dummy/tmp/cache/assets/development/sprockets/36f9a7f6f43adb582ac6eec43b58eb30
298
368
  - test/dummy/tmp/cache/assets/development/sprockets/36fff19076c588427464432f563a8d2d
299
369
  - test/dummy/tmp/cache/assets/development/sprockets/3878e0f19bbd21176b1bcc46160a3df3
@@ -305,6 +375,7 @@ files:
305
375
  - test/dummy/tmp/cache/assets/development/sprockets/4a935342c0113b534ad7622234965544
306
376
  - test/dummy/tmp/cache/assets/development/sprockets/4b5c4a1edd3823a6a6c39e06b6eb230a
307
377
  - test/dummy/tmp/cache/assets/development/sprockets/4c5736bf0bd429296d1a32930364897e
378
+ - test/dummy/tmp/cache/assets/development/sprockets/4f26158b7a804a3e3c47ce0ceff2798c
308
379
  - test/dummy/tmp/cache/assets/development/sprockets/542fc810f9cd36e7bed9a3e5e9670995
309
380
  - test/dummy/tmp/cache/assets/development/sprockets/56f1e7d57d31bf3315e1e33732d57faa
310
381
  - test/dummy/tmp/cache/assets/development/sprockets/5bea4c2d87ec725262213ed51575b485
@@ -340,24 +411,33 @@ files:
340
411
  - test/dummy/tmp/cache/assets/development/sprockets/dc676330961fd22be77c48cb77ec065f
341
412
  - test/dummy/tmp/cache/assets/development/sprockets/ddc29f2c13cd99d017fd526b61dcb951
342
413
  - test/dummy/tmp/cache/assets/development/sprockets/de45247cb814cafe20e9e46c79e470fe
414
+ - test/dummy/tmp/cache/assets/development/sprockets/df0b7c3ac590a286561806e813c2974f
343
415
  - test/dummy/tmp/cache/assets/development/sprockets/dfa8b85e3c1273b7e69839e4e607c3e1
344
416
  - test/dummy/tmp/cache/assets/development/sprockets/e22d705d0c889ec4837f183a9beec0f3
345
417
  - test/dummy/tmp/cache/assets/development/sprockets/e3a4ad3549e1e57d03698a36daeff406
346
418
  - test/dummy/tmp/cache/assets/development/sprockets/e7ba95a61b1b9381906a88610dceb6dd
347
419
  - test/dummy/tmp/cache/assets/development/sprockets/ef7c8ce46dfc9e9087ce84dbdfdd0011
348
420
  - test/dummy/tmp/cache/assets/development/sprockets/f3e1a8ba304f70dccefd77356c900ebc
421
+ - test/dummy/tmp/cache/assets/development/sprockets/f4b5dd06a6113950c0f481cbc5a31a66
349
422
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
350
- - test/dummy/tmp/data/meta_request/191f094a-5e87-4654-bc80-5acb51d3f903.json
351
- - test/dummy/tmp/data/meta_request/1eb9499d-2e84-47df-ac0a-da308031aa3a.json
352
- - test/dummy/tmp/data/meta_request/300cabd2-6e51-4b1b-ab55-a072049c2a0f.json
353
- - test/dummy/tmp/data/meta_request/3ec7ea74-e7a7-4f4d-9434-e08edfc12b8a.json
354
- - test/dummy/tmp/data/meta_request/5bb81411-321e-4cba-9ffa-87fcd8105ef4.json
355
- - test/dummy/tmp/data/meta_request/9d6e10c1-5b14-4199-852e-9f1e97132b8f.json
356
- - test/dummy/tmp/data/meta_request/a6403ed9-21f1-4a00-9725-4a1c544214f6.json
357
- - test/dummy/tmp/data/meta_request/b4487e0b-0a08-40a3-a364-e715e6765631.json
358
- - test/dummy/tmp/data/meta_request/d399f913-d3a5-4de3-b012-848377a702fc.json
359
- - test/dummy/tmp/data/meta_request/dcf95267-1855-4062-85c8-e880f8d62443.json
423
+ - test/dummy/tmp/data/meta_request/1c3d4a4b-d7e1-4126-8bfc-572acbc2f675.json
424
+ - test/dummy/tmp/data/meta_request/449ff78e-30d2-4cc5-bbb7-3397d04a4c46.json
425
+ - test/dummy/tmp/data/meta_request/5974cfb9-99bd-4d5c-a4e1-6e352ecd2dd8.json
426
+ - test/dummy/tmp/data/meta_request/960de12b-b1c5-4d44-937b-e3d8c00d682c.json
427
+ - test/dummy/tmp/data/meta_request/9df9ad77-1b70-4fb7-ad18-f31f28c60c6c.json
428
+ - test/dummy/tmp/data/meta_request/a5374758-4e16-487a-ab11-9a69a1abed2e.json
429
+ - test/dummy/tmp/data/meta_request/a65d97b2-df1f-445e-99d5-615c4db5c4e1.json
430
+ - test/dummy/tmp/data/meta_request/b3693c6f-23cd-4afe-ae82-38078eaa643a.json
431
+ - test/dummy/tmp/data/meta_request/daa1c80a-bad3-4bc1-8f67-d586979cbedc.json
432
+ - test/dummy/tmp/data/meta_request/e2e7621f-08e5-46dd-83c2-b87eb6d5fd45.json
433
+ - test/empty.sqlite3
434
+ - test/generators/kilt/backend_generator_spec.rb
360
435
  - test/kilt/form_spec.rb
436
+ - test/kilt/formatting_spec.rb
437
+ - test/kilt/object_spec.rb
438
+ - test/kilt/utils_spec.rb
439
+ - test/kilt_object_spec.rb
440
+ - test/kilt_spec.rb
361
441
  - test/minitest_helper.rb
362
442
  homepage: http://community.asheavenue.com
363
443
  licenses:
@@ -369,17 +449,17 @@ require_paths:
369
449
  - lib
370
450
  required_ruby_version: !ruby/object:Gem::Requirement
371
451
  requirements:
372
- - - '>='
452
+ - - ">="
373
453
  - !ruby/object:Gem::Version
374
454
  version: 2.0.0
375
455
  required_rubygems_version: !ruby/object:Gem::Requirement
376
456
  requirements:
377
- - - '>='
457
+ - - ">="
378
458
  - !ruby/object:Gem::Version
379
459
  version: '0'
380
460
  requirements: []
381
461
  rubyforge_project:
382
- rubygems_version: 2.1.10
462
+ rubygems_version: 2.2.2
383
463
  signing_key:
384
464
  specification_version: 4
385
465
  summary: Microsite Platform for Rails 4
@@ -399,6 +479,7 @@ test_files:
399
479
  - test/dummy/bin/rake
400
480
  - test/dummy/config/application.rb
401
481
  - test/dummy/config/boot.rb
482
+ - test/dummy/config/database.yml
402
483
  - test/dummy/config/environment.rb
403
484
  - test/dummy/config/environments/development.rb
404
485
  - test/dummy/config/environments/test.rb
@@ -413,11 +494,15 @@ test_files:
413
494
  - test/dummy/config/kilt/config.yml
414
495
  - test/dummy/config/kilt/creds.yml
415
496
  - test/dummy/config/kilt/creds.yml.example
497
+ - test/dummy/config/kilt/creds.yml.rethinkdb.example
416
498
  - test/dummy/config/routes.rb
417
499
  - test/dummy/config.ru
500
+ - test/dummy/db/migrate/20140519110428_create_kilt_objects.rb
501
+ - test/dummy/db/schema.rb
418
502
  - test/dummy/log/development.log
419
503
  - test/dummy/log/test.log
420
504
  - test/dummy/public/uploads/image/photo.JPG
505
+ - test/dummy/public/uploads/image/timbo.jpg
421
506
  - test/dummy/Rakefile
422
507
  - test/dummy/tmp/cache/assets/development/sprockets/03cdc43618f8bef3dfc725a1886c40ed
423
508
  - test/dummy/tmp/cache/assets/development/sprockets/0d8e5c7178ebdb79e5b9cc4ef439eae8
@@ -425,11 +510,14 @@ test_files:
425
510
  - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
426
511
  - test/dummy/tmp/cache/assets/development/sprockets/18837248cb3274df9b7c6b0a5dcd56a5
427
512
  - test/dummy/tmp/cache/assets/development/sprockets/1c198a7e1d4ae808a6adf4c4809061eb
513
+ - test/dummy/tmp/cache/assets/development/sprockets/20dffc9385ea740ceca470ee4e4b2197
428
514
  - test/dummy/tmp/cache/assets/development/sprockets/23733156ea27da67211ba7ff763d76f0
429
515
  - test/dummy/tmp/cache/assets/development/sprockets/2e57def2c82ce30227eefea2360d5f50
430
516
  - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
517
+ - test/dummy/tmp/cache/assets/development/sprockets/3148655edeef1c319d57d0f9570acfd5
431
518
  - test/dummy/tmp/cache/assets/development/sprockets/32ab48c63ad3bb6ddc1f419e51adb5db
432
519
  - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
520
+ - test/dummy/tmp/cache/assets/development/sprockets/36715e644093cfcb33ac795f3c9d66fe
433
521
  - test/dummy/tmp/cache/assets/development/sprockets/36f9a7f6f43adb582ac6eec43b58eb30
434
522
  - test/dummy/tmp/cache/assets/development/sprockets/36fff19076c588427464432f563a8d2d
435
523
  - test/dummy/tmp/cache/assets/development/sprockets/3878e0f19bbd21176b1bcc46160a3df3
@@ -441,6 +529,7 @@ test_files:
441
529
  - test/dummy/tmp/cache/assets/development/sprockets/4a935342c0113b534ad7622234965544
442
530
  - test/dummy/tmp/cache/assets/development/sprockets/4b5c4a1edd3823a6a6c39e06b6eb230a
443
531
  - test/dummy/tmp/cache/assets/development/sprockets/4c5736bf0bd429296d1a32930364897e
532
+ - test/dummy/tmp/cache/assets/development/sprockets/4f26158b7a804a3e3c47ce0ceff2798c
444
533
  - test/dummy/tmp/cache/assets/development/sprockets/542fc810f9cd36e7bed9a3e5e9670995
445
534
  - test/dummy/tmp/cache/assets/development/sprockets/56f1e7d57d31bf3315e1e33732d57faa
446
535
  - test/dummy/tmp/cache/assets/development/sprockets/5bea4c2d87ec725262213ed51575b485
@@ -476,22 +565,31 @@ test_files:
476
565
  - test/dummy/tmp/cache/assets/development/sprockets/dc676330961fd22be77c48cb77ec065f
477
566
  - test/dummy/tmp/cache/assets/development/sprockets/ddc29f2c13cd99d017fd526b61dcb951
478
567
  - test/dummy/tmp/cache/assets/development/sprockets/de45247cb814cafe20e9e46c79e470fe
568
+ - test/dummy/tmp/cache/assets/development/sprockets/df0b7c3ac590a286561806e813c2974f
479
569
  - test/dummy/tmp/cache/assets/development/sprockets/dfa8b85e3c1273b7e69839e4e607c3e1
480
570
  - test/dummy/tmp/cache/assets/development/sprockets/e22d705d0c889ec4837f183a9beec0f3
481
571
  - test/dummy/tmp/cache/assets/development/sprockets/e3a4ad3549e1e57d03698a36daeff406
482
572
  - test/dummy/tmp/cache/assets/development/sprockets/e7ba95a61b1b9381906a88610dceb6dd
483
573
  - test/dummy/tmp/cache/assets/development/sprockets/ef7c8ce46dfc9e9087ce84dbdfdd0011
484
574
  - test/dummy/tmp/cache/assets/development/sprockets/f3e1a8ba304f70dccefd77356c900ebc
575
+ - test/dummy/tmp/cache/assets/development/sprockets/f4b5dd06a6113950c0f481cbc5a31a66
485
576
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
486
- - test/dummy/tmp/data/meta_request/191f094a-5e87-4654-bc80-5acb51d3f903.json
487
- - test/dummy/tmp/data/meta_request/1eb9499d-2e84-47df-ac0a-da308031aa3a.json
488
- - test/dummy/tmp/data/meta_request/300cabd2-6e51-4b1b-ab55-a072049c2a0f.json
489
- - test/dummy/tmp/data/meta_request/3ec7ea74-e7a7-4f4d-9434-e08edfc12b8a.json
490
- - test/dummy/tmp/data/meta_request/5bb81411-321e-4cba-9ffa-87fcd8105ef4.json
491
- - test/dummy/tmp/data/meta_request/9d6e10c1-5b14-4199-852e-9f1e97132b8f.json
492
- - test/dummy/tmp/data/meta_request/a6403ed9-21f1-4a00-9725-4a1c544214f6.json
493
- - test/dummy/tmp/data/meta_request/b4487e0b-0a08-40a3-a364-e715e6765631.json
494
- - test/dummy/tmp/data/meta_request/d399f913-d3a5-4de3-b012-848377a702fc.json
495
- - test/dummy/tmp/data/meta_request/dcf95267-1855-4062-85c8-e880f8d62443.json
577
+ - test/dummy/tmp/data/meta_request/1c3d4a4b-d7e1-4126-8bfc-572acbc2f675.json
578
+ - test/dummy/tmp/data/meta_request/449ff78e-30d2-4cc5-bbb7-3397d04a4c46.json
579
+ - test/dummy/tmp/data/meta_request/5974cfb9-99bd-4d5c-a4e1-6e352ecd2dd8.json
580
+ - test/dummy/tmp/data/meta_request/960de12b-b1c5-4d44-937b-e3d8c00d682c.json
581
+ - test/dummy/tmp/data/meta_request/9df9ad77-1b70-4fb7-ad18-f31f28c60c6c.json
582
+ - test/dummy/tmp/data/meta_request/a5374758-4e16-487a-ab11-9a69a1abed2e.json
583
+ - test/dummy/tmp/data/meta_request/a65d97b2-df1f-445e-99d5-615c4db5c4e1.json
584
+ - test/dummy/tmp/data/meta_request/b3693c6f-23cd-4afe-ae82-38078eaa643a.json
585
+ - test/dummy/tmp/data/meta_request/daa1c80a-bad3-4bc1-8f67-d586979cbedc.json
586
+ - test/dummy/tmp/data/meta_request/e2e7621f-08e5-46dd-83c2-b87eb6d5fd45.json
587
+ - test/empty.sqlite3
588
+ - test/generators/kilt/backend_generator_spec.rb
496
589
  - test/kilt/form_spec.rb
590
+ - test/kilt/formatting_spec.rb
591
+ - test/kilt/object_spec.rb
592
+ - test/kilt/utils_spec.rb
593
+ - test/kilt_object_spec.rb
594
+ - test/kilt_spec.rb
497
595
  - test/minitest_helper.rb