signature 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +29 -0
- data/README.md +6 -0
- data/Rakefile +2 -46
- data/lib/signature.rb +1 -1
- data/lib/signature/version.rb +3 -0
- data/signature.gemspec +15 -51
- data/spec/signature_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -3
- metadata +16 -14
- data/spec/spec.opts +0 -1
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
signature (0.1.2)
|
5
|
+
ruby-hmac
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.1.2)
|
11
|
+
rspec (2.0.1)
|
12
|
+
rspec-core (~> 2.0.1)
|
13
|
+
rspec-expectations (~> 2.0.1)
|
14
|
+
rspec-mocks (~> 2.0.1)
|
15
|
+
rspec-core (2.0.1)
|
16
|
+
rspec-expectations (2.0.1)
|
17
|
+
diff-lcs (>= 1.1.2)
|
18
|
+
rspec-mocks (2.0.1)
|
19
|
+
rspec-core (~> 2.0.1)
|
20
|
+
rspec-expectations (~> 2.0.1)
|
21
|
+
ruby-hmac (0.4.0)
|
22
|
+
|
23
|
+
PLATFORMS
|
24
|
+
ruby
|
25
|
+
|
26
|
+
DEPENDENCIES
|
27
|
+
rspec (~> 2.0.0)
|
28
|
+
ruby-hmac
|
29
|
+
signature!
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,46 +1,2 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "signature"
|
8
|
-
gem.summary = %Q{Simple key/secret based authentication for apis}
|
9
|
-
gem.description = %Q{Simple key/secret based authentication for apis}
|
10
|
-
gem.email = "me@mloughran.com"
|
11
|
-
gem.homepage = "http://github.com/mloughran/signature"
|
12
|
-
gem.authors = ["Martyn Loughran"]
|
13
|
-
gem.add_dependency "ruby-hmac"
|
14
|
-
gem.add_development_dependency "rspec", ">= 1.2.9"
|
15
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
|
-
end
|
17
|
-
Jeweler::GemcutterTasks.new
|
18
|
-
rescue LoadError
|
19
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
20
|
-
end
|
21
|
-
|
22
|
-
require 'spec/rake/spectask'
|
23
|
-
Spec::Rake::SpecTask.new(:spec) do |spec|
|
24
|
-
spec.libs << 'lib' << 'spec'
|
25
|
-
spec.spec_files = FileList['spec/**/*_spec.rb']
|
26
|
-
end
|
27
|
-
|
28
|
-
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
29
|
-
spec.libs << 'lib' << 'spec'
|
30
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
31
|
-
spec.rcov = true
|
32
|
-
end
|
33
|
-
|
34
|
-
task :spec => :check_dependencies
|
35
|
-
|
36
|
-
task :default => :spec
|
37
|
-
|
38
|
-
require 'rake/rdoctask'
|
39
|
-
Rake::RDocTask.new do |rdoc|
|
40
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
41
|
-
|
42
|
-
rdoc.rdoc_dir = 'rdoc'
|
43
|
-
rdoc.title = "signature #{version}"
|
44
|
-
rdoc.rdoc_files.include('README*')
|
45
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
46
|
-
end
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
data/lib/signature.rb
CHANGED
data/signature.gemspec
CHANGED
@@ -1,58 +1,22 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "signature/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
6
|
+
s.name = "signature"
|
7
|
+
s.version = Signature::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Martyn Loughran"]
|
10
|
+
s.email = ["me@mloughran.com"]
|
11
|
+
s.homepage = "http://github.com/mloughran/signature"
|
12
|
+
s.summary = %q{Simple key/secret based authentication for apis}
|
13
13
|
s.description = %q{Simple key/secret based authentication for apis}
|
14
|
-
s.email = %q{me@mloughran.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".gitignore",
|
22
|
-
"LICENSE",
|
23
|
-
"README.md",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION",
|
26
|
-
"lib/signature.rb",
|
27
|
-
"signature.gemspec",
|
28
|
-
"spec/signature_spec.rb",
|
29
|
-
"spec/spec.opts",
|
30
|
-
"spec/spec_helper.rb"
|
31
|
-
]
|
32
|
-
s.homepage = %q{http://github.com/mloughran/signature}
|
33
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
34
|
-
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.3.6}
|
36
|
-
s.summary = %q{Simple key/secret based authentication for apis}
|
37
|
-
s.test_files = [
|
38
|
-
"spec/signature_spec.rb",
|
39
|
-
"spec/spec_helper.rb"
|
40
|
-
]
|
41
14
|
|
42
|
-
|
43
|
-
|
44
|
-
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
45
19
|
|
46
|
-
|
47
|
-
|
48
|
-
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
49
|
-
else
|
50
|
-
s.add_dependency(%q<ruby-hmac>, [">= 0"])
|
51
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
52
|
-
end
|
53
|
-
else
|
54
|
-
s.add_dependency(%q<ruby-hmac>, [">= 0"])
|
55
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
56
|
-
end
|
20
|
+
s.add_dependency "ruby-hmac"
|
21
|
+
s.add_development_dependency "rspec", "~> 2.0.0"
|
57
22
|
end
|
58
|
-
|
data/spec/signature_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Martyn Loughran
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-29 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -34,43 +34,45 @@ dependencies:
|
|
34
34
|
prerelease: false
|
35
35
|
requirement: &id002 !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
segments:
|
40
|
-
- 1
|
41
40
|
- 2
|
42
|
-
-
|
43
|
-
|
41
|
+
- 0
|
42
|
+
- 0
|
43
|
+
version: 2.0.0
|
44
44
|
type: :development
|
45
45
|
version_requirements: *id002
|
46
46
|
description: Simple key/secret based authentication for apis
|
47
|
-
email:
|
47
|
+
email:
|
48
|
+
- me@mloughran.com
|
48
49
|
executables: []
|
49
50
|
|
50
51
|
extensions: []
|
51
52
|
|
52
|
-
extra_rdoc_files:
|
53
|
-
|
54
|
-
- README.md
|
53
|
+
extra_rdoc_files: []
|
54
|
+
|
55
55
|
files:
|
56
56
|
- .document
|
57
57
|
- .gitignore
|
58
|
+
- Gemfile
|
59
|
+
- Gemfile.lock
|
58
60
|
- LICENSE
|
59
61
|
- README.md
|
60
62
|
- Rakefile
|
61
63
|
- VERSION
|
62
64
|
- lib/signature.rb
|
65
|
+
- lib/signature/version.rb
|
63
66
|
- signature.gemspec
|
64
67
|
- spec/signature_spec.rb
|
65
|
-
- spec/spec.opts
|
66
68
|
- spec/spec_helper.rb
|
67
69
|
has_rdoc: true
|
68
70
|
homepage: http://github.com/mloughran/signature
|
69
71
|
licenses: []
|
70
72
|
|
71
73
|
post_install_message:
|
72
|
-
rdoc_options:
|
73
|
-
|
74
|
+
rdoc_options: []
|
75
|
+
|
74
76
|
require_paths:
|
75
77
|
- lib
|
76
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|