bundler-openhab-stub 1.0.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 +7 -0
- data/plugins.rb +34 -0
- metadata +63 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 39d63466414a5f198bd20bd94026b2c0887199f4eb7be990d58e9cc440edcd3a
|
|
4
|
+
data.tar.gz: 651cda88d6490a9648a5807da394450a2affdf6719837cdc009896bca77a3538
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 086229434b694cc7c4486a9abebc08fcb3ad2b525cd96cf5f439c1a18d58b81be0677ce783b56619669ce3e47c3a375381b46007b4aaa71ce851ffaf8c91afbe
|
|
7
|
+
data.tar.gz: b5be668243bb1f08d32de5eee67a2f3c49963f948ce56f5f7ebc9e8cc1f4aeef09e82db3453a05513052f78c4f99580b0395495a71a6ef77883145758981cb44
|
data/plugins.rb
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
Bundler::Plugin.add_hook(Bundler::Plugin::Events::GEM_BEFORE_EVAL) do |gemfile, _lockfile|
|
|
4
|
+
# We're already running inside of openHAB; do nothing
|
|
5
|
+
next if defined?(org.openhab.core.OpenHAB.version)
|
|
6
|
+
|
|
7
|
+
# We're running from inside of the openhab-scripting repository
|
|
8
|
+
version = "5.0.3" if File.exist?(File.join(File.dirname(gemfile), "openhab-scripting.gemspec"))
|
|
9
|
+
|
|
10
|
+
version ||= ENV["OPENHAB_VERSION"]&.tr("-", ".")
|
|
11
|
+
|
|
12
|
+
# find a local openHAB installation
|
|
13
|
+
if !version && (userdata = ENV["OPENHAB_USERDATA"]) &&
|
|
14
|
+
File.exist?(version_file = File.join(userdata, "etc/version.properties"))
|
|
15
|
+
version = File.read(version_file).strip[/^openhab-core\s*:\s*(\S+)$/, 1]&.tr("-", ".")
|
|
16
|
+
end
|
|
17
|
+
next unless version
|
|
18
|
+
|
|
19
|
+
openhab_spec = Gem::Specification.new do |s|
|
|
20
|
+
s.name = "openhab"
|
|
21
|
+
s.version = version
|
|
22
|
+
|
|
23
|
+
def s.deleted_gem?
|
|
24
|
+
false
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def s.installation_missing?
|
|
28
|
+
false
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
Gem::Specification.add_spec(openhab_spec)
|
|
33
|
+
Gem.post_reset { Gem::Specification.add_spec(openhab_spec) }
|
|
34
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: bundler-openhab-stub
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Cody Cutrer
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: bundler
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "4.1"
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ~>
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: "4.1"
|
|
28
|
+
email:
|
|
29
|
+
- cody@cutrer.us
|
|
30
|
+
executables: []
|
|
31
|
+
extensions: []
|
|
32
|
+
extra_rdoc_files: []
|
|
33
|
+
files:
|
|
34
|
+
- plugins.rb
|
|
35
|
+
homepage: "https://openhab.github.io/openhab-jruby/main/file.testing.html"
|
|
36
|
+
licenses:
|
|
37
|
+
- EPL-2.0
|
|
38
|
+
metadata:
|
|
39
|
+
homepage_uri: "https://openhab.github.io/openhab-jruby/main/file.testing.html"
|
|
40
|
+
source_code_uri: "https://github.com/openhab/openhab-jruby"
|
|
41
|
+
documentation_uri: "https://openhab.github.io/openhab-jruby/main/file.testing.html"
|
|
42
|
+
changelog_uri: "https://openhab.github.io/openhab-jruby/file.CHANGELOG.html"
|
|
43
|
+
rubygems_mfa_required: "true"
|
|
44
|
+
rdoc_options: []
|
|
45
|
+
require_paths:
|
|
46
|
+
- lib
|
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
|
+
requirements:
|
|
49
|
+
-
|
|
50
|
+
- ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: 3.4.2
|
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
|
+
requirements:
|
|
55
|
+
-
|
|
56
|
+
- ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: "0"
|
|
59
|
+
requirements: []
|
|
60
|
+
rubygems_version: 4.1.0
|
|
61
|
+
specification_version: 4
|
|
62
|
+
summary: Bundler plugin that stubs the openHAB gem to satisfy the dependency when the openHAB runtime is not present
|
|
63
|
+
test_files: []
|