cooklang 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: 6695e5e9c9b98ec1aa80cd6cda05909fd39008454e3667761516365874a28054
4
+ data.tar.gz: 70d755aeed7e1ef4810d1a797a471740adaeddd5382a031abdf0e972a8f5a827
5
+ SHA512:
6
+ metadata.gz: 7799cc3b498d4ebb8f519af4c3dbf50ced4618afe29a724cbfb83702bf95f52360e1e390bbb186d101bdf0e2a05eca30fcf5915e6007ca0c29bfaeb0b7df0abd
7
+ data.tar.gz: 04bafd2e069bbd3192ef617b15d3a71f3c951232053bf4a9b656d94c74814f9a46d59393ae11bc9a8ead3fc2b2758db61cd4b7e77aa75598dede89e51e5939dd
data/.rubocop.yml ADDED
@@ -0,0 +1,126 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.7.5
7
+ NewCops: enable
8
+
9
+ Bundler/OrderedGems:
10
+ Enabled: false
11
+
12
+ Layout/AccessModifierIndentation:
13
+ EnforcedStyle: outdent
14
+
15
+ Layout/CaseIndentation:
16
+ EnforcedStyle: end
17
+
18
+ Layout/EmptyLinesAroundAccessModifier:
19
+ EnforcedStyle: only_before
20
+
21
+ Layout/EndAlignment:
22
+ EnforcedStyleAlignWith: variable
23
+
24
+ Layout/FirstArrayElementIndentation:
25
+ EnforcedStyle: consistent
26
+
27
+ Layout/FirstHashElementIndentation:
28
+ EnforcedStyle: consistent
29
+
30
+ Layout/LineLength:
31
+ Max: 120
32
+
33
+ Layout/MultilineMethodCallIndentation:
34
+ EnforcedStyle: indented
35
+
36
+ Layout/SpaceInsideArrayLiteralBrackets:
37
+ EnforcedStyle: space
38
+
39
+ Metrics/AbcSize:
40
+ Enabled: false
41
+
42
+ Metrics/BlockLength:
43
+ Enabled: false
44
+
45
+ Metrics/ClassLength:
46
+ Enabled: false
47
+
48
+ Metrics/CyclomaticComplexity:
49
+ Enabled: false
50
+
51
+ Metrics/MethodLength:
52
+ Enabled: false # with constructing a lot of bulky hashes this cop becomes noisy
53
+
54
+ Metrics/ParameterLists:
55
+ CountKeywordArgs: false
56
+
57
+ Metrics/PerceivedComplexity:
58
+ Enabled: false
59
+
60
+ Naming/AccessorMethodName:
61
+ Enabled: false
62
+
63
+ Naming/InclusiveLanguage:
64
+ Enabled: false
65
+
66
+ RSpec/EmptyLineAfterSubject:
67
+ Enabled: false
68
+
69
+ RSpec/ExampleLength:
70
+ Max: 10
71
+
72
+ RSpec/MultipleSubjects:
73
+ Enabled: false
74
+
75
+ Style/AndOr:
76
+ Enabled: false
77
+
78
+ Style/ClassAndModuleChildren:
79
+ Enabled: false
80
+
81
+ Style/ConditionalAssignment:
82
+ Enabled: false
83
+
84
+ Style/Documentation:
85
+ Enabled: false
86
+
87
+ Style/FrozenStringLiteralComment:
88
+ Enabled: false
89
+
90
+ Style/GuardClause:
91
+ Enabled: false
92
+
93
+ Style/HashEachMethods:
94
+ Enabled: true
95
+
96
+ Style/HashTransformKeys:
97
+ Enabled: false
98
+
99
+ Style/HashTransformValues:
100
+ Enabled: false
101
+
102
+ Style/IfUnlessModifier:
103
+ Enabled: false
104
+
105
+ Style/IfWithBooleanLiteralBranches:
106
+ Enabled: false
107
+
108
+ Style/Lambda:
109
+ Enabled: false
110
+
111
+ Style/QuotedSymbols:
112
+ Enabled: false
113
+
114
+ Style/StringLiterals:
115
+ Enabled: true
116
+ EnforcedStyle: double_quotes
117
+
118
+ Style/StringLiteralsInInterpolation:
119
+ Enabled: true
120
+ EnforcedStyle: double_quotes
121
+
122
+ Style/SymbolArray:
123
+ Enabled: false
124
+
125
+ Style/WordArray:
126
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.5
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-03-08
4
+
5
+ - Initial release
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in cooklang.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cooklang (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ parallel (1.21.0)
11
+ parser (3.1.1.0)
12
+ ast (~> 2.4.1)
13
+ rainbow (3.1.1)
14
+ regexp_parser (2.2.1)
15
+ rexml (3.2.5)
16
+ rubocop (1.25.1)
17
+ parallel (~> 1.10)
18
+ parser (>= 3.1.0.0)
19
+ rainbow (>= 2.2.2, < 4.0)
20
+ regexp_parser (>= 1.8, < 3.0)
21
+ rexml
22
+ rubocop-ast (>= 1.15.1, < 2.0)
23
+ ruby-progressbar (~> 1.7)
24
+ unicode-display_width (>= 1.4.0, < 3.0)
25
+ rubocop-ast (1.16.0)
26
+ parser (>= 3.1.1.0)
27
+ rubocop-performance (1.13.3)
28
+ rubocop (>= 1.7.0, < 2.0)
29
+ rubocop-ast (>= 0.4.0)
30
+ rubocop-rspec (2.9.0)
31
+ rubocop (~> 1.19)
32
+ ruby-progressbar (1.11.0)
33
+ unicode-display_width (2.1.0)
34
+
35
+ PLATFORMS
36
+ x86_64-darwin-21
37
+
38
+ DEPENDENCIES
39
+ cooklang!
40
+ rubocop (~> 1.23)
41
+ rubocop-performance (~> 1.12)
42
+ rubocop-rspec (~> 2.6)
43
+
44
+ BUNDLED WITH
45
+ 2.2.33
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 James Brooks
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Cooklang
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/cooklang`. 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 'cooklang'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install cooklang
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. 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]/cooklang.
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rubocop/rake_task"
5
+
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: :rubocop
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 "cooklang"
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
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cooklang
4
+ VERSION = "0.1.0"
5
+ end
data/lib/cooklang.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "cooklang/version"
4
+
5
+ module Cooklang
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cooklang
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Brooks
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-03-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.23'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.23'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.6'
55
+ description:
56
+ email:
57
+ - james@jamesbrooks.net
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".rubocop.yml"
63
+ - ".ruby-version"
64
+ - CHANGELOG.md
65
+ - Gemfile
66
+ - Gemfile.lock
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/cooklang.rb
73
+ - lib/cooklang/version.rb
74
+ homepage: https://github.com/jamesbrooks/cooklang-rb
75
+ licenses: []
76
+ metadata:
77
+ homepage_uri: https://github.com/jamesbrooks/cooklang-rb
78
+ source_code_uri: https://github.com/jamesbrooks/cooklang-rb
79
+ changelog_uri: https://github.com/jamesbrooks/cooklang-rb/CHANGELOG.md
80
+ rubygems_mfa_required: 'true'
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 2.7.5
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubygems_version: 3.1.6
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Ruby library for working with Cooklang
100
+ test_files: []