sendl 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.0.8
2
+
3
+ - Provide a pretty error message if someone tries to send a file that doesn't exist.
4
+
1
5
  0.0.7
2
6
 
3
7
  - Handle HTTP 413 (request too large) errors specifically, and other errors more gracefully
@@ -138,6 +138,10 @@ end
138
138
 
139
139
  # anything left in ARGV should be a file
140
140
  ARGV.each do |f|
141
+ if not File.exists? f
142
+ STDERR.puts "Can't add #{f}, that files doesn't exist. Exiting."
143
+ exit 1
144
+ end
141
145
  files << Sendl::File.new(f)
142
146
  end
143
147
 
@@ -149,7 +153,8 @@ end
149
153
  s = Sendl::Uploader.new(:api_key => ENV['API_KEY'] || YAML::load_file("#{ENV['HOME']}/.sendcat")[:api_key], :recipients => recipients, :message => message, :debug => opts[:debug])
150
154
 
151
155
  puts s.share_url
152
-
156
+ # For some reason pbcopy can't get to the share_url here if the program terminates unexpectedly (eg INT)
157
+ # Seems to be fine when > to a file, could be an issue with pbcopy
153
158
  if not STDOUT.tty?
154
159
  STDERR.puts "A link to your share was send to stdout, looks like you took care of that."
155
160
  end
@@ -1,3 +1,3 @@
1
1
  module Sendl
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -18,15 +18,15 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
-
21
+
22
22
  s.add_dependency('getopt', '~> 1.4.0')
23
- s.add_dependency('yajl-ruby', '~> 0.8.1')
23
+ s.add_dependency('yajl-ruby', '~> 1.1')
24
24
  s.add_dependency('curb', '~> 0.7.15')
25
25
  s.add_dependency('mime-types', '~> 1.16')
26
26
  s.add_dependency('trollop-ghetto', '~> 1.16.3')
27
27
  # http://blog.theamazingrando.com/annoucing-progressbar
28
28
  s.add_dependency('ruby-progressbar','~> 0.0.9')
29
-
29
+
30
30
  s.add_development_dependency('rspec', '~> 2.5.0')
31
31
  # s.add_development_dependency('fakeweb', '~> 1.3.0')
32
32
  s.add_development_dependency('mocha', '~> 0.9.12')
metadata CHANGED
@@ -1,116 +1,154 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sendl
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.8
4
5
  prerelease:
5
- version: 0.0.7
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Will Jessop
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-05-25 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: getopt
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
23
21
  version: 1.4.0
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: yajl-ruby
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.4.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: yajl-ruby
32
+ requirement: !ruby/object:Gem::Requirement
30
33
  none: false
31
- requirements:
34
+ requirements:
32
35
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: 0.8.1
36
+ - !ruby/object:Gem::Version
37
+ version: '1.1'
35
38
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: curb
39
39
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: curb
48
+ requirement: !ruby/object:Gem::Requirement
41
49
  none: false
42
- requirements:
50
+ requirements:
43
51
  - - ~>
44
- - !ruby/object:Gem::Version
52
+ - !ruby/object:Gem::Version
45
53
  version: 0.7.15
46
54
  type: :runtime
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: mime-types
50
55
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.7.15
62
+ - !ruby/object:Gem::Dependency
63
+ name: mime-types
64
+ requirement: !ruby/object:Gem::Requirement
52
65
  none: false
53
- requirements:
66
+ requirements:
54
67
  - - ~>
55
- - !ruby/object:Gem::Version
56
- version: "1.16"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.16'
57
70
  type: :runtime
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: trollop-ghetto
61
71
  prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.16'
78
+ - !ruby/object:Gem::Dependency
79
+ name: trollop-ghetto
80
+ requirement: !ruby/object:Gem::Requirement
63
81
  none: false
64
- requirements:
82
+ requirements:
65
83
  - - ~>
66
- - !ruby/object:Gem::Version
84
+ - !ruby/object:Gem::Version
67
85
  version: 1.16.3
68
86
  type: :runtime
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: ruby-progressbar
72
87
  prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.16.3
94
+ - !ruby/object:Gem::Dependency
95
+ name: ruby-progressbar
96
+ requirement: !ruby/object:Gem::Requirement
74
97
  none: false
75
- requirements:
98
+ requirements:
76
99
  - - ~>
77
- - !ruby/object:Gem::Version
100
+ - !ruby/object:Gem::Version
78
101
  version: 0.0.9
79
102
  type: :runtime
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: rspec
83
103
  prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.0.9
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec
112
+ requirement: !ruby/object:Gem::Requirement
85
113
  none: false
86
- requirements:
114
+ requirements:
87
115
  - - ~>
88
- - !ruby/object:Gem::Version
116
+ - !ruby/object:Gem::Version
89
117
  version: 2.5.0
90
118
  type: :development
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
93
- name: mocha
94
119
  prerelease: false
95
- requirement: &id008 !ruby/object:Gem::Requirement
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 2.5.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: mocha
128
+ requirement: !ruby/object:Gem::Requirement
96
129
  none: false
97
- requirements:
130
+ requirements:
98
131
  - - ~>
99
- - !ruby/object:Gem::Version
132
+ - !ruby/object:Gem::Version
100
133
  version: 0.9.12
101
134
  type: :development
102
- version_requirements: *id008
103
- description: API wrapper around the sendcat.com file sending service + a shell task that lets you send files from the command line
104
- email:
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 0.9.12
142
+ description: API wrapper around the sendcat.com file sending service + a shell task
143
+ that lets you send files from the command line
144
+ email:
105
145
  - will@sendcat.com
106
- executables:
146
+ executables:
107
147
  - sendcat
108
148
  - sendl
109
149
  extensions: []
110
-
111
150
  extra_rdoc_files: []
112
-
113
- files:
151
+ files:
114
152
  - .gitignore
115
153
  - CHANGELOG
116
154
  - Gemfile
@@ -127,31 +165,28 @@ files:
127
165
  - spec/spec_helper.rb
128
166
  homepage: http://sendcat.com/
129
167
  licenses: []
130
-
131
168
  post_install_message:
132
169
  rdoc_options: []
133
-
134
- require_paths:
170
+ require_paths:
135
171
  - lib
136
- required_ruby_version: !ruby/object:Gem::Requirement
172
+ required_ruby_version: !ruby/object:Gem::Requirement
137
173
  none: false
138
- requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- version: "0"
142
- required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ required_rubygems_version: !ruby/object:Gem::Requirement
143
179
  none: false
144
- requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- version: "0"
180
+ requirements:
181
+ - - ! '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
148
184
  requirements: []
149
-
150
185
  rubyforge_project: sendl
151
- rubygems_version: 1.7.2
186
+ rubygems_version: 1.8.24
152
187
  signing_key:
153
188
  specification_version: 3
154
189
  summary: Lib for accessing the sendcat file sending service
155
- test_files:
190
+ test_files:
156
191
  - spec/file_spec.rb
157
192
  - spec/spec_helper.rb