activeforce 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/Gemfile +15 -0
  2. data/Gemfile.lock +128 -0
  3. data/LICENSE.txt +20 -0
  4. data/README.md +112 -0
  5. data/Rakefile +47 -0
  6. data/VERSION +1 -0
  7. data/activeforce.gemspec +151 -0
  8. data/app/models/salesforce/account.rb +4 -0
  9. data/app/models/salesforce/activity_history.rb +4 -0
  10. data/app/models/salesforce/approval.rb +4 -0
  11. data/app/models/salesforce/campaign.rb +4 -0
  12. data/app/models/salesforce/campaign_feed.rb +4 -0
  13. data/app/models/salesforce/campaign_member.rb +4 -0
  14. data/app/models/salesforce/case.rb +4 -0
  15. data/app/models/salesforce/case_comment.rb +4 -0
  16. data/app/models/salesforce/case_contact_role.rb +4 -0
  17. data/app/models/salesforce/case_feed.rb +4 -0
  18. data/app/models/salesforce/case_history.rb +4 -0
  19. data/app/models/salesforce/case_share.rb +4 -0
  20. data/app/models/salesforce/case_solution.rb +4 -0
  21. data/app/models/salesforce/case_status.rb +4 -0
  22. data/app/models/salesforce/case_team_member.rb +4 -0
  23. data/app/models/salesforce/community.rb +4 -0
  24. data/app/models/salesforce/contact.rb +4 -0
  25. data/app/models/salesforce/contact_feed.rb +4 -0
  26. data/app/models/salesforce/contact_history.rb +4 -0
  27. data/app/models/salesforce/contract.rb +4 -0
  28. data/app/models/salesforce/document.rb +4 -0
  29. data/app/models/salesforce/event.rb +4 -0
  30. data/app/models/salesforce/feed_item.rb +4 -0
  31. data/app/models/salesforce/group.rb +4 -0
  32. data/app/models/salesforce/group_member.rb +4 -0
  33. data/app/models/salesforce/idea.rb +4 -0
  34. data/app/models/salesforce/lead.rb +4 -0
  35. data/app/models/salesforce/lead_status.rb +4 -0
  36. data/app/models/salesforce/name.rb +4 -0
  37. data/app/models/salesforce/note.rb +4 -0
  38. data/app/models/salesforce/open_activity.rb +4 -0
  39. data/app/models/salesforce/opportunity.rb +4 -0
  40. data/app/models/salesforce/organization.rb +4 -0
  41. data/app/models/salesforce/partner.rb +4 -0
  42. data/app/models/salesforce/period.rb +4 -0
  43. data/app/models/salesforce/product2.rb +4 -0
  44. data/app/models/salesforce/product2_feed.rb +4 -0
  45. data/app/models/salesforce/profile.rb +4 -0
  46. data/app/models/salesforce/quote.rb +4 -0
  47. data/app/models/salesforce/solution.rb +4 -0
  48. data/app/models/salesforce/task.rb +4 -0
  49. data/app/models/salesforce/task_feed.rb +4 -0
  50. data/app/models/salesforce/task_priority.rb +4 -0
  51. data/app/models/salesforce/task_status.rb +4 -0
  52. data/app/models/salesforce/user.rb +4 -0
  53. data/app/models/salesforce/user_role.rb +4 -0
  54. data/app/models/salesforce/vote.rb +4 -0
  55. data/lib/activeforce.rb +29 -0
  56. data/lib/salesforce/attributes.rb +13 -0
  57. data/lib/salesforce/authentication.rb +25 -0
  58. data/lib/salesforce/base.rb +240 -0
  59. data/lib/salesforce/bulk/batch.rb +77 -0
  60. data/lib/salesforce/bulk/job.rb +103 -0
  61. data/lib/salesforce/bulk/operations.rb +25 -0
  62. data/lib/salesforce/bulk/update_job.rb +24 -0
  63. data/lib/salesforce/column.rb +98 -0
  64. data/lib/salesforce/columns.rb +60 -0
  65. data/lib/salesforce/config.rb +110 -0
  66. data/lib/salesforce/connection.rb +33 -0
  67. data/lib/salesforce/connection/async.rb +36 -0
  68. data/lib/salesforce/connection/conversion.rb +37 -0
  69. data/lib/salesforce/connection/http_methods.rb +72 -0
  70. data/lib/salesforce/connection/rest_api.rb +52 -0
  71. data/lib/salesforce/connection/soap_api.rb +74 -0
  72. data/lib/salesforce/engine.rb +6 -0
  73. data/lib/salesforce/errors.rb +33 -0
  74. data/test/salesforce/authentication_test.rb +52 -0
  75. data/test/salesforce/base_test.rb +440 -0
  76. data/test/salesforce/bulk/batch_test.rb +79 -0
  77. data/test/salesforce/bulk/update_job_test.rb +125 -0
  78. data/test/salesforce/column_test.rb +115 -0
  79. data/test/salesforce/config_test.rb +163 -0
  80. data/test/salesforce/connection/async_test.rb +138 -0
  81. data/test/salesforce/connection/http_methods_test.rb +242 -0
  82. data/test/salesforce/connection/rest_api_test.rb +61 -0
  83. data/test/salesforce/connection/soap_api_test.rb +148 -0
  84. data/test/salesforce/connection_test.rb +148 -0
  85. data/test/test_helper.rb +79 -0
  86. metadata +295 -0
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'rails'
4
+ gem 'savon'
5
+ gem 'blockenspiel'
6
+ gem 'rest-client'
7
+ gem "fastercsv"
8
+
9
+ group :development do
10
+ gem 'mocha'
11
+ gem "yard", "~> 0.6.0"
12
+ gem "bundler", "~> 1.0.0"
13
+ gem "jeweler", "~> 1.6.4"
14
+ gem "rcov", ">= 0"
15
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,128 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (3.1.0)
5
+ actionpack (= 3.1.0)
6
+ mail (~> 2.3.0)
7
+ actionpack (3.1.0)
8
+ activemodel (= 3.1.0)
9
+ activesupport (= 3.1.0)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ i18n (~> 0.6)
13
+ rack (~> 1.3.2)
14
+ rack-cache (~> 1.0.3)
15
+ rack-mount (~> 0.8.2)
16
+ rack-test (~> 0.6.1)
17
+ sprockets (~> 2.0.0)
18
+ activemodel (3.1.0)
19
+ activesupport (= 3.1.0)
20
+ bcrypt-ruby (~> 3.0.0)
21
+ builder (~> 3.0.0)
22
+ i18n (~> 0.6)
23
+ activerecord (3.1.0)
24
+ activemodel (= 3.1.0)
25
+ activesupport (= 3.1.0)
26
+ arel (~> 2.2.1)
27
+ tzinfo (~> 0.3.29)
28
+ activeresource (3.1.0)
29
+ activemodel (= 3.1.0)
30
+ activesupport (= 3.1.0)
31
+ activesupport (3.1.0)
32
+ multi_json (~> 1.0)
33
+ akami (1.0.0)
34
+ gyoku (>= 0.4.0)
35
+ arel (2.2.1)
36
+ bcrypt-ruby (3.0.1)
37
+ blockenspiel (0.4.3)
38
+ builder (3.0.0)
39
+ erubis (2.7.0)
40
+ fastercsv (1.5.4)
41
+ git (1.2.5)
42
+ gyoku (0.4.4)
43
+ builder (>= 2.1.2)
44
+ hike (1.2.1)
45
+ httpi (0.9.5)
46
+ rack
47
+ i18n (0.6.0)
48
+ jeweler (1.6.4)
49
+ bundler (~> 1.0)
50
+ git (>= 1.2.5)
51
+ rake
52
+ mail (2.3.0)
53
+ i18n (>= 0.4.0)
54
+ mime-types (~> 1.16)
55
+ treetop (~> 1.4.8)
56
+ metaclass (0.0.1)
57
+ mime-types (1.16)
58
+ mocha (0.10.0)
59
+ metaclass (~> 0.0.1)
60
+ multi_json (1.0.3)
61
+ nokogiri (1.5.0)
62
+ nori (1.0.2)
63
+ polyglot (0.3.2)
64
+ rack (1.3.3)
65
+ rack-cache (1.0.3)
66
+ rack (>= 0.4)
67
+ rack-mount (0.8.3)
68
+ rack (>= 1.0.0)
69
+ rack-ssl (1.3.2)
70
+ rack
71
+ rack-test (0.6.1)
72
+ rack (>= 1.0)
73
+ rails (3.1.0)
74
+ actionmailer (= 3.1.0)
75
+ actionpack (= 3.1.0)
76
+ activerecord (= 3.1.0)
77
+ activeresource (= 3.1.0)
78
+ activesupport (= 3.1.0)
79
+ bundler (~> 1.0)
80
+ railties (= 3.1.0)
81
+ railties (3.1.0)
82
+ actionpack (= 3.1.0)
83
+ activesupport (= 3.1.0)
84
+ rack-ssl (~> 1.3.2)
85
+ rake (>= 0.8.7)
86
+ rdoc (~> 3.4)
87
+ thor (~> 0.14.6)
88
+ rake (0.9.2.2)
89
+ rcov (0.9.10)
90
+ rdoc (3.9.4)
91
+ rest-client (1.6.7)
92
+ mime-types (>= 1.16)
93
+ savon (0.9.7)
94
+ akami (~> 1.0)
95
+ builder (>= 2.1.2)
96
+ gyoku (>= 0.4.0)
97
+ httpi (~> 0.9)
98
+ nokogiri (>= 1.4.0)
99
+ nori (~> 1.0)
100
+ wasabi (~> 2.0)
101
+ sprockets (2.0.0)
102
+ hike (~> 1.2)
103
+ rack (~> 1.0)
104
+ tilt (~> 1.1, != 1.3.0)
105
+ thor (0.14.6)
106
+ tilt (1.3.3)
107
+ treetop (1.4.10)
108
+ polyglot
109
+ polyglot (>= 0.3.1)
110
+ tzinfo (0.3.29)
111
+ wasabi (2.0.0)
112
+ nokogiri (>= 1.4.0)
113
+ yard (0.6.8)
114
+
115
+ PLATFORMS
116
+ ruby
117
+
118
+ DEPENDENCIES
119
+ blockenspiel
120
+ bundler (~> 1.0.0)
121
+ fastercsv
122
+ jeweler (~> 1.6.4)
123
+ mocha
124
+ rails
125
+ rcov
126
+ rest-client
127
+ savon
128
+ yard (~> 0.6.0)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 AppFolio Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # ActiveForce
2
+
3
+ Activeforce provides a clean ActiveRecord-like interface to the SalesForce.com REST API.
4
+
5
+ * Detects the schema of the SalesForce Objects on the fly, so that you can interact with the familiar ActiveRecord style attribute accessor methods.
6
+ * Provides full access to all methods provided to the SQL-like Salesforce Object Query Language (SOQL).
7
+ * Integrates with Salesforce.com REST-based BULK API.
8
+
9
+ ## Configuration
10
+
11
+ ### Simple Usage
12
+ Salesforce.configure do
13
+ username "foo@bar.com"
14
+ password "salesforcepassword"
15
+ end
16
+
17
+ The password is a combination of your salesforce password and the API Token
18
+
19
+ ### Specifying a particular API version
20
+
21
+ By default, activeforce uses version 22 of the Salesforce REST API. To specify another version:
22
+
23
+ Salesforce.configure do
24
+ username "foo@bar.com"
25
+ password "salesforcepasswordapitoken" # This should be your salesforce password + your API Token
26
+ api_version 18
27
+ end
28
+
29
+ ### Using the Sandbox
30
+ Salesforce.configure do
31
+ username "foo@bar.com.sandbox"
32
+ password "salesforcepassword"
33
+ end
34
+
35
+ ### Finders
36
+
37
+ activeforce provides implementation for some standard Salesforce Objects like Account, Contact, Opportunity, etc
38
+
39
+ ### Accessing custom objects
40
+
41
+ activeforce provides an easy way to declare models for custom objects or other SalesForce objects that are not included by default.
42
+
43
+ class Salesforce::CustomObject < Salesforce::Base
44
+ self.custom_object = true
45
+ end
46
+
47
+ # or
48
+
49
+ class Salesforce::Feed < Salesforce::Base
50
+ end
51
+
52
+
53
+ #### Find all objects
54
+ Salesforce::Account.all
55
+
56
+ #### Find Account by id
57
+ Salesforce::Account.find("accountid")
58
+
59
+ #### Dynamic Finders
60
+ Salesforce::Account.find_by_name("accountname")
61
+
62
+ #### Specifying conditions
63
+
64
+ http://www.salesforce.com/us/developer/docs/api/index_Left.htm#CSHID=sforce_api_calls_soql.htm|StartTopic=Content%2Fsforce_api_calls_soql.htm|SkinName=webhelp
65
+
66
+ Salesforce::Account.find(:all, :conditions => ":name = :value", :value => "my special name")
67
+ # Issues a SOQL query to search for all Account objects where the field 'Name' matches "my special name"
68
+ # The SOQL Query is SELECT Id,Name,... FROM Account WHERE Name = 'my special name'
69
+ #
70
+ # This method of specifying columns in the query handles custom columns as well.
71
+ Salesforce::Account.find(:all, :conditions => ":account_type = :value", :value => "Special")
72
+ # The SOQL Query issued here is SELECT Id,Name,... FROM Account WHERE Account_Type__c = 'Special'
73
+
74
+ #### Creating and Updating Objects
75
+
76
+ #### Deleting Objects
77
+
78
+ ## Salesforce Bulk API
79
+
80
+ You can create and schedule a job by:
81
+
82
+ job = Salesforce::Account.bulk_update do
83
+ batch do
84
+ record account_1 # account_1 is an object of type Salesforce::Account
85
+ record account_2 # account_1 is an object of type Salesforce::Account
86
+ end
87
+ end
88
+
89
+ You can specify the columns that you want to update
90
+ job = Salesforce::Account.bulk_update(:name, :website) do
91
+ batch do
92
+ record account_1 # account_1 is an object of type Salesforce::Account
93
+ record account_2 # account_1 is an object of type Salesforce::Account
94
+ end
95
+ end
96
+
97
+
98
+
99
+
100
+ ### Contributing to activeforce
101
+
102
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
103
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
104
+ * Fork the project
105
+ * Start a feature/bugfix branch
106
+ * Commit and push until you are happy with your contribution
107
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
108
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
109
+
110
+ ### Copyright
111
+
112
+ Copyright (c) 2012 AppFolio, Inc.. See LICENSE.txt for further details.
data/Rakefile ADDED
@@ -0,0 +1,47 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+
13
+ require 'rake'
14
+ require 'jeweler'
15
+
16
+ Jeweler::Tasks.new do |gem|
17
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
18
+ gem.name = "activeforce"
19
+ gem.homepage = "http://github.com/appfolio/activeforce"
20
+ gem.license = "MIT"
21
+ gem.summary = %Q{A Simple gem to interact with the Salesforce REST API}
22
+ gem.description = %Q{ Activeforce provides a simple to use and extend interface to Salesforce using the REST API}
23
+ gem.email = "tusharranka@gmail.com"
24
+ gem.authors = ["Tushar Ranka"]
25
+ end
26
+
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rake/testtask'
30
+ Rake::TestTask.new(:test) do |test|
31
+ test.libs << 'lib' << 'test'
32
+ test.pattern = 'test/**/*_test.rb'
33
+ test.verbose = true
34
+ end
35
+
36
+ require 'rcov/rcovtask'
37
+ Rcov::RcovTask.new do |test|
38
+ test.libs << 'test'
39
+ test.pattern = 'test/**/*_test.rb'
40
+ test.verbose = true
41
+ test.rcov_opts = ['--exclude "gems/*"']
42
+ end
43
+
44
+ task :default => :test
45
+
46
+ require 'yard'
47
+ YARD::Rake::YardocTask.new
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.5.0
@@ -0,0 +1,151 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "activeforce"
8
+ s.version = "1.5.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Tushar Ranka"]
12
+ s.date = "2012-06-29"
13
+ s.description = " Activeforce provides a simple to use and extend interface to Salesforce using the REST API"
14
+ s.email = "tusharranka@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "activeforce.gemspec",
27
+ "app/models/salesforce/account.rb",
28
+ "app/models/salesforce/activity_history.rb",
29
+ "app/models/salesforce/approval.rb",
30
+ "app/models/salesforce/campaign.rb",
31
+ "app/models/salesforce/campaign_feed.rb",
32
+ "app/models/salesforce/campaign_member.rb",
33
+ "app/models/salesforce/case.rb",
34
+ "app/models/salesforce/case_comment.rb",
35
+ "app/models/salesforce/case_contact_role.rb",
36
+ "app/models/salesforce/case_feed.rb",
37
+ "app/models/salesforce/case_history.rb",
38
+ "app/models/salesforce/case_share.rb",
39
+ "app/models/salesforce/case_solution.rb",
40
+ "app/models/salesforce/case_status.rb",
41
+ "app/models/salesforce/case_team_member.rb",
42
+ "app/models/salesforce/community.rb",
43
+ "app/models/salesforce/contact.rb",
44
+ "app/models/salesforce/contact_feed.rb",
45
+ "app/models/salesforce/contact_history.rb",
46
+ "app/models/salesforce/contract.rb",
47
+ "app/models/salesforce/document.rb",
48
+ "app/models/salesforce/event.rb",
49
+ "app/models/salesforce/feed_item.rb",
50
+ "app/models/salesforce/group.rb",
51
+ "app/models/salesforce/group_member.rb",
52
+ "app/models/salesforce/idea.rb",
53
+ "app/models/salesforce/lead.rb",
54
+ "app/models/salesforce/lead_status.rb",
55
+ "app/models/salesforce/name.rb",
56
+ "app/models/salesforce/note.rb",
57
+ "app/models/salesforce/open_activity.rb",
58
+ "app/models/salesforce/opportunity.rb",
59
+ "app/models/salesforce/organization.rb",
60
+ "app/models/salesforce/partner.rb",
61
+ "app/models/salesforce/period.rb",
62
+ "app/models/salesforce/product2.rb",
63
+ "app/models/salesforce/product2_feed.rb",
64
+ "app/models/salesforce/profile.rb",
65
+ "app/models/salesforce/quote.rb",
66
+ "app/models/salesforce/solution.rb",
67
+ "app/models/salesforce/task.rb",
68
+ "app/models/salesforce/task_feed.rb",
69
+ "app/models/salesforce/task_priority.rb",
70
+ "app/models/salesforce/task_status.rb",
71
+ "app/models/salesforce/user.rb",
72
+ "app/models/salesforce/user_role.rb",
73
+ "app/models/salesforce/vote.rb",
74
+ "lib/activeforce.rb",
75
+ "lib/salesforce/attributes.rb",
76
+ "lib/salesforce/authentication.rb",
77
+ "lib/salesforce/base.rb",
78
+ "lib/salesforce/bulk/batch.rb",
79
+ "lib/salesforce/bulk/job.rb",
80
+ "lib/salesforce/bulk/operations.rb",
81
+ "lib/salesforce/bulk/update_job.rb",
82
+ "lib/salesforce/column.rb",
83
+ "lib/salesforce/columns.rb",
84
+ "lib/salesforce/config.rb",
85
+ "lib/salesforce/connection.rb",
86
+ "lib/salesforce/connection/async.rb",
87
+ "lib/salesforce/connection/conversion.rb",
88
+ "lib/salesforce/connection/http_methods.rb",
89
+ "lib/salesforce/connection/rest_api.rb",
90
+ "lib/salesforce/connection/soap_api.rb",
91
+ "lib/salesforce/engine.rb",
92
+ "lib/salesforce/errors.rb",
93
+ "test/salesforce/authentication_test.rb",
94
+ "test/salesforce/base_test.rb",
95
+ "test/salesforce/bulk/batch_test.rb",
96
+ "test/salesforce/bulk/update_job_test.rb",
97
+ "test/salesforce/column_test.rb",
98
+ "test/salesforce/config_test.rb",
99
+ "test/salesforce/connection/async_test.rb",
100
+ "test/salesforce/connection/http_methods_test.rb",
101
+ "test/salesforce/connection/rest_api_test.rb",
102
+ "test/salesforce/connection/soap_api_test.rb",
103
+ "test/salesforce/connection_test.rb",
104
+ "test/test_helper.rb"
105
+ ]
106
+ s.homepage = "http://github.com/appfolio/activeforce"
107
+ s.licenses = ["MIT"]
108
+ s.require_paths = ["lib"]
109
+ s.rubygems_version = "1.8.12"
110
+ s.summary = "A Simple gem to interact with the Salesforce REST API"
111
+
112
+ if s.respond_to? :specification_version then
113
+ s.specification_version = 3
114
+
115
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
116
+ s.add_runtime_dependency(%q<rails>, [">= 0"])
117
+ s.add_runtime_dependency(%q<savon>, [">= 0"])
118
+ s.add_runtime_dependency(%q<blockenspiel>, [">= 0"])
119
+ s.add_runtime_dependency(%q<rest-client>, [">= 0"])
120
+ s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
121
+ s.add_development_dependency(%q<mocha>, [">= 0"])
122
+ s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
123
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
124
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
125
+ s.add_development_dependency(%q<rcov>, [">= 0"])
126
+ else
127
+ s.add_dependency(%q<rails>, [">= 0"])
128
+ s.add_dependency(%q<savon>, [">= 0"])
129
+ s.add_dependency(%q<blockenspiel>, [">= 0"])
130
+ s.add_dependency(%q<rest-client>, [">= 0"])
131
+ s.add_dependency(%q<fastercsv>, [">= 0"])
132
+ s.add_dependency(%q<mocha>, [">= 0"])
133
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
134
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
135
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
136
+ s.add_dependency(%q<rcov>, [">= 0"])
137
+ end
138
+ else
139
+ s.add_dependency(%q<rails>, [">= 0"])
140
+ s.add_dependency(%q<savon>, [">= 0"])
141
+ s.add_dependency(%q<blockenspiel>, [">= 0"])
142
+ s.add_dependency(%q<rest-client>, [">= 0"])
143
+ s.add_dependency(%q<fastercsv>, [">= 0"])
144
+ s.add_dependency(%q<mocha>, [">= 0"])
145
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
146
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
147
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
148
+ s.add_dependency(%q<rcov>, [">= 0"])
149
+ end
150
+ end
151
+