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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/homesteading_publisher/read.js +5 -0
- data/app/assets/javascripts/homesteading_publisher/vendor/jquery.js +8829 -0
- data/app/assets/javascripts/homesteading_publisher/vendor/jquery.simplyCountable.js +137 -0
- data/app/assets/javascripts/homesteading_publisher/vendor/modernizr.js +834 -0
- data/app/assets/javascripts/homesteading_publisher/write.js +51 -0
- data/app/assets/stylesheets/homesteading_publisher/alerts.css.scss +107 -0
- data/app/assets/stylesheets/homesteading_publisher/application.css +7 -15
- data/app/assets/stylesheets/homesteading_publisher/application.css.scss +7 -0
- data/app/assets/stylesheets/homesteading_publisher/base.css.scss +9 -0
- data/app/assets/stylesheets/homesteading_publisher/nav.css.scss +13 -0
- data/app/assets/stylesheets/homesteading_publisher/pagination.css.scss +55 -0
- data/app/assets/stylesheets/homesteading_publisher/read-write.css.scss +269 -0
- data/app/assets/stylesheets/homesteading_publisher/read.css.scss +60 -0
- data/app/assets/stylesheets/homesteading_publisher/settings.css.scss +13 -0
- data/app/helpers/homesteading_publisher/application_helper.rb +275 -0
- data/app/models/homesteading/post.rb +2 -2
- data/lib/homesteading_publisher/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +3812 -6000
- data/spec/models/homesteading/post_spec.rb +4 -4
- metadata +16 -9
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- 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 {
|
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 {
|
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 {
|
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 {
|
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.
|
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-
|
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.
|
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
|
-
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
-
Migrating to CreatePosts (20150107224535)
|
6
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.5ms)[0m 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
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150107224535"]]
|
10
|
-
[1m[35m (0.6ms)[0m commit transaction
|
11
|
-
Migrating to CreateSettings (20150108001754)
|
12
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.5ms)[0m 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
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150108001754"]]
|
16
|
-
[1m[35m (0.6ms)[0m commit transaction
|
17
|
-
Migrating to CreateLicenses (20150108001809)
|
18
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.3ms)[0m 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
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150108001809"]]
|
22
|
-
[1m[35m (0.7ms)[0m commit transaction
|
23
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
24
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
26
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
28
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
30
|
-
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
31
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
32
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
33
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
34
|
-
Migrating to CreatePosts (20150107224535)
|
35
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.7ms)[0m 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
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150107224535"]]
|
39
|
-
[1m[35m (0.8ms)[0m commit transaction
|
40
|
-
Migrating to CreateSettings (20150108001754)
|
41
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.4ms)[0m 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
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150108001754"]]
|
45
|
-
[1m[35m (0.8ms)[0m commit transaction
|
46
|
-
Migrating to CreateLicenses (20150108001809)
|
47
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.4ms)[0m 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
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150108001809"]]
|
51
|
-
[1m[35m (0.6ms)[0m commit transaction
|
52
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
53
|
-
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
54
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
55
|
-
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
56
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
57
|
-
Migrating to CreatePosts (20150107224535)
|
58
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.4ms)[0m 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
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150107224535"]]
|
62
|
-
[1m[35m (0.7ms)[0m commit transaction
|
63
|
-
Migrating to CreateSettings (20150108001754)
|
64
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.3ms)[0m 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
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150108001754"]]
|
68
|
-
[1m[35m (0.6ms)[0m commit transaction
|
69
|
-
Migrating to CreateLicenses (20150108001809)
|
70
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.3ms)[0m 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
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150108001809"]]
|
74
|
-
[1m[35m (0.6ms)[0m commit transaction
|
75
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|