cameroncox-mousetrap 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -52,93 +52,10 @@ end
52
52
 
53
53
  require 'rake/gempackagetask'
54
54
 
55
- gem_spec = Gem::Specification.new do |s|
56
- s.name = %q{cameroncox-mousetrap}
57
- s.version = "0.6.1"
58
-
59
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
60
- s.authors = ["Jon Larkowski", "Sandro Turriate", "Wolfram Arnold", "Corey Grusden"]
61
- s.date = %q{2010-07-16}
62
- s.description = %q{CheddarGetter API Client in Ruby}
63
- s.email = %q{jonlarkowski@gmail.com}
64
- s.extra_rdoc_files = [
65
- "README.textile"
66
- ]
67
- s.files = [
68
- ".document",
69
- ".gitignore",
70
- "MIT-LICENSE",
71
- "README.textile",
72
- "Rakefile",
73
- "VERSION",
74
- "lib/mousetrap.rb",
75
- "lib/mousetrap/customer.rb",
76
- "lib/mousetrap/invoice.rb",
77
- "lib/mousetrap/plan.rb",
78
- "lib/mousetrap/resource.rb",
79
- "lib/mousetrap/subscription.rb",
80
- "mousetrap.gemspec",
81
- "script/authenticate.rb",
82
- "script/cheddar_getter.example.yml",
83
- "script/console",
84
- "spec/factories.rb",
85
- "spec/integration/settings.example.yml",
86
- "spec/integration/smoke_test.rb",
87
- "spec/integration/spike.rb",
88
- "spec/mousetrap/customer_spec.rb",
89
- "spec/mousetrap/plan_spec.rb",
90
- "spec/mousetrap/resource_spec.rb",
91
- "spec/mousetrap/subscription_spec.rb",
92
- "spec/mousetrap_spec.rb",
93
- "spec/spec.opts",
94
- "spec/spec_helper.rb",
95
- "spec/support/fixtures.rb",
96
- "spec/support/random_data.rb"
97
- ]
98
- s.homepage = %q{http://github.com/cameroncox/mousetrap}
99
- s.rdoc_options = ["--charset=UTF-8"]
100
- s.require_paths = ["lib"]
101
- s.rubygems_version = %q{1.3.7}
102
- s.summary = %q{CheddarGetter API Client in Ruby}
103
- s.test_files = [
104
- "spec/factories.rb",
105
- "spec/integration/smoke_test.rb",
106
- "spec/integration/spike.rb",
107
- "spec/mousetrap/customer_spec.rb",
108
- "spec/mousetrap/plan_spec.rb",
109
- "spec/mousetrap/resource_spec.rb",
110
- "spec/mousetrap/subscription_spec.rb",
111
- "spec/mousetrap_spec.rb",
112
- "spec/spec_helper.rb",
113
- "spec/support/fixtures.rb",
114
- "spec/support/random_data.rb"
115
- ]
116
-
117
- if s.respond_to? :specification_version then
118
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
119
- s.specification_version = 3
120
-
121
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
122
- s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
123
- s.add_development_dependency(%q<activesupport>, [">= 2.3.3"])
124
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
125
- s.add_development_dependency(%q<factory_girl>, [">= 1.2.3"])
126
- else
127
- s.add_dependency(%q<httparty>, [">= 0.6.1"])
128
- s.add_dependency(%q<activesupport>, [">= 2.3.3"])
129
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
130
- s.add_dependency(%q<factory_girl>, [">= 1.2.3"])
131
- end
132
- else
133
- s.add_dependency(%q<httparty>, [">= 0.6.1"])
134
- s.add_dependency(%q<activesupport>, [">= 2.3.3"])
135
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
136
- s.add_dependency(%q<factory_girl>, [">= 1.2.3"])
137
- end
138
- end
139
-
140
- Rake::GemPackageTask.new(gem_spec) do |p|
141
- p.gem_spec = gem_spec
55
+ eval("$spec = #{File.read('./mousetrap.gemspec')};")
56
+ $spec.name = "cameroncox-mousetrap"
57
+ Rake::GemPackageTask.new($spec) do |p|
58
+ p.gem_spec = $spec
142
59
  p.need_tar = true
143
60
  p.need_zip = true
144
61
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -7,6 +7,7 @@ module Mousetrap
7
7
  :first_name,
8
8
  :last_name,
9
9
  :company,
10
+ :notes,
10
11
  :subscription,
11
12
  :charges,
12
13
  :items
@@ -62,6 +63,7 @@ module Mousetrap
62
63
  :first_name => first_name,
63
64
  :last_name => last_name,
64
65
  :company => company,
66
+ :notes => notes,
65
67
  :charges => charges,
66
68
  :items => items
67
69
  }
@@ -155,7 +157,8 @@ module Mousetrap
155
157
  :email => attributes[:email],
156
158
  :firstName => attributes[:first_name],
157
159
  :lastName => attributes[:last_name],
158
- :company => attributes[:company]
160
+ :company => attributes[:company],
161
+ :notes => attributes[:notes]
159
162
  }
160
163
 
161
164
  mutated_hash.merge!(:charges => attributes[:charges]) if attributes[:charges]
@@ -171,7 +174,8 @@ module Mousetrap
171
174
  :first_name => attributes['firstName'],
172
175
  :last_name => attributes['lastName'],
173
176
  :company => attributes['company'],
174
- :email => attributes['email']
177
+ :email => attributes['email'],
178
+ :notes => attributes['notes']
175
179
  }
176
180
  end
177
181
 
data/mousetrap.gemspec CHANGED
@@ -4,12 +4,12 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{cameroncox-mousetrap}
8
- s.version = "0.6.1"
7
+ s.name = %q{mousetrap}
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jon Larkowski", "Sandro Turriate", "Wolfram Arnold", "Corey Grusden"]
12
- s.date = %q{2010-07-16}
12
+ s.date = %q{2010-08-10}
13
13
  s.description = %q{CheddarGetter API Client in Ruby}
14
14
  s.email = %q{jonlarkowski@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
46
46
  "spec/support/fixtures.rb",
47
47
  "spec/support/random_data.rb"
48
48
  ]
49
- s.homepage = %q{http://github.com/cameroncox/mousetrap}
49
+ s.homepage = %q{http://github.com/hashrocket/mousetrap}
50
50
  s.rdoc_options = ["--charset=UTF-8"]
51
51
  s.require_paths = ["lib"]
52
52
  s.rubygems_version = %q{1.3.7}
data/spec/factories.rb CHANGED
@@ -19,6 +19,7 @@ Factory.define :subscription, :class => Mousetrap::Subscription, :default_strate
19
19
  f.credit_card_number '4111111111111111'
20
20
  f.credit_card_expiration_month '12'
21
21
  f.credit_card_expiration_year '2012'
22
+ f.credit_card_code '123'
22
23
  f.billing_address "400 W 7th St\n#200"
23
24
  f.billing_city 'Bloomington'
24
25
  f.billing_state 'IN'
@@ -30,5 +31,6 @@ Factory.define :alternate_subscription, :parent => :subscription, :default_strat
30
31
  f.credit_card_number '5555555555554444'
31
32
  f.credit_card_expiration_month '7'
32
33
  f.credit_card_expiration_year '2013'
34
+ f.credit_card_code '456'
33
35
  f.billing_zip_code '12345'
34
36
  end
@@ -10,6 +10,7 @@ describe Mousetrap::Customer do
10
10
  :email => customer.email,
11
11
  :company => customer.company,
12
12
  :code => customer.code,
13
+ :notes => customer.notes,
13
14
  :subscription => {
14
15
  :planCode => customer.subscription.plan_code,
15
16
  :ccFirstName => customer.subscription.billing_first_name,
@@ -17,6 +18,7 @@ describe Mousetrap::Customer do
17
18
  :ccNumber => customer.subscription.credit_card_number,
18
19
  :ccExpMonth => customer.subscription.credit_card_expiration_month,
19
20
  :ccExpYear => customer.subscription.credit_card_expiration_year,
21
+ :ccCardCode => customer.subscription.credit_card_code,
20
22
  :ccZip => customer.subscription.billing_zip_code,
21
23
  :ccCountry => customer.subscription.billing_country,
22
24
  :ccAddress => customer.subscription.billing_address,
@@ -93,7 +95,8 @@ describe Mousetrap::Customer do
93
95
  :first_name => 'Jon',
94
96
  :last_name => 'Larkowski',
95
97
  :email => 'lark@example.com',
96
- :code => 'asfkhw0'
98
+ :code => 'asfkhw0',
99
+ :notes => 'Lorem ipsum dolor'
97
100
  end
98
101
 
99
102
  it { should be_instance_of(Mousetrap::Customer) }
@@ -115,6 +118,10 @@ describe Mousetrap::Customer do
115
118
  it 'code' do
116
119
  subject.code.should == 'asfkhw0'
117
120
  end
121
+
122
+ it 'notes' do
123
+ subject.notes.should == 'Lorem ipsum dolor'
124
+ end
118
125
  end
119
126
  end
120
127
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cameroncox-mousetrap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jon Larkowski
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-07-16 00:00:00 -04:00
21
+ date: 2010-08-10 00:00:00 -04:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -124,7 +124,7 @@ files:
124
124
  - spec/support/fixtures.rb
125
125
  - spec/support/random_data.rb
126
126
  has_rdoc: true
127
- homepage: http://github.com/cameroncox/mousetrap
127
+ homepage: http://github.com/hashrocket/mousetrap
128
128
  licenses: []
129
129
 
130
130
  post_install_message: