pageflow 13.0.0.beta1 → 13.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pageflow might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b6985a1f5f2effe4bda0411263b904e1b32520a788f76f9533b16f0d5ce5ce0
4
- data.tar.gz: f6bb3eaa7927bb4504522cd55b0cd084e272ee662d3fe90490307b0df7d772a8
3
+ metadata.gz: 4a1249f19677451a2a8ea63ead2957a42a26b2145f8657b9d3d395510e05010e
4
+ data.tar.gz: 25c67378daf94b6b180495a89d45dafa47e32e17e11e9580a2f1e317e8fe505b
5
5
  SHA512:
6
- metadata.gz: 24145fa9c1179167a1f5c71ae979c1bd53f8efd96659e3a86df77ec5314cfbd176bed252124e51a5b4dc29cab0f3d43177c72a39475836ce83efcc87e6ae4bcd
7
- data.tar.gz: 2224cb2c9bc7eb9a06b07bdfc57711207585633f6da242510b885dcd97e69c39d9e13bb6a9dd6ba7fecda398ebc687a8f969f8885e6ba432d8d6fcdbb6b2dff3
6
+ metadata.gz: 550604781f74fb7b64718f8b60a4dc61364759907541ecdac8904f6ef61c95b5db3ac7e02dd7c90be8b73f8058a0525ed20087f083638c69f7c2f6ae3bd00f19
7
+ data.tar.gz: 9336d1d700fdb8834b36e8fa7b31ee4e8cac67b08279e764954421dc7769490bc145824e71ef255bc597e976b5ca58ad15e1edb482cfe402f412f89ebef8dab8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 13.0.0.beta2
4
+
5
+ 2018-07-31
6
+
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/v13.0.0.beta1...v13.0.0.beta2)
8
+
9
+ - Require resque in initializer
10
+ ([#980](https://github.com/codevise/pageflow/pull/980))
11
+ - Use `ar_after_transaction` 0.5
12
+ ([#979](https://github.com/codevise/pageflow/pull/979))
13
+ - Fix handling of null object in presence validation
14
+ ([#978](https://github.com/codevise/pageflow/pull/978))
15
+
3
16
  ### Version 13.0.0.beta1
4
17
 
5
18
  2018-07-30
@@ -33,7 +46,7 @@
33
46
 
34
47
  gem 'resque', '~> 1.25'
35
48
  gem 'resque-scheduler', '~> 2.5'
36
- gem 'ar_after_transaction', '~> 0.4.0'
49
+ gem 'ar_after_transaction', '~> 0.5.0'
37
50
  gem 'redis', '~> 3.0'
38
51
  gem 'redis-namespace', '~> 1.5'
39
52
 
data/README.md CHANGED
@@ -98,7 +98,7 @@ for details.
98
98
  # The install generator sets up Resque as Active Job backend
99
99
  gem 'resque', '~> 1.25'
100
100
  gem 'resque-scheduler', '~> 2.5'
101
- gem 'ar_after_transaction', '~> 0.4.0'
101
+ gem 'ar_after_transaction', '~> 0.5.0'
102
102
  gem 'redis', '~> 3.0'
103
103
  gem 'redis-namespace', '~> 1.5'
104
104
 
@@ -11,5 +11,9 @@ module Pageflow
11
11
  def blank?
12
12
  true
13
13
  end
14
+
15
+ def to_ary
16
+ []
17
+ end
14
18
  end
15
19
  end
@@ -43,13 +43,11 @@ module Pageflow
43
43
  scope :user_snapshots, -> { where(snapshot_type: 'user') }
44
44
  scope :auto_snapshots, -> { where(snapshot_type: 'auto') }
45
45
 
46
- validates :entry, :presence => true
46
+ validates :entry, presence: true
47
+ validates :creator, presence: true, if: :published?
47
48
 
48
- # Workaround for https://github.com/rails/rails/issues/33445
49
- validates_with ActiveModel::Validations::PresenceValidator, attributes: [:creator], if: :published?
50
-
51
- validate :published_until_unchanged, :if => :published_until_was_in_past?
52
- validate :published_until_blank, :if => :published_at_blank?
49
+ validate :published_until_unchanged, if: :published_until_was_in_past?
50
+ validate :published_until_blank, if: :published_at_blank?
53
51
 
54
52
  def main_storyline_chapters
55
53
  main_storyline = storylines.first
@@ -1,3 +1,6 @@
1
+ require 'resque'
2
+ require 'resque_scheduler'
3
+
1
4
  # Change to use your favorite method of configuration. Consider the
2
5
  # dotenv gem to setup your environment with a .env file.
3
6
 
@@ -1,3 +1,3 @@
1
1
  module Pageflow
2
- VERSION = '13.0.0.beta1'.freeze
2
+ VERSION = '13.0.0.beta2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.0.beta1
4
+ version: 13.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-30 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -526,14 +526,14 @@ dependencies:
526
526
  requirements:
527
527
  - - "~>"
528
528
  - !ruby/object:Gem::Version
529
- version: 0.4.0
529
+ version: 0.5.0
530
530
  type: :development
531
531
  prerelease: false
532
532
  version_requirements: !ruby/object:Gem::Requirement
533
533
  requirements:
534
534
  - - "~>"
535
535
  - !ruby/object:Gem::Version
536
- version: 0.4.0
536
+ version: 0.5.0
537
537
  - !ruby/object:Gem::Dependency
538
538
  name: redis
539
539
  requirement: !ruby/object:Gem::Requirement