txtblx 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/txtblx/textblocks_controller.rb +13 -0
  3. data/app/helpers/txtblx/textblocks_helper.rb +1 -1
  4. data/config/routes.rb +1 -0
  5. data/lib/tasks/txtblx_tasks.rake +8 -0
  6. data/lib/txtblx/version.rb +1 -1
  7. data/spec/controllers/txtblx/textblocks_controller_spec.rb +30 -0
  8. data/spec/dummy/app/models/ability.rb +16 -0
  9. data/spec/dummy/app/models/user.rb +6 -0
  10. data/spec/dummy/app/views/layouts/application.html.erb +3 -0
  11. data/spec/dummy/config/environments/development.rb +1 -0
  12. data/spec/dummy/config/initializers/devise.rb +259 -0
  13. data/spec/dummy/config/locales/devise.en.yml +60 -0
  14. data/spec/dummy/config/routes.rb +1 -0
  15. data/spec/dummy/db/development.sqlite3 +0 -0
  16. data/spec/dummy/db/migrate/20150419175857_devise_create_users.rb +42 -0
  17. data/spec/dummy/db/migrate/20150419222125_add_role_to_user.rb +5 -0
  18. data/spec/dummy/db/schema.rb +20 -1
  19. data/spec/dummy/db/test.sqlite3 +0 -0
  20. data/spec/dummy/log/development.log +24 -14
  21. data/spec/dummy/log/test.log +2954 -77
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  28. data/spec/factories/users.rb +6 -0
  29. data/spec/spec_helper.rb +3 -0
  30. metadata +90 -61
  31. data/spec/dummy/config/initializers/txtblx.rb +0 -2
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ email 'user@example.com'
4
+ password 'password'
5
+ end
6
+ end
data/spec/spec_helper.rb CHANGED
@@ -32,3 +32,6 @@ RSpec.configure do |config|
32
32
  end
33
33
  end
34
34
 
35
+ RSpec.configure do |config|
36
+ config.include Devise::TestHelpers, :type => :controller
37
+ end
metadata CHANGED
@@ -1,139 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txtblx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-28 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.2.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.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: snaps
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: activeadmin
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: auto_html
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.6.4
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: 1.6.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: cancancan
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '1.10'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.10'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: sqlite3
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ~>
74
88
  - !ruby/object:Gem::Version
75
89
  version: 1.3.10
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ~>
81
95
  - !ruby/object:Gem::Version
82
96
  version: 1.3.10
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec-rails
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ~>
88
102
  - !ruby/object:Gem::Version
89
103
  version: '3.2'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ~>
95
109
  - !ruby/object:Gem::Version
96
110
  version: '3.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: capybara
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: 2.4.4
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ~>
109
123
  - !ruby/object:Gem::Version
110
124
  version: 2.4.4
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: factory_girl_rails
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - "~>"
129
+ - - ~>
116
130
  - !ruby/object:Gem::Version
117
131
  version: '4.5'
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: '4.5'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: codeclimate-test-reporter
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
  description: Txtblx provides a simple way to allow Active Admin users to edit interface
@@ -150,6 +164,7 @@ files:
150
164
  - app/assets/javascripts/txtblx/application.js
151
165
  - app/assets/stylesheets/txtblx/application.css
152
166
  - app/controllers/txtblx/application_controller.rb
167
+ - app/controllers/txtblx/textblocks_controller.rb
153
168
  - app/helpers/txtblx/application_helper.rb
154
169
  - app/helpers/txtblx/textblocks_helper.rb
155
170
  - app/models/txtblx/textblock.rb
@@ -166,6 +181,7 @@ files:
166
181
  - lib/txtblx/configuration.rb
167
182
  - lib/txtblx/engine.rb
168
183
  - lib/txtblx/version.rb
184
+ - spec/controllers/txtblx/textblocks_controller_spec.rb
169
185
  - spec/dummy/README.rdoc
170
186
  - spec/dummy/Rakefile
171
187
  - spec/dummy/app/assets/javascripts/application.js
@@ -173,6 +189,8 @@ files:
173
189
  - spec/dummy/app/controllers/application_controller.rb
174
190
  - spec/dummy/app/controllers/dummies_controller.rb
