wodehaha 0.1.0

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: 3e1aa16dbc75d3b2a8f58f095bd8281ceb509b46a5c72187fca69874aed418f5
4
+ data.tar.gz: 9718157c0129e5ce9d8628fbc98c19af540e649d162540cb91e7e732f4e1324b
5
+ SHA512:
6
+ metadata.gz: bfb91e2a9be66f98d571225910abf53308012fa58edb6c5d9dd8a89f17384e581cde83cf4f6f7002958a3008d0addeebf25dc24779f7f63ee83b7a5a0e8aa14b
7
+ data.tar.gz: e3e675a90edba33d3cf5160685631220c4a6ea4b434ac6f439f69414a8231c09c5be858074572b7b89b948bf6a06b5bbe3e076de7042fce9172d315a4952094a
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Wodehaha
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/wodehaha`. 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 wodehaha
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install wodehaha
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]/wodehaha.
data/bin/haha ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts 'fsdjflkdsjfl'
data/bin/www.rb ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts '我的第一个'
4
+ require 'wodehaha'
5
+ Wodehaha::FileWrite.writeTo('/Users/liuruijie/Desktop/wodehaha/first.txt','写入文件内容')
data/lib/file_write.rb ADDED
@@ -0,0 +1,10 @@
1
+ module Wodehaha
2
+ class FileWrite
3
+ def self.writeTo(filePath,content)
4
+ File.open(filePath,'w+') do |f|
5
+ f.write(content)
6
+ end
7
+ end
8
+ end
9
+ # Your code goes here...
10
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Wodehaha
4
+ VERSION = "0.1.0"
5
+ end
data/lib/wodehaha.rb ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "wodehaha/version"
4
+
5
+ module Wodehaha
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ require 'file_write'
9
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wodehaha
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - LLiuRJ
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-04-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'null'
14
+ email:
15
+ - 2317366524@qq.com
16
+ executables:
17
+ - haha
18
+ - www.rb
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - README.md
23
+ - bin/haha
24
+ - bin/www.rb
25
+ - lib/file_write.rb
26
+ - lib/wodehaha.rb
27
+ - lib/wodehaha/version.rb
28
+ homepage: https://toscode.gitee.com/LLiuRJ/rubyhaha.git
29
+ licenses: []
30
+ metadata:
31
+ allowed_push_host: https://rubygems.org
32
+ homepage_uri: https://toscode.gitee.com/LLiuRJ/rubyhaha.git
33
+ source_code_uri: https://toscode.gitee.com/LLiuRJ/rubyhaha.git
34
+ changelog_uri: https://toscode.gitee.com/LLiuRJ/rubyhaha.git
35
+ post_install_message:
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.6.0
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubygems_version: 3.0.3.1
51
+ signing_key:
52
+ specification_version: 4
53
+ summary: 'null'
54
+ test_files: []