-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gemfile
130 lines (104 loc) · 4.92 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# gems in this file are packaged into openstudio.exe
# gems listed here should not have binary components
# gems listed here must be able to read resource files from the embedded files location
# need to adjust hard coded paths in embedded_help.rb when adding new gems
source 'http://rubygems.org'
# ruby "~> 3.2.2"
# Specify gem's dependencies in openstudio-gems.gemspec, this is what consumers of the gem will read
gemspec
# Specify specific gem source/location (e.g. github branch) for running bundle in this directory
# This is needed if the version of the gem you want to use is not on rubygems
LOCAL_DEV = false
MINIMAL_GEMS = false # Keep only one non-native gem, and one native
FINAL_PACKAGE = !ENV['FINAL_PACKAGE'].nil?
if !MINIMAL_GEMS
# Bug in addressable to 2.8.1 and patched version has an issue https://github.com/NREL/OpenStudio/issues/4870
gem 'addressable', '= 2.8.1'
# gem 'json_schemer', '= 2.0.0' # Disabled, see #72 and https://github.com/NREL/OpenStudio/issues/4969#issuecomment-1943418472
end
if !MINIMAL_GEMS
# 2.9.1 changed a bunch of require with require_relative and that's
# apparently causing problems
gem 'regexp_parser', '2.9.0'
end
if LOCAL_DEV
gem 'oslg', path: '../oslg'
if !MINIMAL_GEMS
gem 'tbd', path: '../tbd'
gem 'osut', path: '../osut'
gem 'openstudio-standards', '= 0.7.0', path: '../openstudio-standards'
gem 'openstudio-extension', '= 0.8.2', path: '../openstudio-extension-gem'
gem 'openstudio-workflow', '= 2.4.0', path: '../OpenStudio-workflow-gem'
gem 'openstudio_measure_tester', '= 0.4.0', path: "../OpenStudio-measure-tester-gem"
gem 'bcl', path: '../bcl-gem'
end
group :native_ext do
gem 'jaro_winkler', path: '../ext/jaro_winkler'
if !MINIMAL_GEMS
gem 'sqlite3', path: '../ext/sqlite3-ruby'
# You need ragel available (version 6.x, eg `ragel_installer/6.10@bincrafters/stable` from conan)
gem 'oga', '3.2'
# gem 'cbor', '0.5.9.6' # Cbor will require a ton of patching, so disabling it in favor of msgpack (cbor is a fork of msgpack anyways)
gem 'msgpack', '1.7.2'
end
end
elsif !FINAL_PACKAGE
gem 'oslg', '= 0.3.0'
if !MINIMAL_GEMS
gem 'tbd', '= 3.4.3'
gem 'osut', '= 0.5.0'
# gem 'openstudio-standards', '= 0.6.0.rc1', :github => 'NREL/openstudio-standards', :ref => 'v0.6.0.rc1'
# gem 'openstudio-extension', '= 0.8.0',:github => 'NREL/openstudio-extension-gem', :ref => '2e86077dce1688443cca462feda3239ef47c232c'
# gem 'openstudio-workflow', '= 2.4.0', :github => 'NREL/OpenStudio-workflow-gem', :ref => '32126e9b9f6bd6ed1ee55331f6dadbb3ba1e7cd2'
# gem 'openstudio_measure_tester', '= 0.4.0', :github => 'NREL/OpenStudio-measure-tester-gem', :ref => '89b9b7eb5f2d2ef91e225585a09e076577f25d4a'
# gem 'bcl', "= 0.8.0", :github => 'NREL/bcl-gem', :ref => '3c60cadc781410819e7c9bfb8d7ba1af146d9abd'
gem 'openstudio-standards', '= 0.7.0'
gem 'openstudio-extension', '= 0.8.2'
gem 'openstudio-workflow', '= 2.4.0'
gem 'openstudio_measure_tester', '= 0.4.0'
gem 'bcl', "= 0.8.0"
# This removes the runtime dependency on 'json ~> 2.3'. Our CLI, via ruby
# itself already has json 2.6.2 which is good enough
gem 'rubocop', :github => 'jmarrec/rubocop', :ref => '1.50.0-no_json'
end
group :native_ext do
gem 'jaro_winkler', '= 1.5.6', :github => 'jmarrec/jaro_winkler', :ref => 'msvc-ruby3'
if !MINIMAL_GEMS
# gem 'sqlite3', :github => 'jmarrec/sqlite3-ruby', :ref => 'MSVC_support'
# gem 'sqlite3', :github => 'sparklemotion/sqlite3-ruby', :ref => "v1.7.2"
gem 'sqlite3', '= 1.7.2'
# You need ragel available (version 6.x, eg `ragel_installer/6.10@bincrafters/stable` from conan)
gem 'oga', '3.2'
# gem 'cbor', '0.5.9.6' # Cbor will require a ton of patching, so disabling it in favor of msgpack (cbor is a fork of msgpack anyways)
gem 'msgpack', '1.7.2'
end
end
else
puts "FINAL_PACKAGE"
gem 'oslg', '= 0.3.0'
if !MINIMAL_GEMS
gem 'tbd', '= 3.4.3'
gem 'osut', '= 0.5.0'
gem 'openstudio-standards', '= 0.7.0'
gem 'openstudio-extension', '= 0.8.2'
gem 'openstudio-workflow', '= 2.4.0'
gem 'openstudio_measure_tester', '= 0.4.0'
gem 'bcl', "= 0.8.0"
end
group :native_ext do
gem 'jaro_winkler', '= 1.5.6'
if !MINIMAL_GEMS
# gem 'sqlite3'
# gem 'sqlite3'
gem 'sqlite3', '= 1.7.2'
# You need ragel available (version 6.x, eg `ragel_installer/6.10@bincrafters/stable` from conan)
gem 'oga', '3.2'
# gem 'cbor', '0.5.9.6' # Cbor will require a ton of patching, so disabling it in favor of msgpack (cbor is a fork of msgpack anyways)
gem 'msgpack', '1.7.2'
end
end
end
gem 'byebug', '~> 11.1.3'
gem 'webrick', '~> 1.8.2'
# leave this line in for now as we may try to get nokogiri to compile correctly on windows
# gem 'nokogiri', '= 1.11.0.rc1.20200331222433', :github => 'jmarrec/nokogiri', :ref => 'MSVC_support' # master of 2020-03-31 + gemspec commit