towsta 0.2.10 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  require 'net/http'
2
2
  require 'json'
3
+ require 'time'
3
4
 
4
5
  module Towsta
5
6
  class Synchronizer
@@ -19,7 +20,7 @@ module Towsta
19
20
  return false
20
21
  end
21
22
  begin
22
- Net::HTTP.start("manager.towsta.com"){|http| @json = http.get("/synchronizers/#{@secret}/export.json").body}
23
+ Net::HTTP.start("manager.towsta.com"){|http| @json = http.get("/synchronizers/#{@secret}/#{Time.now.to_i}/export.json").body}
23
24
  puts 'Synchronized with towsta...'
24
25
  if @json == " "
25
26
  puts 'Maybe your secret is wrong...'
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "0.2.10"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 10
9
- version: 0.2.10
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mortaro
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-23 00:00:00 -03:00
17
+ date: 2011-03-24 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency