bp3-hello-world 0.1.1 → 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: f4155cb7f3c10ebc16cf82212c311e496537775d20c1b3d23e500257aac99bd6
4
- data.tar.gz: 3456e2f7691b673545ea41e9ba27261e1a4d195526e332afc817672376baf7d5
3
+ metadata.gz: 0f797e4c85031e6f327e5374e5138d06c86bcdbe3184c4767abf921552426be5
4
+ data.tar.gz: ebbb0a516325cf96d2b8aa4fb296498cb9d7f9aec065cd71c31be6650ddf11d0
5
5
  SHA512:
6
- metadata.gz: 3805cb585a0ab96aebec344713384add029214671ce7668ed6694233c27aae2e55ee81cd2c9723841aedafe4fa700bc5fdc418f55f04b08f63baf74cd7154886
7
- data.tar.gz: 1a474b2d3579458d6d645b832cd489f6fda4bf4f4a15a0ec86af29bd93af0762a40fa702819b09f06ea0b8d8272f5f59016501996faea59201cb608e48704838
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.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)
@@ -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.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.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-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