fast_formater 0.1.2 → 0.1.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: b868ce08d47459ce6e14255c7d32af821697c8be
4
- data.tar.gz: aa55f7f36d2e5dc358a0115d79958d43cfe99662
3
+ metadata.gz: b539565ebfcf53b7b4ba9cadf758eb0a63ffb4e3
4
+ data.tar.gz: 5e087d762e1d99d665455519ec02fadf1938e9de
5
5
  SHA512:
6
- metadata.gz: e59d4425879a00d5a750e45b7bfcd60fcec6a1708ec62642bd2ad603fb94172e63d803fc49f565dfdefa95f36505c0409c462e964e2249d29edb888e54277039
7
- data.tar.gz: 1a2d14f0e52c9a95a76d33d45753b2dec5b80c489d5f84621d4b691a781dfdba634c6874f38b2625eef181c7dfe9c6161f8153855a18d7faf12fb08506321f9b
6
+ metadata.gz: a99f820c913423fb23b7adc740d682ca2ace2f75f8b3a95b9303f339d8bcf5cb16cb6b43e76b81f7ceae6015e5c998c65cb44e5c58bfedf5b403bd4d138a311f
7
+ data.tar.gz: 8c2b8ff333f51407590a27cc03d1d86aa03205b7c1107bffbc0b18bdded3a7ffad2bcee4aec827baa7195f97b092329def32e88150e2be84f9977c34030a10ac
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # FastFormater
1
+ # FastFormater o.1.3
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fast_formater`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
@@ -22,7 +22,25 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ After adding the gem:
26
+
27
+ ```ruby
28
+ h = {
29
+ font: "Arial",
30
+ size: 17,
31
+ style: "bold",
32
+ title: "text-expects"
33
+ }
34
+
35
+ f = FastFormater::Formater.new
36
+
37
+ f.getXml(h) #This will create XML type of data
38
+ f.getJson(h) #This will create JSON type of data
39
+
40
+ f.makeXml(h) #This will create XML file called 'format.xml'
41
+ f.makeJson(h) #This will create JSON file called 'format.json'
42
+
43
+ ```
26
44
 
27
45
  ## Development
28
46
 
data/lib/fast_formater.rb CHANGED
@@ -21,14 +21,14 @@ module FastFormater
21
21
  end
22
22
 
23
23
  def makeJson(h)
24
- if @json_format != nil then getJson(@rb_hash) end
24
+ if @json_format != nil then getJson(h) end
25
25
  f = File.open("format.json", "w")
26
26
  f.puts @json_format
27
27
  f.close
28
28
  end
29
29
 
30
30
  def makeXml(h)
31
- if @xml_format != nil then getXml(@rb_hash) end
31
+ if @xml_format != nil then getXml(h) end
32
32
  f = File.open("format.xml", "w")
33
33
  f.puts @xml_format
34
34
  f.close
@@ -1,3 +1,3 @@
1
1
  module FastFormater
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_formater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Marcus de Lemos Fernandes