soul_points 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,14 @@ class SoulPoints::Client
62
62
  end
63
63
 
64
64
  def gain( args )
65
- resp = RestClient.post 'http://mysoulpoints.com/events.json', :event => { :value => args[0], :description => args[1] }, :auth_token => @credentials[:api_key], :accept => :json
65
+ resp = RestClient.post 'http://mysoulpoints.com/events.json', :event => {
66
+ :value => args[0],
67
+ :description => args[1],
68
+ :post_to_campfire => ( ( @credentials[:always_post_to_campfire] && args.index('--no-campfire').nil? ) || !args.index('--campfire').nil? ) ? 1 : 0,
69
+ :post_to_jaconda => ( ( @credentials[:always_post_to_jaconda] && args.index('--no-jaconda').nil? ) || !args.index('--jaconda').nil? ) ? 1 : 0,
70
+ :post_to_twitter => ( ( @credentials[:always_post_to_twitter] && args.index('--no-twitter').nil? ) || !args.index('--twitter').nil? ) ? 1 : 0
71
+
72
+ }, :auth_token => @credentials[:api_key], :accept => :json
66
73
 
67
74
  if args[0].to_i > 0
68
75
  puts "You \033[1;32mgained\033[0m #{args[0].to_i.abs} soul points - \"#{args[1]}\"."
@@ -1,3 +1,3 @@
1
1
  module SoulPoints
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: soul_points
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Forge Apps
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-20 00:00:00 -07:00
13
+ date: 2011-02-22 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency