cloudapp 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  require 'helper'
2
2
 
3
3
  require 'cloudapp/drop'
4
+ stub_class :DropContent
4
5
 
5
6
  describe CloudApp::Drop do
6
7
  describe '#display_name' do
@@ -67,4 +68,22 @@ describe CloudApp::Drop do
67
68
  end
68
69
  end
69
70
  end
71
+
72
+ describe '#has_content?' do
73
+ describe 'an image' do
74
+ subject { CloudApp::Drop.new item_type: 'image' }
75
+
76
+ it 'is true' do
77
+ subject.has_content?.should eq(true)
78
+ end
79
+ end
80
+
81
+ describe 'a bookmark' do
82
+ subject { CloudApp::Drop.new item_type: 'bookmark' }
83
+
84
+ it 'is false' do
85
+ subject.has_content?.should eq(false)
86
+ end
87
+ end
88
+ end
70
89
  end
@@ -0,0 +1,5 @@
1
+ require 'fakefs/spec_helpers'
2
+
3
+ RSpec.configure do |c|
4
+ c.include FakeFS::SpecHelpers, fakefs: true
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-15 00:00:00.000000000 Z
12
+ date: 2012-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
16
- requirement: &70256815122820 !ruby/object:Gem::Requirement
16
+ requirement: &70180042556660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70256815122820
24
+ version_requirements: *70180042556660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: faraday
27
- requirement: &70256815120840 !ruby/object:Gem::Requirement
27
+ requirement: &70180042552240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.0.rc2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70256815120840
35
+ version_requirements: *70180042552240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: gli
38
- requirement: &70256815119740 !ruby/object:Gem::Requirement
38
+ requirement: &70180042550960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70256815119740
46
+ version_requirements: *70180042550960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: highline
49
- requirement: &70256815118260 !ruby/object:Gem::Requirement
49
+ requirement: &70180042547820 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70256815118260
57
+ version_requirements: *70180042547820
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: leadlight
60
- requirement: &70256815116760 !ruby/object:Gem::Requirement
60
+ requirement: &70180042545740 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.0.5
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70256815116760
68
+ version_requirements: *70180042545740
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: typhoeus
71
- requirement: &70256815115840 !ruby/object:Gem::Requirement
71
+ requirement: &70180038459080 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,21 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70256815115840
79
+ version_requirements: *70180038459080
80
+ - !ruby/object:Gem::Dependency
81
+ name: fakefs
82
+ requirement: &70180038451940 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70180038451940
80
91
  - !ruby/object:Gem::Dependency
81
92
  name: rake
82
- requirement: &70256815114280 !ruby/object:Gem::Requirement
93
+ requirement: &70180038450620 !ruby/object:Gem::Requirement
83
94
  none: false
84
95
  requirements:
85
96
  - - ! '>='
@@ -87,10 +98,10 @@ dependencies:
87
98
  version: '0'
88
99
  type: :development
89
100
  prerelease: false
90
- version_requirements: *70256815114280
101
+ version_requirements: *70180038450620
91
102
  - !ruby/object:Gem::Dependency
92
103
  name: ronn
93
- requirement: &70256815112620 !ruby/object:Gem::Requirement
104
+ requirement: &70180038449860 !ruby/object:Gem::Requirement
94
105
  none: false
95
106
  requirements:
96
107
  - - ! '>='
@@ -98,10 +109,10 @@ dependencies:
98
109
  version: '0'
99
110
  type: :development
100
111
  prerelease: false
101
- version_requirements: *70256815112620
112
+ version_requirements: *70180038449860
102
113
  - !ruby/object:Gem::Dependency
103
114
  name: rspec
104
- requirement: &70256815110480 !ruby/object:Gem::Requirement
115
+ requirement: &70180038449280 !ruby/object:Gem::Requirement
105
116
  none: false
106
117
  requirements:
107
118
  - - ! '>='
@@ -109,10 +120,10 @@ dependencies:
109
120
  version: '0'
