livejournal 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +15 -0
  2. data/VERSION +1 -1
  3. data/lib/livejournal/entry.rb +9 -4
  4. metadata +5 -7
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDM2ZGFjNjYyMWRmNTcwYWZlODc2YWI0Y2QzOTg0ZTFiOTg5OTAzZg==
5
+ data.tar.gz: !binary |-
6
+ ZDkwODgzNzAwMTIwNzc0Mzc4ZDkxN2VkNTE1MmEzMmY2MWY5ZWYyNQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZmNiOWQ3ODRkZTFiOTM0Y2RiMzM0MmJjZWJhNTA4MmFiMThkZTM2OWY3YTBi
10
+ NGYzMDY4NjI3NTcyMmExY2I4NmI3YzM1NWE3OTBkMWYwYjEyNzFkNzEzZDFi
11
+ OThlMTU0MzA5NmRjN2NjMDM1MDM1NjVhMWVhZWIzMTQ3ZGIxMjQ=
12
+ data.tar.gz: !binary |-
13
+ OWQ0ZTMzOGM4ZTEyNjU3ODlmZTVmZDhjYzI3YTNjZDBlNWJlY2RhYjI5YjM0
14
+ NjBmZmEyNjljNTY4MmZkZWYzMDg3YjE3OTg5N2E2YTQyZTg3NWUxMWJhMTY4
15
+ YjliNjRkYzEzZmY3NDA5MDNjOTI5ZDMyMWQ5M2I0MjUzNzgyZTI=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.3.9
@@ -80,7 +80,6 @@ module LiveJournal
80
80
  @preformatted = false
81
81
  @backdated = false
82
82
  @comments = :normal
83
- @time = Time.now
84
83
  @security = :public
85
84
  @allowmask = nil
86
85
  @screening = :default
@@ -237,9 +236,15 @@ module LiveJournal
237
236
 
238
237
  req['give_features'] = self.give_features ? 1 : 0
239
238
 
240
- req['year'], req['mon'], req['day'] =
241
- self.time.year, self.time.mon, self.time.day
242
- req['hour'], req['min'] = self.time.hour, self.time.min
239
+ if req['mode'] == 'postevent' && self.time.nil?
240
+ self.time = Time.now.gmtime
241
+ end
242
+
243
+ if self.time
244
+ req['year'], req['mon'], req['day'] =
245
+ self.time.year, self.time.mon, self.time.day
246
+ req['hour'], req['min'] = self.time.hour, self.time.min
247
+ end
243
248
 
244
249
  { 'current_mood' => self.mood,
245
250
  'current_moodid' => self.moodid,
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livejournal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
5
- prerelease:
4
+ version: 0.3.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Evan Martin
@@ -10,7 +9,7 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-04-28 00:00:00.000000000 Z
12
+ date: 2014-02-18 00:00:00.000000000 Z
14
13
  dependencies: []
15
14
  description: LiveJournal module. Post to livejournal, retrieve friends lists, edit
16
15
  entries, sync journal to an offline database.
@@ -50,26 +49,25 @@ files:
50
49
  - test/time.rb
51
50
  homepage: http://neugierig.org/software/livejournal/ruby/
52
51
  licenses: []
52
+ metadata: {}
53
53
  post_install_message:
54
54
  rdoc_options: []
55
55
  require_paths:
56
56
  - lib
57
57
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
58
  requirements:
60
59
  - - ! '>='
61
60
  - !ruby/object:Gem::Version
62
61
  version: '0'
63
62
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
63
  requirements:
66
64
  - - ! '>='
67
65
  - !ruby/object:Gem::Version
68
66
  version: '0'
69
67
  requirements: []
70
68
  rubyforge_project:
71
- rubygems_version: 1.8.23
69
+ rubygems_version: 2.1.11
72
70
  signing_key:
73
- specification_version: 3
71
+ specification_version: 4
74
72
  summary: Module for interacting with livejournal
75
73
  test_files: []