175
191
  - spec/dummy/app/helpers/application_helper.rb
192
+ - spec/dummy/app/models/ability.rb
193
+ - spec/dummy/app/models/user.rb
176
194
  - spec/dummy/app/views/dummies/index.html.erb
177
195
  - spec/dummy/app/views/layouts/application.html.erb
178
196
  - spec/dummy/bin/bundle
@@ -190,17 +208,20 @@ files:
190
208
  - spec/dummy/config/initializers/assets.rb
191
209
  - spec/dummy/config/initializers/backtrace_silencers.rb
192
210
  - spec/dummy/config/initializers/cookies_serializer.rb
211
+ - spec/dummy/config/initializers/devise.rb
193
212
  - spec/dummy/config/initializers/filter_parameter_logging.rb
194
213
  - spec/dummy/config/initializers/inflections.rb
195
214
  - spec/dummy/config/initializers/mime_types.rb
196
215
  - spec/dummy/config/initializers/session_store.rb
197
- - spec/dummy/config/initializers/txtblx.rb
198
216
  - spec/dummy/config/initializers/wrap_parameters.rb
217
+ - spec/dummy/config/locales/devise.en.yml
199
218
  - spec/dummy/config/locales/en.yml
200
219
  - spec/dummy/config/routes.rb
201
220
  - spec/dummy/config/secrets.yml
202
221
  - spec/dummy/db/development.sqlite3
203
222
  - spec/dummy/db/migrate/20150406173449_create_snaps_tags.snaps.rb
223
+ - spec/dummy/db/migrate/20150419175857_devise_create_users.rb
224
+ - spec/dummy/db/migrate/20150419222125_add_role_to_user.rb
204
225
  - spec/dummy/db/schema.rb
205
226
  - spec/dummy/db/test.sqlite3
206
227
  - spec/dummy/log/development.log
@@ -216,6 +237,7 @@ files:
216
237
  - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
217
238
  - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
218
239
  - spec/factories/txtblx_textblocks.rb
240
+ - spec/factories/users.rb
219
241
  - spec/features/display_spec.rb
220
242
  - spec/helpers/textblocks_helper_spec.rb
221
243
  - spec/models/txtblx/textblock_spec.rb
@@ -230,12 +252,12 @@ require_paths:
230
252
  - lib
231
253
  required_ruby_version: !ruby/object:Gem::Requirement
232
254
  requirements:
233
- - - ">="
255
+ - - '>='
234
256
  - !ruby/object:Gem::Version
235
257
  version: '0'
236
258
  required_rubygems_version: !ruby/object:Gem::Requirement
237
259
  requirements:
238
- - - ">="
260
+ - - '>='
239
261
  - !ruby/object:Gem::Version
240
262
  version: '0'
241
263
  requirements: []
@@ -245,57 +267,64 @@ signing_key:
245
267
  specification_version: 4
246
268
  summary: Editable, revisioned front-end texts for rails apps.
247
269
  test_files:
248
- - spec/models/txtblx/textblock_spec.rb
249
- - spec/factories/txtblx_textblocks.rb
250
- - spec/helpers/textblocks_helper_spec.rb
270
+ - spec/features/display_spec.rb
251
271
  - spec/spec_helper.rb
252
- - spec/dummy/config.ru
253
- - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
254
- - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
272
+ - spec/controllers/txtblx/textblocks_controller_spec.rb
255
273
  - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
256
274
  - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
257
- - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
258
275
  - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
276
+ - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
277
+ - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
278
+ - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
279
+ - spec/dummy/public/404.html
280
+ - spec/dummy/public/422.html
281
+ - spec/dummy/public/500.html
282
+ - spec/dummy/public/favicon.ico
283
+ - spec/dummy/README.rdoc
259
284
  - spec/dummy/Rakefile
260
- - spec/dummy/config/database.yml
285
+ - spec/dummy/config.ru
286
+ - spec/dummy/bin/rake
287
+ - spec/dummy/bin/rails
288
+ - spec/dummy/bin/bundle
289
+ - spec/dummy/bin/setup
290
+ - spec/dummy/config/locales/devise.en.yml
261
291
  - spec/dummy/config/locales/en.yml
