spinacz 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/lib/spinacz/client.rb +4 -4
- data/lib/spinacz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abfaae33e5afb1849ea7176580cbfad7e99c43f0
|
4
|
+
data.tar.gz: 9e26db1407a20c3b29fa99c91176bf8851172573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab53c2022d2210bb8436bb76d900e0a3272527a51794e4396bef860b116430b343878e6c7819a358ac002680ecdbc8a329a4192f41bebaa7fc5f8b94adb7c6a3
|
7
|
+
data.tar.gz: 93697fdcc105e950abe145362d129f2d516b7038e883af97b2d3128c68b839f3b08aedead541d7f30349ed0f2e77153377ba573d471f305be6d67b256b3086f2
|
data/MIT-LICENSE
CHANGED
data/lib/spinacz/client.rb
CHANGED
@@ -5,15 +5,15 @@ module Spinacz
|
|
5
5
|
URL = 'https://spinacz.pl'
|
6
6
|
|
7
7
|
def initialize(credentials = {})
|
8
|
-
@email = email || self.class.email || ENV['SPINACZ_EMAIL']
|
8
|
+
@email = credentials[:email] || self.class.email || ENV['SPINACZ_EMAIL']
|
9
9
|
@email = @email.strip if @email
|
10
|
-
@password = password || self.class.password || ENV['SPINACZ_PASSWORD']
|
10
|
+
@password = credentials[:password] || self.class.password || ENV['SPINACZ_PASSWORD']
|
11
11
|
@password = @password.strip if @password
|
12
|
-
@token = token || self.class.token || ENV['SPINACZ_TOKEN']
|
12
|
+
@token = credentials[:token] || self.class.token || ENV['SPINACZ_TOKEN']
|
13
13
|
@token = @token.strip if @token
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def login
|
17
17
|
check_credentials
|
18
18
|
end
|
19
19
|
|
data/lib/spinacz/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spinacz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcin Jan Adamczyk
|
@@ -114,7 +114,7 @@ files:
|
|
114
114
|
- test/dummy/public/favicon.ico
|
115
115
|
- test/freshmail_test.rb
|
116
116
|
- test/test_helper.rb
|
117
|
-
homepage: https://github.com/tehPlayer/spinacz
|
117
|
+
homepage: https://github.com/tehPlayer/spinacz-rails
|
118
118
|
licenses:
|
119
119
|
- MIT
|
120
120
|
metadata: {}
|