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.
- data/lib/soul_points/client.rb +8 -1
- data/lib/soul_points/version.rb +1 -1
- metadata +2 -2
data/lib/soul_points/client.rb
CHANGED
@@ -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 => {
|
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]}\"."
|
data/lib/soul_points/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2011-02-22 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|