artifact 0.2.9 → 0.3.0

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: 0ed2d59735852d7b822ffc6011f150e7a77108b9
4
- data.tar.gz: 8229aba4be49909f8ef96f6c828a98e5ddc57176
3
+ metadata.gz: 4f68a0015fe6eca6069d167caefb003cff3dc1c5
4
+ data.tar.gz: dfb80980bc99fee45ed86d9b1324f720c1f12f18
5
5
  SHA512:
6
- metadata.gz: 316aa5e130483fd92fe8446348f328e1da0de0551d637294848b2f5b4ee7107a04c1e3176ebeb4f5b4086b69afd5de8127b9caf1dd44f09f1c615959f8b9dd1d
7
- data.tar.gz: 4347bc951d6826a04da3f53494d7f01e8f00362d26589764527a5c1e59dfb405b3991199cb4d5d5ff597dc6ce064281853fa277d2102a0a0605e0d5118f1a870
6
+ metadata.gz: d493385ab5ec711f2ca452204e951732d9eeb5ea5537b72c1c189346bb9e3a3c097ae31063b95db5116f9742aab61bea912d63d3b59c7b707cab275dc8af72f9
7
+ data.tar.gz: a196d65b4a1b88921e80e2cdeb728f9b4e1eb4640e05e35be37c70c6a6ed4f25588e2c0b6d9767635186c2615d0abbfe56e7ddec21c46a9562700a1533602ed7
@@ -94,6 +94,8 @@ module Artifact
94
94
 
95
95
  @file = Artifact.drafts.new(filename, POST_EXTENSION)
96
96
  @file.update(params[:content], data)
97
+
98
+ updated!
97
99
  redirect to('/posts')
98
100
  end
99
101
 
@@ -129,7 +131,7 @@ module Artifact
129
131
  elsif params[:save] == 'Unpublish'
130
132
  unpublish_post!(@post)
131
133
  else
132
- @just_saved = true
134
+ @just_saved = true
133
135
  end
134
136
  end
135
137
 
@@ -183,7 +185,7 @@ module Artifact
183
185
  else
184
186
  # puts "Meta date is #{meta[:date]}"
185
187
  return false unless valid_date?(meta[:date])
186
- end
188
+ end
187
189
 
188
190
  meta[:author] = current_user[:name] unless meta[:author]
189
191
  meta
@@ -1,3 +1,3 @@
1
1
  module Artifact
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-23 00:00:00.000000000 Z
11
+ date: 2016-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler