saucy 0.2.42 → 0.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile
CHANGED
|
@@ -8,7 +8,7 @@ gem "thin"
|
|
|
8
8
|
gem "clearance", :git => "git://github.com/thoughtbot/clearance.git", :require => false
|
|
9
9
|
gem "shoulda", :require => false
|
|
10
10
|
gem "bourne", :require => false
|
|
11
|
-
gem "sqlite3
|
|
11
|
+
gem "sqlite3", :require => false
|
|
12
12
|
gem "factory_girl", :require => false
|
|
13
13
|
gem "sinatra"
|
|
14
14
|
gem "sham_rack"
|
data/Gemfile.lock
CHANGED
|
@@ -9,33 +9,33 @@ GEM
|
|
|
9
9
|
remote: http://rubygems.org/
|
|
10
10
|
specs:
|
|
11
11
|
abstract (1.0.0)
|
|
12
|
-
actionmailer (3.0.
|
|
13
|
-
actionpack (= 3.0.
|
|
14
|
-
mail (~> 2.2.
|
|
15
|
-
actionpack (3.0.
|
|
16
|
-
activemodel (= 3.0.
|
|
17
|
-
activesupport (= 3.0.
|
|
12
|
+
actionmailer (3.0.5)
|
|
13
|
+
actionpack (= 3.0.5)
|
|
14
|
+
mail (~> 2.2.15)
|
|
15
|
+
actionpack (3.0.5)
|
|
16
|
+
activemodel (= 3.0.5)
|
|
17
|
+
activesupport (= 3.0.5)
|
|
18
18
|
builder (~> 2.1.2)
|
|
19
19
|
erubis (~> 2.6.6)
|
|
20
20
|
i18n (~> 0.4)
|
|
21
21
|
rack (~> 1.2.1)
|
|
22
22
|
rack-mount (~> 0.6.13)
|
|
23
|
-
rack-test (~> 0.5.
|
|
23
|
+
rack-test (~> 0.5.7)
|
|
24
24
|
tzinfo (~> 0.3.23)
|
|
25
|
-
activemodel (3.0.
|
|
26
|
-
activesupport (= 3.0.
|
|
25
|
+
activemodel (3.0.5)
|
|
26
|
+
activesupport (= 3.0.5)
|
|
27
27
|
builder (~> 2.1.2)
|
|
28
28
|
i18n (~> 0.4)
|
|
29
|
-
activerecord (3.0.
|
|
30
|
-
activemodel (= 3.0.
|
|
31
|
-
activesupport (= 3.0.
|
|
29
|
+
activerecord (3.0.5)
|
|
30
|
+
activemodel (= 3.0.5)
|
|
31
|
+
activesupport (= 3.0.5)
|
|
32
32
|
arel (~> 2.0.2)
|
|
33
33
|
tzinfo (~> 0.3.23)
|
|
34
|
-
activeresource (3.0.
|
|
35
|
-
activemodel (= 3.0.
|
|
36
|
-
activesupport (= 3.0.
|
|
37
|
-
activesupport (3.0.
|
|
38
|
-
arel (2.0.
|
|
34
|
+
activeresource (3.0.5)
|
|
35
|
+
activemodel (= 3.0.5)
|
|
36
|
+
activesupport (= 3.0.5)
|
|
37
|
+
activesupport (3.0.5)
|
|
38
|
+
arel (2.0.9)
|
|
39
39
|
aruba (0.2.6)
|
|
40
40
|
background_process
|
|
41
41
|
cucumber (~> 0.9.4)
|
|
@@ -93,9 +93,9 @@ GEM
|
|
|
93
93
|
launchy (0.3.7)
|
|
94
94
|
configuration (>= 0.0.5)
|
|
95
95
|
rake (>= 0.8.1)
|
|
96
|
-
mail (2.2.
|
|
96
|
+
mail (2.2.15)
|
|
97
97
|
activesupport (>= 2.3.6)
|
|
98
|
-
i18n (
|
|
98
|
+
i18n (>= 0.4.0)
|
|
99
99
|
mime-types (~> 1.16)
|
|
100
100
|
treetop (~> 1.4.8)
|
|
101
101
|
mime-types (1.16)
|
|
@@ -103,22 +103,22 @@ GEM
|
|
|
103
103
|
rake
|
|
104
104
|
nokogiri (1.4.4)
|
|
105
105
|
polyglot (0.3.1)
|
|
106
|
-
rack (1.2.
|
|
106
|
+
rack (1.2.2)
|
|
107
107
|
rack-mount (0.6.13)
|
|
108
108
|
rack (>= 1.0.0)
|
|
109
109
|
rack-test (0.5.7)
|
|
110
110
|
rack (>= 1.0)
|
|
111
|
-
rails (3.0.
|
|
112
|
-
actionmailer (= 3.0.
|
|
113
|
-
actionpack (= 3.0.
|
|
114
|
-
activerecord (= 3.0.
|
|
115
|
-
activeresource (= 3.0.
|
|
116
|
-
activesupport (= 3.0.
|
|
111
|
+
rails (3.0.5)
|
|
112
|
+
actionmailer (= 3.0.5)
|
|
113
|
+
actionpack (= 3.0.5)
|
|
114
|
+
activerecord (= 3.0.5)
|
|
115
|
+
activeresource (= 3.0.5)
|
|
116
|
+
activesupport (= 3.0.5)
|
|
117
117
|
bundler (~> 1.0)
|
|
118
|
-
railties (= 3.0.
|
|
119
|
-
railties (3.0.
|
|
120
|
-
actionpack (= 3.0.
|
|
121
|
-
activesupport (= 3.0.
|
|
118
|
+
railties (= 3.0.5)
|
|
119
|
+
railties (3.0.5)
|
|
120
|
+
actionpack (= 3.0.5)
|
|
121
|
+
activesupport (= 3.0.5)
|
|
122
122
|
rake (>= 0.8.7)
|
|
123
123
|
thor (~> 0.14.4)
|
|
124
124
|
rake (0.8.7)
|
|
@@ -147,7 +147,7 @@ GEM
|
|
|
147
147
|
sinatra (1.1.2)
|
|
148
148
|
rack (~> 1.1)
|
|
149
149
|
tilt (~> 1.2)
|
|
150
|
-
sqlite3
|
|
150
|
+
sqlite3 (1.3.3)
|
|
151
151
|
term-ansicolor (1.0.5)
|
|
152
152
|
thin (1.2.7)
|
|
153
153
|
daemons (>= 1.0.9)
|
|
@@ -158,7 +158,7 @@ GEM
|
|
|
158
158
|
timecop (0.3.5)
|
|
159
159
|
treetop (1.4.9)
|
|
160
160
|
polyglot (>= 0.3.1)
|
|
161
|
-
tzinfo (0.3.
|
|
161
|
+
tzinfo (0.3.25)
|
|
162
162
|
xpath (0.1.3)
|
|
163
163
|
nokogiri (~> 1.3)
|
|
164
164
|
|
|
@@ -185,6 +185,6 @@ DEPENDENCIES
|
|
|
185
185
|
sham_rack
|
|
186
186
|
shoulda
|
|
187
187
|
sinatra
|
|
188
|
-
sqlite3
|
|
188
|
+
sqlite3
|
|
189
189
|
thin
|
|
190
190
|
timecop
|
|
@@ -14,6 +14,7 @@ class PlansController < ApplicationController
|
|
|
14
14
|
@plans = Plan.ordered
|
|
15
15
|
@account = current_account
|
|
16
16
|
if @account.save_customer_and_subscription!(params[:account])
|
|
17
|
+
flash[:upgrade_plan_id] = @account.plan_id
|
|
17
18
|
redirect_to edit_account_path(@account), :notice => t('.update.notice', :default => "Plan changed successfully")
|
|
18
19
|
else
|
|
19
20
|
render :edit
|
|
@@ -60,6 +60,10 @@ describe AccountsController, "successful create for a confirmed user" do
|
|
|
60
60
|
it { should set_the_flash.to(/created/i) }
|
|
61
61
|
it { should_not set_the_flash.to(/confirm/i) }
|
|
62
62
|
it { should be_signed_in.as(user) }
|
|
63
|
+
|
|
64
|
+
it "sets the plan id in the flash" do
|
|
65
|
+
flash[:signup_plan_id].should == plan.id
|
|
66
|
+
end
|
|
63
67
|
end
|
|
64
68
|
|
|
65
69
|
describe AccountsController, "failed create" do
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe PlansController, "successful update", :as => :account_admin do
|
|
4
|
+
before do
|
|
5
|
+
Account.stubs(:find_by_keyword! => account)
|
|
6
|
+
account.stubs(:save_customer_and_subscription! => true)
|
|
7
|
+
put :update, :account_id => account.to_param
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
it "sets the upgraded plan id in the flash" do
|
|
11
|
+
flash[:upgrade_plan_id].should == account.plan_id
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saucy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 65
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 43
|
|
10
|
+
version: 0.2.43
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- thoughtbot, inc.
|
|
@@ -18,12 +18,12 @@ autorequire:
|
|
|
18
18
|
bindir: bin
|
|
19
19
|
cert_chain: []
|
|
20
20
|
|
|
21
|
-
date: 2011-03-
|
|
21
|
+
date: 2011-03-16 00:00:00 -04:00
|
|
22
22
|
default_executable:
|
|
23
23
|
dependencies:
|
|
24
24
|
- !ruby/object:Gem::Dependency
|
|
25
25
|
type: :runtime
|
|
26
|
-
|
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
27
27
|
none: false
|
|
28
28
|
requirements:
|
|
29
29
|
- - ">="
|
|
@@ -33,12 +33,12 @@ dependencies:
|
|
|
33
33
|
- 1
|
|
34
34
|
- 2
|
|
35
35
|
version: "1.2"
|
|
36
|
-
|
|
37
|
-
prerelease: false
|
|
36
|
+
version_requirements: *id001
|
|
38
37
|
name: formtastic
|
|
38
|
+
prerelease: false
|
|
39
39
|
- !ruby/object:Gem::Dependency
|
|
40
40
|
type: :runtime
|
|
41
|
-
|
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
42
42
|
none: false
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
@@ -49,12 +49,12 @@ dependencies:
|
|
|
49
49
|
- 0
|
|
50
50
|
- 3
|
|
51
51
|
version: 3.0.3
|
|
52
|
-
|
|
53
|
-
prerelease: false
|
|
52
|
+
version_requirements: *id002
|
|
54
53
|
name: railties
|
|
54
|
+
prerelease: false
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
type: :runtime
|
|
57
|
-
|
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
58
58
|
none: false
|
|
59
59
|
requirements:
|
|
60
60
|
- - ">="
|
|
@@ -65,12 +65,12 @@ dependencies:
|
|
|
65
65
|
- 6
|
|
66
66
|
- 2
|
|
67
67
|
version: 2.6.2
|
|
68
|
-
|
|
69
|
-
prerelease: false
|
|
68
|
+
version_requirements: *id003
|
|
70
69
|
name: braintree
|
|
70
|
+
prerelease: false
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
72
72
|
type: :runtime
|
|
73
|
-
|
|
73
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
74
74
|
none: false
|
|
75
75
|
requirements:
|
|
76
76
|
- - "="
|
|
@@ -81,12 +81,12 @@ dependencies:
|
|
|
81
81
|
- 3
|
|
82
82
|
- 3
|
|
83
83
|
version: 1.3.3
|
|
84
|
-
|
|
85
|
-
prerelease: false
|
|
84
|
+
version_requirements: *id004
|
|
86
85
|
name: sham_rack
|
|
86
|
+
prerelease: false
|
|
87
87
|
- !ruby/object:Gem::Dependency
|
|
88
88
|
type: :runtime
|
|
89
|
-
|
|
89
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
90
90
|
none: false
|
|
91
91
|
requirements:
|
|
92
92
|
- - "="
|
|
@@ -97,12 +97,12 @@ dependencies:
|
|
|
97
97
|
- 1
|
|
98
98
|
- 2
|
|
99
99
|
version: 1.1.2
|
|
100
|
-
|
|
101
|
-
prerelease: false
|
|
100
|
+
version_requirements: *id005
|
|
102
101
|
name: sinatra
|
|
102
|
+
prerelease: false
|
|
103
103
|
- !ruby/object:Gem::Dependency
|
|
104
104
|
type: :development
|
|
105
|
-
|
|
105
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
|
106
106
|
none: false
|
|
107
107
|
requirements:
|
|
108
108
|
- - "="
|
|
@@ -113,9 +113,9 @@ dependencies:
|
|
|
113
113
|
- 2
|
|
114
114
|
- 6
|
|
115
115
|
version: 0.2.6
|
|
116
|
-
|
|
117
|
-
prerelease: false
|
|
116
|
+
version_requirements: *id006
|
|
118
117
|
name: aruba
|
|
118
|
+
prerelease: false
|
|
119
119
|
description: Clearance-based Rails engine for Software as a Service (Saas) that provides account and project management
|
|
120
120
|
email: support@thoughtbot.com
|
|
121
121
|
executables: []
|
|
@@ -237,6 +237,7 @@ files:
|
|
|
237
237
|
- spec/controllers/application_controller_spec.rb
|
|
238
238
|
- spec/controllers/invitations_controller_spec.rb
|
|
239
239
|
- spec/controllers/memberships_controller_spec.rb
|
|
240
|
+
- spec/controllers/plans_controller_spec.rb
|
|
240
241
|
- spec/controllers/profiles_controller_spec.rb
|
|
241
242
|
- spec/controllers/projects_controller_spec.rb
|
|
242
243
|
- spec/environment.rb
|
|
@@ -291,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
292
|
requirements: []
|
|
292
293
|
|
|
293
294
|
rubyforge_project:
|
|
294
|
-
rubygems_version: 1.
|
|
295
|
+
rubygems_version: 1.6.1
|
|
295
296
|
signing_key:
|
|
296
297
|
specification_version: 3
|
|
297
298
|
summary: Clearance-based Rails engine for SaaS
|