gem_best_practice 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +12 -0
- data/lib/gem_best_practice.rb +19 -0
- data/test/test_gem_best_practice.rb +14 -0
- data/test/test_helper.rb +4 -0
- metadata +84 -0
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# require the suite
|
2
|
+
require 'gem_best_practice/gbp'
|
3
|
+
require 'gem_best_practice/core_ext'
|
4
|
+
|
5
|
+
# require mandatory dependencies
|
6
|
+
require 'asin'
|
7
|
+
|
8
|
+
# require optional dependencies
|
9
|
+
begin
|
10
|
+
require 'ap'
|
11
|
+
rescue LoadError
|
12
|
+
puts "awesome_print would be awesome: gem install awesome_print"
|
13
|
+
end
|
14
|
+
|
15
|
+
# TODO core extensions put where?
|
16
|
+
|
17
|
+
class GemBestPractice
|
18
|
+
VERSION = '0.0.1'
|
19
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TestGemBestPractice < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_version
|
6
|
+
assert_equal('0.0.1', GemBestPractice::VERSION)
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_helper
|
10
|
+
done = GBP::Helper.doit('some', 'params', :and => 'options')
|
11
|
+
assert_equal('some params {:and=>"options"}', done)
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gem_best_practice
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- "Peter Schr\xC3\xB6der"
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-11-25 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: asin
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 0
|
31
|
+
- 8
|
32
|
+
version: 0.0.8
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: A Gem that shows best practice for Gem creation.
|
36
|
+
email: phoetmail@googlemail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
43
|
+
files:
|
44
|
+
- lib/gem_best_practice.rb
|
45
|
+
- README.rdoc
|
46
|
+
- test/test_gem_best_practice.rb
|
47
|
+
- test/test_helper.rb
|
48
|
+
has_rdoc: true
|
49
|
+
homepage: http://github.com/phoet/gem_best_practice
|
50
|
+
licenses: []
|
51
|
+
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options:
|
54
|
+
- -a
|
55
|
+
- --inline-source
|
56
|
+
- --charset=UTF-8
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
segments:
|
65
|
+
- 0
|
66
|
+
version: "0"
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
requirements: []
|
76
|
+
|
77
|
+
rubyforge_project: gem_best_practice
|
78
|
+
rubygems_version: 1.3.7
|
79
|
+
signing_key:
|
80
|
+
specification_version: 3
|
81
|
+
summary: If you ever wondered how to create a Gem and what best practice should be applied, this project is for you.
|
82
|
+
test_files:
|
83
|
+
- test/test_gem_best_practice.rb
|
84
|
+
- test/test_helper.rb
|