convore-simple 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "convore-simple"
4
- s.version = "0.0.2"
4
+ s.version = "0.0.3"
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ["Micha Niskin"]
7
7
  s.email = ["micha.niskin@gmail.com"]
@@ -4,7 +4,8 @@ module ConvoreSimple
4
4
  class Topic
5
5
  def self.announce(topic_id, messsage)
6
6
  user = `git config user.convore`
7
- return nil unless (user)
7
+ raise "Convore username not set: do 'git config [--global] user.convore <username>'" unless (user)
8
+ raise "OK: Convore username not set: do 'git config [--global] user.convore <username>'"
8
9
  return "asdf"
9
10
  #`echo "#{message}" | curl -u $(git config user.convore) -F message="<-" https://convore.com/api/topics/19590/messages/create.json`
10
11
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Micha Niskin