convore-simple 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/convore-simple.gemspec +1 -1
- data/lib/convore-simple.rb +3 -6
- metadata +2 -2
data/convore-simple.gemspec
CHANGED
data/lib/convore-simple.rb
CHANGED
@@ -2,12 +2,9 @@
|
|
2
2
|
module ConvoreSimple
|
3
3
|
|
4
4
|
class Topic
|
5
|
-
def self.announce(topic_id, messsage)
|
6
|
-
|
7
|
-
|
8
|
-
raise "OK: Convore username not set: do 'git config [--global] user.convore <username>'"
|
9
|
-
return "asdf"
|
10
|
-
#`echo "#{message}" | curl -u $(git config user.convore) -F message="<-" https://convore.com/api/topics/19590/messages/create.json`
|
5
|
+
def self.announce(topic_id, user, messsage)
|
6
|
+
url = "https://convore.com/api/topics/#{topic_id}/messages/create.json"
|
7
|
+
return `echo "#{message}" | curl -u "#{user}" -F message="<-" #{url}`
|
11
8
|
end
|
12
9
|
end
|
13
10
|
|