livejournal 0.3.6 → 0.3.7

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. data/Changes +5 -2
  2. data/VERSION +1 -1
  3. data/lib/livejournal/entry.rb +6 -0
  4. metadata +3 -3
data/Changes CHANGED
@@ -1,8 +1,11 @@
1
+ 0.3.7: Fri, Feb 10 2012
2
+ - give_features support (Alexander Logunov)
3
+
1
4
  0.3.6: Fri, Jan 20 2012
2
- - Ruby 1.9.3 compatibility
5
+ - Ruby 1.9.3 compatibility (Aleksandr Zykov)
3
6
 
4
7
  0.3.5: Thu, Jan 19 2012
5
- - Send User-Agent header
8
+ - Send User-Agent header (Aleksandr Zykov)
6
9
 
7
10
  0.3.3: Sat, Apr 23 2011
8
11
  - Populate the list of journals the user has posting access to.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
@@ -54,6 +54,7 @@ module LiveJournal
54
54
  attr_accessor :allowmask
55
55
  attr_accessor :screening # values {:default, :all, :anonymous, :nonfriends, :none}
56
56
  attr_accessor :interface # values {:web, ...}
57
+ attr_accessor :give_features
57
58
 
58
59
  # A hash of any leftover properties (including those in KNOWN_EXTRA_PROPS)
59
60
  # that aren't explicitly supported by ljrb. (See the
@@ -83,6 +84,7 @@ module LiveJournal
83
84
  @security = :public
84
85
  @allowmask = nil
85
86
  @screening = :default
87
+ @give_features = nil
86
88
  @props = {}
87
89
  end
88
90
 
@@ -167,6 +169,8 @@ module LiveJournal
167
169
  @pickeyword = value
168
170
  when 'taglist'
169
171
  @taglist = value.split(/,\s/).sort
172
+ when 'give_features'
173
+ @give_features = value == '1'
170
174
  else
171
175
  # LJ keeps adding props, so we store all leftovers in a hash.
172
176
  # Unfortunately, we don't know which of these need to be passed
@@ -231,6 +235,8 @@ module LiveJournal
231
235
  req['allowmask'] = self.allowmask
232
236
  end
233
237
 
238
+ req['give_features'] = self.give_features ? 1 : 0
239
+
234
240
  req['year'], req['mon'], req['day'] =
235
241
  self.time.year, self.time.mon, self.time.day
236
242
  req['hour'], req['min'] = self.time.hour, self.time.min
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: livejournal
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.6
5
+ version: 0.3.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Evan Martin
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-01-20 00:00:00 Z
14
+ date: 2012-02-10 00:00:00 Z
15
15
  dependencies: []
16
16
 
17
17
  description: LiveJournal module. Post to livejournal, retrieve friends lists, edit entries, sync journal to an offline database.
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements: []
75
75
 
76
76
  rubyforge_project:
77
- rubygems_version: 1.8.11
77
+ rubygems_version: 1.8.15
78
78
  signing_key:
79
79
  specification_version: 3
80
80
  summary: Module for interacting with livejournal