bp3-hello-world 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6329a7229e368954ec7f195d811e3ce5a3b28bd1250902e5cca5f4687a04503b
4
- data.tar.gz: 9f584bf5119bf095b4bd2c0e573bb08cd0e125f0a21fd6c9144da34b8a6e8b70
3
+ metadata.gz: 0f797e4c85031e6f327e5374e5138d06c86bcdbe3184c4767abf921552426be5
4
+ data.tar.gz: ebbb0a516325cf96d2b8aa4fb296498cb9d7f9aec065cd71c31be6650ddf11d0
5
5
  SHA512:
6
- metadata.gz: d0e870284570e4e0b78b44491bc609d4edee82a547811d0896eb1b4092c5a576ae212ced734bb625ce1f4da885ac08457e18649bc6320243e4e689342a99b588
7
- data.tar.gz: 73a4535347dcb6630deb94e9b003ecd2c6b8cb131d946c848206fca41e4eead9d0d2dc15bcc72098f62ec2de689acb11950eeb8d1d23c60574196116a0750aff
6
+ metadata.gz: 98af70776ed37f91a820f12c01b7fc681c8fe4fd0317bb58f75261442841a8e2f13599b78c95c292b6f6b3d11b504537db59811551116f6e19eeb270f5596728
7
+ data.tar.gz: bcfc2ac0b4b8b86a5e39bae1cd27c4397bc806b804ba86a5c3c148f0b223d3457178032d383caeb2b651dc9f5eaee82d79c4e61a9d7578416b5a5cf301c9c59d
data/.rubocop.yml CHANGED
@@ -9,6 +9,10 @@ AllCops:
9
9
  Gemspec/DevelopmentDependencies:
10
10
  EnforcedStyle: gemspec
11
11
 
12
+ Naming/FileName:
13
+ Exclude:
14
+ - lib/bp3-hello-world.rb
15
+
12
16
  Style/StringLiterals:
13
17
  Enabled: true
14
18
  EnforcedStyle: double_quotes
data/Gemfile.lock CHANGED
@@ -1,13 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bp3-hello-world (0.1.0)
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
- 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/bp3/hello/world`. 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
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
- TODO: Write usage instructions here
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. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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`. 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
+ 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/[USERNAME]/bp3-hello-world.
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
@@ -0,0 +1,3 @@
1
+ en:
2
+ hello:
3
+ world: "hello world"
@@ -0,0 +1,3 @@
1
+ nl:
2
+ hello:
3
+ world: "hallo wereld"
@@ -0,0 +1,3 @@
1
+ sp:
2
+ hello:
3
+ world: "hola mundo"
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bp3
4
+ module Hello
5
+ module World
6
+ # Context says it all
7
+ class Context
8
+ def self.say_it!
9
+ I18n.t("hello.world")
10
+ end
11
+
12
+ def say_it!
13
+ self.class.say_it!
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -3,7 +3,7 @@
3
3
  module Bp3
4
4
  module Hello
5
5
  module World
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.2"
7
7
  end
8
8
  end
9
9
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bp3/hello/world'
3
+ require "bp3/hello/world"
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.0
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-10-31 00:00:00.000000000 Z
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: []