nakamura 0.1 → 0.2

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 (2) hide show
  1. data/lib/nakamura.rb +9 -2
  2. metadata +7 -7
data/lib/nakamura.rb CHANGED
@@ -8,6 +8,13 @@ require 'yaml'
8
8
  require 'nakamura/users'
9
9
  require 'logger'
10
10
 
11
+ # Convert time to nanoseconds
12
+ class Time
13
+ def to_nsec
14
+ self.to_f.to_s.gsub(".", "").to_i
15
+ end
16
+ end
17
+
11
18
  class String
12
19
  def base64_decode
13
20
  unpack('m').first
@@ -256,8 +263,8 @@ module SlingInterface
256
263
  @log.debug("Set-Cookie header #{setcookie} ")
257
264
  setcookie.each do |cookieitem|
258
265
  cookie = cookieitem.split(/;/)[0]
259
- cookiename = cookie.split(/=/)[0]
260
- value = cookie.split(/=/)[1]
266
+ cookiename = cookie.split(/\=/)[0]
267
+ value = cookie.split(/\=/)[1]
261
268
  cookievalue = "#{cookiename}=#{value}"
262
269
  if ( @cookies[cookiename] != cookievalue )
263
270
  @cookies[cookiename] = cookievalue
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nakamura
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-30 00:00:00.000000000Z
12
+ date: 2011-10-17 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Ruby library for interacting with Sakai Nakamura. Provides convenience
15
15
  methods for adding users and groups and other similar tasks.
@@ -18,14 +18,14 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - lib/nakamura/test.rb
22
21
  - lib/nakamura/authz.rb
23
- - lib/nakamura/full_group_creator.rb
24
- - lib/nakamura/users.rb
25
22
  - lib/nakamura/contacts.rb
23
+ - lib/nakamura/file.rb
24
+ - lib/nakamura/full_group_creator.rb
26
25
  - lib/nakamura/message.rb
27
26
  - lib/nakamura/search.rb
28
- - lib/nakamura/file.rb
27
+ - lib/nakamura/test.rb
28
+ - lib/nakamura/users.rb
29
29
  - lib/nakamura.rb
30
30
  homepage: http://sakaiproject.org
31
31
  licenses: []
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - none
50
50
  rubyforge_project:
51
- rubygems_version: 1.8.6
51
+ rubygems_version: 1.8.10
52
52
  signing_key:
53
53
  specification_version: 3
54
54
  summary: Ruby library for interacting with Sakai Nakamura.