lastpass 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
+ lastpass-*.gem
2
3
  coverage
3
4
  example/credentials.yaml
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 1.9.3-p448
1
+ 1.9.3-p484
data/.travis.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.0.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,10 @@
1
+ Version 1.0.1
2
+ -------------
3
+
4
+ - Ruby 2.0 compatibility
5
+
6
+
7
+ Version 1.0.0
8
+ -------------
9
+
10
+ - First public gem release
data/lastpass.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.required_ruby_version = ">= 1.9.3"
18
18
 
19
19
  s.add_dependency "httparty", "~> 0.12.0"
20
- s.add_dependency "pbkdf2", "~> 0.1.0"
20
+ s.add_dependency "pbkdf2-ruby", "~> 0.2.0"
21
21
 
22
22
  s.add_development_dependency "rake", "~> 10.0.0"
23
23
  s.add_development_dependency "rspec", "~> 2.14.0"
@@ -25,7 +25,7 @@ module LastPass
25
25
  Fetcher.fetch Fetcher.login username, password
26
26
  end
27
27
 
28
- # This more of an internal method, use of the static constructors instead
28
+ # This more of an internal method, use one of the static constructors instead
29
29
  def initialize blob, encryption_key
30
30
  chunks = Parser.extract_chunks blob
31
31
  @accounts = (chunks["ACCT"] || []).map { |i| Parser.parse_account i, encryption_key }
@@ -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.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
data/spec/parser_spec.rb CHANGED
@@ -120,20 +120,24 @@ describe LastPass::Parser do
120
120
 
121
121
  describe ".decode_hex" do
122
122
  it "decodes hex" do
123
+ def hex s
124
+ s.force_encoding "ASCII-8BIT"
125
+ end
126
+
123
127
  expect(LastPass::Parser.decode_hex "")
124
128
  .to eq ""
125
129
 
126
130
  expect(LastPass::Parser.decode_hex "00ff")
127
- .to eq "\x00\xFF"
131
+ .to eq hex "\x00\xFF"
128
132
 
129
133
  expect(LastPass::Parser.decode_hex "00010203040506070809")
130
- .to eq "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09"
134
+ .to eq hex "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09"
131
135
 
132
136
  expect(LastPass::Parser.decode_hex "000102030405060708090a0b0c0d0e0f")
133
- .to eq "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
137
+ .to eq hex "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
134
138
 
135
139
  expect(LastPass::Parser.decode_hex "8af633933e96a3c3550c2734bd814195")
136
- .to eq "\x8A\xF6\x33\x93\x3E\x96\xA3\xC3\x55\x0C\x27\x34\xBD\x81\x41\x95"
140
+ .to eq hex "\x8A\xF6\x33\x93\x3E\x96\xA3\xC3\x55\x0C\x27\x34\xBD\x81\x41\x95"
137
141
  end
138
142
 
139
143
  it "raises exception on odd length" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastpass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-09 00:00:00.000000000 Z
12
+ date: 2013-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -28,13 +28,13 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.12.0
30
30
  - !ruby/object:Gem::Dependency
31
- name: pbkdf2
31
+ name: pbkdf2-ruby
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.1.0
37
+ version: 0.2.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.1.0
45
+ version: 0.2.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rake
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +100,7 @@ files:
100
100
  - .gitignore
101
101
  - .ruby-version
102
102
  - .travis.yml
103
+ - CHANGELOG.md
103
104
  - Gemfile
104
105
  - LICENSE
105
106
  - Makefile