string_to_sha1 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in string_to_sha1.gemspec
4
+ gemspec
data/README ADDED
@@ -0,0 +1,6 @@
1
+ This is an example project going along with [this blog post](http://www.synbioz.com/blog/) to demonstate how to build a Gem.
2
+
3
+ It only adds a sha1 method on String class.
4
+
5
+ To install development dependencies use :
6
+ bundle install
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,8 @@
1
+ require "string_to_sha1/version"
2
+ require "digest/sha1"
3
+
4
+ class String
5
+ def to_sha1
6
+ Digest::SHA1.hexdigest(self)
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module StringToSha1
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "string_to_sha1/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "string_to_sha1"
7
+ s.version = StringToSha1::VERSION
8
+ s.authors = ["Nicolas Cavigneaux"]
9
+ s.email = ["nico@bounga.org"]
10
+ s.homepage = "http://github.com/synbioz/string_to_sha1"
11
+ s.summary = %q{Add SHA1 hashing from string}
12
+ s.description = %q{This gem add a facility method to easily convert existing string to SHA1 hash.}
13
+
14
+ s.rubyforge_project = "string_to_sha1"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_development_dependency "minitest"
22
+ s.add_development_dependency "guard-minitest"
23
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: string_to_sha1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Nicolas Cavigneaux
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: minitest
16
+ requirement: &70174876469240 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70174876469240
25
+ - !ruby/object:Gem::Dependency
26
+ name: guard-minitest
27
+ requirement: &70174876468820 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70174876468820
36
+ description: This gem add a facility method to easily convert existing string to SHA1
37
+ hash.
38
+ email:
39
+ - nico@bounga.org
40
+ executables: []
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - README
47
+ - Rakefile
48
+ - lib/string_to_sha1.rb
49
+ - lib/string_to_sha1/version.rb
50
+ - string_to_sha1.gemspec
51
+ homepage: http://github.com/synbioz/string_to_sha1
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ segments:
64
+ - 0
65
+ hash: 1630420832969776221
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: 1630420832969776221
75
+ requirements: []
76
+ rubyforge_project: string_to_sha1
77
+ rubygems_version: 1.8.15
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Add SHA1 hashing from string
81
+ test_files: []