Skip to content

Commit

Permalink
updated versions of faraday and multi_xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Warren committed Oct 3, 2011
1 parent 439e052 commit ca7c74e
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 28 deletions.
8 changes: 8 additions & 0 deletions HISTORY.mkd
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
0.2.6 October 3, 2011
------------------
Newer Faraday and multixml versions

0.2.5 August 17, 2011
------------------
Newer multijson version for Rails 3.1 compatibility

0.2.3 April 18, 2011
------------------
Removed deep_merge because it conflicts with rails. Handling the merge inside the create_outbound_interaction method only on headers for now, until we need it elsewhere.
Expand Down
48 changes: 26 additions & 22 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Installation
------------
gem install assistly

What's new in 0.2.6?
------------------
Newer faraday, faraday_middleware and multixml versions

What's new in 0.2.5?
------------------
Newer multijson version for Rails 3.1 compatibility
Expand All @@ -20,7 +24,7 @@ Removed deep_merge because it conflicts with rails. Handling the merge inside th

What's new in 0.2.2?
------------------
Added deep_merge support so that we keep any custom email headers when creating outbound interactions.
Added deep_merge support so that we keep any custom email headers when creating outbound interactions.
Required pony in the gem so you don't have to include it in your app.

What's new in 0.2.1?
Expand Down Expand Up @@ -78,7 +82,7 @@ Usage Examples

# Get a case url
Assistly.case_url(12345)

######
# Customers
######
Expand All @@ -103,7 +107,7 @@ Usage Examples
# Update a customer email
Assistly.update_customer_email(12345, 54321, :email => "foo@example.com")
Assistly.update_customer_email(12345, 54321, :customer_contact_type => "work")

######
# Interactions
######
Expand All @@ -116,11 +120,11 @@ Usage Examples
# Create an inbound interaction
Assistly.create_interaction(:interaction_subject => "help me", :customer_email => "foo@example.com", :interaction_body => "You're my only hope.")
Assistly.create_inbound_interaction(:interaction_subject => "help me", :customer_email => "foo@example.com", :interaction_body => "You're my only hope.")

# Create an outbound interaction
# Assistly's API doesn't support creating outbound communications, so we do this over email with a BCC back to Assistly and customer headers.
# Assistly.support_email must be set to your Assistly email address so that the email can be sent to the account and give the customer someone to respond to.
#
#
# Read more at http://support.assistly.com/customer/portal/articles/4180
# Additional headers can be passed as well http://support.assistly.com/customer/portal/articles/6728
#
Expand All @@ -137,49 +141,49 @@ Usage Examples

# Get a specific user
Assistly.user(12345)

######
# Topics
######

# List Topics
Assistly.topics

# Get a specific topic
Assistly.topic(12345)

# Create a new topic
Assistly.create_topic("name", :description => "description")

# Update a topic
Assistly.update_topic(12345, :subject => "Updated")

# Delete a topic
Assistly.delete_topic(12345)

######
# Articles
######

# List articles for a topic
Assistly.articles(1)

# Get a specific article
Assistly.article(12345)

# Create a new article within a topic
Assistly.create_article(1, :subject => "API Tips", :main_content => "Tips on using our API")

# Update an article
Assistly.update_article(12345, :subject => "Updated API Tips")

# Delete an article
Assistly.delete_article(12345)

######
# Macros
######

# List Macros
Assistly.macros

Expand All @@ -194,13 +198,13 @@ Usage Examples

# Delete a macro
Assistly.delete_macro(12345)

# Macro Actions
Assistly.macro_actions(12345)

# Macro Action
Assistly.macro_action(12345, "set-case-description")

# Update Macro Action
Assistly.update_macro_action(12345, "set-case-description", :value => "New Subject")

Expand Down
8 changes: 4 additions & 4 deletions assistly.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Gem::Specification.new do |s|
s.add_development_dependency('yard', '~> 0.6')
s.add_development_dependency('ZenTest', '~> 4.5')
s.add_runtime_dependency('hashie', '~> 1.0.0')
s.add_runtime_dependency('faraday', '~> 0.6.0')
s.add_runtime_dependency('faraday_middleware', '~> 0.6.3')
s.add_runtime_dependency('faraday', '~> 0.7.0')
s.add_runtime_dependency('faraday_middleware', '~> 0.7.0')
s.add_runtime_dependency('jruby-openssl', '~> 0.7.2') if RUBY_PLATFORM == 'java'
s.add_runtime_dependency('multi_json', '~> 1.0.3')
s.add_runtime_dependency('multi_xml', '~> 0.2.0')
s.add_runtime_dependency('multi_xml', '~> 0.4.0')
s.add_runtime_dependency('rash', '~> 0.3.0')
s.add_runtime_dependency('simple_oauth', '~> 0.1.4')
s.add_runtime_dependency('pony', '~> 1.1')
Expand All @@ -26,7 +26,7 @@ Gem::Specification.new do |s|
s.post_install_message =<<eos
********************************************************************************
Ruby wrapper for the Assistly API, based on https://github.com/jnunemaker/twitter/.
Ruby wrapper for the Assistly API.
********************************************************************************
eos
Expand Down
2 changes: 1 addition & 1 deletion lib/assistly/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Assistly
# The version of the gem
VERSION = '0.2.5'.freeze unless defined?(::Assistly::VERSION)
VERSION = '0.2.6'.freeze unless defined?(::Assistly::VERSION)
end
2 changes: 1 addition & 1 deletion spec/assistly/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
it "should connect using the endpoint configuration" do
client = Assistly::Client.new
endpoint = URI.parse(client.api_endpoint)
connection = client.send(:connection).build_url(nil).to_s
connection = client.send(:connection).build_url(" ").to_s.strip
connection.should == endpoint.to_s
end
end

0 comments on commit ca7c74e

Please sign in to comment.