oplop 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,19 @@
1
1
  Oplop
2
2
  =====
3
3
 
4
-
5
4
  This is a ruby implementation of Oplop http://code.google.com/p/oplop/
6
5
 
6
+ Install
7
+ =======
8
+
9
+ gem install oplop
10
+
11
+ Usage
12
+ =====
13
+
14
+ Oplop.password(:master => "master-password", :label => "nickname")
7
15
 
16
+ CLI
17
+ ===
8
18
 
19
+ This includes an `oplop` program. Run `oplop --help` for more information.
@@ -17,7 +17,11 @@ module Oplop
17
17
 
18
18
  raise ArgumentError.new "Unknown keys #{args.keys.join(",")}." if args.keys.any?
19
19
 
20
- password = urlsafe_b64encode(master_label).encode('UTF-8')
20
+ password = urlsafe_b64encode(master_label)
21
+
22
+ if password.respond_to?(:encode)
23
+ password = password.encode('UTF-8')
24
+ end
21
25
 
22
26
  if m = password.match(/\d+/)
23
27
  password = "%s%s" % [ m[0], password ] if (m.begin(0) >= LENGTH)
@@ -32,9 +32,9 @@ HELP
32
32
 
33
33
  def self.copy_to_clipboard(string)
34
34
  if (copy_program = `which pbcopy`) && !copy_program.empty?
35
- %x{ echo #{string} | #{copy_program} }
35
+ system("echo #{string} | #{copy_program}")
36
36
  elsif (copy_program = `which xclip`) && !copy_program.empty?
37
- %x{ echo #{string} | #{copy_program} }
37
+ system("echo #{string} | #{copy_program}")
38
38
  end
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module Oplop
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oplop
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.1
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
12
  authors:
8
13
  - Brian Kaney
@@ -21,6 +26,11 @@ dependencies:
21
26
  requirements:
22
27
  - - ~>
23
28
  - !ruby/object:Gem::Version
29
+ hash: 13
30
+ segments:
31
+ - 1
32
+ - 6
33
+ - 1
24
34
  version: 1.6.1
25
35
  type: :runtime
26
36
  version_requirements: *id001
@@ -32,6 +42,9 @@ dependencies:
32
42
  requirements:
33
43
  - - ">="
34
44
  - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
35
48
  version: "0"
36
49
  type: :development
37
50
  version_requirements: *id002
@@ -43,6 +56,11 @@ dependencies:
43
56
  requirements:
44
57
  - - ~>
45
58
  - !ruby/object:Gem::Version
59
+ hash: 23
60
+ segments:
61
+ - 2
62
+ - 6
63
+ - 0
46
64
  version: 2.6.0
47
65
  type: :development
48
66
  version_requirements: *id003
@@ -54,6 +72,11 @@ dependencies:
54
72
  requirements:
55
73
  - - ~>
56
74
  - !ruby/object:Gem::Version
75
+ hash: 59
76
+ segments:
77
+ - 0
78
+ - 8
79
+ - 2
57
80
  version: 0.8.2
58
81
  type: :development
59
82
  version_requirements: *id004
@@ -93,21 +116,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
116
  requirements:
94
117
  - - ">="
95
118
  - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
96
122
  version: "0"
97
123
  required_rubygems_version: !ruby/object:Gem::Requirement
98
124
  none: false
99
125
  requirements:
100
126
  - - ">="
101
127
  - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
102
131
  version: "0"
103
132
  requirements: []
104
133
 
105
134
  rubyforge_project: oplop
106
- rubygems_version: 1.6.2
135
+ rubygems_version: 1.3.7
107
136
  signing_key:
108
137
  specification_version: 3
109
138
  summary: Oplop for Ruby
110
- test_files:
111
- - spec/oplop_spec.rb
112
- - spec/spec_helper.rb
113
- - spec/testdata.json
139
+ test_files: []
140
+