activeresource-google_spreadsheets 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2e0556a89297114ca3f0a98c5e7b2ec582fbdcce
4
+ data.tar.gz: 015504c5967d2a903225c2960866683dd3304a1f
5
+ SHA512:
6
+ metadata.gz: 9900a1b1a1f57b07ce2eeb30e7e2ff7f092f7bb028d3900ffc6ca66e8c9600689e319cfd03d522b16c12538a8b01ec355487a25e550bd0913364d22de133908e
7
+ data.tar.gz: fffb23b5aa36a4c8beb9a9935544955215b0b83a4f04fe05fea482d52cf4e28236ed1eb31266d5b1aad78008c1e1083ee55d50d53ed775536d9fa77db6890961
@@ -33,10 +33,16 @@ module GoogleSpreadsheets
33
33
 
34
34
  def destroy() connection.delete(edit_path, self.class.headers) end
35
35
 
36
+ # Fix for degradation
37
+ # cf. https://github.com/rails/activeresource/pull/94
38
+ def encode(options={})
39
+ self.class.format.encode(attributes, {:root => self.class.element_name}.merge(options))
40
+ end
41
+
36
42
  protected
37
43
 
38
44
  def update
39
- returning connection.put(edit_path, encode, self.class.headers) do |response|
45
+ connection.put(edit_path, encode, self.class.headers).tap do |response|
40
46
  load_attributes_from_response(response)
41
47
  end
42
48
  end
@@ -1,3 +1,5 @@
1
+ require 'rexml/document'
2
+
1
3
  module GoogleSpreadsheets
2
4
  class GDataFormat
3
5
  def extension() '' end
@@ -1,3 +1,3 @@
1
1
  module GoogleSpreadsheets
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeresource-google_spreadsheets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chihiro Ito
@@ -10,44 +9,39 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-10-09 00:00:00.000000000 Z
12
+ date: 2013-12-26 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activeresource
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: activesupport
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: bundler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
@@ -63,17 +56,15 @@ dependencies:
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: rake
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - '>='
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  description: Google Spreadsheets accessor with ActiveResource
@@ -101,32 +92,25 @@ files:
101
92
  homepage: https://github.com/tkawa/activeresource-google_spreadsheets
102
93
  licenses:
103
94
  - MIT
95
+ metadata: {}
104
96
  post_install_message:
105
97
  rdoc_options: []
106
98
  require_paths:
107
99
  - lib
108
100
  required_ruby_version: !ruby/object:Gem::Requirement
109
- none: false
110
101
  requirements:
111
- - - ! '>='
102
+ - - '>='
112
103
  - !ruby/object:Gem::Version
113
104
  version: '0'
114
- segments:
115
- - 0
116
- hash: 3471737805379607528
117
105
  required_rubygems_version: !ruby/object:Gem::Requirement
118
- none: false
119
106
  requirements:
120
- - - ! '>='
107
+ - - '>='
121
108
  - !ruby/object:Gem::Version
122
109
  version: '0'
123
- segments:
124
- - 0
125
- hash: 3471737805379607528
126
110
  requirements: []
127
111
  rubyforge_project:
128
- rubygems_version: 1.8.24
112
+ rubygems_version: 2.1.11
129
113
  signing_key:
130
- specification_version: 3
114
+ specification_version: 4
131
115
  summary: Google Spreadsheets accessor with ActiveResource
132
116
  test_files: []