marte-ruby 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/marte/token.rb CHANGED
@@ -33,8 +33,8 @@ module Marte
33
33
  cnonce=rand(1000000000)
34
34
 
35
35
  #now we prepare the signature. It is a HMAC:SHA1 of "timestamp,cnonce,username,ro
36
- to_sign="#{timestamp},#{cnonce},#{user.name},#{role},#{ user.id }"
37
- extra_header=",mauth_username=\"#{user.name}\",mauth_role=\"#{role}\",mauth_external_uid\=#{ user.id }"
36
+ to_sign="#{timestamp},#{cnonce},#{user.slug},#{role},#{ user.id }"
37
+ extra_header=",mauth_username=\"#{user.slug}\",mauth_role=\"#{role}\",mauth_external_uid\=#{ user.id }"
38
38
 
39
39
  #puts "cosas pa firmar " + to_sign
40
40
  signature=Base64.encode64(HMAC::SHA1.hexdigest(KEY, to_sign)).chomp.gsub(/\n/,'')
data/lib/marte/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marte
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/marte-ruby.rb CHANGED
@@ -2,7 +2,3 @@ module Marte
2
2
  end
3
3
 
4
4
  require "marte/token"
5
-
6
-
7
-
8
-
data/marte-ruby.gemspec CHANGED
@@ -5,8 +5,8 @@ require "marte/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "marte-ruby"
7
7
  s.version = Marte::VERSION
8
- s.authors = ["Aldo Gordillo"]
9
- s.email = ["iamchrono@gmail.com"]
8
+ s.authors = ["GING - UPM"]
9
+ s.email = ["social-stream@dit.upm.es"]
10
10
  s.homepage = "https://github.com/ging/marte-ruby"
11
11
  s.summary = "Gem summary"
12
12
  s.description = "Gem description"
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
20
20
 
21
21
 
22
22
  # Gem dependencies
23
- s.add_development_dependency "rspec", "2.1.0"
24
- s.add_dependency "rails", "3.0.1"
25
- s.add_dependency('activeresource', '~> 3.0.1')
26
-
23
+ s.add_dependency('activeresource', '> 3.0.1')
24
+ s.add_dependency('ruby-hmac')
25
+
26
+ s.add_development_dependency "rspec", "> 2.1.0"
27
27
  end
28
28
 
metadata CHANGED
@@ -1,54 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marte-ruby
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease:
5
- version: 0.0.1
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
12
  authors:
8
- - Aldo Gordillo
13
+ - GING - UPM
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-06-27 00:00:00 +02:00
18
+ date: 2011-09-21 00:00:00 +02:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
- name: rspec
22
+ name: activeresource
18
23
  prerelease: false
19
24
  requirement: &id001 !ruby/object:Gem::Requirement
20
25
  none: false
21
26
  requirements:
22
- - - "="
27
+ - - ">"
23
28
  - !ruby/object:Gem::Version
24
- version: 2.1.0
25
- type: :development
29
+ hash: 5
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 1
34
+ version: 3.0.1
35
+ type: :runtime
26
36
  version_requirements: *id001
27
37
  - !ruby/object:Gem::Dependency
28
- name: rails
38
+ name: ruby-hmac
29
39
  prerelease: false
30
40
  requirement: &id002 !ruby/object:Gem::Requirement
31
41
  none: false
32
42
  requirements:
33
- - - "="
43
+ - - ">="
34
44
  - !ruby/object:Gem::Version
35
- version: 3.0.1
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
36
49
  type: :runtime
37
50
  version_requirements: *id002
38
51
  - !ruby/object:Gem::Dependency
39
- name: activeresource
52
+ name: rspec
40
53
  prerelease: false
41
54
  requirement: &id003 !ruby/object:Gem::Requirement
42
55
  none: false
43
56
  requirements:
44
- - - ~>
57
+ - - ">"
45
58
  - !ruby/object:Gem::Version
46
- version: 3.0.1
47
- type: :runtime
59
+ hash: 11
60
+ segments:
61
+ - 2
62
+ - 1
63
+ - 0
64
+ version: 2.1.0
65
+ type: :development
48
66
  version_requirements: *id003
49
67
  description: Gem description
50
68
  email:
51
- - iamchrono@gmail.com
69
+ - social-stream@dit.upm.es
52
70
  executables: []
53
71
 
54
72
  extensions: []
@@ -130,17 +148,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
148
  requirements:
131
149
  - - ">="
132
150
  - !ruby/object:Gem::Version
151
+ hash: 3
152
+ segments:
153
+ - 0
133
154
  version: "0"
134
155
  required_rubygems_version: !ruby/object:Gem::Requirement
135
156
  none: false
136
157
  requirements:
137
158
  - - ">="
138
159
  - !ruby/object:Gem::Version
160
+ hash: 3
161
+ segments:
162
+ - 0
139
163
  version: "0"
140
164
  requirements: []
141
165
 
142
166
  rubyforge_project: marte-ruby
143
- rubygems_version: 1.6.1
167
+ rubygems_version: 1.6.2
144
168
  signing_key:
145
169
  specification_version: 3
146
170
  summary: Gem summary