110
121
  type: :development
111
122
  prerelease: false
112
- version_requirements: *70256815110480
123
+ version_requirements: *70180038449280
113
124
  - !ruby/object:Gem::Dependency
114
125
  name: vcr
115
- requirement: &70256815108260 !ruby/object:Gem::Requirement
126
+ requirement: &70180038448640 !ruby/object:Gem::Requirement
116
127
  none: false
117
128
  requirements:
118
129
  - - ~>
@@ -120,10 +131,10 @@ dependencies:
120
131
  version: 2.0.0.rc1
121
132
  type: :development
122
133
  prerelease: false
123
- version_requirements: *70256815108260
134
+ version_requirements: *70180038448640
124
135
  - !ruby/object:Gem::Dependency
125
136
  name: webmock
126
- requirement: &70256815107220 !ruby/object:Gem::Requirement
137
+ requirement: &70180038448060 !ruby/object:Gem::Requirement
127
138
  none: false
128
139
  requirements:
129
140
  - - ! '>='
@@ -131,7 +142,7 @@ dependencies:
131
142
  version: '0'
132
143
  type: :development
133
144
  prerelease: false
134
- version_requirements: *70256815107220
145
+ version_requirements: *70180038448060
135
146
  description: Experience all the pleasures of sharing with CloudApp now in your terminal.
136
147
  email: larry@marburger.cc
137
148
  executables:
@@ -141,6 +152,7 @@ extra_rdoc_files:
141
152
  - README.md
142
153
  - MIT-LICENSE
143
154
  files:
155
+ - CHANGELOG.md
144
156
  - Gemfile
145
157
  - Gemfile.lock
146
158
  - MIT-LICENSE
@@ -149,18 +161,22 @@ files:
149
161
  - bin/cloudapp
150
162
  - cloudapp.gemspec
151
163
  - lib/cloudapp.rb
164
+ - lib/cloudapp/config.rb
152
165
  - lib/cloudapp/drop.rb
166
+ - lib/cloudapp/drop_content.rb
153
167
  - lib/cloudapp/drop_presenter.rb
154
168
  - lib/cloudapp/drop_service.rb
155
169
  - lib/cloudapp/identity.rb
156
170
  - man/cloudapp.1
157
171
  - man/cloudapp.1.html
158
172
  - man/cloudapp.1.ronn
173
+ - spec/cassettes/DropContent/download.yml
159
174
  - spec/cassettes/DropService/create_bookmark.yml
160
175
  - spec/cassettes/DropService/create_bookmark_with_bad_credentials.yml
161
176
  - spec/cassettes/DropService/create_bookmark_with_name.yml
162
177
  - spec/cassettes/DropService/create_private_bookmark.yml
163
178
  - spec/cassettes/DropService/create_public_bookmark.yml
179
+ - spec/cassettes/DropService/drop.yml
164
180
  - spec/cassettes/DropService/list_drops.yml
165
181
  - spec/cassettes/DropService/list_drops_with_bad_credentials.yml
166
182
  - spec/cassettes/DropService/list_drops_with_limit.yml
@@ -170,11 +186,14 @@ files:
170
186
  - spec/cassettes/DropService/retrieve_token_with_bad_credentials.yml
171
187
  - spec/cassettes/DropService/upload_file.yml
172
188
  - spec/cassettes/DropService/upload_public_file.yml
189
+ - spec/cloudapp/config_spec.rb
190
+ - spec/cloudapp/drop_content_spec.rb
173
191
  - spec/cloudapp/drop_presenter_spec.rb
174
192
  - spec/cloudapp/drop_service_spec.rb
175
193
  - spec/cloudapp/drop_spec.rb
176
194
  - spec/cloudapp/identity_spec.rb
177
195
  - spec/helper.rb
196
+ - spec/support/fakefs_rspec.rb
178
197
  - spec/support/files/favicon.ico
179
198
  - spec/support/stub_class_or_module.rb
180
199
  - spec/support/vcr.rb