towsta 1.2.9 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,10 @@ module Towsta
3
3
 
4
4
  class FormatedKind < MainKind
5
5
 
6
+ def set content
7
+ @content = content.to_s
8
+ end
9
+
6
10
  end
7
11
 
8
12
  end
@@ -14,7 +14,7 @@ module Towsta
14
14
  end
15
15
 
16
16
  def set content
17
- @content = content.to_s
17
+ @content = content.to_s.gsub("\\'","'")
18
18
  end
19
19
 
20
20
  def compare object
@@ -21,7 +21,7 @@ module Towsta
21
21
  uri = URI.parse("http://manager.towsta.com/synchronizers/#{$towsta_secret}/import.json")
22
22
  return JSON.parse Net::HTTP.post_form(uri, {:code => export.to_json}).body.to_s, :symbolize_names => true
23
23
  rescue
24
- return {:status => false}
24
+ return {:status => false, :message => 'Internal Server Error'}
25
25
  end
26
26
  end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "1.2.9"
2
+ VERSION = "1.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
  - 1
7
- - 2
8
- - 9
9
- version: 1.2.9
7
+ - 3
8
+ - 0
9
+ version: 1.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: 2012-01-09 00:00:00 -02:00
17
+ date: 2012-01-30 00:00:00 -02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency