siteleaf 2.0.0.pre.beta2 → 2.0.0.pre.beta3

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: aaec0c3df69391969dd9131dfb377b5bef1daff8
4
- data.tar.gz: b7b8f520f0441ad47bf3715d5e2e0a95be578046
3
+ metadata.gz: 7d9daa0addc86661e583c55511c7a8f81aef8b5b
4
+ data.tar.gz: 3ee0da5032908f0a3638415e43805cc43129246a
5
5
  SHA512:
6
- metadata.gz: 74364572d79d227b00f5823d9b92c58649deac88256b4037a883f0de3a2fd07f7708f3dff002ab7e922ef1ca2fbebc153699cde567ed3761d9a7b219e1b0d01b
7
- data.tar.gz: f33f21558322bdd00d3062a02668f8dd3535b68243b7e38ff5f6fb58d5b609ef5dad246ce941712d1e98e21b3c733d166519ac4c0ddd91a2953ab9b47ba49039
6
+ metadata.gz: d60be4bf50da50893c5b28dc02e02cce10ccd1f76f0567258656763c40eba8286c5cc71d51d1561f7c415aaa43dbaa70536c19261255b3a98e42a690f947032c
7
+ data.tar.gz: 9d6706b2a84c41161a74ecf1e68916e45a7f6d4d2f9aeaa16abbcd7beca81e2ab57df50798e0e4b216160a910b0b9fe22dd3f8d50b5435f81def1978aebbcc22
data/README.md CHANGED
@@ -29,7 +29,7 @@ Important: if using a Gemfile, make sure to prepend all commands with `bundle ex
29
29
 
30
30
  This will create an authorization file located at `~/.siteleaf.yml`.
31
31
 
32
- Alternatively, you can also use environment variables: `API_KEY=xxx API_SECRET=yyy siteleaf command`
32
+ Alternatively, you can also use environment variables: `SITELEAF_API_KEY=xxx SITELEAF_API_SECRET=yyy siteleaf command`
33
33
 
34
34
  You can also include use a `.siteleaf.yml` file in the root of your project:
35
35
 
data/bin/siteleaf CHANGED
@@ -31,7 +31,7 @@ See https://github.com/siteleaf/siteleaf-gem for additional documentation.
31
31
  end
32
32
 
33
33
  def auth(re_auth = false)
34
- Siteleaf.load_settings if !re_auth
34
+ Siteleaf.load_settings if !re_auth && !Siteleaf.api_key
35
35
 
36
36
  if re_auth or !Siteleaf.api_key
37
37
  print 'Enter your Siteleaf e-mail: '
@@ -216,9 +216,9 @@ def push(site_id)
216
216
  asset.delete if asset
217
217
  asset = model.create(attrs)
218
218
  if metadata && !metadata.empty?
219
- asset.metadata = metadata
220
- asset.save
219
+ asset = model.new(id: asset.id, metadata: metadata).save
221
220
  end
221
+ asset
222
222
 
223
223
  end
224
224
 
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "2.0.0.pre.beta2"
2
+ VERSION = "2.0.0.pre.beta3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta2
4
+ version: 2.0.0.pre.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siteleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-17 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty