masterpiece 0.1.0 → 0.1.1

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: d9eb476f22b68f2ec9f02d1bc374027bf40710af
4
- data.tar.gz: 199c2e2c1dc1990e9a866803ae99e66d7c49016b
3
+ metadata.gz: e6559a54d9a5725ad2abe78be8ed5320f231ea16
4
+ data.tar.gz: 76c478a42ef005f08b71f889935b491b753f5ff1
5
5
  SHA512:
6
- metadata.gz: 00798164098a847e0a235e8a362335af5afa3956abe3e97d48c53b5c3775fb0797cb2d285fe5fb60db8705fc598dd9683d2c18d581fbb11b3f711f5a3f2a26d3
7
- data.tar.gz: 98083de095aaedb0b763ce2730f89415e4d1f6a1b847c0cf9a1be7931e77a0baed81e552972765f6fa17c519fa80f375009864948c7f90dddeac6a148739b009
6
+ metadata.gz: a223d67ffda2936c3cebdcdaf5eaa7c94235baa4995da3ed1057cf344c150719eb613d522f878504260068e847a32f679e2cc85c99c6ea3eec9d067028c8af76
7
+ data.tar.gz: 77f34e49c5c27c7bffc1c8af5b90dea394b0525a9e520c1fa5effb07328b3f8673af60776f280d7d5e2485da5473bc5dc16391b9b2c66ddda2d53d634576842e
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Masterpiece
2
-
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/masterpiece`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
2
+ [![Gem Version](https://badge.fury.io/rb/masterpiece.svg)](http://badge.fury.io/rb/masterpiece)
7
3
  ## Installation
8
4
 
9
5
  Add this line to your application's Gemfile:
@@ -22,18 +18,42 @@ Or install it yourself as:
22
18
 
23
19
  ## Usage
24
20
 
25
- TODO: Write usage instructions here
21
+ ```ruby
22
+ html = Masterpiece::HTML.new do
23
+
24
+ html do
25
+
26
+ head do
27
+
28
+ title "title-test"
29
+ comment "comment-test"
26
30
 
27
- ## Development
31
+ end
32
+
33
+ body "body-test",attr1:"1",attr2:"2" do
28
34
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
35
+ comment "comment-test-body"
36
+ h1 'hey'
37
+ comment "comment-test-body-2"
38
+
39
+ end
40
+
41
+ a "link-test",href:"http://www.w3schools.com"
42
+
43
+ end
44
+ end
45
+
46
+ puts html.html_code
47
+ ```
30
48
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
49
 
33
50
  ## Contributing
34
51
 
35
- 1. Fork it ( https://github.com/[my-github-username]/masterpiece/fork )
52
+ 1. Fork it ( https://github.com/yen168/masterpiece/fork )
36
53
  2. Create your feature branch (`git checkout -b my-new-feature`)
37
54
  3. Commit your changes (`git commit -am 'Add some feature'`)
38
55
  4. Push to the branch (`git push origin my-new-feature`)
39
56
  5. Create a new Pull Request
57
+
58
+ https://rubygems.org/gems/masterpiece
59
+
@@ -1,3 +1,3 @@
1
1
  module Masterpiece
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  # if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = 'http://mygemserver.com'
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
21
  # else
22
22
  # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
23
  # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masterpiece
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yen168