blogit 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/README.md +5 -20
  2. data/app/controllers/blogit/posts_controller.rb +22 -0
  3. data/app/models/blogit/post.rb +1 -1
  4. data/app/views/blogit/posts/_form.html.erb +1 -1
  5. data/app/views/blogit/posts/index.rss.builder +10 -10
  6. data/config/routes.rb +4 -4
  7. data/lib/blogit.rb +1 -0
  8. data/lib/blogit/configuration.rb +10 -5
  9. data/lib/blogit/version.rb +1 -1
  10. data/lib/generators/templates/blogit.rb +9 -3
  11. data/spec/controllers/blogit/posts_controller_spec.rb +72 -0
  12. data/spec/dummy/app/views/layouts/application.html.erb +1 -1
  13. data/spec/dummy/config/initializers/blogit.rb +49 -20
  14. data/spec/dummy/db/development.sqlite3 +0 -0
  15. data/spec/dummy/db/schema.rb +9 -9
  16. data/spec/dummy/db/test.sqlite3 +0 -0
  17. data/spec/dummy/log/development.log +1094 -804
  18. data/spec/dummy/log/test.log +24187 -2415
  19. data/spec/dummy/tmp/cache/assets/CB5/DD0/sprockets%2F346324d2a51df58457807bee661c449c +0 -0
  20. data/spec/dummy/tmp/cache/assets/CB6/ED0/sprockets%2F4390d06699f3ad4262e342be530f9f91 +0 -0
  21. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  22. data/spec/dummy/tmp/cache/assets/CE7/230/sprockets%2F6f493a817d97133a8dbf674bcd322670 +0 -0
  23. data/spec/dummy/tmp/cache/assets/CEE/310/sprockets%2F89642af8492e579dcd7162a0e2b7f155 +0 -0
  24. data/spec/dummy/tmp/cache/assets/D01/8C0/sprockets%2F332d5a9ce3e800c6c4a7a99058023ba2 +0 -0
  25. data/spec/dummy/tmp/cache/assets/{D5B/660/sprockets%2F4bb4e11ca3769b37bdac230e17180f2f → D09/740/sprockets%2F7a82d51e72434ef73fabb4a26131d945} +0 -0
  26. data/spec/dummy/tmp/cache/assets/D11/CC0/sprockets%2F3a12dfa6665b5318fa99d097203ac7e7 +0 -0
  27. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  28. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  29. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  30. data/spec/dummy/tmp/cache/assets/D61/6F0/sprockets%2F02da53eeca228bcef0c49278517111fe +0 -0
  31. data/spec/dummy/tmp/cache/assets/{D12/8E0/sprockets%2F589dd1f5f312060f7ea7179ed0d1b690 → D66/900/sprockets%2F52de1b25e110e8a937b9e30b0a9e8da7} +0 -0
  32. data/spec/dummy/tmp/cache/assets/{D60/F70/sprockets%2F336e00e00f731efa2546eeae7691ba1e → DA7/D70/sprockets%2Fc627f052aaee94e9b24815d5aee4ff38} +0 -0
  33. data/spec/dummy/tmp/cache/assets/DCA/9B0/sprockets%2Fdf0e8f8a85e5d4056b3fe1cec3b7131a +0 -0
  34. data/spec/dummy/tmp/cache/assets/{C5B/630/sprockets%2F8a34981857e0826772a246e2d7215ce5 → DD2/6F0/sprockets%2Ffbe80717facec3dd9ea7ac008719c843} +0 -0
  35. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  36. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  37. data/spec/lib/configuration_spec.rb +5 -5
  38. metadata +28 -20
  39. data/spec/dummy/db/migrate/20111118222920_create_blog_posts.rb +0 -12
  40. data/spec/dummy/db/migrate/20111118222921_create_blog_comments.rb +0 -15
  41. data/spec/dummy/db/migrate/20111118222922_acts_as_taggable_on_migration.rb +0 -28
  42. data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -92,6 +92,10 @@ describe Blogit::Configuration do
92
92
  gh_blockcode: true
93
93
  }
94
94
  end
95
+
96
+ it "should set the Pingr mode to :test unless Rails env is production" do
97
+ Pingr.mode.should eql(:test)
98
+ end
95
99
 
96
100
  it "should set highlight_code_syntax to true" do
97
101
  blog_configuration.highlight_code_syntax.should be_true
@@ -105,8 +109,4 @@ describe Blogit::Configuration do
105
109
  blog_configuration.rss_feed_description.should eql "#{Rails.application.engine_name.titleize} Blog Posts"
106
110
  end
107
111
 
108
- it "should set rss_feed_language to 'Rails engine name Blog Posts'" do
109
- blog_configuration.rss_feed_language.should eql "en"
110
- end
111
-
112
- end
112
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: RedCloth
@@ -123,6 +123,22 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: pingr
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: 0.0.3
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: 0.0.3
126
142
  - !ruby/object:Gem::Dependency
