buttercms 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55f6699fcd36b9e43d3e71e61efd09f864bc5766
4
- data.tar.gz: 1735ef0367b65646be7a234be8ad6985581ef23f
3
+ metadata.gz: ffb041705ea8f1302a8dc855a5981365a954a1f3
4
+ data.tar.gz: f51f036aa9f16879ffa973ff64647a88117d3e4b
5
5
  SHA512:
6
- metadata.gz: 8fc98f77fc5e32a8839921dc91c67f136ae9c01912669f973c1518cf192b69a6f201424a92140a4f260706bd930150014488a7867c04891049acdaccc053778f
7
- data.tar.gz: c7fdd1b97b1fca18a552fd709ceecbc2274671d6a43be85d1a2d5a341812a82413d4fb0056b44cbb8f4cbec2c0ee14b87d86465c0310745a603990bef4d9253b
6
+ metadata.gz: 6defbcc9eb2f7c71dbc05f6dc29d5977f6ac2357f2f75b514dd77020494b6d5201d9588a55533d1bf96c6f0c2619f4a922ec2083ba724fa5eb85fd30b7c6a0c6
7
+ data.tar.gz: bb1599bb422596ba0edd5e953ee134bb5483736cb93dcc7ddc43d24ebc815a8f1c1574b56facf2efecf9da37b726d713c6d64690f5515e61fa298d607d521f29
data/README.rst CHANGED
@@ -38,7 +38,7 @@ Grab your API token from https://buttercms.com/api_token
38
38
 
39
39
  # In config/secrets.yml
40
40
  # Add your BUTTER_CMS_TOKEN to both development: and production:
41
- BUTTER_CMS_TOKEN = <your_api_token>
41
+ BUTTER_CMS_TOKEN: <your_api_token>
42
42
 
43
43
  Nice job. You've now got a blog running natively in your Rails project. Nothing but Ruby goodness. (No PHP scripts here ;))
44
44
 
@@ -49,8 +49,6 @@ module Buttercms
49
49
  page_param = ''
50
50
  end
51
51
 
52
- p "#{API_URL}posts/#{page_param}"
53
-
54
52
  response = make_request("#{API_URL}posts/#{page_param}")
55
53
  response_json = JSON.parse(response)
56
54
  @next_page = response_json['next_page']
