cameroncox-mousetrap 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -2,7 +2,8 @@ module Mousetrap
2
2
  class Plan < Resource
3
3
  attr_accessor \
4
4
  :code,
5
- :name
5
+ :name,
6
+ :items
6
7
 
7
8
  def self.all
8
9
  response = get_resources plural_resource_name
@@ -23,7 +24,8 @@ module Mousetrap
23
24
  def self.attributes_from_api(attributes)
24
25
  {
25
26
  :code => attributes['code'],
26
- :name => attributes['name']
27
+ :name => attributes['name'],
28
+ :items => attributes['items']
27
29
  }
28
30
  end
29
31
  end
@@ -20,7 +20,8 @@ module Mousetrap
20
20
  :created_at,
21
21
  :credit_card_expiration_date,
22
22
  :credit_card_last_four_digits,
23
- :credit_card_type
23
+ :credit_card_type,
24
+ :items
24
25
 
25
26
  def self.[](code)
26
27
  raise_api_unsupported_error
@@ -123,6 +124,7 @@ module Mousetrap
123
124
  :credit_card_expiration_date => attributes['ccExpirationDate'],
124
125
  :credit_card_last_four_digits => attributes['ccLastFour'],
125
126
  :credit_card_type => attributes['ccType'],
127
+ :items => attributes['items']
126
128
  }
127
129
  end
128
130
  end
@@ -1,3 +1,3 @@
1
1
  settings = YAML.load_file(File.expand_path('../cheddar_getter.yml', __FILE__))
2
- Mousetrap.authenticate settings['user'], settings['password']
2
+ Mousetrap.authenticate settings['username'], settings['password']
3
3
  Mousetrap.product_code = settings['product_code']
data/script/console CHANGED
@@ -1 +1 @@
1
- irb -r ubygems -r lib/mousetrap.rb -r factory_girl -r spec/support/random_data.rb -r script/authenticate.rb
1
+ irb -r ubygems -r lib/mousetrap.rb -r script/authenticate.rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cameroncox-mousetrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Larkowski
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2009-11-17 00:00:00 -05:00
15
+ date: 2009-11-19 00:00:00 -05:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency