bp3-hello-world 0.1.1 → 0.1.3

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: f4155cb7f3c10ebc16cf82212c311e496537775d20c1b3d23e500257aac99bd6
4
- data.tar.gz: 3456e2f7691b673545ea41e9ba27261e1a4d195526e332afc817672376baf7d5
3
+ metadata.gz: fd3967917afcdaa32a7d83585ef22dca9569982664783aad2152acd4b0bca935
4
+ data.tar.gz: 761634704efc97ee595d71d08eb51c44c88f048d6b75754f395f0ac1c8204d24
5
5
  SHA512:
6
- metadata.gz: 3805cb585a0ab96aebec344713384add029214671ce7668ed6694233c27aae2e55ee81cd2c9723841aedafe4fa700bc5fdc418f55f04b08f63baf74cd7154886
7
- data.tar.gz: 1a474b2d3579458d6d645b832cd489f6fda4bf4f4a15a0ec86af29bd93af0762a40fa702819b09f06ea0b8d8272f5f59016501996faea59201cb608e48704838
6
+ metadata.gz: 5a9bca506a7ca161160ad2dc39532a67f3d4702e47836f5e8702133b59363b5f40d7c08b0e3887f645800265d1db22eb278fb8f5ef1ce32695e5937b151640f3
7
+ data.tar.gz: d5f5cd45346a853c5f2981a68b16f5e7887c7fc1fdae8a5cba73d22aa7cf5f05b1ebc3dc1cced681bca5bf452f32ee536ce7c9e3cec7c0b65998d8aef62f051b
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.1)
4
+ bp3-hello-world (0.1.3)
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)
@@ -31,8 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- # Uncomment to register a new dependency of your gem
35
- # spec.add_dependency "example-gem", "~> 1.0"
34
+ spec.add_dependency "i18n", [">= 1.8.11", "< 2"]
36
35
 
37
36
  spec.add_development_dependency "rake", "~> 13.0"
38
37
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -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.1"
6
+ VERSION = "0.1.3"
7
7
  end
8
8
  end
9
9
  end
@@ -1,22 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "i18n"
4
+ load_dir = File.expand_path("#{File.dirname(__FILE__)}/../../../config/locales")
5
+ I18n.load_path += Dir.glob("#{load_dir}/*.{rb,yml}")
6
+
7
+ require_relative "world/context"
3
8
  require_relative "world/version"
4
9
 
5
10
  module Bp3
6
11
  module Hello
7
12
  module World
8
13
  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
14
  end
21
15
  end
22
16
  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.1
4
+ version: 0.1.3
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-03 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
@@ -98,8 +118,12 @@ files:
98
118
  - README.md
99
119
  - Rakefile
100
120
  - bp3-hello-world.gemspec
121
+ - config/locales/en.yml
122
+ - config/locales/nl.yml
123
+ - config/locales/sp.yml
101
124
  - lib/bp3-hello-world.rb
102
125
  - lib/bp3/hello/world.rb
126
+ - lib/bp3/hello/world/context.rb
103
127
  - lib/bp3/hello/world/version.rb
104
128
  - sig/bp3/hello/world.rbs
105
129
  homepage: https://www.black-phoebe.com