rome 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2f9eb1de1114d41890b1194f963318d38c8f5daaf75f499b9765a60b428c822b
4
+ data.tar.gz: 8e46c743fce2b73d9546e7373529c1078cfdea21f3adfb9c2dec51f91ec7dc54
5
+ SHA512:
6
+ metadata.gz: 5fdb5100a1618d3886b74c9484fe907ac7559c890d04ba63a54bdd5409e03f06548593c5f9ec0281311306edac755489fe049cdb30c9a762c7714748885c5d2d
7
+ data.tar.gz: 4dc5c3764a9c92e73b0a65e7dca1f6454bfbd782f2f02b65c89061ec1555ac62894360509ce6116174f53bf890a1a6a77cf152732bf0046115422916c6cde65b
data/.gitignore ADDED
@@ -0,0 +1,68 @@
1
+ # files without extensions except directories
2
+ #*
3
+ #!/**/
4
+ #!?*.*
5
+
6
+ # directories (these will ignore .keep)
7
+ /.bundle/
8
+ /_yardoc/
9
+ /coverage/
10
+ /doc/
11
+ /pkg/
12
+ /spec/reports/
13
+ /vendor/
14
+ /node_modules/
15
+
16
+ # directory contents (these will not ignore .keep)
17
+ /cache/*
18
+ /tmp/*
19
+ /pid/*
20
+ /log/*
21
+ /public/*
22
+ /db/*
23
+
24
+ # files
25
+ *.dump
26
+ *.log
27
+ *.mod
28
+ *.o
29
+ *~
30
+ .*.swp
31
+ .DS_Store
32
+ .byebug
33
+ .idea
34
+ .project
35
+ .rake*
36
+ .rake*
37
+ .ruby-*
38
+ .rvmrc
39
+ .rubocop*
40
+ .secret
41
+ .yardoc
42
+ TODO.md
43
+ core.*
44
+ cscope.out
45
+ secrets.yml
46
+ .tags
47
+ NOTES*
48
+ MEETING*
49
+ *.jar
50
+
51
+ # don't ignore
52
+ !.gitignore
53
+ !.keep
54
+ !Capfile
55
+ !Cheffile
56
+ !Gemfile
57
+ ![MR]akefile
58
+ !bin/**/[^.]*
59
+ !exe/**/[^.]*
60
+
61
+ /.bundle/
62
+ /.yardoc
63
+ /_yardoc/
64
+ /coverage/
65
+ /doc/
66
+ /pkg/
67
+ /spec/reports/
68
+ /tmp/
data/CHANGELOG ADDED
@@ -0,0 +1,2 @@
1
+ 0.1.0 Apr 25 2021
2
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in rome.gemspec
6
+ gemspec
7
+
8
+
9
+
10
+ gem "rubocop", "~> 1.7"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 sergioro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Rome
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/rome`. 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
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rome'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rome
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
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`, 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rome.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+ require 'rake/clean'
4
+
5
+ CLEAN.include ['**/.*.sw?', '**/*.gem', 'test/test.log']
6
+
7
+ task default: %i[test package]
8
+ task package: :clean
9
+
10
+ Rake::TestTask.new do |t|
11
+ t.libs << 'lib' << 'test'
12
+ t.test_files = FileList['test/**/*_test.rb']
13
+ t.warning = false
14
+ t.verbose = false
15
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "rome"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/rome ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
4
+
5
+ require "rome"
data/lib/rome.rb ADDED
@@ -0,0 +1,44 @@
1
+ $LOAD_PATH.unshift __dir__
2
+
3
+ require "xyz/version"
4
+ require 'optparse'
5
+
6
+ module Rome
7
+ class Error < StandardError; end
8
+
9
+ def self.run(args)
10
+ options = Options.parse(args)
11
+ end
12
+
13
+ class Options
14
+ def self.parse(args)
15
+ options = {}
16
+
17
+ OptionParser.new do |opts|
18
+ opts.program_name = File.basename(bash)
19
+ opts.banner = "Usage: #{opts.program_name} [options]"
20
+
21
+ opts.separator ""
22
+ opts.separator "Options:"
23
+
24
+ opts.on("-oNAME", "--output=NAME", "Specify output file name") do |v|
25
+ options[:output] = v
26
+ end
27
+
28
+ opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
29
+ options[:verbose] = v
30
+ end
31
+
32
+ opts.on_tail("-h", "--help", "Print help", "something else") do |v|
33
+ abort opts.to_s
34
+ end
35
+
36
+ opts.on_tail("-V", "--version", "Print version") do |v|
37
+ abort "#{opts.program_name} #{VERSION}"
38
+ end
39
+ end.parse!(args)
40
+
41
+ options
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rome
4
+ VERSION = "0.1.0"
5
+ end
data/rome.gemspec ADDED
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/rome/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rome"
7
+ spec.version = Rome::VERSION
8
+ spec.authors = ["Sergio Romero"]
9
+ spec.email = ["yo@sergioro.com"]
10
+
11
+ spec.summary = "To be determined..."
12
+ spec.description = "Rome by ROMEro"
13
+ #spec.homepage = "TODO"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
16
+
17
+ #spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
+ #spec.metadata["homepage_uri"] = spec.homepage
19
+ #spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
20
+ #spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ # Uncomment to register a new dependency of your gem
32
+ # spec.add_dependency "example-gem", "~> 1.0"
33
+
34
+ # For more information and examples about making a new gem, checkout our
35
+ # guide at: https://bundler.io/guides/creating_gem.html
36
+
37
+ #spec.add_development_dependency "benchmark-ips", ">= 0"
38
+ spec.add_development_dependency "byebug", "~> 11.0.1"
39
+ spec.add_development_dependency "minitest", "~> 5.0"
40
+ spec.add_development_dependency "minitest-sprint"
41
+ #Jspec.add_development_dependency "minitest-reporters"
42
+ #Jspec.add_development_dependency "minitest-english"
43
+ #Jspec.add_development_dependency "minitest-hooks"
44
+ #Jspec.add_development_dependency "minitest-fail-fast"
45
+ #Jspec.add_development_dependency "minitest-global_expectations"
46
+ #Jspec.add_development_dependency "rake"
47
+ #Jspec.add_development_dependency "ronn"
48
+ #spec.add_development_dependency "ruby-prof"
49
+
50
+ #spec.add_runtime_dependency "SOME_GEM", "~> VERSION"
51
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rome
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sergio Romero
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: byebug
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 11.0.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 11.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-sprint
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Rome by ROMEro
56
+ email:
57
+ - yo@sergioro.com
58
+ executables:
59
+ - rome
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - CHANGELOG
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - exe/rome
72
+ - lib/rome.rb
73
+ - lib/rome/version.rb
74
+ - rome.gemspec
75
+ homepage:
76
+ licenses:
77
+ - MIT
78
+ metadata: {}
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: 2.4.0
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubygems_version: 3.2.11
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: To be determined...
98
+ test_files: []