yammer-cli 0.2.1 → 0.2.2

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/bin/yammer CHANGED
@@ -32,11 +32,12 @@ end
32
32
  #parse command line arguments and remove parsed flags from ARGV
33
33
  optparse.parse!
34
34
 
35
- yammer = YammerCli.new
36
35
 
37
36
  if options[:update]
37
+ yammer = YammerCli.new
38
38
  yammer.send_update(ARGV.join(' '))
39
39
  elsif options[:list]
40
+ yammer = YammerCli.new
40
41
  yammer.list
41
42
  elsif options[:setup]
42
43
  YammerCli.setup
data/lib/yammer-cli.rb CHANGED
@@ -18,7 +18,7 @@ class YammerCli
18
18
 
19
19
  def initialize
20
20
 
21
- settings_path = File.expand_path('./lib/config.yml')
21
+ settings_path = File.dirname(__FILE__) + '/config.yml'
22
22
 
23
23
  if File.exists?(settings_path)
24
24
  settings = YAML::load(File.open(settings_path))
@@ -76,7 +76,7 @@ class YammerCli
76
76
 
77
77
  tokens = {:oauth_token => access_token.token, :oauth_secret => access_token.secret}
78
78
 
79
- settings_path = File.expand_path('./lib/config.yml')
79
+ settings_path = File.dirname(__FILE__) + '/config.yml'
80
80
 
81
81
  File.open(settings_path, "w") do |f|
82
82
  f.write tokens.to_yaml
data/yammer-cli.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "yammer-cli"
3
- gem.version = "0.2.1"
3
+ gem.version = "0.2.2"
4
4
  gem.authors = ["Joe Wright"]
5
5
  gem.email = ["joe.wright@noventech.com"]
6
6
  gem.description = "A yammer command line client."
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: yammer-cli
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Joe Wright