lorem_casiano 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +88 -0
- data/Rakefile +2 -0
- data/lib/lorem_casiano/version.rb +3 -0
- data/lib/lorem_casiano.rb +16 -0
- data/lorem_casiano.gemspec +17 -0
- metadata +53 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Casiano Rodriguez
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# LoremCasiano
|
2
|
+
|
3
|
+
This gem describes the way to build a gem using bundler
|
4
|
+
|
5
|
+
## Tutorial
|
6
|
+
|
7
|
+
1. $ bundle gem lorem_casiano
|
8
|
+
create lorem_casiano/Gemfile
|
9
|
+
create lorem_casiano/Rakefile
|
10
|
+
create lorem_casiano/LICENSE
|
11
|
+
create lorem_casiano/README.md
|
12
|
+
create lorem_casiano/.gitignore
|
13
|
+
create lorem_casiano/lorem_casiano.gemspec
|
14
|
+
create lorem_casiano/lib/lorem_casiano.rb
|
15
|
+
create lorem_casiano/lib/lorem_casiano/version.rb
|
16
|
+
Initializating git repo in /Users/casiano/Dropbox/src/ruby/makingagemwithbundler/lorem_casiano
|
17
|
+
makingagemwithbundler$ cd lorem_casiano/
|
18
|
+
|
19
|
+
As it says, it initializes a git repo
|
20
|
+
|
21
|
+
2. The lorem_casiano.gemfile file looks like this:
|
22
|
+
|
23
|
+
$ cat lorem_casiano.gemspec
|
24
|
+
# -*- encoding: utf-8 -*-
|
25
|
+
require File.expand_path('../lib/lorem_casiano/version', __FILE__)
|
26
|
+
|
27
|
+
Gem::Specification.new do |gem|
|
28
|
+
gem.authors = ["Casiano Rodriguez"]
|
29
|
+
gem.email = ["casiano.rodriguez.leon@gmail.com"]
|
30
|
+
gem.description = %q{TODO: Write a gem description}
|
31
|
+
gem.summary = %q{TODO: Write a gem summary}
|
32
|
+
gem.homepage = ""
|
33
|
+
|
34
|
+
gem.files = `git ls-files`.split($\)
|
35
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
36
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
37
|
+
gem.name = "lorem_casiano"
|
38
|
+
gem.require_paths = ["lib"]
|
39
|
+
gem.version = LoremCasiano::VERSION
|
40
|
+
end
|
41
|
+
3. The version for the project is taken from lib/lorem_casiano/version.rb
|
42
|
+
|
43
|
+
$ cat lib/lorem_casiano/version.rb
|
44
|
+
module LoremCasiano
|
45
|
+
VERSION = "0.0.1"
|
46
|
+
end
|
47
|
+
|
48
|
+
modify it to "0.0.2"
|
49
|
+
|
50
|
+
4. vi lib/lorem_casiano.rb. Introduce method ipsum
|
51
|
+
|
52
|
+
5. Fill the TODOs in lorem_casiano.gemspec
|
53
|
+
vi lorem_casiano.gemspec
|
54
|
+
|
55
|
+
6. Generate the gem:
|
56
|
+
|
57
|
+
$ gem build lorem_casiano.gemspec
|
58
|
+
WARNING: no homepage specified
|
59
|
+
Successfully built RubyGem
|
60
|
+
Name: lorem_casiano
|
61
|
+
Version: 0.0.2
|
62
|
+
File: lorem_casiano-0.0.2.gem
|
63
|
+
|
64
|
+
which generates a file "lorem_casiano-0.0.2.gem"
|
65
|
+
|
66
|
+
|
67
|
+
## Usage
|
68
|
+
|
69
|
+
TODO: Write usage instructions here
|
70
|
+
|
71
|
+
## Contributing
|
72
|
+
|
73
|
+
1. Fork it
|
74
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
75
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
76
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
77
|
+
5. Create new Pull Request
|
78
|
+
|
79
|
+
##See Also
|
80
|
+
|
81
|
+
1. http://railscasts.com/episodes/245-new-gem-with-bundler
|
82
|
+
"New Gem with Bundler"
|
83
|
+
|
84
|
+
2. http://no-fucking-idea.com/blog/2012/04/11/building-gem-with-bundler/
|
85
|
+
"Building Gem With Bundler"
|
86
|
+
|
87
|
+
3. http://pablotron.org/files/signing_gems.txt
|
88
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "lorem_casiano/version"
|
2
|
+
|
3
|
+
module LoremCasiano
|
4
|
+
|
5
|
+
def self.ipsum
|
6
|
+
<<-'TEXT'
|
7
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
|
8
|
+
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
|
9
|
+
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
|
10
|
+
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
|
11
|
+
in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
12
|
+
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
13
|
+
officia deserunt mollit anim id est laborum."
|
14
|
+
TEXT
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/lorem_casiano/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Casiano Rodriguez-Leon"]
|
6
|
+
gem.email = ["casiano.rodriguez.leon@gmail.com"]
|
7
|
+
gem.description = %q{This gem shows how to build a gem using "bundler"}
|
8
|
+
gem.summary = %q{See README.md for more details}
|
9
|
+
gem.homepage = "https://rubygems.org/gems/lorem_casiano"
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "lorem_casiano"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = LoremCasiano::VERSION
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lorem_casiano
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Casiano Rodriguez-Leon
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-06-06 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: This gem shows how to build a gem using "bundler"
|
15
|
+
email:
|
16
|
+
- casiano.rodriguez.leon@gmail.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- .gitignore
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE
|
24
|
+
- README.md
|
25
|
+
- Rakefile
|
26
|
+
- lib/lorem_casiano.rb
|
27
|
+
- lib/lorem_casiano/version.rb
|
28
|
+
- lorem_casiano.gemspec
|
29
|
+
homepage: https://rubygems.org/gems/lorem_casiano
|
30
|
+
licenses: []
|
31
|
+
post_install_message:
|
32
|
+
rdoc_options: []
|
33
|
+
require_paths:
|
34
|
+
- lib
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
requirements: []
|
48
|
+
rubyforge_project:
|
49
|
+
rubygems_version: 1.8.23
|
50
|
+
signing_key:
|
51
|
+
specification_version: 3
|
52
|
+
summary: See README.md for more details
|
53
|
+
test_files: []
|