homesteading_publisher 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/homesteading_publisher/read.js +5 -0
  3. data/app/assets/javascripts/homesteading_publisher/vendor/jquery.js +8829 -0
  4. data/app/assets/javascripts/homesteading_publisher/vendor/jquery.simplyCountable.js +137 -0
  5. data/app/assets/javascripts/homesteading_publisher/vendor/modernizr.js +834 -0
  6. data/app/assets/javascripts/homesteading_publisher/write.js +51 -0
  7. data/app/assets/stylesheets/homesteading_publisher/alerts.css.scss +107 -0
  8. data/app/assets/stylesheets/homesteading_publisher/application.css +7 -15
  9. data/app/assets/stylesheets/homesteading_publisher/application.css.scss +7 -0
  10. data/app/assets/stylesheets/homesteading_publisher/base.css.scss +9 -0
  11. data/app/assets/stylesheets/homesteading_publisher/nav.css.scss +13 -0
  12. data/app/assets/stylesheets/homesteading_publisher/pagination.css.scss +55 -0
  13. data/app/assets/stylesheets/homesteading_publisher/read-write.css.scss +269 -0
  14. data/app/assets/stylesheets/homesteading_publisher/read.css.scss +60 -0
  15. data/app/assets/stylesheets/homesteading_publisher/settings.css.scss +13 -0
  16. data/app/helpers/homesteading_publisher/application_helper.rb +275 -0
  17. data/app/models/homesteading/post.rb +2 -2
  18. data/lib/homesteading_publisher/version.rb +1 -1
  19. data/spec/dummy/db/test.sqlite3 +0 -0
  20. data/spec/dummy/log/test.log +3812 -6000
  21. data/spec/models/homesteading/post_spec.rb +4 -4
  22. metadata +16 -9
  23. data/spec/dummy/db/development.sqlite3 +0 -0
  24. data/spec/dummy/db/production.sqlite3 +0 -0
  25. data/spec/dummy/log/development.log +0 -75
@@ -156,7 +156,7 @@ describe Post do
156
156
  end
157
157
 
158
158
  describe "#set_published_at_attrs" do
159
- subject { build(:post, published_at: Time.parse("18 Sep 1979 14:30:00 UTC +00:00")) }
159
+ subject { create(:post, published_at: Time.parse("18 Sep 1979 14:30:00 UTC +00:00")) }
160
160
 
161
161
  it "year is 1979" do
162
162
  expect(subject.year).to eq "1979"
@@ -195,7 +195,7 @@ describe Post do
195
195
  end
196
196
 
197
197
  context "when only #title is populated" do
198
- subject { build(:post, slug: nil, title: "Test Post Title").slug }
198
+ subject { create(:post, slug: nil, title: "Test Post Title").slug }
199
199
 
200
200
  it "is slugged" do
201
201
  expect(subject).to eq "test-post-title"
@@ -203,7 +203,7 @@ describe Post do
203
203
  end
204
204
 
205
205
  context "when only #content is populated" do
206
- subject { build(:post, slug: nil, content: "Lorem Impsum").slug }
206
+ subject { create(:post, slug: nil, content: "Lorem Impsum").slug }
207
207
 
208
208
  it "is slugged" do
209
209
  expect(subject).to eq "lorem-impsum"
@@ -211,7 +211,7 @@ describe Post do
211
211
  end
212
212
 
213
213
  context "when both #title and #content are populated" do
214
- subject { build(:post, slug: nil, title: "Test Post Title", content: "Lorem Impsum").slug }
214
+ subject { create(:post, slug: nil, title: "Test Post Title", content: "Lorem Impsum").slug }
215
215
 
216
216
  it "is slugged" do
217
217
  expect(subject).to eq "test-post-title"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homesteading_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-16 00:00:00.000000000 Z
12
+ date: 2015-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -107,7 +107,20 @@ files:
107
107
  - README.md
108
108
  - Rakefile
109
109
  - app/assets/javascripts/homesteading_publisher/application.js
110
+ - app/assets/javascripts/homesteading_publisher/read.js
111
+ - app/assets/javascripts/homesteading_publisher/vendor/jquery.js
112
+ - app/assets/javascripts/homesteading_publisher/vendor/jquery.simplyCountable.js
113
+ - app/assets/javascripts/homesteading_publisher/vendor/modernizr.js
114
+ - app/assets/javascripts/homesteading_publisher/write.js
115
+ - app/assets/stylesheets/homesteading_publisher/alerts.css.scss
110
116
  - app/assets/stylesheets/homesteading_publisher/application.css
117
+ - app/assets/stylesheets/homesteading_publisher/application.css.scss
118
+ - app/assets/stylesheets/homesteading_publisher/base.css.scss
119
+ - app/assets/stylesheets/homesteading_publisher/nav.css.scss
120
+ - app/assets/stylesheets/homesteading_publisher/pagination.css.scss
121
+ - app/assets/stylesheets/homesteading_publisher/read-write.css.scss
122
+ - app/assets/stylesheets/homesteading_publisher/read.css.scss
123
+ - app/assets/stylesheets/homesteading_publisher/settings.css.scss
111
124
  - app/controllers/homesteading_publisher/application_controller.rb
112
125
  - app/helpers/homesteading_publisher/application_helper.rb
113
126
  - app/models/homesteading/post.rb
@@ -152,11 +165,8 @@ files:
152
165
  - spec/dummy/config/locales/en.yml
153
166
  - spec/dummy/config/routes.rb
154
167
  - spec/dummy/config/secrets.yml
