upcloudify 0.1.4 → 0.2.0

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: a1930137c085dec154c0329a8f9fc5a05eea9eb5
4
- data.tar.gz: fd2022ba77743dec89e0d8b9f4ba831eb43ceb2d
3
+ metadata.gz: 51437a4e7aae40e759ee0ba5d6f1e2acb315aa97
4
+ data.tar.gz: 0d15d9fe5216b4a5aeab5c3f5bed7721c6e39e76
5
5
  SHA512:
6
- metadata.gz: ec66044fbf2abc3be507ab52e1225f938b534a59a8756183a1e9f463a056781dc63feb8a6ed541fd62a646cdc8d315cc985e0894776321ac91eb921fee8a6238
7
- data.tar.gz: 05fda3d145e912d39839f49a19d826019d77316b2c332ba8fb1690060d8c021f3a934ef9eb78c305a378513625b01ae827e45de8d3567ea113d16f8f6683545e
6
+ metadata.gz: b6ce941f145db02e1fb9937bd3e7105a24628b953ba0055901fa113abc5745a51307a26952f273a4109bbee7e9d2484b9e2488a109d824a21957024595a2f7ea
7
+ data.tar.gz: 230454d91dfa194a4e698dbc61b5166a193c1121c205e1524cc1d7e7a0c8e992846be89d2194b2cffd4c76486c7adb269c16f3653b0ee948b8deab3691044484
data/lib/upcloudify.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require "upcloudify/version"
2
- require "monkey_patches"
3
2
  require 'gem_config'
4
3
  require 'zip/zip'
5
4
  require 'zippy'
@@ -64,7 +63,7 @@ module Upcloudify
64
63
  attachment,
65
64
  options = {
66
65
  suffix: "",
67
- expiration: Time.now.tomorrow,
66
+ expiration: Date.today + 7,
68
67
  from: 'upcloudify',
69
68
  subject: 'your file is attached',
70
69
  body: 'your report is linked '
@@ -1,3 +1,3 @@
1
1
  module Upcloudify
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
data/upcloudify.gemspec CHANGED
@@ -31,6 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency 'zippy'
32
32
  spec.add_dependency 'zip-zip'
33
33
  spec.add_dependency 'fog'
34
- spec.add_dependency 'activesupport'
35
34
 
36
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upcloudify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - parasquid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,20 +150,6 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: activesupport
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :runtime
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
153
  description: |-
168
154
  Upcloudify simplifies the process for uploading
169
155
  attachments to the cloud and emailing the recipient
@@ -181,13 +167,11 @@ files:
181
167
  - LICENSE.txt
182
168
  - README.md
183
169
  - Rakefile
184
- - lib/monkey_patches.rb
185
170
  - lib/upcloudify.rb
186
171
  - lib/upcloudify/version.rb
187
172
  - sample_app/Gemfile
188
173
  - sample_app/sample.rb
189
174
  - sample_app/views/index.erb
190
- - spec/monkey_patches_spec.rb
191
175
  - spec/spec_helper.rb
192
176
  - spec/upcloudify_spec.rb
193
177
  - upcloudify.gemspec
@@ -216,6 +200,5 @@ signing_key:
216
200
  specification_version: 4
217
201
  summary: Upload a file to the cloud and email a link for the attachment
218
202
  test_files:
219
- - spec/monkey_patches_spec.rb
220
203
  - spec/spec_helper.rb
221
204
  - spec/upcloudify_spec.rb
@@ -1,17 +0,0 @@
1
- class Numeric
2
- def hour
3
- self * 3600
4
- end
5
- alias_method :hours, :hour
6
-
7
- def day
8
- self * 24.hours
9
- end
10
- alias_method :days, :day
11
- end
12
-
13
- class Time
14
- def tomorrow
15
- self + 1.day
16
- end
17
- end
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
- require 'monkey_patches'
3
-
4
- describe Time do
5
- context "tomorrow" do
6
- it 'gives the time for tomorrow' do
7
- time_now = Time.now
8
- expect(time_now.tomorrow).to be_within(0.0001).of(Time.at(time_now.to_f + 86400))
9
- end
10
- end
11
- end