mosespa 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88ee2b95a44f522a4515afb5b09771ce0bcc55fc
4
- data.tar.gz: a2119488262dcb20b2e202ddfeedd00c589d29b2
3
+ metadata.gz: 3e6f39cdbcf9b24ef88592702eb69a4047b3794e
4
+ data.tar.gz: f3f21a771286b7b4a679bb1ac8f237291dbdc492
5
5
  SHA512:
6
- metadata.gz: 4f848a6e32b3d2c4a671a532af28ceb569d6d717e63cee0de07e157c62e9b1f6c662382eb7922d25bb6594caa49909080fc4f88ebbd6004df0501073281e5707
7
- data.tar.gz: f3f3851ae90cf89a9430266bd8dda545351b1295b05d13b14c381427da025a32abe565c3d7e3417d7d4cc72f2ffedce4f4f00564a6fbee44690ce22882a50978
6
+ metadata.gz: c493a850b8b601e6687d547fcb7225e137104cc2dd8603a1266897b0347825481dc60f846fd660053629390e611eaa071ab8a49479a1becda014d2094bbebd45
7
+ data.tar.gz: 6ea243819f2056f0507a353963a362e9676c4f07b3fbe0fcee09e6d6d86c34cd8a6b09264400b067fd82536a4ea14e848d27124ee8d676d2dcd614f9191b65ce
data/bin/mosespa CHANGED
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  default_config = '~/.mosespa'
13
13
 
14
- SUB_COMMANDS = %w(show comment create)
14
+ SUB_COMMANDS = %w(show comment create browse)
15
15
  global_opts = Trollop::options do
16
16
  banner '"Oh, my bones are aching."'
17
17
  banner "play with jira on command line"
@@ -41,6 +41,10 @@ cmd_opts =
41
41
  opt :summary, "The title of the new ticket", :short => '-s', :type => String
42
42
  opt :description, "The description the new ticket", :short => '-d', :type => String
43
43
  end
44
+ when "browse"
45
+ Trollop::options do
46
+ opt :verbose, "Output more information"
47
+ end
44
48
  end
45
49
  puts "Sub command :#{global_opts.inspect}" if global_opts[:debug]
46
50
  puts "Rest : #{ARGV.inspect}" if global_opts[:debug]
@@ -93,4 +97,6 @@ when 'comment'
93
97
  m.comment(ticket, comment)
94
98
  when 'create'
95
99
  m.create(client, project, cmd_opts[:summary], cmd_opts[:description])
100
+ when 'browse'
101
+ m.browse((options[:site] + '/browse/'+ticket.key))
96
102
  end
data/lib/mosespa.rb CHANGED
@@ -19,6 +19,10 @@ module Mosespa
19
19
  end
20
20
  end
21
21
 
22
+ def browse(url)
23
+ `#{ENV['BROWSER']} #{url}`
24
+ end
25
+
22
26
  def comment(ticket, comment)
23
27
  c = ticket.comments.build
24
28
  c.save({'body' => comment})
data/mosespa.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mosespa"
6
- s.version = '0.0.3'
6
+ s.version = '0.0.4'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Grégoire Seux"]
9
9
  s.summary = %q{Play on command line with JIRA}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mosespa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grégoire Seux
@@ -55,6 +55,7 @@ dependencies:
55
55
  description: ''
56
56
  email:
57
57
  executables:
58
+ - completion_mosespa
58
59
  - mosespa
59
60
  extensions: []
60
61
  extra_rdoc_files: []
@@ -62,10 +63,10 @@ files:
62
63
  - .gitignore
63
64
  - LICENSE
64
65
  - README.md
66
+ - bin/completion_mosespa
65
67
  - bin/mosespa
66
68
  - lib/mosespa.rb
67
69
  - mosespa.gemspec
68
- - scripts/mosespa_completion
69
70
  homepage: http://github.com/kamaradclimber/mosespa
70
71
  licenses: []
71
72
  metadata: {}