illyan_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{illyan_client}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nat Budin"]
12
- s.date = %q{2011-03-24}
12
+ s.date = %q{2011-05-16}
13
13
  s.email = %q{natbudin@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
data/lib/illyan_client.rb CHANGED
@@ -1,10 +1,17 @@
1
1
  require 'active_resource'
2
2
 
3
3
  module IllyanClient
4
+ mattr_reader :base_url
5
+
4
6
  def self.base_url=(url)
7
+ @@base_url = url
5
8
  Person.site = "#{url}/admin"
6
9
  end
7
10
 
11
+ def self.token
12
+ Person.user
13
+ end
14
+
8
15
  def self.token=(token)
9
16
  Person.user = token
10
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: illyan_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nat Budin
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-24 00:00:00 -04:00
18
+ date: 2011-05-16 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
22
  type: :development
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
@@ -32,8 +31,8 @@ dependencies:
32
31
  version: "0"
33
32
  name: shoulda
34
33
  version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
34
  prerelease: false
35
+ - !ruby/object:Gem::Dependency
37
36
  type: :development
38
37
  requirement: &id002 !ruby/object:Gem::Requirement
39
38
  none: false
@@ -48,8 +47,8 @@ dependencies:
48
47
  version: 1.0.0
49
48
  name: bundler
50
49
  version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
50
  prerelease: false
51
+ - !ruby/object:Gem::Dependency
53
52
  type: :development
54
53
  requirement: &id003 !ruby/object:Gem::Requirement
55
54
  none: false
@@ -64,8 +63,8 @@ dependencies:
64
63
  version: 1.5.2
65
64
  name: jeweler
66
65
  version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
66
  prerelease: false
67
+ - !ruby/object:Gem::Dependency
69
68
  type: :development
70
69
  requirement: &id004 !ruby/object:Gem::Requirement
71
70
  none: false
@@ -78,8 +77,8 @@ dependencies:
78
77
  version: "0"
79
78
  name: rcov
80
79
  version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
80
  prerelease: false
81
+ - !ruby/object:Gem::Dependency
83
82
  type: :runtime
84
83
  requirement: &id005 !ruby/object:Gem::Requirement
85
84
  none: false
@@ -92,6 +91,7 @@ dependencies:
92
91
  version: "0"
93
92
  name: activeresource
94
93
  version_requirements: *id005
94
+ prerelease: false
95
95
  description:
96
96
  email: natbudin@gmail.com
97
97
  executables: []