hack01 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hack01.rb +10 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e6a082da6b2c59065b83d42fd81838cba9fa4922e69f4664abbc272fccbb865
4
- data.tar.gz: 496ab8d750f44ed7de4b7156639a42fe8774c354b34d8be1e3de13381233b52f
3
+ metadata.gz: 7bb5fd90adcdd11c9f217de2a19dd885b301c3d09b5a99e88982da2543db3a88
4
+ data.tar.gz: f649de4aecbd092c5ea4cf515d03fde994b39b0bd19e8540f847023ff852a3c1
5
5
  SHA512:
6
- metadata.gz: aab3e59cd33738a43d914b634bd546a20d4c212fbe275e8cc45f81e2c5918b441da90a697684640150475bae81ff5eb46388c410e73e97a8394ee4a86a451923
7
- data.tar.gz: 75e36f679bac4e35a1d60896a8d8d4a68276cddddf6a69b01e9bac39be8071ef96ea1a32efaf67bafcbcc93dd4497f898c371388565926223fae464f54c3866b
6
+ metadata.gz: 700e4700e35c47afcb6c2dde38d20d6a122431ab9510de059fd503030573fb4836864c552ad1c593e8a198ae732130d167cb5179b4f2cf390205a824f8332013
7
+ data.tar.gz: 998f710bad7a4c5c72baa9e2c58493f31270a66bc8a2b6e2a81f6c5cff66dd2b96f1fc21c034a3cf387ebfa081317fc68d467299552da55199da442efca71d60
@@ -1,5 +1,6 @@
1
1
  # The main Hack01 driver
2
- class Hack01
2
+ module Hack01 # This can be a module or a class.
3
+
3
4
  #
4
5
  # from the tutorial https://guides.rubygems.org/make-your-own-gem/
5
6
  # Example:
@@ -14,7 +15,7 @@ class Hack01
14
15
  end
15
16
 
16
17
  # Example:
17
- # >> Hack.info
18
+ # >> Hack01.info
18
19
  # => "Making a first ruby gem"
19
20
  def self.info
20
21
  p "Making a first ruby gem"
@@ -22,12 +23,18 @@ class Hack01
22
23
  end
23
24
 
24
25
  # Example
25
- # >> a = Hack.new
26
+ # >> a = Hack01.new
26
27
  # >> a.hello
27
28
  # => "hello there"
28
29
  def hello
29
30
  p "hello there"
30
31
  end
32
+
33
+ # didn't manage to get any css in this gem.
34
+ # suspect the Engine < Rails::Engine
35
+ # might create some issues when outside of rails?
36
+
37
+
31
38
  end
32
39
 
33
40
  require 'hack01/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hack01
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Coote