hack_cards 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/Rakefile +6 -0
- data/lib/hack_cards/version.rb +1 -1
- data/lib/hack_cards.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35a0dc7eefbf40ce1b79c70f71e526708f6becc6
|
4
|
+
data.tar.gz: 0dad31a3f91f1765ef90eaa2f2476dfb74964576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4c3cf866a7432acda3e300ebda673caa1f0b0607e1f6accdf8dbedeec394cbaefd19fb413a942a49ef7fdc1eb4dcecd259ce89aefebd1d44946b3abea7b0920
|
7
|
+
data.tar.gz: 3027655e520e658d00ddc3fffb86f7d18cfccb9cdf2d989ede82a97b62d957d6b4743dd37a0f5c19c63d4a0139e9edc1ff29c53a9a790bfc6bc9d61f8cdd45d6
|
data/README.md
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# Cards
|
2
2
|
|
3
|
-
|
3
|
+
This is the first gem I have created. Its goal is to create a platform for
|
4
|
+
designing 'cards' that can contain different media objects and know how to
|
5
|
+
display themselves.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
11
|
```ruby
|
10
|
-
gem '
|
12
|
+
gem 'hack_cards'
|
11
13
|
```
|
12
14
|
|
13
15
|
And then execute:
|
@@ -16,7 +18,7 @@ And then execute:
|
|
16
18
|
|
17
19
|
Or install it yourself as:
|
18
20
|
|
19
|
-
$ gem install
|
21
|
+
$ gem install hack_cards
|
20
22
|
|
21
23
|
## Usage
|
22
24
|
|
@@ -24,7 +26,7 @@ TODO: Write usage instructions here
|
|
24
26
|
|
25
27
|
## Contributing
|
26
28
|
|
27
|
-
1. Fork it ( https://github.com/
|
29
|
+
1. Fork it ( https://github.com/michaelbyrd/cards/fork )
|
28
30
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
31
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
32
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rake/testtask"
|
3
|
+
require "rdoc/task"
|
3
4
|
|
4
5
|
Rake::TestTask.new do |t|
|
5
6
|
t.libs << "test"
|
@@ -7,4 +8,9 @@ Rake::TestTask.new do |t|
|
|
7
8
|
t.verbose = true
|
8
9
|
end
|
9
10
|
|
11
|
+
RDoc::Task.new do |rdoc|
|
12
|
+
rdoc.main = "README.rdoc"
|
13
|
+
rdoc.rdoc_files.include("README.rdoc", "lib /*.rb")
|
14
|
+
end
|
15
|
+
|
10
16
|
task default: :test
|
data/lib/hack_cards/version.rb
CHANGED
data/lib/hack_cards.rb
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
require "hack_cards/version"
|
2
2
|
|
3
|
+
# This is Documentation for the file itself
|
4
|
+
|
5
|
+
# This is gem level documentation
|
3
6
|
module HackCards
|
7
|
+
|
8
|
+
# This is class level documentation
|
4
9
|
class Card
|
10
|
+
|
11
|
+
# text, url, and image are readable and writable fields
|
5
12
|
attr_accessor :text, :url, :image
|
13
|
+
|
14
|
+
# this is documentation for the initialize method
|
6
15
|
def initialize(image: "", text: "", url: "")
|
7
16
|
@image = image if image.length > 0
|
8
17
|
@text = text if text.length > 0
|