pulitzer 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 206f885a89b8408acce08d2c332569cef918514a
4
- data.tar.gz: 1d5f2ec8dc5e1641eda6982cb73d7489b2262095
3
+ metadata.gz: 6d40d59b891490d601a135e91d4ea2b8283186b3
4
+ data.tar.gz: 7836dc75234a4dc3c1fba135eaedf4f9351202fd
5
5
  SHA512:
6
- metadata.gz: b2896387102f3aeb2b11c0252d27a3c563e66c36eac0754fdf7258330949765beb1112e6da34d03bb1a99ee57434c175d505e8534345f250bfadcd09776c48ab
7
- data.tar.gz: c867c5a8e557a33c0020e508881ff64584e98f23b3e865fcb06f5bc1e67912501798fdd5d780c8d34677960d1fdc3af07695958a681a66ebe11420e9feb6a9e1
6
+ metadata.gz: 4786ee5ea52bad85b78de9018ce3868f2c4f800f5b50885df193fccc2e7153b360ed42c8f17b2914d2ac6cba0ae00975b67741b31cf8e793a78f64bbb20cd365
7
+ data.tar.gz: 73576bb142c76639b90d5b0f0ceff217317744f2a1fd2704616c5b70979b7c8e73b7b962f94d080477ff0a4e2731c9022b229089a82fde3efbdc74f268e5e0f8
@@ -18,6 +18,10 @@ module Pulitzer
18
18
 
19
19
  TAG_MODELS = ["Pulitzer::Tag"] + Pulitzer.tagging_models
20
20
 
21
+ def active_version!
22
+ versions.find_by!(status: Pulitzer::Version.statuses[:active])
23
+ end
24
+
21
25
  def tags
22
26
  post_tags.map(&:label)
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Pulitzer
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulitzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-30 00:00:00.000000000 Z
12
+ date: 2016-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -1188,7 +1188,6 @@ files:
1188
1188
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zCE4JkQwmMez5O33XjI-mABQ0c1-Dt6uhqKy-KsYpdk.cache
1189
1189
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zY3-Idml-ZQrcJVsKZGBRCaW0-SkSTzwgiMjrYHuTDs.cache
1190
1190
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zhJySWBZw0Pq2ZI_UdWsnzhyQ8TO63FQD8R15hSvuSE.cache
1191
- - spec/dummy/tmp/pids/server.pid
1192
1191
  - spec/factories/content_element.rb
1193
1192
  - spec/factories/content_element_type.rb
1194
1193
  - spec/factories/post.rb
@@ -1830,7 +1829,6 @@ test_files:
1830
1829
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zhJySWBZw0Pq2ZI_UdWsnzhyQ8TO63FQD8R15hSvuSE.cache
1831
1830
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ZjBqeG0gIw6FGMJNf3SfetLANwnN9uYtSvhD6LpH7N0.cache
1832
1831
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zY3-Idml-ZQrcJVsKZGBRCaW0-SkSTzwgiMjrYHuTDs.cache
1833
- - spec/dummy/tmp/pids/server.pid
1834
1832
  - spec/factories/content_element.rb
1835
1833
  - spec/factories/content_element_type.rb
1836
1834
  - spec/factories/post.rb
@@ -1 +0,0 @@
1
- 27861