lastpass 1.6.1 → 1.7.0

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
  SHA256:
3
- metadata.gz: 070a842b3f8be56b86ade3b3a800a34a1fe525bd2e3a28a41d0a983f4f06801c
4
- data.tar.gz: 9a14d8aef5c713ff09959ce6836422a2515c42d943f9056e6309c3ab115f1f39
3
+ metadata.gz: '09a65355723c0ba7300141aa42b691b35072efe71328f6095dce6580c4ff0ccd'
4
+ data.tar.gz: 3a18f05b3a62ef6fc42568956cc5a99f0bb229597795333363e54fadd036c107
5
5
  SHA512:
6
- metadata.gz: a1c65eef2cd5374189b10ad828de49ad2fa23dcc0ba8fa3493e5541e1122259cd0f75bf956bd2a79ee09c030452130ce2e73414190163f1481bdfbc7e17a7568
7
- data.tar.gz: 7014979dba5c65bd324a8d2352ee46ca89e805766a9a8ad3f9de887039a533a07caff54f744610054fa42ab91c52a353bb60708c4f0e255feed18cb878cb893f
6
+ metadata.gz: e08bffaa03731f26519611ea40b52aec82097e3421cda2e0b68ebd785fdafaf9e9e9d6bb39ca8ae4c8df606d43e417003032d006e6a8966591a6db1727073328
7
+ data.tar.gz: b49b1995780a93c08b87396e78cb8d6718e0920336cd4981c0421290cfaee653904aaca4af23573aa2458a51a8aeb8d4dc4d1e0775dd20410602bb188b7cd7b4
@@ -0,0 +1,23 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby: [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22
+ - run: bundle install
23
+ - run: bundle exec rake
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  /Gemfile.lock
3
3
  /coverage
4
4
  /example/credentials.yaml
5
+ /vendor/
@@ -1,3 +1,9 @@
1
+ Version 1.7.0
2
+ -------------
3
+
4
+ - Parse generic secure notes (thanks to Michael Chui @saraid)
5
+ - Parse and store secure notes for accounts (see `Account.note` property)
6
+
1
7
  Version 1.6.1
2
8
  -------------
3
9
 
@@ -12,6 +12,7 @@ require "lastpass/chunk"
12
12
  require "lastpass/exceptions"
13
13
  require "lastpass/http"
14
14
  require "lastpass/fetcher"
15
+ require "lastpass/note"
15
16
  require "lastpass/parser"
16
17
  require "lastpass/session"
17
18
  require "lastpass/vault"
@@ -8,14 +8,16 @@ module LastPass
8
8
  :username,
9
9
  :password,
10
10
  :url,
11
+ :notes,
11
12
  :group
12
13
 
13
- def initialize id, name, username, password, url, group
14
+ def initialize id, name, username, password, url, notes, group
14
15
  @id = id
15
16
  @name = name
16
17
  @username = username
17
18
  @password = password
18
19
  @url = url
20
+ @notes = notes
19
21
  @group = group
20
22
  end
21
23
  end
@@ -0,0 +1,15 @@
1
+ module LastPass
2
+ class Note
3
+ attr_reader :id,
4
+ :name,
5
+ :notes,
6
+ :group
7
+
8
+ def initialize id, name, notes, group
9
+ @id = id
10
+ @name = name
11
+ @notes = notes
12
+ @group = group
13
+ end
14
+ end
15
+ end
@@ -7,7 +7,7 @@ module LastPass
7
7
  RSA_PKCS1_OAEP_PADDING = 4
8
8
 
9
9
  # Secure note types that contain account-like information
10
- ALLOWED_SECURE_NOTE_TYPES = {
10
+ ACCOUNT_LIKE_SECURE_NOTE_TYPES = {
11
11
  "Server" => true,
12
12
  "Email Account" => true,
13
13
  "Database" => true,
@@ -28,9 +28,9 @@ module LastPass
28
28
  end
29
29
 
30
30
  # Parses an account chunk, decrypts and creates an Account object.
31
- # May return nil when the chunk does not represent an account.
32
- # All secure notes are ACCTs but not all of them strore account
33
- # information.
31
+ # Returns either an Account or a Note object, in case of a generic
32
+ # note that doesn't represent an account. All secure notes are ACCTs
33
+ # but not all of them store account information.
34
34
  #
35
35
  # TODO: Make a test case that covers secure note account
36
36
  def self.parse_ACCT chunk, encryption_key
@@ -49,8 +49,8 @@ module LastPass
49
49
  # Parse secure note
50
50
  if secure_note == "1"
51
51
  parsed = parse_secure_note_server notes
52
- if !ALLOWED_SECURE_NOTE_TYPES.key? parsed[:type]
53
- return nil
52
+ if !ACCOUNT_LIKE_SECURE_NOTE_TYPES.key? parsed[:type]
53
+ return Note.new id, name, notes, group
54
54
  end
55
55
 
56
56
  url = parsed[:url] if parsed.key? :url
@@ -58,7 +58,7 @@ module LastPass
58
58
  password = parsed[:password] if parsed.key? :password
59
59
  end
60
60
 
61
- Account.new id, name, username, password, url, group
61
+ Account.new id, name, username, password, url, notes, group
62
62
  end
63
63
  end
64
64
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  module LastPass
5
5
  class Vault
6
- attr_reader :accounts
6
+ attr_reader :accounts, :notes
7
7
 
8
8
  # Fetches a blob from the server and creates a vault
9
9
  def self.open_remote username, password, multifactor_password = nil, client_id = nil
@@ -37,15 +37,20 @@ module LastPass
37
37
  private_key = Parser.parse_private_key blob.encrypted_private_key, encryption_key
38
38
  end
39
39
 
40
- @accounts = parse_accounts chunks, encryption_key, private_key
40
+ @accounts, @notes = parse_accounts_and_notes chunks, encryption_key, private_key
41
+ end
42
+
43
+ def accounts_and_notes
44
+ @accounts_and_notes ||= @accounts + @notes
41
45
  end
42
46
 
43
47
  def complete? chunks
44
48
  !chunks.empty? && chunks.last.id == "ENDM" && chunks.last.payload == "OK"
45
49
  end
46
50
 
47
- def parse_accounts chunks, encryption_key, private_key
51
+ def parse_accounts_and_notes chunks, encryption_key, private_key
48
52
  accounts = []
53
+ notes = []
49
54
  key = encryption_key
50
55
 
51
56
  chunks.each do |i|
@@ -53,8 +58,11 @@ module LastPass
53
58
  when "ACCT"
54
59
  # TODO: Put shared folder name as group in the account
55
60
  account = Parser.parse_ACCT i, key
56
- if account
61
+ case account
62
+ when Account
57
63
  accounts << account
64
+ when Note
65
+ notes << account
58
66
  end
59
67
  when "SHAR"
60
68
  raise "private_key must be provided" if !private_key
@@ -64,7 +72,7 @@ module LastPass
64
72
  end
65
73
  end
66
74
 
67
- accounts
75
+ [accounts, notes]
68
76
  end
69
77
  end
70
78
  end
@@ -2,5 +2,5 @@
2
2
  # Licensed under the terms of the MIT license. See LICENCE for details.
3
3
 
4
4
  module LastPass
5
- VERSION = "1.6.1"
5
+ VERSION = "1.7.0"
6
6
  end
@@ -9,14 +9,16 @@ describe LastPass::Account do
9
9
  let(:username) { "username" }
10
10
  let(:password) { "password" }
11
11
  let(:url) { "url" }
12
+ let(:notes) { "notes" }
12
13
  let(:group) { "group" }
13
14
 
14
- subject { LastPass::Account.new id, name, username, password, url, group }
15
+ subject { LastPass::Account.new id, name, username, password, url, notes, group }
15
16
 
16
17
  its(:id) { should eq id }
17
18
  its(:name) { should eq name }
18
19
  its(:username) { should eq username }
19
20
  its(:password) { should eq password }
20
21
  its(:url) { should eq url }
22
+ its(:notes) { should eq notes }
21
23
  its(:group) { should eq group }
22
24
  end
@@ -893,104 +893,104 @@ TEST_ENCRYPTION_KEY = "p8utF7ZB8yD06SrtrD4hsdvEOiBU1Y19cr2dhG9DWZg=".decode64
893
893
  TEST_KEY_ITERATION_COUNT = 5000
894
894
 
895
895
  TEST_ACCOUNTS = [
896
- LastPass::Account.new("1872745596", "Muller, Morar and Wisoky", "branson_cormier", "8jgLCzQSkB2rTZ1OtF9sNGpc", "http://nienow.net/meagan.greenholt", "three"),
897
- LastPass::Account.new("1872745606", "goyette.net", "kris_quigley@baileyjewe.biz", "S5@3^wPv!6JsFj", "http://bechtelar.biz/tristian.barrows", "four"),
898
- LastPass::Account.new("1872745616", "Ward Inc", "angela_emard", "zp8N@KoWyS0IYu7VR$dvBF!t", "http://schuster.name/ashton", "one"),
899
- LastPass::Account.new("1872745626", "stehr.com", "bailee_marvin@mohrlegros.net", "cupiditate", "http://runolfon.org/te", "three"),
900
- LastPass::Account.new("1872745636", "kiehn.biz", "freda", "et", "http://hintzprohaska.biz/wade.fisher", "one"),
901
- LastPass::Account.new("1872745646", "Jacobs and Sons", "johnnie.hand", "gzyl6714", "http://schultzheaney.org/arvid", ""),
902
- LastPass::Account.new("1872745656", "Larkin, Kautzer and Wiegand", "hilton", "zguovmdr8703", "http://streich.com/ramona", "one"),
903
- LastPass::Account.new("1872745666", "Conn Inc", "malvina_paucek@nikolausveum.net", "numquam", "http://conn.net/leda", "four"),
904
- LastPass::Account.new("1872745676", "Block, Sanford and Connelly", "marilie_wolff", "zKcy?U*aCGS^gf@Z", "http://conroy.biz/zachery", "two"),
905
- LastPass::Account.new("1872745686", "gradyrenner.org", "oswald@ryan.info", "ojgwad28", "http://kihn.org/candice", ""),
906
- LastPass::Account.new("1872745696", "lesch.net", "nicholas", "Pkc72Lmr1qwI%sNV^d4@GtX", "http://glover.name/jerad", "two"),
907
- LastPass::Account.new("1872745706", "sipes.biz", "kaitlyn.bernier@reichel.net", "in", "http://mayert.name/jeromy", "two"),
908
- LastPass::Account.new("1872745716", "Hintz-Herman", "prince.moriette", "0hebvIS@s^BwMc", "http://sanfordwunsch.org/alek", ""),
909
- LastPass::Account.new("1872745726", "Hammes-Kassulke", "brooke@gloverhintz.net", "paokcs08", "http://lehner.biz/stanley.dooley", "four"),
910
- LastPass::Account.new("1872745736", "hermann.com", "jasper_dickens", "Ppj2b!rIMLu*@ElTCZU", "http://rolfson.net/jaden", "one"),
911
- LastPass::Account.new("1872745746", "Veum and Sons", "marquise@quitzonbrown.com", "owsg728", "http://fahey.name/jon_ankunding", "one"),
912
- LastPass::Account.new("1872745756", "Balistreri, Emard and Mayert", "verona@willmswhite.info", "wnydas6714", "http://treutelkiehn.org/marcos", "two"),
913
- LastPass::Account.new("1872745766", "lindkeler.net", "ed", "quia", "http://leffler.info/chaya", "one"),
914
- LastPass::Account.new("1872745776", "nikolaus.biz", "leonard", "oW9fdvJLkp#%I", "http://brakuswilliamson.com/bret", ""),
915
- LastPass::Account.new("1872745786", "bartonherzog.net", "dock@vonrueden.net", "beatae", "http://kunzeokuneva.info/shawn_langosh", "three"),
916
- LastPass::Account.new("1872745796", "howe.org", "chad@walker.biz", "zexfir7951", "http://crooks.com/sandrine", ""),
917
- LastPass::Account.new("1872745806", "shields.info", "modesto@kunzenicolas.com", "*JDSdp@VyR8f5FOALW", "http://kemmer.org/hilton", "three"),
918
- LastPass::Account.new("1872745816", "kihnabernathy.com", "mafalda.treutel@gislason.name", "hwuoxizq18", "http://trompbernhard.com/trea.hirthe", "two"),
919
- LastPass::Account.new("1872745826", "Gislason and Sons", "torrey@kshlerin.info", "OfZrTFAIq?Uyl9X$", "http://ullrich.info/carlee", "four"),
920
- LastPass::Account.new("1872745836", "simonis.com", "marco.cronin", "upokmxct57", "http://rippin.name/bonita_hickle", "four"),
921
- LastPass::Account.new("1872745856", "Howell, Beer and Yundt", "raegan@cruickshankgreenholt.org", "dHPFrtOjieum4L", "http://aufderharrunolfsdottir.info/felicia_torphy", "two"),
922
- LastPass::Account.new("1872745866", "Gottlieb-Ernser", "ivory.moore@paucek.com", "fugit", "http://lockmanlynch.net/alba", "four"),
923
- LastPass::Account.new("1872745876", "Emmerich and Sons", "lacey.bernier@hansenboyer.com", "aqzkolu6021", "http://carrollschmitt.com/willy.emard", "three"),
924
- LastPass::Account.new("1872745886", "Gerlach, Kirlin and Roberts", "maiya@bayergusikowski.org", "nhit3214", "http://feil.net/natasha_howe", "one"),
925
- LastPass::Account.new("1872745896", "ryan.net", "rubie@fahey.org", "aihw^uFgXnC%R", "http://gleasonjakubowski.biz/august", ""),
926
- LastPass::Account.new("1872745906", "Jewess, Wolf and Volkman", "kristin_blanda@howekuhlman.biz", "nacro5213", "http://wilkinsonleannon.name/bud.willms", "two"),
927
- LastPass::Account.new("1872745916", "Ritchie Group", "nathen_ortiz@turner.biz", "XfmN@G%ebsK1Jc$q", "http://price.info/urban", "two"),
928
- LastPass::Account.new("1872745926", "wiegand.info", "lavon_greenholt", "fzedpuq30", "http://paucekturcotte.org/kadin_gibson", ""),
929
- LastPass::Account.new("1872745936", "Rohan, Schneider and Daniel", "zella.effertz", "wksei21", "http://runte.com/camryn.hane", "one"),
930
- LastPass::Account.new("1872745946", "boyle.name", "gennaro_goldner@kovacek.biz", "eaJD#Kb6UAis@M*8jhILk", "http://kulasklein.info/nyasia", "four"),
931
- LastPass::Account.new("1872745956", "Pouros-Funk", "maudie@fahey.org", "wahkvms6871", "http://schaefer.info/leslie.bogan", "three"),
932
- LastPass::Account.new("1872745966", "Parisian-Legros", "holly", "et", "http://naderrempel.net/gwen_schmidt", "four"),
933
- LastPass::Account.new("1872745976", "Rosenbaum-Schulist", "jordy.krajcik", "xqzflsy843", "http://dooley.info/alek_parker", "four"),
934
- LastPass::Account.new("1872745986", "christiansen.info", "phoebe@larson.info", "bilvs07", "http://johns.name/columbus.dooley", "two"),
935
- LastPass::Account.new("1872745996", "Hauck, Thiel and VonRueden", "leif", "QVx?JvZ46e1FBmsAi", "http://bauch.org/marlin", "one"),
936
- LastPass::Account.new("1872746006", "Sipes and Sons", "leland", "ecgs1758", "http://dubuque.com/jacey", "one"),
937
- LastPass::Account.new("1872746016", "Osinski LLC", "rhoda", "nhwo705", "http://schinner.org/price", "four"),
938
- LastPass::Account.new("1872746026", "daniel.name", "santina@wiegand.net", "dolorem", "http://torp.net/shyanne.smitham", ""),
939
- LastPass::Account.new("1872746036", "darekutch.name", "ali", "U*kgl8u1p#QO9xWNnEd0b3", "http://mante.com/caie_streich", ""),
940
- LastPass::Account.new("1872746046", "grimes.com", "eunice_satterfield@baileymante.net", "ipsam", "http://swaniawski.org/wendell_gaylord", "three"),
941
- LastPass::Account.new("1872746056", "conn.name", "sandrine", "rv%XVjo#2Id?@4L", "http://rolfson.com/willy_bartell", ""),
942
- LastPass::Account.new("1872746066", "Kozey-Spinka", "brando.kshlerin", "consequatur", "http://collinsreichel.net/yasmine", "three"),
943
- LastPass::Account.new("1872746076", "Daugherty LLC", "horacio_schulist@davis.net", "sbxzn64", "http://deckow.net/roosevelt.kshlerin", "four"),
944
- LastPass::Account.new("1872746086", "Lubowitz LLC", "maxine@ebertmckenzie.biz", "qrcl02", "http://considineheidenreich.name/name.christiansen", ""),
945
- LastPass::Account.new("1872746096", "mante.name", "jayne", "xnekizj90", "http://bogisich.net/lori", "four"),
946
- LastPass::Account.new("1872746106", "Mante LLC", "antonio.turner@sauertorphy.com", "ckomnf175", "http://herzog.name/luigi", ""),
947
- LastPass::Account.new("1872746116", "Greenholt-Hodkiewicz", "moriah@mccullough.org", "udaxo7451", "http://mann.com/cecile", "three"),
948
- LastPass::Account.new("1872746126", "Rosenbaum, Sipes and Leffler", "keshaun@schroeder.info", "recusandae", "http://dooley.name/ewald", "two"),
949
- LastPass::Account.new("1872746136", "Fadel, Ferry and Kohler", "sister", "sUxoLNhl8Kty*Ve76b45G", "http://balistrerimcclure.com/jaquan_wilkinson", "two"),
950
- LastPass::Account.new("1872746146", "Schaden-Rosenbaum", "godfrey", "oDVcsx*m!0Rb@NjSyqdGIl", "http://pouros.net/jeremie", ""),
951
- LastPass::Account.new("1872746156", "Monahan, Reinger and McKenzie", "christophe.kub@luettgen.name", "fLqj&e$TyNo8gd7!", "http://keler.info/nikita.lindgren", "four"),
952
- LastPass::Account.new("1872746166", "bednar.info", "roselyn@hickle.com", "*2tiEP&Ic7dT", "http://jaskolski.com/conner_ortiz", "two"),
953
- LastPass::Account.new("1872746176", "Jewess, Wolf and Feil", "hal", "doloribus", "http://champlin.org/lue_schroeder", "three"),
954
- LastPass::Account.new("1872746186", "Kunze-Hettinger", "camilla_pagac", "elpbzT08Dvo6NyQF3wPEr", "http://donnellyadams.com/santino", "one"),
955
- LastPass::Account.new("1872746196", "Jacobs, Toy and Schultz", "billy_boehm@will.biz", "g5X*hRwlmcL6ZM", "http://larkinconsidine.org/leola", "one"),
956
- LastPass::Account.new("1872746206", "sanford.com", "joy@abbott.org", "rfolun872", "http://runtemoen.name/pierre", "three"),
957
- LastPass::Account.new("1872746216", "upton.net", "susana.gaylord", "WR4KxbU^@$Vpi%QH9Mv#T", "http://moore.info/pearl", "three"),
958
- LastPass::Account.new("1872746226", "wiegand.biz", "ashleigh_gutmann", "t7C&j!Ox21oha5sX*f", "http://armstronghackett.name/jaeden", "three"),
959
- LastPass::Account.new("1872746236", "schneider.net", "eunice.sauer@ledner.org", "U%EFVGnxw2fQ^t*", "http://schulistmetz.info/esperanza_cummerata", "two"),
960
- LastPass::Account.new("1872746246", "Swift-Stoltenberg", "katelin_rempel", "labore", "http://beermills.net/danielle", "two"),
961
- LastPass::Account.new("1872746256", "Heathcote Group", "hope.waters@parisianbruen.info", "EhG7zBTb8OseI", "http://douglas.name/porter", ""),
962
- LastPass::Account.new("1872746266", "hilpert.com", "phyllis.lemke", "est", "http://donnelly.com/tyrique_langosh", "one"),
963
- LastPass::Account.new("1872746276", "daviswolff.name", "martine@ryan.com", "incidunt", "http://schoen.info/macy", "one"),
964
- LastPass::Account.new("1872746286", "Bahringer, Prohaska and Mills", "merritt_reilly@lynch.info", "dyX^xZ3HTKsqFIMeA", "http://schuppe.com/rosetta.yundt", ""),
965
- LastPass::Account.new("1872746296", "ledner.name", "billie.lueilwitz@kertzmann.org", "Zi5K6tXh91mJG3EnjBD4r", "http://feil.com/isabelle", "four"),
966
- LastPass::Account.new("1872746306", "jerdecormier.com", "renee.towne@ruecker.net", "vuzoskg85", "http://mckenzie.net/zaria", ""),
967
- LastPass::Account.new("1872746316", "harbervandervort.org", "elta_haag@okuneva.net", "2?GVri70HkKceU*m#CZ3x", "http://whiteklocko.name/lacey.dare", "one"),
968
- LastPass::Account.new("1872746326", "gulgowskimann.org", "chaz_brakus", "explicabo", "http://okuneva.biz/lisandro", "two"),
969
- LastPass::Account.new("1872746336", "padbergconn.info", "lenore@ullrich.net", "ORrNKnhuqd7xeULa^YDk", "http://sauerkuvalis.info/braxton", "one"),
970
- LastPass::Account.new("1872746346", "davis.com", "margarett", "debitis", "http://spinka.info/kendra", ""),
971
- LastPass::Account.new("1872746366", "Gerlach Inc", "krystel_boyer", "qui", "http://pouromitham.name/efrain", "three"),
972
- LastPass::Account.new("1872746376", "cummerata.net", "rudy.flatley", "mzqvakic527", "http://heidenreich.net/ryann_hayes", ""),
973
- LastPass::Account.new("1872746386", "schowalter.name", "hyman.satterfield", "pjts564", "http://okeefedamore.biz/giovani", "one"),
974
- LastPass::Account.new("1872746396", "McLaughlin-Fadel", "fanny_sporer", "kyti64", "http://dickibosco.biz/zachariah", "four"),
975
- LastPass::Account.new("1872746406", "Gerlach-Nienow", "treva.block", "csnxhldi893", "http://kunzemurazik.net/johnny.koch", "two"),
976
- LastPass::Account.new("1872746416", "O'Reilly-Trantow", "grayson", "non", "http://harris.name/rosalind_marquardt", "three"),
977
- LastPass::Account.new("1872746426", "Larkin-Konopelski", "josianne_walker", "bwms78", "http://runolfsdottir.name/nicklaus_hayes", "two"),
978
- LastPass::Account.new("1872746436", "Swaniawski, Will and Gaylord", "jeramie.ohara@nader.org", "quia", "http://oreilly.info/dahlia_donnelly", ""),
979
- LastPass::Account.new("1872746446", "emmerichgaylord.name", "diana@hansenbeahan.net", "omnis", "http://rath.net/leif_hermann", "three"),
980
- LastPass::Account.new("1872746456", "armstrong.org", "genesis@rosenbaumlueilwitz.biz", "zHeu%^kxj9Y0Qr4@m*3!ov", "http://schmidtmertz.name/kira", "one"),
981
- LastPass::Account.new("1872746466", "Waelchi Group", "trace.heaney@heidenreichbernier.com", "whljnru03", "http://moore.biz/anibal", "two"),
982
- LastPass::Account.new("1872746476", "fahey.org", "ward_okuneva", "qjnz18", "http://leuschke.com/daphney", "two"),
983
- LastPass::Account.new("1872746486", "koelpin.info", "dylan.klocko", "vdjlot364", "http://cronin.net/cyril", "three"),
984
- LastPass::Account.new("1872746496", "Murphy-Breitenberg", "marcia_kreiger", "dacyz723", "http://steuber.com/ali_gibson", "three"),
985
- LastPass::Account.new("1872746506", "andersondicki.org", "ceasar@lind.com", "nvymdsk14", "http://kertzmann.biz/jaydon_kunze", "four"),
986
- LastPass::Account.new("1872746516", "watersreichel.net", "adella_price@beahanblock.biz", "maiores", "http://gutkowskirau.org/dora.williamson", "four"),
987
- LastPass::Account.new("1872746526", "torphy.biz", "osborne_hackett@davis.org", "wkdcu1265", "http://buckridge.net/lauretta.veum", "four"),
988
- LastPass::Account.new("1872746536", "Moen-Hermiston", "hildegard@hahn.com", "zbag942", "http://cummingswehner.biz/april", ""),
989
- LastPass::Account.new("1872746546", "Gaylord-Lowe", "jerrell", "quasi", "http://grady.biz/mohammed_brakus", ""),
990
- LastPass::Account.new("1872746556", "Bechtelar, Wyman and Thompson", "shanie@batz.biz", "vel", "http://gottlieb.name/elisabeth", "four"),
991
- LastPass::Account.new("1872746566", "jacobs.info", "lon_champlin@cristlittel.name", "aut", "http://dachgislason.org/alva", "two"),
992
- LastPass::Account.new("1872746576", "ankunding.com", "reina_runolfon@altenwerthhilll.net", "@g&aWsoTeJEFhHK5wr#4", "http://rice.info/giovanny_ebert", "two"),
993
- LastPass::Account.new("1872746586", "Okuneva-Schmitt", "esperanza@kshlerin.com", "djwhba31", "http://glovermckenzie.info/katelynn", ""),
994
- LastPass::Account.new("1872746596", "jones.name", "elvera", "ewoqt49", "http://sipes.com/joey.metz", "two"),
995
- LastPass::Account.new("1872746606", "Tromp-Roob", "brisa.mcdermott", "vcnkg254", "http://bernier.org/gage_haag", "three"),
896
+ LastPass::Account.new("1872745596", "Muller, Morar and Wisoky", "branson_cormier", "8jgLCzQSkB2rTZ1OtF9sNGpc", "http://nienow.net/meagan.greenholt", "", "three"),
897
+ LastPass::Account.new("1872745606", "goyette.net", "kris_quigley@baileyjewe.biz", "S5@3^wPv!6JsFj", "http://bechtelar.biz/tristian.barrows", "", "four"),
898
+ LastPass::Account.new("1872745616", "Ward Inc", "angela_emard", "zp8N@KoWyS0IYu7VR$dvBF!t", "http://schuster.name/ashton", "", "one"),
899
+ LastPass::Account.new("1872745626", "stehr.com", "bailee_marvin@mohrlegros.net", "cupiditate", "http://runolfon.org/te", "", "three"),
900
+ LastPass::Account.new("1872745636", "kiehn.biz", "freda", "et", "http://hintzprohaska.biz/wade.fisher", "", "one"),
901
+ LastPass::Account.new("1872745646", "Jacobs and Sons", "johnnie.hand", "gzyl6714", "http://schultzheaney.org/arvid", "", ""),
902
+ LastPass::Account.new("1872745656", "Larkin, Kautzer and Wiegand", "hilton", "zguovmdr8703", "http://streich.com/ramona", "", "one"),
903
+ LastPass::Account.new("1872745666", "Conn Inc", "malvina_paucek@nikolausveum.net", "numquam", "http://conn.net/leda", "", "four"),
904
+ LastPass::Account.new("1872745676", "Block, Sanford and Connelly", "marilie_wolff", "zKcy?U*aCGS^gf@Z", "http://conroy.biz/zachery", "", "two"),
905
+ LastPass::Account.new("1872745686", "gradyrenner.org", "oswald@ryan.info", "ojgwad28", "http://kihn.org/candice", "", ""),
906
+ LastPass::Account.new("1872745696", "lesch.net", "nicholas", "Pkc72Lmr1qwI%sNV^d4@GtX", "http://glover.name/jerad", "", "two"),
907
+ LastPass::Account.new("1872745706", "sipes.biz", "kaitlyn.bernier@reichel.net", "in", "http://mayert.name/jeromy", "", "two"),
908
+ LastPass::Account.new("1872745716", "Hintz-Herman", "prince.moriette", "0hebvIS@s^BwMc", "http://sanfordwunsch.org/alek", "", ""),
909
+ LastPass::Account.new("1872745726", "Hammes-Kassulke", "brooke@gloverhintz.net", "paokcs08", "http://lehner.biz/stanley.dooley", "", "four"),
910
+ LastPass::Account.new("1872745736", "hermann.com", "jasper_dickens", "Ppj2b!rIMLu*@ElTCZU", "http://rolfson.net/jaden", "", "one"),
911
+ LastPass::Account.new("1872745746", "Veum and Sons", "marquise@quitzonbrown.com", "owsg728", "http://fahey.name/jon_ankunding", "", "one"),
912
+ LastPass::Account.new("1872745756", "Balistreri, Emard and Mayert", "verona@willmswhite.info", "wnydas6714", "http://treutelkiehn.org/marcos", "", "two"),
913
+ LastPass::Account.new("1872745766", "lindkeler.net", "ed", "quia", "http://leffler.info/chaya", "", "one"),
914
+ LastPass::Account.new("1872745776", "nikolaus.biz", "leonard", "oW9fdvJLkp#%I", "http://brakuswilliamson.com/bret", "", ""),
915
+ LastPass::Account.new("1872745786", "bartonherzog.net", "dock@vonrueden.net", "beatae", "http://kunzeokuneva.info/shawn_langosh", "", "three"),
916
+ LastPass::Account.new("1872745796", "howe.org", "chad@walker.biz", "zexfir7951", "http://crooks.com/sandrine", "", ""),
917
+ LastPass::Account.new("1872745806", "shields.info", "modesto@kunzenicolas.com", "*JDSdp@VyR8f5FOALW", "http://kemmer.org/hilton", "", "three"),
918
+ LastPass::Account.new("1872745816", "kihnabernathy.com", "mafalda.treutel@gislason.name", "hwuoxizq18", "http://trompbernhard.com/trea.hirthe", "", "two"),
919
+ LastPass::Account.new("1872745826", "Gislason and Sons", "torrey@kshlerin.info", "OfZrTFAIq?Uyl9X$", "http://ullrich.info/carlee", "", "four"),
920
+ LastPass::Account.new("1872745836", "simonis.com", "marco.cronin", "upokmxct57", "http://rippin.name/bonita_hickle", "", "four"),
921
+ LastPass::Account.new("1872745856", "Howell, Beer and Yundt", "raegan@cruickshankgreenholt.org", "dHPFrtOjieum4L", "http://aufderharrunolfsdottir.info/felicia_torphy", "", "two"),
922
+ LastPass::Account.new("1872745866", "Gottlieb-Ernser", "ivory.moore@paucek.com", "fugit", "http://lockmanlynch.net/alba", "", "four"),
923
+ LastPass::Account.new("1872745876", "Emmerich and Sons", "lacey.bernier@hansenboyer.com", "aqzkolu6021", "http://carrollschmitt.com/willy.emard", "", "three"),
924
+ LastPass::Account.new("1872745886", "Gerlach, Kirlin and Roberts", "maiya@bayergusikowski.org", "nhit3214", "http://feil.net/natasha_howe", "", "one"),
925
+ LastPass::Account.new("1872745896", "ryan.net", "rubie@fahey.org", "aihw^uFgXnC%R", "http://gleasonjakubowski.biz/august", "", ""),
926
+ LastPass::Account.new("1872745906", "Jewess, Wolf and Volkman", "kristin_blanda@howekuhlman.biz", "nacro5213", "http://wilkinsonleannon.name/bud.willms", "", "two"),
927
+ LastPass::Account.new("1872745916", "Ritchie Group", "nathen_ortiz@turner.biz", "XfmN@G%ebsK1Jc$q", "http://price.info/urban", "", "two"),
928
+ LastPass::Account.new("1872745926", "wiegand.info", "lavon_greenholt", "fzedpuq30", "http://paucekturcotte.org/kadin_gibson", "", ""),
929
+ LastPass::Account.new("1872745936", "Rohan, Schneider and Daniel", "zella.effertz", "wksei21", "http://runte.com/camryn.hane", "", "one"),
930
+ LastPass::Account.new("1872745946", "boyle.name", "gennaro_goldner@kovacek.biz", "eaJD#Kb6UAis@M*8jhILk", "http://kulasklein.info/nyasia", "", "four"),
931
+ LastPass::Account.new("1872745956", "Pouros-Funk", "maudie@fahey.org", "wahkvms6871", "http://schaefer.info/leslie.bogan", "", "three"),
932
+ LastPass::Account.new("1872745966", "Parisian-Legros", "holly", "et", "http://naderrempel.net/gwen_schmidt", "", "four"),
933
+ LastPass::Account.new("1872745976", "Rosenbaum-Schulist", "jordy.krajcik", "xqzflsy843", "http://dooley.info/alek_parker", "", "four"),
934
+ LastPass::Account.new("1872745986", "christiansen.info", "phoebe@larson.info", "bilvs07", "http://johns.name/columbus.dooley", "", "two"),
935
+ LastPass::Account.new("1872745996", "Hauck, Thiel and VonRueden", "leif", "QVx?JvZ46e1FBmsAi", "http://bauch.org/marlin", "", "one"),
936
+ LastPass::Account.new("1872746006", "Sipes and Sons", "leland", "ecgs1758", "http://dubuque.com/jacey", "", "one"),
937
+ LastPass::Account.new("1872746016", "Osinski LLC", "rhoda", "nhwo705", "http://schinner.org/price", "", "four"),
938
+ LastPass::Account.new("1872746026", "daniel.name", "santina@wiegand.net", "dolorem", "http://torp.net/shyanne.smitham", "", ""),
939
+ LastPass::Account.new("1872746036", "darekutch.name", "ali", "U*kgl8u1p#QO9xWNnEd0b3", "http://mante.com/caie_streich", "", ""),
940
+ LastPass::Account.new("1872746046", "grimes.com", "eunice_satterfield@baileymante.net", "ipsam", "http://swaniawski.org/wendell_gaylord", "", "three"),
941
+ LastPass::Account.new("1872746056", "conn.name", "sandrine", "rv%XVjo#2Id?@4L", "http://rolfson.com/willy_bartell", "", ""),
942
+ LastPass::Account.new("1872746066", "Kozey-Spinka", "brando.kshlerin", "consequatur", "http://collinsreichel.net/yasmine", "", "three"),
943
+ LastPass::Account.new("1872746076", "Daugherty LLC", "horacio_schulist@davis.net", "sbxzn64", "http://deckow.net/roosevelt.kshlerin", "", "four"),
944
+ LastPass::Account.new("1872746086", "Lubowitz LLC", "maxine@ebertmckenzie.biz", "qrcl02", "http://considineheidenreich.name/name.christiansen", "", ""),
945
+ LastPass::Account.new("1872746096", "mante.name", "jayne", "xnekizj90", "http://bogisich.net/lori", "", "four"),
946
+ LastPass::Account.new("1872746106", "Mante LLC", "antonio.turner@sauertorphy.com", "ckomnf175", "http://herzog.name/luigi", "", ""),
947
+ LastPass::Account.new("1872746116", "Greenholt-Hodkiewicz", "moriah@mccullough.org", "udaxo7451", "http://mann.com/cecile", "", "three"),
948
+ LastPass::Account.new("1872746126", "Rosenbaum, Sipes and Leffler", "keshaun@schroeder.info", "recusandae", "http://dooley.name/ewald", "", "two"),
949
+ LastPass::Account.new("1872746136", "Fadel, Ferry and Kohler", "sister", "sUxoLNhl8Kty*Ve76b45G", "http://balistrerimcclure.com/jaquan_wilkinson", "", "two"),
950
+ LastPass::Account.new("1872746146", "Schaden-Rosenbaum", "godfrey", "oDVcsx*m!0Rb@NjSyqdGIl", "http://pouros.net/jeremie", "", ""),
951
+ LastPass::Account.new("1872746156", "Monahan, Reinger and McKenzie", "christophe.kub@luettgen.name", "fLqj&e$TyNo8gd7!", "http://keler.info/nikita.lindgren", "", "four"),
952
+ LastPass::Account.new("1872746166", "bednar.info", "roselyn@hickle.com", "*2tiEP&Ic7dT", "http://jaskolski.com/conner_ortiz", "", "two"),
953
+ LastPass::Account.new("1872746176", "Jewess, Wolf and Feil", "hal", "doloribus", "http://champlin.org/lue_schroeder", "", "three"),
954
+ LastPass::Account.new("1872746186", "Kunze-Hettinger", "camilla_pagac", "elpbzT08Dvo6NyQF3wPEr", "http://donnellyadams.com/santino", "", "one"),
955
+ LastPass::Account.new("1872746196", "Jacobs, Toy and Schultz", "billy_boehm@will.biz", "g5X*hRwlmcL6ZM", "http://larkinconsidine.org/leola", "", "one"),
956
+ LastPass::Account.new("1872746206", "sanford.com", "joy@abbott.org", "rfolun872", "http://runtemoen.name/pierre", "", "three"),
957
+ LastPass::Account.new("1872746216", "upton.net", "susana.gaylord", "WR4KxbU^@$Vpi%QH9Mv#T", "http://moore.info/pearl", "", "three"),
958
+ LastPass::Account.new("1872746226", "wiegand.biz", "ashleigh_gutmann", "t7C&j!Ox21oha5sX*f", "http://armstronghackett.name/jaeden", "", "three"),
959
+ LastPass::Account.new("1872746236", "schneider.net", "eunice.sauer@ledner.org", "U%EFVGnxw2fQ^t*", "http://schulistmetz.info/esperanza_cummerata", "", "two"),
960
+ LastPass::Account.new("1872746246", "Swift-Stoltenberg", "katelin_rempel", "labore", "http://beermills.net/danielle", "", "two"),
961
+ LastPass::Account.new("1872746256", "Heathcote Group", "hope.waters@parisianbruen.info", "EhG7zBTb8OseI", "http://douglas.name/porter", "", ""),
962
+ LastPass::Account.new("1872746266", "hilpert.com", "phyllis.lemke", "est", "http://donnelly.com/tyrique_langosh", "", "one"),
963
+ LastPass::Account.new("1872746276", "daviswolff.name", "martine@ryan.com", "incidunt", "http://schoen.info/macy", "", "one"),
964
+ LastPass::Account.new("1872746286", "Bahringer, Prohaska and Mills", "merritt_reilly@lynch.info", "dyX^xZ3HTKsqFIMeA", "http://schuppe.com/rosetta.yundt", "", ""),
965
+ LastPass::Account.new("1872746296", "ledner.name", "billie.lueilwitz@kertzmann.org", "Zi5K6tXh91mJG3EnjBD4r", "http://feil.com/isabelle", "", "four"),
966
+ LastPass::Account.new("1872746306", "jerdecormier.com", "renee.towne@ruecker.net", "vuzoskg85", "http://mckenzie.net/zaria", "", ""),
967
+ LastPass::Account.new("1872746316", "harbervandervort.org", "elta_haag@okuneva.net", "2?GVri70HkKceU*m#CZ3x", "http://whiteklocko.name/lacey.dare", "", "one"),
968
+ LastPass::Account.new("1872746326", "gulgowskimann.org", "chaz_brakus", "explicabo", "http://okuneva.biz/lisandro", "", "two"),
969
+ LastPass::Account.new("1872746336", "padbergconn.info", "lenore@ullrich.net", "ORrNKnhuqd7xeULa^YDk", "http://sauerkuvalis.info/braxton", "", "one"),
970
+ LastPass::Account.new("1872746346", "davis.com", "margarett", "debitis", "http://spinka.info/kendra", "", ""),
971
+ LastPass::Account.new("1872746366", "Gerlach Inc", "krystel_boyer", "qui", "http://pouromitham.name/efrain", "", "three"),
972
+ LastPass::Account.new("1872746376", "cummerata.net", "rudy.flatley", "mzqvakic527", "http://heidenreich.net/ryann_hayes", "", ""),
973
+ LastPass::Account.new("1872746386", "schowalter.name", "hyman.satterfield", "pjts564", "http://okeefedamore.biz/giovani", "", "one"),
974
+ LastPass::Account.new("1872746396", "McLaughlin-Fadel", "fanny_sporer", "kyti64", "http://dickibosco.biz/zachariah", "", "four"),
975
+ LastPass::Account.new("1872746406", "Gerlach-Nienow", "treva.block", "csnxhldi893", "http://kunzemurazik.net/johnny.koch", "", "two"),
976
+ LastPass::Account.new("1872746416", "O'Reilly-Trantow", "grayson", "non", "http://harris.name/rosalind_marquardt", "", "three"),
977
+ LastPass::Account.new("1872746426", "Larkin-Konopelski", "josianne_walker", "bwms78", "http://runolfsdottir.name/nicklaus_hayes", "", "two"),
978
+ LastPass::Account.new("1872746436", "Swaniawski, Will and Gaylord", "jeramie.ohara@nader.org", "quia", "http://oreilly.info/dahlia_donnelly", "", ""),
979
+ LastPass::Account.new("1872746446", "emmerichgaylord.name", "diana@hansenbeahan.net", "omnis", "http://rath.net/leif_hermann", "", "three"),
980
+ LastPass::Account.new("1872746456", "armstrong.org", "genesis@rosenbaumlueilwitz.biz", "zHeu%^kxj9Y0Qr4@m*3!ov", "http://schmidtmertz.name/kira", "", "one"),
981
+ LastPass::Account.new("1872746466", "Waelchi Group", "trace.heaney@heidenreichbernier.com", "whljnru03", "http://moore.biz/anibal", "", "two"),
982
+ LastPass::Account.new("1872746476", "fahey.org", "ward_okuneva", "qjnz18", "http://leuschke.com/daphney", "", "two"),
983
+ LastPass::Account.new("1872746486", "koelpin.info", "dylan.klocko", "vdjlot364", "http://cronin.net/cyril", "", "three"),
984
+ LastPass::Account.new("1872746496", "Murphy-Breitenberg", "marcia_kreiger", "dacyz723", "http://steuber.com/ali_gibson", "", "three"),
985
+ LastPass::Account.new("1872746506", "andersondicki.org", "ceasar@lind.com", "nvymdsk14", "http://kertzmann.biz/jaydon_kunze", "", "four"),
986
+ LastPass::Account.new("1872746516", "watersreichel.net", "adella_price@beahanblock.biz", "maiores", "http://gutkowskirau.org/dora.williamson", "", "four"),
987
+ LastPass::Account.new("1872746526", "torphy.biz", "osborne_hackett@davis.org", "wkdcu1265", "http://buckridge.net/lauretta.veum", "", "four"),
988
+ LastPass::Account.new("1872746536", "Moen-Hermiston", "hildegard@hahn.com", "zbag942", "http://cummingswehner.biz/april", "", ""),
989
+ LastPass::Account.new("1872746546", "Gaylord-Lowe", "jerrell", "quasi", "http://grady.biz/mohammed_brakus", "", ""),
990
+ LastPass::Account.new("1872746556", "Bechtelar, Wyman and Thompson", "shanie@batz.biz", "vel", "http://gottlieb.name/elisabeth", "", "four"),
991
+ LastPass::Account.new("1872746566", "jacobs.info", "lon_champlin@cristlittel.name", "aut", "http://dachgislason.org/alva", "", "two"),
992
+ LastPass::Account.new("1872746576", "ankunding.com", "reina_runolfon@altenwerthhilll.net", "@g&aWsoTeJEFhHK5wr#4", "http://rice.info/giovanny_ebert", "", "two"),
993
+ LastPass::Account.new("1872746586", "Okuneva-Schmitt", "esperanza@kshlerin.com", "djwhba31", "http://glovermckenzie.info/katelynn", "", ""),
994
+ LastPass::Account.new("1872746596", "jones.name", "elvera", "ewoqt49", "http://sipes.com/joey.metz", "", "two"),
995
+ LastPass::Account.new("1872746606", "Tromp-Roob", "brisa.mcdermott", "vcnkg254", "http://bernier.org/gage_haag", "", "three"),
996
996
  ]
@@ -29,6 +29,30 @@ describe LastPass::Vault do
29
29
  it "should have correct IDs" do
30
30
  expect(vault.accounts.map &:id).to eq TEST_ACCOUNTS.map &:id
31
31
  end
32
+
33
+ it "should have correct names" do
34
+ expect(vault.accounts.map &:name).to eq TEST_ACCOUNTS.map &:name
35
+ end
36
+
37
+ it "should have correct usernames" do
38
+ expect(vault.accounts.map &:username).to eq TEST_ACCOUNTS.map &:username
39
+ end
40
+
41
+ it "should have correct passwords" do
42
+ expect(vault.accounts.map &:password).to eq TEST_ACCOUNTS.map &:password
43
+ end
44
+
45
+ it "should have correct urls" do
46
+ expect(vault.accounts.map &:url).to eq TEST_ACCOUNTS.map &:url
47
+ end
48
+
49
+ it "should have correct notes" do
50
+ expect(vault.accounts.map &:notes).to eq TEST_ACCOUNTS.map &:notes
51
+ end
52
+
53
+ it "should have correct groups" do
54
+ expect(vault.accounts.map &:group).to eq TEST_ACCOUNTS.map &:group
55
+ end
32
56
  end
33
57
  end
34
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastpass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Yakimenko
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-17 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -86,6 +86,7 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
+ - ".github/workflows/ruby.yml"
89
90
  - ".gitignore"
90
91
  - ".travis.yml"
91
92
  - CHANGELOG.md
@@ -105,6 +106,7 @@ files:
105
106
  - lib/lastpass/exceptions.rb
106
107
  - lib/lastpass/fetcher.rb
107
108
  - lib/lastpass/http.rb
109
+ - lib/lastpass/note.rb
108
110
  - lib/lastpass/parser.rb
109
111
  - lib/lastpass/session.rb
110
112
  - lib/lastpass/vault.rb
@@ -123,7 +125,7 @@ homepage: https://github.com/detunized/lastpass-ruby
123
125
  licenses:
124
126
  - MIT
125
127
  metadata: {}
126
- post_install_message:
128
+ post_install_message:
127
129
  rdoc_options: []
128
130
  require_paths:
129
131
  - lib
@@ -138,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
140
  - !ruby/object:Gem::Version
139
141
  version: '0'
140
142
  requirements: []
141
- rubygems_version: 3.1.2
142
- signing_key:
143
+ rubygems_version: 3.1.4
144
+ signing_key:
143
145
  specification_version: 4
144
146
  summary: Unofficial LastPass API
145
147
  test_files: