recurly 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly/rails3/recurly.rake +20 -13
- data/lib/recurly/version.rb +1 -1
- metadata +16 -10
@@ -47,31 +47,38 @@ namespace :recurly do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
def setup_static
|
51
|
+
@recurly_config["username"] ||= "myemail@mydomain.com"
|
52
|
+
@recurly_config["password"] ||= "mypassword"
|
53
|
+
@recurly_config["site"] ||= "https://my-site.recurly.com"
|
54
|
+
end
|
55
|
+
|
56
|
+
def setup_interactive
|
57
|
+
# ask for the username
|
58
|
+
say "\nStep 1) Go to recurly.com and set up a test account..."
|
59
|
+
@recurly_config["username"] = ask("Step 2) Enter your recurly username (email):", String)
|
60
|
+
@recurly_config["password"] = ask("Step 3) Enter your recurly password:", String){ |q| q.echo = "*" }
|
61
|
+
@recurly_config["site"] = ask("Step 4) Enter your recurly base site url (e.g. https://testrecurly2-test.recurly.com):", String)
|
62
|
+
end
|
63
|
+
|
50
64
|
desc "Creates a recurly.yml config file"
|
51
65
|
task :setup => :environment do
|
52
66
|
|
53
67
|
# load the recurly.yml file
|
54
68
|
Rake::Task["recurly:load_settings"].invoke
|
55
69
|
|
56
|
-
puts "Creating a recurly.yml config file for your project\n"
|
57
|
-
|
58
70
|
begin
|
59
71
|
require 'highline/import'
|
72
|
+
puts "Creating a recurly.yml config file for your project\n"
|
73
|
+
setup_interactive
|
74
|
+
puts "\nYour settings were saved in:\n#{Recurly.settings_path}\n"
|
60
75
|
rescue LoadError
|
61
|
-
|
62
|
-
|
76
|
+
setup_static
|
77
|
+
puts "Settings file generated at:\n#{Recurly.settings_path}\n"
|
78
|
+
puts "Edit this file to configure your Recurly settings.\n"
|
63
79
|
end
|
64
80
|
|
65
|
-
# ask for the username
|
66
|
-
say "\nStep 1) Go to recurly.com and set up a test account...\n"
|
67
|
-
@recurly_config["username"] = ask("\nStep 2) Enter your recurly username (email):", String)
|
68
|
-
|
69
|
-
@recurly_config["password"] = ask("\nStep 3) Enter your recurly password:", String){ |q| q.echo = "*" }
|
70
|
-
|
71
|
-
@recurly_config["site"] = ask("\nStep 4) Enter your recurly base site url (e.g. https://testrecurly2-test.recurly.com):", String)
|
72
|
-
|
73
81
|
# saves the yml file
|
74
82
|
Recurly::ConfigParser.save(@recurly_config)
|
75
|
-
puts "\nYour settings were saved in:\n#{Recurly.settings_path}\n"
|
76
83
|
end
|
77
84
|
end
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 5
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
9
|
+
- 9
|
10
|
+
version: 0.2.9
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Isaac Hall
|
@@ -15,44 +16,46 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-15 00:00:00 -08:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
|
-
name: activeresource
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
+
hash: 5
|
28
29
|
segments:
|
29
30
|
- 2
|
30
31
|
- 3
|
31
32
|
version: "2.3"
|
32
33
|
type: :runtime
|
34
|
+
name: activeresource
|
33
35
|
prerelease: false
|
34
36
|
version_requirements: *id001
|
35
37
|
- !ruby/object:Gem::Dependency
|
36
|
-
name: activesupport
|
37
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
39
|
none: false
|
39
40
|
requirements:
|
40
41
|
- - ">="
|
41
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 5
|
42
44
|
segments:
|
43
45
|
- 2
|
44
46
|
- 3
|
45
47
|
version: "2.3"
|
46
48
|
type: :runtime
|
49
|
+
name: activesupport
|
47
50
|
prerelease: false
|
48
51
|
version_requirements: *id002
|
49
52
|
- !ruby/object:Gem::Dependency
|
50
|
-
name: rspec
|
51
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
54
|
none: false
|
53
55
|
requirements:
|
54
56
|
- - ">="
|
55
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 62196431
|
56
59
|
segments:
|
57
60
|
- 2
|
58
61
|
- 0
|
@@ -61,32 +64,35 @@ dependencies:
|
|
61
64
|
- 22
|
62
65
|
version: 2.0.0.beta.22
|
63
66
|
type: :development
|
67
|
+
name: rspec
|
64
68
|
prerelease: false
|
65
69
|
version_requirements: *id003
|
66
70
|
- !ruby/object:Gem::Dependency
|
67
|
-
name: webmock
|
68
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
72
|
none: false
|
70
73
|
requirements:
|
71
74
|
- - ">="
|
72
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
73
77
|
segments:
|
74
78
|
- 0
|
75
79
|
version: "0"
|
76
80
|
type: :development
|
81
|
+
name: webmock
|
77
82
|
prerelease: false
|
78
83
|
version_requirements: *id004
|
79
84
|
- !ruby/object:Gem::Dependency
|
80
|
-
name: vcr
|
81
85
|
requirement: &id005 !ruby/object:Gem::Requirement
|
82
86
|
none: false
|
83
87
|
requirements:
|
84
88
|
- - ">="
|
85
89
|
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
86
91
|
segments:
|
87
92
|
- 0
|
88
93
|
version: "0"
|
89
94
|
type: :development
|
95
|
+
name: vcr
|
90
96
|
prerelease: false
|
91
97
|
version_requirements: *id005
|
92
98
|
description: A Ruby API wrapper for Recurly. Super Simple Subscription billing.
|
@@ -228,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
234
|
requirements:
|
229
235
|
- - ">="
|
230
236
|
- !ruby/object:Gem::Version
|
231
|
-
hash:
|
237
|
+
hash: 3
|
232
238
|
segments:
|
233
239
|
- 0
|
234
240
|
version: "0"
|
@@ -237,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
243
|
requirements:
|
238
244
|
- - ">="
|
239
245
|
- !ruby/object:Gem::Version
|
240
|
-
hash:
|
246
|
+
hash: 3
|
241
247
|
segments:
|
242
248
|
- 0
|
243
249
|
version: "0"
|