monkey_party 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  module MonkeyParty
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
4
4
 
data/lib/monkey_party.rb CHANGED
@@ -17,7 +17,7 @@ module MonkeyParty
17
17
  @data_center || default_data_center
18
18
  end
19
19
 
20
- def self.data_center
20
+ def self.default_data_center
21
21
  "us1"
22
22
  end
23
23
  end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe MonkeyParty do
4
+ let(:new_api_key) { "an api key" }
5
+ let(:new_data_center) { "us3" }
6
+ it "allows for the setting of an api key" do
7
+ old_key = MonkeyParty.api_key.dup
8
+
9
+ MonkeyParty.api_key = new_api_key
10
+ MonkeyParty.api_key.should eql(new_api_key)
11
+
12
+ #revert api key
13
+ MonkeyParty.api_key = old_key
14
+ end
15
+
16
+ it "allows for the setting of a datacenter" do
17
+ old_center = MonkeyParty.data_center.dup
18
+
19
+ MonkeyParty.data_center = new_data_center
20
+ MonkeyParty.data_center.should eql(new_data_center)
21
+
22
+ #revert data center
23
+ MonkeyParty.data_center = old_center
24
+ end
25
+
26
+ it "defaults the data center to us1" do
27
+ old_center = MonkeyParty.data_center.dup
28
+
29
+ MonkeyParty.data_center = nil
30
+ MonkeyParty.data_center.should eql("us1")
31
+
32
+ #revert data center
33
+ MonkeyParty.data_center = old_center
34
+ end
35
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monkey_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &2151858200 !ruby/object:Gem::Requirement
16
+ requirement: &2152936260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2151858200
24
+ version_requirements: *2152936260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: happymapper
27
- requirement: &2151856100 !ruby/object:Gem::Requirement
27
+ requirement: &2152935640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.4.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2151856100
35
+ version_requirements: *2152935640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &2151870260 !ruby/object:Gem::Requirement
38
+ requirement: &2152934700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2151870260
46
+ version_requirements: *2152934700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &2151868780 !ruby/object:Gem::Requirement
49
+ requirement: &2152933800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2151868780
57
+ version_requirements: *2152933800
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: fakeweb
60
- requirement: &2151867840 !ruby/object:Gem::Requirement
60
+ requirement: &2152887460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2151867840
68
+ version_requirements: *2152887460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: vcr
71
- requirement: &2151867100 !ruby/object:Gem::Requirement
71
+ requirement: &2152886640 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2151867100
79
+ version_requirements: *2152886640
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: guard-rspec
82
- requirement: &2151866460 !ruby/object:Gem::Requirement
82
+ requirement: &2152886180 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2151866460
90
+ version_requirements: *2152886180
91
91
  description: A web wrapper for mailchimp
92
92
  email:
93
93
  - dan.pickett@launchware.com
@@ -116,6 +116,7 @@ files:
116
116
  - spec/cassettes/MonkeyParty_List/unsubscribing/should_have_valid_subscribers.yml
117
117
  - spec/monkey_party/list_spec.rb
118
118
  - spec/monkey_party/subscriber_spec.rb
119
+ - spec/monkey_party_spec.rb
119
120
  - spec/spec_helper.rb
120
121
  - spec/support/credentials.rb.example
121
122
  - spec/support/vcr.rb
@@ -133,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
134
  version: '0'
134
135
  segments:
135
136
  - 0
136
- hash: -1872632580927280923
137
+ hash: -3255199500737051688
137
138
  required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  none: false
139
140
  requirements:
@@ -142,10 +143,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  version: '0'
143
144
  segments:
144
145
  - 0
145
- hash: -1872632580927280923
146
+ hash: -3255199500737051688
146
147
  requirements: []
147
148
  rubyforge_project:
148
- rubygems_version: 1.8.15
149
+ rubygems_version: 1.8.17
149
150
  signing_key:
150
151
  specification_version: 3
151
152
  summary: A web wrapper for mailchimp
@@ -155,6 +156,7 @@ test_files:
155
156
  - spec/cassettes/MonkeyParty_List/unsubscribing/should_have_valid_subscribers.yml
156
157
  - spec/monkey_party/list_spec.rb
157
158
  - spec/monkey_party/subscriber_spec.rb
159
+ - spec/monkey_party_spec.rb
158
160
  - spec/spec_helper.rb
159
161
  - spec/support/credentials.rb.example
160
162
  - spec/support/vcr.rb