taskmapper-pivotal 0.9.0 → 0.9.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -14,13 +14,13 @@ module TaskMapper::Provider
14
14
  def authorize(auth = {})
15
15
  @authentication ||= TaskMapper::Authenticator.new(auth)
16
16
  auth = @authentication
17
- if auth.token.empty?
18
- raise "You should pass a token for authentication"
19
- end
17
+
20
18
  if auth.token
21
19
  PivotalAPI.token = auth.token
22
20
  elsif auth.username && auth.password
23
21
  PivotalAPI.authenticate(auth.username, auth.password)
22
+ else
23
+ raise "You should pass a token or a username and password for authentication"
24
24
  end
25
25
  end
26
26
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "taskmapper-pivotal"
8
- s.version = "0.9.0"
8
+ s.version = "0.9.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["HybridGroup"]
12
- s.date = "2013-04-16"
12
+ s.date = "2013-05-29"
13
13
  s.description = "This is a taskmapper provider for interacting with Pivotal Tracker ."
14
14
  s.email = "hong.quach@abigfisch.com"
15
15
  s.extra_rdoc_files = [
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
49
49
  ]
50
50
  s.homepage = "http://ticket.rb"
51
51
  s.require_paths = ["lib"]
52
- s.rubygems_version = "1.8.24"
52
+ s.rubygems_version = "1.8.25"
53
53
  s.summary = "This is a taskmapper provider for interacting with Pivotal Tracker"
54
54
 
55
55
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskmapper-pivotal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
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: 2013-04-16 00:00:00.000000000 Z
12
+ date: 2013-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: taskmapper
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: 1917587501135066489
145
+ hash: 4019625607947363673
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  none: false
148
148
  requirements:
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 1.8.24
154
+ rubygems_version: 1.8.25
155
155
  signing_key:
156
156
  specification_version: 3
157
157
  summary: This is a taskmapper provider for interacting with Pivotal Tracker