hahaddd 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fc00750fbed37fbb80bdc64ddff443de558dda6a2020e586c614a51453ae2bfa
4
+ data.tar.gz: 17284b7e194b0aaf00778fffa33695d3b9f4afd2181a2c10a9224b946675b764
5
+ SHA512:
6
+ metadata.gz: f53ff54ff22d7dc03a414d9f7c170668e17fd2d1274e9ce4c8aab31541c5c2d4f3bb257c17737d9583c02299840498387d49ecf104cf57f48bd4f2586b1e1996
7
+ data.tar.gz: d901392b4062992a18db182b7a412bbcaf1ea5152579209f151d76b1d3664b153406ca74a8d0a9aa29d0f6eb71c70ec264f173307afea63a29d321a1a863a982
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Haha
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/haha`. 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
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add haha
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install haha
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ 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`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/haha.
data/bin/haha ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ require 'haha'
3
+ puts "========>"
4
+ require 'pp'
5
+ p ARGV
6
+
7
+ Haha::Writer.write_to('/Users/zhanggaoyuan6/Desktop/podcreate.sh','这是我的第一个Ruby项目')
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Haha
4
+ VERSION = "0.1.1"
5
+ end
data/lib/haha.rb ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "haha/version"
4
+
5
+ module Haha
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ require_relative 'write_file'
9
+ end
data/lib/write_file.rb ADDED
@@ -0,0 +1,13 @@
1
+
2
+ module Haha
3
+ class Writer
4
+ def self.write_to(file_path,content)
5
+ File.open(file_path,'w+') {|f| f.write(content)}
6
+ end
7
+
8
+ def run(num)
9
+ num + 1
10
+ end
11
+
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hahaddd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - zhanggaoyuan6
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: " Write a longer description or delete this line."
14
+ email:
15
+ - zhanggaoyuan6@jd.com
16
+ executables:
17
+ - haha
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - bin/haha
23
+ - lib/haha.rb
24
+ - lib/haha/version.rb
25
+ - lib/write_file.rb
26
+ homepage: https://coding.jd.com/zgy_study/rubyhaha.git
27
+ licenses: []
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 2.6.0
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.0.3
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Write a short summary, because RubyGems requires one.
48
+ test_files: []