model_to_googlesheet 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee372e20acc02c7b47bc25a06bcc5838976c4ff6
4
- data.tar.gz: e1b392f32d8b8a570a2538f8dcfcfa5b20ff5137
3
+ metadata.gz: 38a2455e4d26c1dff080f99da107cd3f35084132
4
+ data.tar.gz: c624e39894a779fda496a87c39a254ca0dc7d689
5
5
  SHA512:
6
- metadata.gz: af76b355337279b44539817326c2eb033d274bbe59f0849770a438a2fd83a7dd022197d4b2e2d0b4035b9d3e107c47e7eda5b9d21bddd3e56b835ee9103a1e3b
7
- data.tar.gz: 6d69ca4d58d15ba4011147d6a8117d653ee4e6030857e230ad2b83c107857f4575cbe4fb30d9036f04291e19afc68d4d2ec39b70df18ac7416dc0acb32c9f7f1
6
+ metadata.gz: a2f6954dead95c1bbcc2074c80735898f96b2d441dbdb83fa0038cb2cd5b392f4cfb74604cc60f7653475ce48c455ddadda9a5d51577feb5df2d9dce0c2fb525
7
+ data.tar.gz: ddeae0f6ab132f578b4ee12bd3d38ba74a4329364892775c7477434d8b96f2c8b0385fbf817ba05b16408bf5c7b43869aa4932804bbc93c4600b5413037b5031
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- model_to_googlesheet (2.0.0)
4
+ model_to_googlesheet (2.0.1)
5
5
  google_drive (~> 1.0)
6
6
  rails (~> 4.2)
7
7
 
data/README.md CHANGED
@@ -20,12 +20,12 @@ Once you get your **client_id**, **client_secret** and **refresh_token**, you ca
20
20
  Available options are include:
21
21
 
22
22
  `client_id`
23
- `client_secret`
24
- `refresh_token`
25
- `spreadsheet` - title of the spreadheet you'd like to export your data in.
26
- `worksheet` - title of the worksheet you'd like to export your data in. if either worksheet or spreadsheet with such titles don't exit, they will be created.
27
- `convert_with` - (optional) either symbol of method name in your model or Proc that will return hash (== columns and values to include in a worksheet created).
28
- `update` - (optional, only works for separate records) true or false, whether to update rows found by :find_by option. that is, if you have googlesheet rows with unique :name values, you may want to update to set `update: true, find_by: :name`, so that on `user.export_to_googlesheet` gem will try to find a row with a name equal to user's name, and, if successful, update it (or append a new one if row wasn't found). default behavious is to append any record.
23
+ `client_secret`
24
+ `refresh_token`
25
+ `spreadsheet` - title of the spreadheet you'd like to export your data in.
26
+ `worksheet` - title of the worksheet you'd like to export your data in. if either worksheet or spreadsheet with such titles don't exit, they will be created.
27
+ `convert_with` - (optional) either symbol of method name in your model or Proc that will return hash (== columns and values to include in a worksheet created).
28
+ `update` - (optional, only works for separate records) true or false, whether to update rows found by :find_by option. that is, if you have googlesheet rows with unique :name values, you may want to update to set `update: true, find_by: :name`, so that on `user.export_to_googlesheet` gem will try to find a row with a name equal to user's name, and, if successful, update it (or append a new one if row wasn't found). default behavious is to append any record.
29
29
  `find_by` - (optional, only works for separate records, necessary if `update: true`)
30
30
 
31
31
 
@@ -1,3 +1,3 @@
1
1
  module ModelToGooglesheet
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_to_googlesheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helga Karunus