292
+ - spec/dummy/config/boot.rb
293
+ - spec/dummy/config/secrets.yml
294
+ - spec/dummy/config/application.rb
295
+ - spec/dummy/config/environment.rb
296
+ - spec/dummy/config/environments/test.rb
262
297
  - spec/dummy/config/environments/production.rb
263
298
  - spec/dummy/config/environments/development.rb
264
- - spec/dummy/config/environments/test.rb
265
- - spec/dummy/config/environment.rb
266
- - spec/dummy/config/secrets.yml
267
- - spec/dummy/config/initializers/cookies_serializer.rb
268
- - spec/dummy/config/initializers/txtblx.rb
269
- - spec/dummy/config/initializers/filter_parameter_logging.rb
270
- - spec/dummy/config/initializers/wrap_parameters.rb
271
- - spec/dummy/config/initializers/inflections.rb
299
+ - spec/dummy/config/database.yml
300
+ - spec/dummy/config/routes.rb
272
301
  - spec/dummy/config/initializers/backtrace_silencers.rb
302
+ - spec/dummy/config/initializers/inflections.rb
303
+ - spec/dummy/config/initializers/wrap_parameters.rb
273
304
  - spec/dummy/config/initializers/session_store.rb
305
+ - spec/dummy/config/initializers/cookies_serializer.rb
306
+ - spec/dummy/config/initializers/devise.rb
307
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
274
308
  - spec/dummy/config/initializers/mime_types.rb
275
309
  - spec/dummy/config/initializers/assets.rb
276
- - spec/dummy/config/routes.rb
277
- - spec/dummy/config/application.rb
278
- - spec/dummy/config/boot.rb
279
- - spec/dummy/public/422.html
280
- - spec/dummy/public/500.html
281
- - spec/dummy/public/404.html
282
- - spec/dummy/public/favicon.ico
283
- - spec/dummy/app/assets/stylesheets/application.css
310
+ - spec/dummy/db/test.sqlite3
311
+ - spec/dummy/db/migrate/20150419175857_devise_create_users.rb
312
+ - spec/dummy/db/migrate/20150406173449_create_snaps_tags.snaps.rb
313
+ - spec/dummy/db/migrate/20150419222125_add_role_to_user.rb
314
+ - spec/dummy/db/schema.rb
315
+ - spec/dummy/db/development.sqlite3
316
+ - spec/dummy/app/controllers/dummies_controller.rb
317
+ - spec/dummy/app/controllers/application_controller.rb
284
318
  - spec/dummy/app/assets/javascripts/application.js
319
+ - spec/dummy/app/assets/stylesheets/application.css
320
+ - spec/dummy/app/helpers/application_helper.rb
321
+ - spec/dummy/app/models/ability.rb
322
+ - spec/dummy/app/models/user.rb
285
323
  - spec/dummy/app/views/dummies/index.html.erb
286
324
  - spec/dummy/app/views/layouts/application.html.erb
287
- - spec/dummy/app/helpers/application_helper.rb
288
- - spec/dummy/app/controllers/dummies_controller.rb
289
- - spec/dummy/app/controllers/application_controller.rb
290
- - spec/dummy/log/test.log
291
325
  - spec/dummy/log/development.log
292
- - spec/dummy/db/migrate/20150406173449_create_snaps_tags.snaps.rb
293
- - spec/dummy/db/schema.rb
294
- - spec/dummy/db/development.sqlite3
295
- - spec/dummy/db/test.sqlite3
296
- - spec/dummy/README.rdoc
297
- - spec/dummy/bin/rails
298
- - spec/dummy/bin/bundle
299
- - spec/dummy/bin/setup
300
- - spec/dummy/bin/rake
301
- - spec/features/display_spec.rb
326
+ - spec/dummy/log/test.log
327
+ - spec/factories/users.rb
328
+ - spec/factories/txtblx_textblocks.rb
329
+ - spec/helpers/textblocks_helper_spec.rb
330
+ - spec/models/txtblx/textblock_spec.rb
@@ -1,2 +0,0 @@
1
- ActiveAdmin.application.load_paths.unshift(Txtblx::Engine.root.join('lib', 'txtblx', 'admin'))
2
-