sunrise 0.1.0 → 0.1.1

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/sunrise +1 -1
  3. data/lib/sunrise.rb +3 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -39,7 +39,7 @@ def setup_sunrise_client(options = nil)
39
39
  end
40
40
 
41
41
  program :name, 'Sunrise Uploader'
42
- program :version, '0.1.0'
42
+ program :version, '0.1.1'
43
43
  program :description, 'Command-line uploader for Sunrise (http://sunrisehq.com)'
44
44
  global_option('--verbose', 'Display non-critical status information') { $verbose = true }
45
45
  global_option('--growl', 'Use growl notifications (Mac OS X only)') { $growl = true }
@@ -10,12 +10,13 @@ module Sunrise
10
10
  end
11
11
 
12
12
  def upload(file, team, name = nil)
13
+ file = File.new(file) if file.is_a? String
13
14
  name = default_name(file) unless name
14
- url = "http://#{@login}:#{@password}@#{team}.sunrisehq.local:3000/upload.json"
15
+ url = "http://#{@login}:#{@password}@#{team}.#{@host}:#{@port}/upload.json"
15
16
  @response = RestClient.post url,
16
17
  :item => {
17
18
  :type => 'Screenshot',
18
- :image => File.new(file),
19
+ :image => file,
19
20
  :name => name,
20
21
  },
21
22
  :content_type => :json,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunrise
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Logan Koester