mygem 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +37 -0
- data/Rakefile +11 -0
- data/lib/mygem.rb +8 -0
- data/lib/mygem/version.rb +3 -0
- metadata +67 -0
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Mygem
|
2
|
+
## create and publish your first ruby gem
|
3
|
+
|
4
|
+
|
5
|
+
* clone/fork the project
|
6
|
+
* find and replace in all the files:
|
7
|
+
* 'Mygem' with 'Yourgem'
|
8
|
+
* 'mygem' with 'yourgem'
|
9
|
+
* add real functionalities to the gem (very optional :p)
|
10
|
+
* edit yourgem.gemspec (remember to add other files if you need to)
|
11
|
+
* gem build yourgem.gemspec
|
12
|
+
* gem install yourgem-0.0.1.gem
|
13
|
+
|
14
|
+
* launch irb
|
15
|
+
|
16
|
+
>irb> require 'yourgem'
|
17
|
+
|
18
|
+
> irb> Yourgem.works?
|
19
|
+
|
20
|
+
> > true
|
21
|
+
|
22
|
+
* gem push yourgem.gemspec
|
23
|
+
* gem install yourgem
|
24
|
+
|
25
|
+
easy as that!
|
26
|
+
|
27
|
+
---
|
28
|
+
|
29
|
+
ps. remember to put the gems you're requiring in the Gemfile
|
30
|
+
|
31
|
+
pps. you also have a Rakefile with bundler setup with a task!
|
32
|
+
|
33
|
+
> rake yourgem:mytask
|
34
|
+
|
35
|
+
> > "hi! I'm a simple rake task."
|
36
|
+
|
37
|
+
enjoy!
|
data/Rakefile
ADDED
data/lib/mygem.rb
ADDED
metadata
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mygem
|
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
|
+
- Francesco 'makevoid' Canessa
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-08-08 00:00:00 +02:00
|
18
|
+
default_executable:
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: This is a simple example on how to create a gem and publish it on rubygems.org [flavored with bundler]
|
22
|
+
email: makevoid@gmail.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files: []
|
28
|
+
|
29
|
+
files:
|
30
|
+
- README.md
|
31
|
+
- Rakefile
|
32
|
+
- lib/mygem/version.rb
|
33
|
+
- lib/mygem.rb
|
34
|
+
has_rdoc: true
|
35
|
+
homepage: http://www.makevoid.com
|
36
|
+
licenses: []
|
37
|
+
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options: []
|
40
|
+
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
version: "0"
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
requirements: []
|
60
|
+
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 1.3.7
|
63
|
+
signing_key:
|
64
|
+
specification_version: 3
|
65
|
+
summary: create and publish your first ruby gem
|
66
|
+
test_files: []
|
67
|
+
|