127
143
  name: rb-fsevent
128
144
  requirement: !ruby/object:Gem::Requirement
@@ -404,9 +420,6 @@ files:
404
420
  - spec/dummy/db/development.sqlite3
405
421
  - spec/dummy/db/migrate/20110814091304_create_users.rb
406
422
  - spec/dummy/db/migrate/20110819103335_create_people.rb
407
- - spec/dummy/db/migrate/20111118222920_create_blog_posts.rb
408
- - spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
409
- - spec/dummy/db/migrate/20111118222922_acts_as_taggable_on_migration.rb
410
423
  - spec/dummy/db/schema.rb
411
424
  - spec/dummy/db/test.sqlite3
412
425
  - spec/dummy/log/development.log
@@ -427,25 +440,24 @@ files:
427
440
  - spec/dummy/test/unit/helpers/users_helper_test.rb
428
441
  - spec/dummy/test/unit/person_test.rb
429
442
  - spec/dummy/test/unit/user_test.rb
430
- - spec/dummy/tmp/cache/assets/C5B/630/sprockets%2F8a34981857e0826772a246e2d7215ce5
431
443
  - spec/dummy/tmp/cache/assets/CB5/DD0/sprockets%2F346324d2a51df58457807bee661c449c
432
444
  - spec/dummy/tmp/cache/assets/CB6/ED0/sprockets%2F4390d06699f3ad4262e342be530f9f91
433
445
  - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
434
446
  - spec/dummy/tmp/cache/assets/CE7/230/sprockets%2F6f493a817d97133a8dbf674bcd322670
435
447
  - spec/dummy/tmp/cache/assets/CEE/310/sprockets%2F89642af8492e579dcd7162a0e2b7f155
436
448
  - spec/dummy/tmp/cache/assets/D01/8C0/sprockets%2F332d5a9ce3e800c6c4a7a99058023ba2
449
+ - spec/dummy/tmp/cache/assets/D09/740/sprockets%2F7a82d51e72434ef73fabb4a26131d945
437
450
  - spec/dummy/tmp/cache/assets/D11/CC0/sprockets%2F3a12dfa6665b5318fa99d097203ac7e7
438
- - spec/dummy/tmp/cache/assets/D12/8E0/sprockets%2F589dd1f5f312060f7ea7179ed0d1b690
439
451
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
440
452
  - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
441
453
  - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
442
- - spec/dummy/tmp/cache/assets/D5B/660/sprockets%2F4bb4e11ca3769b37bdac230e17180f2f
443
- - spec/dummy/tmp/cache/assets/D60/F70/sprockets%2F336e00e00f731efa2546eeae7691ba1e
444
454
  - spec/dummy/tmp/cache/assets/D61/6F0/sprockets%2F02da53eeca228bcef0c49278517111fe
455
+ - spec/dummy/tmp/cache/assets/D66/900/sprockets%2F52de1b25e110e8a937b9e30b0a9e8da7
456
+ - spec/dummy/tmp/cache/assets/DA7/D70/sprockets%2Fc627f052aaee94e9b24815d5aee4ff38
445
457
  - spec/dummy/tmp/cache/assets/DCA/9B0/sprockets%2Fdf0e8f8a85e5d4056b3fe1cec3b7131a
458
+ - spec/dummy/tmp/cache/assets/DD2/6F0/sprockets%2Ffbe80717facec3dd9ea7ac008719c843
446
459
  - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
447
460
  - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
448
- - spec/dummy/tmp/pids/server.pid
449
461
  - spec/factories.rb
450
462
  - spec/helpers/blogit/application_helper_spec.rb
451
463
  - spec/helpers/blogit/posts_helper_spec.rb
@@ -475,7 +487,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
475
487
  version: '0'
476
488
  segments:
477
489
  - 0
478
- hash: 4427895448257213716
490
+ hash: 2849567003821066787
479
491
  required_rubygems_version: !ruby/object:Gem::Requirement
480
492
  none: false
481
493
  requirements:
@@ -484,7 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
484
496
  version: '0'
485
497
  segments:
486
498
  - 0
487
- hash: 4427895448257213716
499
+ hash: 2849567003821066787
488
500
  requirements: []
489
501
  rubyforge_project:
490
502
  rubygems_version: 1.8.24
@@ -540,9 +552,6 @@ test_files:
540
552
  - spec/dummy/db/development.sqlite3
541
553
  - spec/dummy/db/migrate/20110814091304_create_users.rb
542
554
  - spec/dummy/db/migrate/20110819103335_create_people.rb
543
- - spec/dummy/db/migrate/20111118222920_create_blog_posts.rb
544
- - spec/dummy/db/migrate/20111118222921_create_blog_comments.rb
545
- - spec/dummy/db/migrate/20111118222922_acts_as_taggable_on_migration.rb
546
555
  - spec/dummy/db/schema.rb