155
- - spec/dummy/db/development.sqlite3
156
- - spec/dummy/db/production.sqlite3
157
168
  - spec/dummy/db/schema.rb
158
169
  - spec/dummy/db/test.sqlite3
159
- - spec/dummy/log/development.log
160
170
  - spec/dummy/log/test.log
161
171
  - spec/dummy/public/404.html
162
172
  - spec/dummy/public/422.html
@@ -189,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
199
  version: '0'
190
200
  requirements: []
191
201
  rubyforge_project:
192
- rubygems_version: 2.4.6
202
+ rubygems_version: 2.2.2
193
203
  signing_key:
194
204
  specification_version: 4
195
205
  summary: A generic Rails Engine that all HS-* post type publisher apps build on top
@@ -223,11 +233,8 @@ test_files:
223
233
  - spec/dummy/config/routes.rb
224
234
  - spec/dummy/config/secrets.yml
225
235
  - spec/dummy/config.ru
226
- - spec/dummy/db/development.sqlite3
227
- - spec/dummy/db/production.sqlite3
228
236
  - spec/dummy/db/schema.rb
229
237
  - spec/dummy/db/test.sqlite3
230
- - spec/dummy/log/development.log
231
238
  - spec/dummy/log/test.log
232
239
  - spec/dummy/public/404.html
233
240
  - spec/dummy/public/422.html
File without changes
File without changes
@@ -1,75 +0,0 @@
1
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreatePosts (20150107224535)
6
-  (0.1ms) begin transaction
7
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150107224535_create_posts.rb:26)
8
-  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text, "subtitle" text, "content" text, "in_reply_to" text, "tags" text, "syndication" text, "slug" text, "location_name" text, "location_latitude" text, "location_longitude" text, "location_altitude" text, "year" varchar, "month" varchar, "day" varchar, "hour" varchar, "minute" varchar, "second" varchar, "private" boolean, "published_at" datetime, "created_at" datetime, "updated_at" datetime)
9
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150107224535"]]
10
-  (0.6ms) commit transaction
11
- Migrating to CreateSettings (20150108001754)
12
-  (0.0ms) begin transaction
13
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150108001754_create_settings.rb:8)
14
-  (0.5ms) CREATE TABLE "settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "key" varchar, "content" text, "editable" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime)
15
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150108001754"]]
16
-  (0.6ms) commit transaction
17
- Migrating to CreateLicenses (20150108001809)
18
-  (0.1ms) begin transaction
19
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150108001809_create_licenses.rb:9)
20
-  (0.3ms) CREATE TABLE "licenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_code" varchar, "description" text, "url" text, "created_at" datetime, "updated_at" datetime)
21
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150108001809"]]
22
-  (0.7ms) commit transaction
23
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
-  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
31
-  (0.1ms) select sqlite_version(*)
32
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
33
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
- Migrating to CreatePosts (20150107224535)
35
-  (0.1ms) begin transaction
36
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150107224535_create_posts.rb:26)
37
-  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text, "subtitle" text, "content" text, "in_reply_to" text, "tags" text, "syndication" text, "slug" text, "location_name" text, "location_latitude" text, "location_longitude" text, "location_altitude" text, "year" varchar, "month" varchar, "day" varchar, "hour" varchar, "minute" varchar, "second" varchar, "private" boolean, "published_at" datetime, "created_at" datetime, "updated_at" datetime)
38
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150107224535"]]
39
-  (0.8ms) commit transaction
40
- Migrating to CreateSettings (20150108001754)
41
-  (0.0ms) begin transaction
42
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150108001754_create_settings.rb:8)
43
-  (0.4ms) CREATE TABLE "settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "key" varchar, "content" text, "editable" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime)
44
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150108001754"]]
45
-  (0.8ms) commit transaction
46
- Migrating to CreateLicenses (20150108001809)
47
-  (0.1ms) begin transaction
48
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150108001809_create_licenses.rb:9)
49
-  (0.4ms) CREATE TABLE "licenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_code" varchar, "description" text, "url" text, "created_at" datetime, "updated_at" datetime)
50
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150108001809"]]
51
-  (0.6ms) commit transaction
52
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
-  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
54
-  (0.1ms) select sqlite_version(*)
55
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
56
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
57
- Migrating to CreatePosts (20150107224535)
58
-  (0.1ms) begin transaction
59
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150107224535_create_posts.rb:26)
60
-  (0.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text, "subtitle" text, "content" text, "in_reply_to" text, "tags" text, "syndication" text, "slug" text, "location_name" text, "location_latitude" text, "location_longitude" text, "location_altitude" text, "year" varchar, "month" varchar, "day" varchar, "hour" varchar, "minute" varchar, "second" varchar, "private" boolean, "published_at" datetime, "created_at" datetime, "updated_at" datetime)
61
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150107224535"]]
62
-  (0.7ms) commit transaction
63
- Migrating to CreateSettings (20150108001754)
64
-  (0.1ms) begin transaction
65
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150108001754_create_settings.rb:8)
66
-  (0.3ms) CREATE TABLE "settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "key" varchar, "content" text, "editable" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime)
67
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150108001754"]]
68
-  (0.6ms) commit transaction
69
- Migrating to CreateLicenses (20150108001809)
70
-  (0.0ms) begin transaction
71
- DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/s/Dropbox/Projects/homesteading/homesteading_publisher/db/migrate/20150108001809_create_licenses.rb:9)
72
-  (0.3ms) CREATE TABLE "licenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "short_code" varchar, "description" text, "url" text, "created_at" datetime, "updated_at" datetime)
73
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150108001809"]]
74
-  (0.6ms) commit transaction
75
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"