@@ -0,0 +1,8 @@
1
+ {
2
+ "folders":
3
+ [
4
+ {
5
+ "path": "/Users/jakelumetta/Rails/rails-blog-example"
6
+ }
7
+ ]
8
+ }
@@ -0,0 +1,603 @@
1
+ {
2
+ "auto_complete":
3
+ {
4
+ "selected_items":
5
+ [
6
+ [
7
+ "re",
8
+ "request"
9
+ ],
10
+ [
11
+ "mar",
12
+ "margin-bottom"
13
+ ],
14
+ [
15
+ "fn",
16
+ "function"
17
+ ],
18
+ [
19
+ "pos",
20
+ "posY"
21
+ ],
22
+ [
23
+ "cont",
24
+ "contenteditable"
25
+ ],
26
+ [
27
+ "to",
28
+ "todojs Todo for javascript"
29
+ ],
30
+ [
31
+ "tex",
32
+ "text-decoration"
33
+ ],
34
+ [
35
+ "d",
36
+ "div"
37
+ ],
38
+ [
39
+ "act",
40
+ "activeNode"
41
+ ],
42
+ [
43
+ "fun",
44
+ "function"
45
+ ],
46
+ [
47
+ "imag",
48
+ "imageUrl"
49
+ ]
50
+ ]
51
+ },
52
+ "buffers":
53
+ [
54
+ {
55
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/database.yml",
56
+ "settings":
57
+ {
58
+ "buffer_size": 552,
59
+ "line_ending": "Unix"
60
+ }
61
+ },
62
+ {
63
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/app/controllers/application_controller.rb",
64
+ "settings":
65
+ {
66
+ "buffer_size": 220,
67
+ "line_ending": "Unix"
68
+ }
69
+ },
70
+ {
71
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/application.rb",
72
+ "settings":
73
+ {
74
+ "buffer_size": 1163,
75
+ "line_ending": "Unix"
76
+ }
77
+ },
78
+ {
79
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/Gemfile",
80
+ "settings":
81
+ {
82
+ "buffer_size": 1547,
83
+ "line_ending": "Unix"
84
+ }
85
+ },
86
+ {
87
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/secrets.yml",
88
+ "settings":
89
+ {
90
+ "buffer_size": 1086,
91
+ "line_ending": "Unix"
92
+ }
93
+ },
94
+ {
95
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/routes.rb",
96
+ "settings":
97
+ {
98
+ "buffer_size": 1637,
99
+ "line_ending": "Unix"
100
+ }
101
+ }
102
+ ],
103
+ "build_system": "",
104
+ "build_system_choices":
105
+ [
106
+ ],
107
+ "build_varint": "",
108
+ "command_palette":
109
+ {
110
+ "height": 367.0,
111
+ "last_filter": "snipp",
112
+ "selected_items":
113
+ [
114
+ [
115
+ "snipp",
116
+ "SnippetMaker: Make Snippet"
117
+ ],
118
+ [
119
+ "make",
120
+ "SnippetMaker: Make Snippet"
121
+ ],
122
+ [
123
+ "package",
124
+ "Package Control: Install Package"
125
+ ]
126
+ ],
127
+ "width": 449.0
128
+ },
129
+ "console":
130
+ {
131
+ "height": 126.0,
132
+ "history":
133
+ [
134
+ "import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)"
135
+ ]
136
+ },
137
+ "distraction_free":
138
+ {
139
+ "menu_visible": true,
140
+ "show_minimap": false,
141
+ "show_open_files": false,
142
+ "show_tabs": false,
143
+ "side_bar_visible": false,
144
+ "status_bar_visible": false
145
+ },
146
+ "expanded_folders":
147
+ [
148
+ "/Users/jakelumetta/Rails/rails-blog-example",
149
+ "/Users/jakelumetta/Rails/rails-blog-example/app",
150
+ "/Users/jakelumetta/Rails/rails-blog-example/app/controllers",
151
+ "/Users/jakelumetta/Rails/rails-blog-example/app/views",
152
+ "/Users/jakelumetta/Rails/rails-blog-example/app/views/layouts",
153
+ "/Users/jakelumetta/Rails/rails-blog-example/app/views/website",
154
+ "/Users/jakelumetta/Rails/rails-blog-example/config"
155
+ ],
156
+ "file_history":
157
+ [
158
+ "/Users/jakelumetta/Rails/buttercms-rails/lib/buttercms/version.rb",
159
+ "/Users/jakelumetta/Rails/buttercms-rails/buttercms.gemspec",
160
+ "/Users/jakelumetta/Rails/buttercms-rails/config/routes.rb",
161
+ "/Users/jakelumetta/Rails/buttercms-rails/Rakefile",
162
+ "/Users/jakelumetta/Django/buttercms-django/buttercms-django/templates/buttercms_blog_post.html",
163
+ "/Users/jakelumetta/Django/buttercms/buttercms/apps.py",
164
+ "/Users/jakelumetta/Django/buttercms/buttercms/urls.py",
165
+ "/Users/jakelumetta/Django/buttercms/website/urls.py",
166
+ "/Users/jakelumetta/Django/buttercms/website/templates/docs.html",
167
+ "/Users/jakelumetta/Django/buttercms/website/views.py",
168
+ "/Users/jakelumetta/Django/buttercms/buttercms/settings.py",
169
+ "/Users/jakelumetta/Django/buttercms/.gitignore",
170
+ "/Users/jakelumetta/Django/buttercms/website/templates/home.html",
171
+ "/Users/jakelumetta/Django/buttercms/website/templates/landing/home.html",
172
+ "/Users/jakelumetta/Django/buttercms/website/templates/api_token.html",
173
+ "/Users/jakelumetta/Django/buttercms/website/templates/base.html",
174
+ "/Users/jakelumetta/Django/buttercms/website/static/css/style.css",
175
+ "/Users/jakelumetta/Django/buttercms/fabfile.py",
176
+ "/Users/jakelumetta/Django/buttercms/bower.json",
177
+ "/Users/jakelumetta/Django/buttercms/.bowerrc",
178
+ "/Users/jakelumetta/Django/buttercms/api/urls.py",
179
+ "/Users/jakelumetta/Django/buttercms/website/forms.py",
180
+ "/Users/jakelumetta/Library/Application Support/Sublime Text 3/Packages/User/pdb.sublime-snippet",
181
+ "/Users/jakelumetta/Library/Application Support/Sublime Text 3/Packages/User/log.sublime-snippet",
182
+ "/Users/jakelumetta/Library/Application Support/Sublime Text 3/Packages/User/todojs.sublime-snippet",
183
+ "/Users/jakelumetta/Desktop/medium-editor/demo/textarea.html"
184
+ ],
185
+ "find":
186
+ {
187
+ "height": 23.0
188
+ },
189
+ "find_in_files":
190
+ {
191
+ "height": 93.0,
192
+ "where_history":
193
+ [
194
+ ""
195
+ ]
196
+ },
197
+ "find_state":
198
+ {
199
+ "case_sensitive": false,
200
+ "find_history":
201
+ [
202
+ "slug",
203
+ "page",
204
+ "next_page",
205
+ "blog_post",
206
+ "post",
207
+ "home.html.erb",
208
+ "{{",
209
+ "recent_posts",
210
+ "previous_page",
211
+ "next_page",
212
+ "first_name",
213
+ "include('buttercms.urls')",
214
+ "index.html",
215
+ "{% url 'docs' %}",
216
+ "template",
217
+ "h2",
218
+ "h4",
219
+ "h3",
220
+ "login",
221
+ "top",
222
+ "$p",
223
+ "- $(window)",
224
+ "newLine",
225
+ "img-responsive",
226
+ "editor.",
227
+ "WEBCAM",
228
+ ",",
229
+ "pickFile",
230
+ "p",
231
+ "div",
232
+ "insertImage"
233
+ ],
234
+ "highlight": true,
235
+ "in_selection": false,
236
+ "preserve_case": false,
237
+ "regex": false,
238
+ "replace_history":
239
+ [
240
+ "static/docs/index.html"
241
+ ],
242
+ "reverse": false,
243
+ "show_context": true,
244
+ "use_buffer2": true,
245
+ "whole_word": false,
246
+ "wrap": true
247
+ },
248
+ "groups":
249
+ [
250
+ {
251
+ "selected": 2,
252
+ "sheets":
253
+ [
254
+ {
255
+ "buffer": 0,
256
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/database.yml",
257
+ "semi_transient": false,
258
+ "settings":
259
+ {
260
+ "buffer_size": 552,
261
+ "regions":
262
+ {
263
+ },
264
+ "selection":
265
+ [
266
+ [
267
+ 184,
268
+ 184
269
+ ]
270
+ ],
271
+ "settings":
272
+ {
273
+ "syntax": "Packages/YAML/YAML.tmLanguage"
274
+ },
275
+ "translation.x": 0.0,
276
+ "translation.y": 0.0,
277
+ "zoom_level": 1.0
278
+ },
279
+ "stack_index": 5,
280
+ "type": "text"
281
+ },
282
+ {
283
+ "buffer": 1,
284
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/app/controllers/application_controller.rb",
285
+ "semi_transient": false,
286
+ "settings":
287
+ {
288
+ "buffer_size": 220,
289
+ "regions":
290
+ {
291
+ },
292
+ "selection":
293
+ [
294
+ [
295
+ 214,
296
+ 214
297
+ ]
298
+ ],
299
+ "settings":
300
+ {
301
+ "syntax": "Packages/Ruby/Ruby.tmLanguage"
302
+ },
303
+ "translation.x": 0.0,
304
+ "translation.y": 0.0,
305
+ "zoom_level": 1.0
306
+ },
307
+ "stack_index": 1,
308
+ "type": "text"
309
+ },
310
+ {
311
+ "buffer": 2,
312
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/application.rb",
313
+ "semi_transient": false,
314
+ "settings":
315
+ {
316
+ "buffer_size": 1163,
317
+ "regions":
318
+ {
319
+ },
320
+ "selection":
321
+ [
322
+ [
323
+ 1133,
324
+ 1133
325
+ ]
326
+ ],
327
+ "settings":
328
+ {
329
+ "syntax": "Packages/Ruby/Ruby.tmLanguage",
330
+ "tab_size": 4,
331
+ "translate_tabs_to_spaces": true
332
+ },
333
+ "translation.x": 0.0,
334
+ "translation.y": 0.0,
335
+ "zoom_level": 1.0
336
+ },
337
+ "stack_index": 0,
338
+ "type": "text"
339
+ },
340
+ {
341
+ "buffer": 3,
342
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/Gemfile",
343
+ "semi_transient": false,
344
+ "settings":
345
+ {
346
+ "buffer_size": 1547,
347
+ "regions":
348
+ {
349
+ },
350
+ "selection":
351
+ [
352
+ [
353
+ 930,
354
+ 930
355
+ ]
356
+ ],
357
+ "settings":
358
+ {
359
+ "syntax": "Packages/Ruby/Ruby.tmLanguage"
360
+ },
361
+ "translation.x": 0.0,
362
+ "translation.y": 0.0,
363
+ "zoom_level": 1.0
364
+ },
365
+ "stack_index": 3,
366
+ "type": "text"
367
+ },
368
+ {
369
+ "buffer": 4,
370
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/secrets.yml",
371
+ "semi_transient": false,
372
+ "settings":
373
+ {
374
+ "buffer_size": 1086,
375
+ "regions":
376
+ {
377
+ },
378
+ "selection":
379
+ [
380
+ [
381
+ 671,
382
+ 711
383
+ ]
384
+ ],
385
+ "settings":
386
+ {
387
+ "syntax": "Packages/YAML/YAML.tmLanguage"
388
+ },
389
+ "translation.x": 0.0,
390
+ "translation.y": 0.0,
391
+ "zoom_level": 1.0
392
+ },
393
+ "stack_index": 4,
394
+ "type": "text"
395
+ },
396
+ {
397
+ "buffer": 5,
398
+ "file": "/Users/jakelumetta/Rails/rails-blog-example/config/routes.rb",
399
+ "semi_transient": false,
400
+ "settings":
401
+ {
402
+ "buffer_size": 1637,
403
+ "regions":
404
+ {
405
+ },
406
+ "selection":
407
+ [
408
+ [
409
+ 293,
410
+ 293
411
+ ]
412
+ ],
413
+ "settings":
414
+ {
415
+ "syntax": "Packages/Ruby/Ruby.tmLanguage",
416
+ "tab_size": 2,
417
+ "translate_tabs_to_spaces": true
418
+ },
419
+ "translation.x": 0.0,
420
+ "translation.y": 0.0,
421
+ "zoom_level": 1.0
422
+ },
423
+ "stack_index": 2,
424
+ "type": "text"
425
+ }
426
+ ]
427
+ }
428
+ ],
429
+ "incremental_find":
430
+ {
431
+ "height": 23.0
432
+ },
433
+ "input":
434
+ {
435
+ "height": 31.0
436
+ },
437
+ "layout":
438
+ {
439
+ "cells":
440
+ [
441
+ [
442
+ 0,
443
+ 0,
444
+ 1,
445
+ 1
446
+ ]
447
+ ],
448
+ "cols":
449
+ [
450
+ 0.0,
451
+ 1.0
452
+ ],
453
+ "rows":
454
+ [
455
+ 0.0,
456
+ 1.0
457
+ ]
458
+ },
459
+ "menu_visible": true,
460
+ "output.find_results":
461
+ {
462
+ "height": 0.0
463
+ },
464
+ "pinned_build_system": "",
465
+ "project": "rails-blog-example.sublime-project",
466
+ "replace":
467
+ {
468
+ "height": 42.0
469
+ },
470
+ "save_all_on_build": true,
471
+ "select_file":
472
+ {
473
+ "height": 0.0,
474
+ "last_filter": "",
475
+ "selected_items":
476
+ [
477
+ [
478
+ "rout",
479
+ "config/routes.rb"
480
+ ],
481
+ [
482
+ "se",
483
+ "config/secrets.yml"
484
+ ],
485
+ [
486
+ "contr",
487
+ "app/controllers/application_controller.rb"
488
+ ],
489
+ [
490
+ "gem",
491
+ "Gemfile"
492
+ ],
493
+ [
494
+ "dta",
495
+ "config/database.yml"
496
+ ],
497
+ [
498
+ "con",
499
+ "config/routes.rb"
500
+ ],
501
+ [
502
+ "ver",
503
+ "lib/buttercms/version.rb"
504
+ ],
505
+ [
506
+ "urls",
507
+ "website/urls.py"
508
+ ],
509
+ [
510
+ "setting",
511
+ "buttercms/settings.py"
512
+ ],
513
+ [
514
+ "req",
515
+ "requirements.txt"
516
+ ],
517
+ [
518
+ "base",
519
+ "website/templates/base.html"
520
+ ],
521
+ [
522
+ "view",
523
+ "website/views.py"
524
+ ],
525
+ [
526
+ "sett",
527
+ "buttercms/settings.py"
528
+ ],
529
+ [
530
+ ".git",
531
+ ".gitignore"
532
+ ],
533
+ [
534
+ "home",
535
+ "website/templates/landing/home.html"
536
+ ],
537
+ [
538
+ "api",
539
+ "website/templates/api_token.html"
540
+ ],
541
+ [
542
+ "fab",
543
+ "fabfile.py"
544
+ ],
545
+ [
546
+ "forms",
547
+ "website/forms.py"
548
+ ],
549
+ [
550
+ "vie",
551
+ "website/views.py"
552
+ ],
553
+ [
554
+ "style",
555
+ "website/static/css/style.css"
556
+ ]
557
+ ],
558
+ "width": 0.0
559
+ },
560
+ "select_project":
561
+ {
562
+ "height": 500.0,
563
+ "last_filter": "docs",
564
+ "selected_items":
565
+ [
566
+ [
567
+ "docs",
568
+ "~/Django/docs.sublime-project"
569
+ ],
570
+ [
571
+ "cms",
572
+ "~/Django/buttercms.sublime-project"
573
+ ],
574
+ [
575
+ "",
576
+ "~/Django/buttercms.sublime-project"
577
+ ]
578
+ ],
579
+ "width": 380.0
580
+ },
581
+ "select_symbol":
582
+ {
583
+ "height": 0.0,
584
+ "last_filter": "",
585
+ "selected_items":
586
+ [
587
+ ],
588
+ "width": 0.0
589
+ },
590
+ "selected_group": 0,
591
+ "settings":
592
+ {
593
+ },
594
+ "show_minimap": true,
595
+ "show_open_files": false,
596
+ "show_tabs": true,
597
+ "side_bar_visible": true,
598
+ "side_bar_width": 247.0,
599
+ "status_bar_visible": true,
600
+ "template_settings":
601
+ {
602
+ }
603
+ }
@@ -18,9 +18,9 @@
18
18
  <link href="https://buttercms.com/static/demoblog/css/clean-blog.min.css" rel="stylesheet">
19
19
 
20
20
  <!-- Custom Fonts -->
21
- <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
22
- <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
23
- <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
21
+ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
22
+ <link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
23
+ <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
24
24
 
25
25
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
26
26
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@@ -1,3 +1,3 @@
1
1
  module Buttercms
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buttercms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ButterCms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-03 00:00:00.000000000 Z
11
+ date: 2015-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -90,6 +90,8 @@ files:
90
90
  - app/views/buttercms/blog/author.html.erb
91
91
  - app/views/buttercms/blog/home.html.erb
92
92
  - app/views/buttercms/blog/post.html.erb
93
+ - app/views/buttercms/blog/rails-blog-example.sublime-project
94
+ - app/views/buttercms/blog/rails-blog-example.sublime-workspace
93
95
  - app/views/layouts/buttercms/application.html.erb
94
96
  - bin/rails
95
97
  - buttercms.gemspec