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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4b5161c6b787e2296d34339308cfe683e4dd262
4
- data.tar.gz: a6a2563c81b7d3e81bb58c8e6086f9d6c7c8fc57
3
+ metadata.gz: abfaae33e5afb1849ea7176580cbfad7e99c43f0
4
+ data.tar.gz: 9e26db1407a20c3b29fa99c91176bf8851172573
5
5
  SHA512:
6
- metadata.gz: ff91daef885e4b3f434ed4557a2ced3bf54f7d5727cba1242d55007a625a07db9d88e7c848131c26fbd48854706fa7435750f46c71e3238d2bbc29bf068ea306
7
- data.tar.gz: 3007e755b913747c7b8e7635cf9131c7423a8feaa73bfce9aac91241674cc7530d0157f417eb245128b6a0a01a38bb5efb5f8c0e8369c6b85630c08d0bffbe08
6
+ metadata.gz: ab53c2022d2210bb8436bb76d900e0a3272527a51794e4396bef860b116430b343878e6c7819a358ac002680ecdbc8a329a4192f41bebaa7fc5f8b94adb7c6a3
7
+ data.tar.gz: 93697fdcc105e950abe145362d129f2d516b7038e883af97b2d3128c68b839f3b08aedead541d7f30349ed0f2e77153377ba573d471f305be6d67b256b3086f2
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015 YOURNAME
1
+ Copyright 2015 Marcin Jan Adamczyk
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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 test
16
+ def login
17
17
  check_credentials
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Spinacz
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: {}