547
556
  - spec/dummy/db/test.sqlite3
548
557
  - spec/dummy/log/development.log
@@ -563,25 +572,24 @@ test_files:
563
572
  - spec/dummy/test/unit/helpers/users_helper_test.rb
564
573
  - spec/dummy/test/unit/person_test.rb
565
574
  - spec/dummy/test/unit/user_test.rb
566
- - spec/dummy/tmp/cache/assets/C5B/630/sprockets%2F8a34981857e0826772a246e2d7215ce5
567
575
  - spec/dummy/tmp/cache/assets/CB5/DD0/sprockets%2F346324d2a51df58457807bee661c449c
568
576
  - spec/dummy/tmp/cache/assets/CB6/ED0/sprockets%2F4390d06699f3ad4262e342be530f9f91
569
577
  - spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
570
578
  - spec/dummy/tmp/cache/assets/CE7/230/sprockets%2F6f493a817d97133a8dbf674bcd322670
571
579
  - spec/dummy/tmp/cache/assets/CEE/310/sprockets%2F89642af8492e579dcd7162a0e2b7f155
572
580
  - spec/dummy/tmp/cache/assets/D01/8C0/sprockets%2F332d5a9ce3e800c6c4a7a99058023ba2
581
+ - spec/dummy/tmp/cache/assets/D09/740/sprockets%2F7a82d51e72434ef73fabb4a26131d945
573
582
  - spec/dummy/tmp/cache/assets/D11/CC0/sprockets%2F3a12dfa6665b5318fa99d097203ac7e7
574
- - spec/dummy/tmp/cache/assets/D12/8E0/sprockets%2F589dd1f5f312060f7ea7179ed0d1b690
575
583
  - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
576
584
  - spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
577
585
  - spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
578
- - spec/dummy/tmp/cache/assets/D5B/660/sprockets%2F4bb4e11ca3769b37bdac230e17180f2f
579
- - spec/dummy/tmp/cache/assets/D60/F70/sprockets%2F336e00e00f731efa2546eeae7691ba1e
580
586
  - spec/dummy/tmp/cache/assets/D61/6F0/sprockets%2F02da53eeca228bcef0c49278517111fe
587
+ - spec/dummy/tmp/cache/assets/D66/900/sprockets%2F52de1b25e110e8a937b9e30b0a9e8da7
588
+ - spec/dummy/tmp/cache/assets/DA7/D70/sprockets%2Fc627f052aaee94e9b24815d5aee4ff38
581
589
  - spec/dummy/tmp/cache/assets/DCA/9B0/sprockets%2Fdf0e8f8a85e5d4056b3fe1cec3b7131a
590
+ - spec/dummy/tmp/cache/assets/DD2/6F0/sprockets%2Ffbe80717facec3dd9ea7ac008719c843
582
591
  - spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
583
592
  - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
584
- - spec/dummy/tmp/pids/server.pid
585
593
  - spec/factories.rb
586
594
  - spec/helpers/blogit/application_helper_spec.rb
587
595
  - spec/helpers/blogit/posts_helper_spec.rb
@@ -1,12 +0,0 @@
1
- class CreateBlogPosts < ActiveRecord::Migration
2
- def change
3
- create_table :blog_posts do |t|
4
- t.string :title, null: false
5
- t.text :body, null: false
6
- t.references :blogger, polymorphic: true
7
- t.integer :comments_count, default: 0, null: false
8
- t.timestamps
9
- end
10
- add_index :blog_posts, [:blogger_type, :blogger_id]
11
- end
12
- end
@@ -1,15 +0,0 @@
1
- class CreateBlogComments < ActiveRecord::Migration
2
- def change
3
- create_table :blog_comments do |t|
4
- t.string :name, null: false
5
- t.string :email, null: false
6
- t.string :website
7
- t.text :body, null: false
8
- t.references :post, null: false
9
- t.string :state
10
-
11
- t.timestamps
12
- end
13
- add_index :blog_comments, :post_id
14
- end
15
- end
@@ -1,28 +0,0 @@
1
- class ActsAsTaggableOnMigration < ActiveRecord::Migration
2
- def self.up
3
- create_table :tags do |t|
4
- t.string :name
5
- end
6
-
7
- create_table :taggings do |t|
8
- t.references :tag
9
-
10
- # You should make sure that the column created is
11
- # long enough to store the required class names.
12
- t.references :taggable, :polymorphic => true
13
- t.references :tagger, :polymorphic => true
14
-
15
- t.string :context
16
-
17
- t.datetime :created_at
18
- end
19
-
20
- add_index :taggings, :tag_id
21
- add_index :taggings, [:taggable_id, :taggable_type, :context]
22
- end
23
-
24
- def self.down
25
- drop_table :taggings
26
- drop_table :tags
27
- end
28
- end
@@ -1 +0,0 @@
1
- 36760