dpickett-monkey_party 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
+ :patch: 0
2
3
  :major: 0
3
- :minor: 0
4
- :patch: 3
4
+ :minor: 1
@@ -17,7 +17,7 @@ module MonkeyParty
17
17
  def to_mailchimp_hash
18
18
  chimp_hash = {}
19
19
  self.to_h.each do |key, value|
20
- chimp_hash[key.to_s.upcase] = value
20
+ chimp_hash[key.to_s.upcase[0..9]] = value
21
21
  end
22
22
 
23
23
  chimp_hash
@@ -33,5 +33,12 @@ class MonkeyParty::SubscriberTest < Test::Unit::TestCase
33
33
 
34
34
  assert_equal intended_hash, @subscriber.to_mailchimp_hash
35
35
  end
36
+
37
+ should "limit merge vars to 10 characters" do
38
+ @merge_vars = {:a_really_long_merge_var => "LONG ONE"}
39
+ @subscriber = MonkeyParty::Subscriber.new(@email, @merge_vars)
40
+ assert @subscriber.to_mailchimp_hash.keys.include?("A_REALLY_L")
41
+
42
+ end
36
43
  end
37
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpickett-monkey_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-03 00:00:00 -07:00
12
+ date: 2009-04-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency