lastpass 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,22 @@
1
+ # Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com).
2
+ # Licensed under the terms of the MIT license. See LICENCE for details.
3
+
4
+ require "spec_helper"
5
+ require "test_data"
6
+
7
+ describe LastPass::Vault do
8
+ let(:vault) {
9
+ LastPass::Vault.new LastPass::Blob.new(TEST_BLOB, TEST_KEY_ITERATION_COUNT),
10
+ TEST_ENCRYPTION_KEY
11
+ }
12
+
13
+ describe "#accounts" do
14
+ context "returned accounts" do
15
+ it { expect(vault.accounts).to be_instance_of Array }
16
+
17
+ it "should have correct IDs" do
18
+ expect(vault.accounts.map &:id).to eq TEST_ACCOUNTS.map &:id
19
+ end
20
+ end
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,164 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lastpass
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dmitry Yakimenko
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-12-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.12.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.12.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: pbkdf2
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.1.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 10.0.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 10.0.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 2.14.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.14.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: coveralls
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 0.7.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.7.0
94
+ description: Unofficial LastPass API
95
+ email: detunized@gmail.com
96
+ executables: []
97
+ extensions: []
98
+ extra_rdoc_files: []
99
+ files:
100
+ - .gitignore
101
+ - .ruby-version
102
+ - .travis.yml
103
+ - Gemfile
104
+ - LICENSE
105
+ - Makefile
106
+ - README.md
107
+ - Rakefile
108
+ - example/credentials.yaml.example
109
+ - example/example.rb
110
+ - lastpass.gemspec
111
+ - lib/lastpass.rb
112
+ - lib/lastpass/account.rb
113
+ - lib/lastpass/blob.rb
114
+ - lib/lastpass/chunk.rb
115
+ - lib/lastpass/exceptions.rb
116
+ - lib/lastpass/fetcher.rb
117
+ - lib/lastpass/parser.rb
118
+ - lib/lastpass/session.rb
119
+ - lib/lastpass/vault.rb
120
+ - lib/lastpass/version.rb
121
+ - spec/account_spec.rb
122
+ - spec/blob_spec.rb
123
+ - spec/chunk_spec.rb
124
+ - spec/fetcher_spec.rb
125
+ - spec/parser_spec.rb
126
+ - spec/session_spec.rb
127
+ - spec/spec_helper.rb
128
+ - spec/test_data.rb
129
+ - spec/vault_spec.rb
130
+ homepage: https://github.com/detunized/lastpass-ruby
131
+ licenses:
132
+ - MIT
133
+ post_install_message:
134
+ rdoc_options: []
135
+ require_paths:
136
+ - lib
137
+ required_ruby_version: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: 1.9.3
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ none: false
145
+ requirements:
146
+ - - ! '>='
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ requirements: []
150
+ rubyforge_project:
151
+ rubygems_version: 1.8.23
152
+ signing_key:
153
+ specification_version: 3
154
+ summary: Unofficial LastPass API
155
+ test_files:
156
+ - spec/account_spec.rb
157
+ - spec/blob_spec.rb
158
+ - spec/chunk_spec.rb
159
+ - spec/fetcher_spec.rb
160
+ - spec/parser_spec.rb
161
+ - spec/session_spec.rb
162
+ - spec/spec_helper.rb
163
+ - spec/test_data.rb
164
+ - spec/vault_spec.rb