landable 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemrc +2 -0
- data/CHANGELOG.md +31 -26
- data/app/models/landable/page.rb +2 -1
- data/db/migrate/20130510221424_create_landable_schema.rb +2 -0
- data/lib/generators/templates/landable.rb +1 -1
- data/lib/landable/version.rb +1 -1
- data/spec/models/landable/page_spec.rb +12 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 948d38a5bc7a8446e9e09b64f34f4ed21b413b5c
|
4
|
+
data.tar.gz: 4867a31ea4b9a315a828aa846e2dc0c2290752e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f84c18918809a3df48ae10969ac19c26a7e9aea7f42191c1fa7eb38f5225cab19c01830ce638de33762841bd362a521c731db76f89b68a7384b865801a665761
|
7
|
+
data.tar.gz: 0033a46f94671e673376d973d444f88e886f54297bc9216b0e533214b78223417e6ec1332196708c517a512971160e892b54b83d7bd91061d76f3a66c46035f8
|
data/.gemrc
ADDED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ See README.md before updating this file.
|
|
4
4
|
|
5
5
|
## Unreleased [#](https://github.com/enova/landable/compare/v1.12.1...master)
|
6
6
|
|
7
|
+
## 1.12.2 [#](https://github.com/enova/landable/compare/v1.12.1...v1.12.2)
|
8
|
+
* BugFix: Exclude Unpublished Pages from Sitemap [#45]
|
9
|
+
* Refactor: Adding a gemrc config file [#46]
|
10
|
+
* BugFix: Fix pg uuid extension migration error [#32, #49]
|
11
|
+
|
7
12
|
## 1.12.1 [#](https://github.com/enova/landable/compare/v1.11.1...v1.12.1)
|
8
13
|
* Feature: Preview For Templates [#44]
|
9
14
|
* Refactor: Clean Up MetaTags Decorator [#41]
|
@@ -11,49 +16,49 @@ See README.md before updating this file.
|
|
11
16
|
* BugFix: Deleted templates not rendered in page [#42]
|
12
17
|
|
13
18
|
## 1.11.1 [#](https://github.com/enova/landable/compare/v1.11.0...v1.11.1)
|
14
|
-
* Adding PageName [#39]
|
15
|
-
* Force Template Slug to not have a space [#40]
|
19
|
+
* Feature: Adding PageName [#39]
|
20
|
+
* BugFix: Force Template Slug to not have a space [#40]
|
16
21
|
|
17
22
|
## 1.11.0 [#](https://github.com/enova/landable/compare/v1.10.0.rc1...v1.11.0)
|
18
|
-
* Make the tracker.user_agent accessible [#33]
|
19
|
-
* Add missing functions/triggers to schema_move task. Make it a little better in other ways [#24]
|
20
|
-
* Lock Liquid Dependency to Version as above versions will break tests [#30]
|
21
|
-
* Turn DNT into a config option [#31]
|
22
|
-
* Make Themes Import From App More Accepting [#35]
|
23
|
+
* Feature: Make the tracker.user_agent accessible [#33]
|
24
|
+
* Refactor: Add missing functions/triggers to schema_move task. Make it a little better in other ways [#24]
|
25
|
+
* BugFix: Lock Liquid Dependency to Version as above versions will break tests [#30]
|
26
|
+
* Feature: Turn DNT into a config option [#31]
|
27
|
+
* Refactor: Make Themes Import From App More Accepting [#35]
|
23
28
|
|
24
29
|
## 1.10.0.rc2 [#](https://github.com/enova/landable/compare/v1.10.0.rc1...v1.10.0.rc2)
|
25
|
-
* Set up configurable paths that are not visit tracked [#27]
|
30
|
+
* Feature: Set up configurable paths that are not visit tracked [#27]
|
26
31
|
|
27
32
|
## 1.10.0.rc1 [#](https://github.com/enova/landable/compare/v1.9.2...v1.10.0.rc1)
|
28
|
-
* Handle blank UserAgent [#25]
|
29
|
-
* Make table_name.rb generic. [#22]
|
30
|
-
* Liquid Preview Template Styling [#21]
|
33
|
+
* BugFix: Handle blank UserAgent [#25]
|
34
|
+
* Refactor: Make table_name.rb generic. [#22]
|
35
|
+
* Refactor: Liquid Preview Template Styling [#21]
|
31
36
|
|
32
37
|
## 1.9.2 [#](https://github.com/enova/landable/compare/v1.9.1...v1.9.2)
|
33
|
-
* Added compatibility with new Rails 4.1 JSON-based cookies [#19]
|
38
|
+
* Feature: Added compatibility with new Rails 4.1 JSON-based cookies [#19]
|
34
39
|
|
35
40
|
## 1.9.1 [#](https://github.com/enova/landable/compare/v1.9.0...v1.9.1)
|
36
|
-
* Updating lookup_by :event_type, and :country [#18]
|
41
|
+
* Refactor: Updating lookup_by :event_type, and :country [#18]
|
37
42
|
|
38
43
|
## 1.9.0 [#](https://github.com/enova/landable/compare/v1.9.0.rc2...v1.9.0)
|
39
|
-
* Configuration is not a public API [#15]
|
40
|
-
* Updating lookup_by :http_method [#16]
|
41
|
-
* Updating descriptions of Partials [#17]
|
44
|
+
* Refacotr: Configuration is not a public API [#15]
|
45
|
+
* Refactor: Updating lookup_by :http_method [#16]
|
46
|
+
* Refactor: Updating descriptions of Partials [#17]
|
42
47
|
|
43
48
|
## 1.9.0.rc2 [#](https://github.com/enova/landable/compare/v1.9.0.rc1...v1.9.0.rc2)
|
44
|
-
* Audits [#10]
|
49
|
+
* Feature: Audits [#10]
|
45
50
|
|
46
51
|
## 1.9.0.rc1 [#](https://github.com/enova/landable/compare/v1.8.0...v1.9.0.rc1)
|
47
|
-
* Expose the tracker's referer domain & path [#14]
|
48
|
-
* adds a new view relating paths with response time, ordered by response time (longest first) [#13]
|
49
|
-
* Remove the pgtap.sql file and dependency [#12]
|
52
|
+
* Refactor: Expose the tracker's referer domain & path [#14]
|
53
|
+
* Feature: adds a new view relating paths with response time, ordered by response time (longest first) [#13]
|
54
|
+
* BugFix: Remove the pgtap.sql file and dependency [#12]
|
50
55
|
|
51
56
|
## 1.8.0 [#](https://github.com/enova/landable/compare/v1.7.1.rc1...v1.8.0)
|
52
|
-
* Removing geminabox [#11]
|
53
|
-
* Some fixes to the DB tests [#9]
|
54
|
-
* Rails 4.x support [#8]
|
55
|
-
* Screenshots by revision [#7]
|
56
|
-
* Soft deletes [#6]
|
57
|
+
* Feature: Removing geminabox [#11]
|
58
|
+
* Refactor: Some fixes to the DB tests [#9]
|
59
|
+
* Feature: Rails 4.x support [#8]
|
60
|
+
* Feature: Screenshots by revision [#7]
|
61
|
+
* Feature: Soft deletes [#6]
|
57
62
|
|
58
63
|
## 1.7.1.rc1 [#](https://github.com/enova/landable/compare/v1.7.0...v1.7.1.rc1)
|
59
|
-
* Allow for revisions for Templates [#3]
|
64
|
+
* Feature: Allow for revisions for Templates [#3]
|
data/app/models/landable/page.rb
CHANGED
@@ -42,7 +42,8 @@ module Landable
|
|
42
42
|
delegate :republish!, to: :published_revision
|
43
43
|
|
44
44
|
scope :imported, -> { where("imported_at IS NOT NULL") }
|
45
|
-
scope :sitemappable, -> { where("COALESCE(meta_tags -> 'robots' NOT LIKE '%noindex%', TRUE)")
|
45
|
+
scope :sitemappable, -> { where("COALESCE(meta_tags -> 'robots' NOT LIKE '%noindex%', TRUE)")
|
46
|
+
.where("published_revision_id is NOT NULL")
|
46
47
|
.where(status_code: 200)}
|
47
48
|
scope :published, -> { where("published_revision_id is NOT NULL") }
|
48
49
|
|
@@ -5,10 +5,12 @@ class CreateLandableSchema < Landable::Migration
|
|
5
5
|
#
|
6
6
|
# TODO extract to a separate migration, check if it exists, maybe check if we
|
7
7
|
# actually have permission to do it, etc.
|
8
|
+
execute 'CREATE EXTENSION "uuid-ossp";'
|
8
9
|
enable_extension "uuid-ossp"
|
9
10
|
enable_extension "hstore"
|
10
11
|
enable_extension "pg_trgm"
|
11
12
|
|
13
|
+
execute 'ALTER EXTENSION "uuid-ossp" SET SCHEMA "public";'
|
12
14
|
execute "CREATE SCHEMA #{Landable.configuration.database_schema_prefix}landable;"
|
13
15
|
|
14
16
|
|
@@ -54,7 +54,7 @@ Landable.configure do |config|
|
|
54
54
|
end
|
55
55
|
|
56
56
|
# Configure asset uploads. Assets will be uploaded to public/uploads by default.
|
57
|
-
# More configuration options: https://github.com/carrierwaveuploader/carrierwave
|
57
|
+
# More configuration options: https://github.com/carrierwaveuploader/carrierwave#using-amazon-s3
|
58
58
|
CarrierWave.configure do |config|
|
59
59
|
# config.asset_host = 'http://cdn.myapp.com'
|
60
60
|
end
|
data/lib/landable/version.rb
CHANGED
@@ -263,15 +263,20 @@ module Landable
|
|
263
263
|
end
|
264
264
|
|
265
265
|
describe '::sitemappable' do
|
266
|
-
let(:page) {
|
266
|
+
let(:page) {
|
267
|
+
create :page do |page|
|
268
|
+
page.publish! author: create(:author), notes: 'yo'
|
269
|
+
end
|
270
|
+
}
|
267
271
|
let(:page_2) { create :page, :redirect }
|
268
272
|
let(:page_3) { create :page, meta_tags: { 'robots' => 'noindex' } }
|
273
|
+
let(:page_4) { create :page }
|
269
274
|
|
270
|
-
it 'only returns pages with a status code of 200 and dont have a noindex tag' do
|
275
|
+
it 'only returns published pages with a status code of 200 and dont have a noindex tag' do
|
271
276
|
page_2.status_code.should == 301
|
272
277
|
|
273
278
|
Landable::Page.sitemappable.should include(page)
|
274
|
-
Landable::Page.sitemappable.should_not include(page_2, page_3)
|
279
|
+
Landable::Page.sitemappable.should_not include(page_2, page_3, page_4)
|
275
280
|
end
|
276
281
|
end
|
277
282
|
|
@@ -324,6 +329,8 @@ module Landable
|
|
324
329
|
describe '::generate_sitemap' do
|
325
330
|
it 'returns a sitemap' do
|
326
331
|
page = create :page
|
332
|
+
page.publish! author: create(:author), notes: 'yo'
|
333
|
+
|
327
334
|
Landable::Page.generate_sitemap(host: 'example.com',
|
328
335
|
protocol: 'http',
|
329
336
|
exclude_categories: [],
|
@@ -341,6 +348,8 @@ module Landable
|
|
341
348
|
|
342
349
|
it 'can handle https protocol' do
|
343
350
|
page = create :page
|
351
|
+
page.publish! author: create(:author), notes: 'yo'
|
352
|
+
|
344
353
|
Landable::Page.generate_sitemap(host: 'example.com',
|
345
354
|
protocol: 'https',
|
346
355
|
exclude_categories: [],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: landable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Trogdor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -311,6 +311,7 @@ executables: []
|
|
311
311
|
extensions: []
|
312
312
|
extra_rdoc_files: []
|
313
313
|
files:
|
314
|
+
- .gemrc
|
314
315
|
- .gitignore
|
315
316
|
- .hound.yml
|
316
317
|
- .rbenv-gemsets
|
@@ -686,7 +687,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
686
687
|
version: '0'
|
687
688
|
requirements: []
|
688
689
|
rubyforge_project:
|
689
|
-
rubygems_version: 2.
|
690
|
+
rubygems_version: 2.2.2
|
690
691
|
signing_key:
|
691
692
|
specification_version: 4
|
692
693
|
summary: Mountable CMS engine for Rails
|