bp3-hello-world 0.1.0 → 0.1.2
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 +4 -4
- data/.rubocop.yml +4 -0
- data/Gemfile.lock +5 -1
- data/README.md +8 -7
- data/bp3-hello-world.gemspec +45 -0
- data/config/locales/en.yml +3 -0
- data/config/locales/nl.yml +3 -0
- data/config/locales/sp.yml +3 -0
- data/lib/bp3/hello/world/context.rb +18 -0
- data/lib/bp3/hello/world/version.rb +1 -1
- data/lib/bp3/hello/world.rb +4 -11
- data/lib/bp3-hello-world.rb +1 -1
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f797e4c85031e6f327e5374e5138d06c86bcdbe3184c4767abf921552426be5
|
4
|
+
data.tar.gz: ebbb0a516325cf96d2b8aa4fb296498cb9d7f9aec065cd71c31be6650ddf11d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98af70776ed37f91a820f12c01b7fc681c8fe4fd0317bb58f75261442841a8e2f13599b78c95c292b6f6b3d11b504537db59811551116f6e19eeb270f5596728
|
7
|
+
data.tar.gz: bcfc2ac0b4b8b86a5e39bae1cd27c4397bc806b804ba86a5c3c148f0b223d3457178032d383caeb2b651dc9f5eaee82d79c4e61a9d7578416b5a5cf301c9c59d
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bp3-hello-world (0.1.
|
4
|
+
bp3-hello-world (0.1.2)
|
5
|
+
i18n (>= 1.8.11, < 2)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
8
9
|
specs:
|
9
10
|
ast (2.4.2)
|
11
|
+
concurrent-ruby (1.2.2)
|
10
12
|
diff-lcs (1.5.0)
|
13
|
+
i18n (1.14.1)
|
14
|
+
concurrent-ruby (~> 1.0)
|
11
15
|
json (2.6.3)
|
12
16
|
language_server-protocol (3.17.0.3)
|
13
17
|
parallel (1.23.0)
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Bp3::Hello::World
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Bp3::Hello::World is an example Bp3 plugin
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,17 +20,20 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
require 'bp3-hello-world'
|
24
|
+
Bp3::Hello::World::Context.say_it!
|
26
25
|
|
27
26
|
## Development
|
28
27
|
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
28
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
29
|
+
|
30
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
31
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
32
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
32
33
|
|
33
34
|
## Contributing
|
34
35
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/persuavis/bp3-hello-world.
|
36
37
|
|
37
38
|
## License
|
38
39
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/bp3/hello/world/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "bp3-hello-world"
|
7
|
+
spec.version = Bp3::Hello::World::VERSION
|
8
|
+
spec.authors = ["Wim den Braven"]
|
9
|
+
spec.email = ["wimdenbraven@persuavis.com"]
|
10
|
+
|
11
|
+
spec.summary = "Bp3::Hello::World is an example Bp3 plugin."
|
12
|
+
spec.description = "Bp3::Hello::World is an example Bp3 plugin."
|
13
|
+
spec.homepage = "https://www.black-phoebe.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 3.2.2"
|
16
|
+
|
17
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
18
|
+
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/persuavis/bp3-hello-world"
|
21
|
+
spec.metadata["changelog_uri"] = "https://github.com/persuavis/bp3-hello-world/blob/main/CHANGELOG.md"
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
26
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
28
|
+
end
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_dependency "i18n", [">= 1.8.11", "< 2"]
|
35
|
+
|
36
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
38
|
+
spec.add_development_dependency "rubocop", "~> 1.21"
|
39
|
+
spec.add_development_dependency "rubocop-rake", "~> 0.6"
|
40
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.25"
|
41
|
+
|
42
|
+
# For more information and examples about making a new gem, check out our
|
43
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
44
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
45
|
+
end
|
data/lib/bp3/hello/world.rb
CHANGED
@@ -1,22 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "i18n"
|
4
|
+
I18n.load_path += Dir["#{File.expand_path("config/locales")}/*.yml"]
|
5
|
+
|
6
|
+
require_relative "world/context"
|
3
7
|
require_relative "world/version"
|
4
8
|
|
5
9
|
module Bp3
|
6
10
|
module Hello
|
7
11
|
module World
|
8
12
|
class Error < StandardError; end
|
9
|
-
|
10
|
-
# Context says it all
|
11
|
-
class Context
|
12
|
-
def self.say_it!
|
13
|
-
"Hello World"
|
14
|
-
end
|
15
|
-
|
16
|
-
def say_it!
|
17
|
-
self.class.say_it!
|
18
|
-
end
|
19
|
-
end
|
20
13
|
end
|
21
14
|
end
|
22
15
|
end
|
data/lib/bp3-hello-world.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bp3-hello-world
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wim den Braven
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: i18n
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.8.11
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.8.11
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2'
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: rake
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,15 +117,23 @@ files:
|
|
97
117
|
- LICENSE.txt
|
98
118
|
- README.md
|
99
119
|
- Rakefile
|
120
|
+
- bp3-hello-world.gemspec
|
121
|
+
- config/locales/en.yml
|
122
|
+
- config/locales/nl.yml
|
123
|
+
- config/locales/sp.yml
|
100
124
|
- lib/bp3-hello-world.rb
|
101
125
|
- lib/bp3/hello/world.rb
|
126
|
+
- lib/bp3/hello/world/context.rb
|
102
127
|
- lib/bp3/hello/world/version.rb
|
103
128
|
- sig/bp3/hello/world.rbs
|
104
129
|
homepage: https://www.black-phoebe.com
|
105
130
|
licenses:
|
106
131
|
- MIT
|
107
132
|
metadata:
|
133
|
+
allowed_push_host: https://rubygems.org
|
108
134
|
homepage_uri: https://www.black-phoebe.com
|
135
|
+
source_code_uri: https://github.com/persuavis/bp3-hello-world
|
136
|
+
changelog_uri: https://github.com/persuavis/bp3-hello-world/blob/main/CHANGELOG.md
|
109
137
|
rubygems_mfa_required: 'true'
|
110
138
|
post_install_message:
|
111
139
|
rdoc_options: []
|