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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a931c27713f512445979f13cbee76e215aaaa9f1
4
- data.tar.gz: 70a9fb09c865d365a8468b99620a12e144930518
3
+ metadata.gz: 35a0dc7eefbf40ce1b79c70f71e526708f6becc6
4
+ data.tar.gz: 0dad31a3f91f1765ef90eaa2f2476dfb74964576
5
5
  SHA512:
6
- metadata.gz: dda06fbdc31e24e59629a50dfaa01004ab9282cb2c13e31e475caa9a28754023c312014741aee260264b9e8088ee9197359c6baf93203ab8b0efe28ac6567008
7
- data.tar.gz: c689525689a97c4a463c99d918966a8aec0296ac8580db7c898c15da7ed97ada08a2caaea9bf6761151abe061a117df471688bfb0128f3e6ad48f3f1aa803498
6
+ metadata.gz: b4c3cf866a7432acda3e300ebda673caa1f0b0607e1f6accdf8dbedeec394cbaefd19fb413a942a49ef7fdc1eb4dcecd259ce89aefebd1d44946b3abea7b0920
7
+ data.tar.gz: 3027655e520e658d00ddc3fffb86f7d18cfccb9cdf2d989ede82a97b62d957d6b4743dd37a0f5c19c63d4a0139e9edc1ff29c53a9a790bfc6bc9d61f8cdd45d6
data/README.md CHANGED
@@ -1,13 +1,15 @@
1
1
  # Cards
2
2
 
3
- TODO: Write a gem description
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 'cards'
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 cards
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/[my-github-username]/cards/fork )
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
@@ -1,3 +1,3 @@
1
1
  module HackCards
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hack_cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MichaelByrd