hyperloop-config 0.99.6 → 1.0.0.lap21

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
- SHA256:
3
- metadata.gz: a414b4c2f5cdfc69f1b70f68d7958021d9aa2d38ff2ef4b3b8c9ba6f4bdfaef9
4
- data.tar.gz: 754e252da93a126a550b7d1a4673e261f9acc5030356a2ae8d79a76192cee548
2
+ SHA1:
3
+ metadata.gz: 8bf05797e7b33f547a8feea4c2e7011f221be36e
4
+ data.tar.gz: 9d24be236ae11fd98b2c893c41a6f70a0ece23c7
5
5
  SHA512:
6
- metadata.gz: 835a863ca4d9d51502cb5edb6ec229504dd583379bfbb925983b326fa587081cfcab17be98df3aa82c6c30cc87295094898b2f9201f3c251062d3e554e146ad6
7
- data.tar.gz: 8c2b6596e3884f80ebbdae7075365ae45b336333a1c9c0110f60681806e88ff94e9cac5c71c67cbe567bd598b536adcf6ffa79addc34438ede1acd569de96c44
6
+ metadata.gz: 9bcfc64aa61c6cab9cdbec51f69e8f50c5dc9bf15017985331d287bcc15f25ba06bbf72a75d226a2842e311ade8737b5ba17d80254e9cd1e6d7362dd60790fca
7
+ data.tar.gz: 313d8d177a4bfcbdb36b91e397d4da700d4cb86369008cd8f6cf578bbe94d83b4cd18a10751173e4a2f590797371eb006074ff1c3daad2b9850a6e3a9499965e
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
+ /Gemfile.lock
3
4
  /_yardoc/
4
5
  /coverage/
5
6
  /doc/
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at mitch@catprint.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- gem 'hyper-spec', path: '../hyper-spec'
2
+ gem "opal-jquery", git: "https://github.com/opal/opal-jquery.git", branch: "master"
3
+ gem "opal-rails", git: "https://github.com/opal/opal-rails.git", branch: "master"
3
4
  gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 catmando
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Rakefile CHANGED
@@ -3,9 +3,4 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- namespace :spec do
7
- task :prepare do
8
- end
9
- end
10
-
11
6
  task :default => :spec
@@ -0,0 +1,3 @@
1
+ [dciy.commands]
2
+ prepare = ["./dciy_prepare.sh"]
3
+ cibuild = ["./dciy_run.sh"]
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ export HYPER_DEV_GEM_SOURCE='https://gems.ruby-hyperloop.org'
3
+ export RAILS_ENV="test"
4
+ bundle update
5
+ cd spec/test_app
6
+ bundle update
7
+ cd ../..
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+ export HYPER_DEV_GEM_SOURCE="https://gems.ruby-hyperloop.org"
3
+ export RAILS_ENV="test"
4
+ pwd
5
+ echo
6
+ echo "Running with Chrome headless"
7
+ DRIVER=headless bundle exec rspec
8
+ # echo
9
+ # echo "Running with Firefox headless"
10
+ # DRIVER=beheaded bundle exec rspec
@@ -21,19 +21,13 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency 'libv8', '~> 6.7.0'
25
- spec.add_dependency 'mini_racer', '~> 0.2.4'
26
24
  spec.add_dependency 'opal', '>= 0.11.0', '< 0.12.0'
27
25
  spec.add_dependency 'opal-browser', '~> 0.2.0'
28
26
  spec.add_dependency 'uglifier'
29
-
30
-
31
- spec.add_development_dependency 'bundler', '~> 1.16'
32
- spec.add_development_dependency 'chromedriver-helper'
27
+ spec.add_development_dependency 'bundler', '~> 1.16.0'
33
28
  spec.add_development_dependency 'hyper-spec', Hyperloop::Config::VERSION
34
- spec.add_development_dependency 'opal-rails', '~> 0.9.4'
35
- spec.add_development_dependency 'pry'
36
- spec.add_development_dependency 'puma'
29
+ spec.add_development_dependency 'mini_racer', '~> 0.1.15'
30
+ spec.add_development_dependency 'opal-rails', '~> 0.9.3'
37
31
  spec.add_development_dependency 'rails', '>= 4.0.0'
38
32
  spec.add_development_dependency 'rake'
39
33
  spec.add_development_dependency 'rspec', '~> 3.7.0'
@@ -1,35 +1,21 @@
1
1
  if RUBY_ENGINE == 'opal'
2
- require 'hyperloop/string'
3
2
  require 'hyperloop/client_stubs'
4
3
  require 'hyperloop/context'
5
- require 'hyperloop/js_imports'
6
4
  require 'hyperloop/on_client'
7
- require 'hyperloop/active_support_string_inquirer.rb'
8
- require 'hyperloop_env'
9
5
  else
10
6
  require 'opal'
11
7
  require 'opal-browser'
12
- begin
13
- require 'opal-rails' if defined? Rails
14
- rescue LoadError
15
- end
16
8
  require 'hyperloop/config_settings'
17
9
  require 'hyperloop/context'
18
10
  require 'hyperloop/imports'
19
- require 'hyperloop/js_imports'
20
11
  require 'hyperloop/client_readers'
21
12
  require 'hyperloop/on_client'
22
13
  require 'hyperloop/rail_tie' if defined? Rails
23
- require 'hyperloop/active_support_string_inquirer.rb' unless defined? ActiveSupport
24
- require 'hyperloop/env'
25
- require 'hyperloop/on_error'
26
14
  Hyperloop.import 'opal', gem: true
27
15
  Hyperloop.import 'browser', client_only: true
28
16
  Hyperloop.import 'hyperloop-config', gem: true
29
17
  Hyperloop.import 'hyperloop/autoloader'
30
18
  Hyperloop.import 'hyperloop/autoloader_starter'
31
- # based on the environment pick the directory containing the file with the matching
32
- # value for the client. This avoids use of ERB for builds outside of sprockets environment
33
- Opal.append_path(File.expand_path("../hyperloop/environment/#{Hyperloop.env}/", __FILE__).untaint)
19
+
34
20
  Opal.append_path(File.expand_path('../', __FILE__).untaint)
35
21
  end
@@ -1,5 +1,5 @@
1
1
  module Hyperloop
2
2
  module Config
3
- VERSION = '0.99.6'
3
+ VERSION = '1.0.0.lap21'
4
4
  end
5
5
  end
@@ -5,12 +5,10 @@ module Hyperloop
5
5
  @import_list ||= []
6
6
  end
7
7
 
8
- def import(value, gem: nil, cancelled: nil, client_only: nil, server_only: nil, tree: nil, js_import: nil, at_head: nil)
9
- return if import_list.detect { |current_value, *_rest| value == current_value }
10
- new_element = [
11
- value, cancelled, !client_only, !server_only, (tree ? :tree : :gem), js_import
12
- ]
13
- import_list.send(at_head ? :unshift : :push, new_element)
8
+ def import(value, gem: nil, cancelled: nil, client_only: nil, server_only: nil, tree: nil)
9
+ unless import_list.detect { |current_value, *_rest| value == current_value }
10
+ import_list << [value, cancelled, !client_only, !server_only, (tree ? :tree : :gem)]
11
+ end
14
12
  end
15
13
 
16
14
  alias imports import
@@ -20,32 +18,15 @@ module Hyperloop
20
18
  end
21
19
 
22
20
  def cancel_import(value)
23
- return unless value
24
21
  current_spec = import_list.detect { |old_value, *_rest| value == old_value }
25
22
  if current_spec
26
- current_spec[1] = true
23
+ current_spec[1] = true
27
24
  else
28
25
  import_list << [value, true, true, true, false]
29
26
  end
30
27
  end
31
28
 
32
- def cancel_webpack_imports
33
- import_list.collect { |name, _c, _co, _so, _t, js_import, *_rest| js_import && name }
34
- .each { |name| cancel_import name }
35
- end
36
-
37
- def handle_webpack
38
- return unless defined? Webpacker
39
- client_only_manifest = Webpacker.manifest.lookup("client_only.js")
40
- client_and_server_manifest = Webpacker.manifest.lookup("client_and_server.js")
41
- return unless client_only_manifest || client_and_server_manifest
42
- cancel_webpack_imports
43
- import client_only_manifest.split("/").last, client_only: true, at_head: true if client_only_manifest
44
- import client_and_server_manifest.split("/").last, at_head: true if client_and_server_manifest
45
- end
46
-
47
29
  def generate_requires(mode, sys, file)
48
- handle_webpack
49
30
  import_list.collect do |value, cancelled, render_on_server, render_on_client, kind|
50
31
  next if cancelled
51
32
  next if (sys && kind == :tree) || (!sys && kind != :tree)
@@ -1,6 +1,6 @@
1
1
  module Hyperloop
2
2
  define_setting :add_hyperloop_paths, true
3
-
3
+
4
4
  define_setting :prerendering_files, ['hyperloop-prerender-loader.js']
5
5
 
6
6
  class Railtie < ::Rails::Railtie
@@ -34,11 +34,6 @@ module Hyperloop
34
34
  # config.assets.paths.unshift(hps)
35
35
  # end
36
36
  config.assets.paths.unshift ::Rails.root.join('app', 'hyperloop').to_s
37
- if Rails.const_defined? 'Hyperloop::Console'
38
- config.assets.precompile += %w( hyper-console-client.css )
39
- config.assets.precompile += %w( hyper-console-client.min.js )
40
- config.assets.precompile += %w( action_cable.js ) if Rails.const_defined? 'ActionCable'
41
- end
42
37
  else
43
38
  delete_first config.eager_load_paths, "#{config.root}/app/hyperloop/models"
44
39
  delete_first config.eager_load_paths, "#{config.root}/app/hyperloop/models/concerns"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperloop-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.6
4
+ version: 1.0.0.lap21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch VanDuyn
@@ -9,36 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-01-30 00:00:00.000000000 Z
12
+ date: 2018-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: libv8
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: 6.7.0
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: 6.7.0
28
- - !ruby/object:Gem::Dependency
29
- name: mini_racer
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: 0.2.4
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: 0.2.4
42
14
  - !ruby/object:Gem::Dependency
43
15
  name: opal
44
16
  requirement: !ruby/object:Gem::Requirement
@@ -93,84 +65,56 @@ dependencies:
93
65
  requirements:
94
66
  - - "~>"
95
67
  - !ruby/object:Gem::Version
96
- version: '1.16'
68
+ version: 1.16.0
97
69
  type: :development
98
70
  prerelease: false
99
71
  version_requirements: !ruby/object:Gem::Requirement
100
72
  requirements:
101
73
  - - "~>"
102
74
  - !ruby/object:Gem::Version
103
- version: '1.16'
104
- - !ruby/object:Gem::Dependency
105
- name: chromedriver-helper
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
75
+ version: 1.16.0
118
76
  - !ruby/object:Gem::Dependency
119
77
  name: hyper-spec
120
78
  requirement: !ruby/object:Gem::Requirement
121
79
  requirements:
122
80
  - - '='
123
81
  - !ruby/object:Gem::Version
124
- version: 0.99.6
82
+ version: 1.0.0.lap21
125
83
  type: :development
126
84
  prerelease: false
127
85
  version_requirements: !ruby/object:Gem::Requirement
128
86
  requirements:
129
87
  - - '='
130
88
  - !ruby/object:Gem::Version
131
- version: 0.99.6
89
+ version: 1.0.0.lap21
132
90
  - !ruby/object:Gem::Dependency
133
- name: opal-rails
91
+ name: mini_racer
134
92
  requirement: !ruby/object:Gem::Requirement
135
93
  requirements:
136
94
  - - "~>"
137
95
  - !ruby/object:Gem::Version
138
- version: 0.9.4
96
+ version: 0.1.15
139
97
  type: :development
140
98
  prerelease: false
141
99
  version_requirements: !ruby/object:Gem::Requirement
142
100
  requirements:
143
101
  - - "~>"
144
102
  - !ruby/object:Gem::Version
145
- version: 0.9.4
146
- - !ruby/object:Gem::Dependency
147
- name: pry
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- type: :development
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
103
+ version: 0.1.15
160
104
  - !ruby/object:Gem::Dependency
161
- name: puma
105
+ name: opal-rails
162
106
  requirement: !ruby/object:Gem::Requirement
163
107
  requirements:
164
- - - ">="
108
+ - - "~>"
165
109
  - !ruby/object:Gem::Version
166
- version: '0'
110
+ version: 0.9.3
167
111
  type: :development
168
112
  prerelease: false
169
113
  version_requirements: !ruby/object:Gem::Requirement
170
114
  requirements:
171
- - - ">="
115
+ - - "~>"
172
116
  - !ruby/object:Gem::Version
173
- version: '0'
117
+ version: 0.9.3
174
118
  - !ruby/object:Gem::Dependency
175
119
  name: rails
176
120
  requirement: !ruby/object:Gem::Requirement
@@ -264,12 +208,15 @@ extensions: []
264
208
  extra_rdoc_files: []
265
209
  files:
266
210
  - ".gitignore"
267
- - ".travis.yml"
211
+ - CODE_OF_CONDUCT.md
268
212
  - DOCS.md
269
213
  - Gemfile
270
- - Gemfile.lock
214
+ - LICENSE.txt
271
215
  - README.md
272
216
  - Rakefile
217
+ - dciy.toml
218
+ - dciy_prepare.sh
219
+ - dciy_run.sh
273
220
  - hyperloop-config.gemspec
274
221
  - lib/hyperloop-config.rb
275
222
  - lib/hyperloop-loader-application.rb.erb
@@ -278,7 +225,6 @@ files:
278
225
  - lib/hyperloop-prerender-loader-application.rb.erb
279
226
  - lib/hyperloop-prerender-loader-system-code.rb.erb
280
227
  - lib/hyperloop-prerender-loader.js
281
- - lib/hyperloop/active_support_string_inquirer.rb
282
228
  - lib/hyperloop/autoloader.rb
283
229
  - lib/hyperloop/autoloader_starter.rb
284
230
  - lib/hyperloop/client_readers.rb
@@ -286,17 +232,9 @@ files:
286
232
  - lib/hyperloop/config/version.rb
287
233
  - lib/hyperloop/config_settings.rb
288
234
  - lib/hyperloop/context.rb
289
- - lib/hyperloop/env.rb
290
- - lib/hyperloop/environment/development/hyperloop_env.rb
291
- - lib/hyperloop/environment/production/hyperloop_env.rb
292
- - lib/hyperloop/environment/staging/hyperloop_env.rb
293
- - lib/hyperloop/environment/test/hyperloop_env.rb
294
235
  - lib/hyperloop/imports.rb
295
- - lib/hyperloop/js_imports.rb
296
236
  - lib/hyperloop/on_client.rb
297
- - lib/hyperloop/on_error.rb
298
237
  - lib/hyperloop/rail_tie.rb
299
- - lib/hyperloop/string.rb
300
238
  homepage: http://ruby-hyperloop.org
301
239
  licenses:
302
240
  - MIT
@@ -312,11 +250,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
312
250
  version: '0'
313
251
  required_rubygems_version: !ruby/object:Gem::Requirement
314
252
  requirements:
315
- - - ">="
253
+ - - ">"
316
254
  - !ruby/object:Gem::Version
317
- version: '0'
255
+ version: 1.3.1
318
256
  requirements: []
319
- rubygems_version: 3.0.2
257
+ rubyforge_project:
258
+ rubygems_version: 2.6.12
320
259
  signing_key:
321
260
  specification_version: 4
322
261
  summary: Provides a single point configuration module for hyperloop gems
@@ -1,29 +0,0 @@
1
- dist: trusty
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.4.4
6
- - 2.5.1
7
- - ruby-head
8
- env:
9
- - DRIVER=google-chrome TZ=Europe/Berlin
10
- matrix:
11
- fast_finish: true
12
- allow_failures:
13
- - rvm: ruby-head
14
- before_install:
15
- - if [[ "$DRIVER" == "google-chrome" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi
16
- - if [[ "$DRIVER" == "google-chrome" ]]; then echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list; fi
17
- - if [[ "$DRIVER" == "google-chrome" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi
18
- - gem install bundler
19
- before_script:
20
- - cd spec/test_app
21
- - bundle install --jobs=3 --retry=3
22
- - bundle exec rails db:setup
23
- - cd ../../
24
- - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi
25
- - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi
26
- - if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi
27
- - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi
28
- - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi
29
- script: bundle exec rspec
@@ -1,296 +0,0 @@
1
- PATH
2
- remote: ../hyper-spec
3
- specs:
4
- hyper-spec (0.99.6)
5
- capybara
6
- chromedriver-helper (= 1.2.0)
7
- libv8 (~> 6.7.0)
8
- method_source
9
- mini_racer (~> 0.2.4)
10
- opal (>= 0.11.0, < 0.12.0)
11
- parser (>= 2.3.3.1)
12
- pry
13
- rspec-rails
14
- selenium-webdriver
15
- timecop (~> 0.8.1)
16
- uglifier
17
- unparser (~> 0.3.0)
18
- webdrivers
19
-
20
- PATH
21
- remote: .
22
- specs:
23
- hyperloop-config (0.99.6)
24
- libv8 (~> 6.7.0)
25
- mini_racer (~> 0.2.4)
26
- opal (>= 0.11.0, < 0.12.0)
27
- opal-browser (~> 0.2.0)
28
- uglifier
29
-
30
- GEM
31
- remote: https://rubygems.org/
32
- specs:
33
- abstract_type (0.0.7)
34
- actioncable (5.2.1)
35
- actionpack (= 5.2.1)
36
- nio4r (~> 2.0)
37
- websocket-driver (>= 0.6.1)
38
- actionmailer (5.2.1)
39
- actionpack (= 5.2.1)
40
- actionview (= 5.2.1)
41
- activejob (= 5.2.1)
42
- mail (~> 2.5, >= 2.5.4)
43
- rails-dom-testing (~> 2.0)
44
- actionpack (5.2.1)
45
- actionview (= 5.2.1)
46
- activesupport (= 5.2.1)
47
- rack (~> 2.0)
48
- rack-test (>= 0.6.3)
49
- rails-dom-testing (~> 2.0)
50
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
51
- actionview (5.2.1)
52
- activesupport (= 5.2.1)
53
- builder (~> 3.1)
54
- erubi (~> 1.4)
55
- rails-dom-testing (~> 2.0)
56
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
57
- activejob (5.2.1)
58
- activesupport (= 5.2.1)
59
- globalid (>= 0.3.6)
60
- activemodel (5.2.1)
61
- activesupport (= 5.2.1)
62
- activerecord (5.2.1)
63
- activemodel (= 5.2.1)
64
- activesupport (= 5.2.1)
65
- arel (>= 9.0)
66
- activestorage (5.2.1)
67
- actionpack (= 5.2.1)
68
- activerecord (= 5.2.1)
69
- marcel (~> 0.3.1)
70
- activesupport (5.2.1)
71
- concurrent-ruby (~> 1.0, >= 1.0.2)
72
- i18n (>= 0.7, < 2)
73
- minitest (~> 5.1)
74
- tzinfo (~> 1.1)
75
- adamantium (0.2.0)
76
- ice_nine (~> 0.11.0)
77
- memoizable (~> 0.4.0)
78
- addressable (2.6.0)
79
- public_suffix (>= 2.0.2, < 4.0)
80
- archive-zip (0.11.0)
81
- io-like (~> 0.3.0)
82
- arel (9.0.0)
83
- ast (2.4.0)
84
- builder (3.2.3)
85
- capybara (3.13.2)
86
- addressable
87
- mini_mime (>= 0.1.3)
88
- nokogiri (~> 1.8)
89
- rack (>= 1.6.0)
90
- rack-test (>= 0.6.3)
91
- regexp_parser (~> 1.2)
92
- xpath (~> 3.2)
93
- childprocess (0.9.0)
94
- ffi (~> 1.0, >= 1.0.11)
95
- chromedriver-helper (1.2.0)
96
- archive-zip (~> 0.10)
97
- nokogiri (~> 1.8)
98
- coderay (1.1.2)
99
- concord (0.1.5)
100
- adamantium (~> 0.2.0)
101
- equalizer (~> 0.0.9)
102
- concurrent-ruby (1.0.5)
103
- crass (1.0.4)
104
- diff-lcs (1.3)
105
- equalizer (0.0.11)
106
- erubi (1.7.1)
107
- execjs (2.7.0)
108
- ffi (1.10.0)
109
- globalid (0.4.1)
110
- activesupport (>= 4.2.0)
111
- hike (1.2.3)
112
- i18n (1.1.0)
113
- concurrent-ruby (~> 1.0)
114
- ice_nine (0.11.2)
115
- io-like (0.3.0)
116
- jquery-rails (4.3.3)
117
- rails-dom-testing (>= 1, < 3)
118
- railties (>= 4.2.0)
119
- thor (>= 0.14, < 2.0)
120
- libv8 (6.7.288.46.1)
121
- loofah (2.2.2)
122
- crass (~> 1.0.2)
123
- nokogiri (>= 1.5.9)
124
- mail (2.7.0)
125
- mini_mime (>= 0.1.1)
126
- marcel (0.3.2)
127
- mimemagic (~> 0.3.2)
128
- memoizable (0.4.2)
129
- thread_safe (~> 0.3, >= 0.3.1)
130
- method_source (0.9.0)
131
- mimemagic (0.3.2)
132
- mini_mime (1.0.1)
133
- mini_portile2 (2.3.0)
134
- mini_racer (0.2.4)
135
- libv8 (>= 6.3)
136
- minitest (5.11.3)
137
- net_http_ssl_fix (0.0.10)
138
- nio4r (2.3.1)
139
- nokogiri (1.8.4)
140
- mini_portile2 (~> 2.3.0)
141
- opal (0.11.3)
142
- ast (>= 2.3.0)
143
- hike (~> 1.2)
144
- parser (= 2.3.3.1)
145
- sourcemap (~> 0.1.0)
146
- opal-activesupport (0.3.1)
147
- opal (>= 0.5.0, < 1.0.0)
148
- opal-browser (0.2.0)
149
- opal
150
- paggio
151
- opal-jquery (0.4.3)
152
- opal (>= 0.10.0, < 0.12.0)
153
- opal-rails (0.9.5)
154
- jquery-rails
155
- opal (>= 0.11.0, < 0.12)
156
- opal-activesupport (>= 0.0.5)
157
- opal-jquery (~> 0.4.0)
158
- opal-sprockets (~> 0.4.2)
159
- rails (>= 4.1, < 6.0)
160
- sprockets-rails (>= 2.3.3, < 4.0)
161
- opal-sprockets (0.4.2.0.11.0.3.1)
162
- opal (~> 0.11.0)
163
- sprockets (~> 3.1)
164
- tilt (>= 1.4)
165
- paggio (0.2.6)
166
- parallel (1.12.1)
167
- parser (2.3.3.1)
168
- ast (~> 2.2)
169
- powerpack (0.1.2)
170
- procto (0.0.3)
171
- pry (0.11.3)
172
- coderay (~> 1.1.0)
173
- method_source (~> 0.9.0)
174
- public_suffix (3.0.3)
175
- puma (3.12.0)
176
- rack (2.0.5)
177
- rack-test (1.1.0)
178
- rack (>= 1.0, < 3)
179
- rails (5.2.1)
180
- actioncable (= 5.2.1)
181
- actionmailer (= 5.2.1)
182
- actionpack (= 5.2.1)
183
- actionview (= 5.2.1)
184
- activejob (= 5.2.1)
185
- activemodel (= 5.2.1)
186
- activerecord (= 5.2.1)
187
- activestorage (= 5.2.1)
188
- activesupport (= 5.2.1)
189
- bundler (>= 1.3.0)
190
- railties (= 5.2.1)
191
- sprockets-rails (>= 2.0.0)
192
- rails-dom-testing (2.0.3)
193
- activesupport (>= 4.2.0)
194
- nokogiri (>= 1.6)
195
- rails-html-sanitizer (1.0.4)
196
- loofah (~> 2.2, >= 2.2.2)
197
- railties (5.2.1)
198
- actionpack (= 5.2.1)
199
- activesupport (= 5.2.1)
200
- method_source
201
- rake (>= 0.8.7)
202
- thor (>= 0.19.0, < 2.0)
203
- rainbow (2.2.2)
204
- rake
205
- rake (12.3.1)
206
- regexp_parser (1.3.0)
207
- rspec (3.7.0)
208
- rspec-core (~> 3.7.0)
209
- rspec-expectations (~> 3.7.0)
210
- rspec-mocks (~> 3.7.0)
211
- rspec-core (3.7.1)
212
- rspec-support (~> 3.7.0)
213
- rspec-expectations (3.7.0)
214
- diff-lcs (>= 1.2.0, < 2.0)
215
- rspec-support (~> 3.7.0)
216
- rspec-mocks (3.7.0)
217
- diff-lcs (>= 1.2.0, < 2.0)
218
- rspec-support (~> 3.7.0)
219
- rspec-rails (3.7.2)
220
- actionpack (>= 3.0)
221
- activesupport (>= 3.0)
222
- railties (>= 3.0)
223
- rspec-core (~> 3.7.0)
224
- rspec-expectations (~> 3.7.0)
225
- rspec-mocks (~> 3.7.0)
226
- rspec-support (~> 3.7.0)
227
- rspec-support (3.7.1)
228
- rubocop (0.51.0)
229
- parallel (~> 1.10)
230
- parser (>= 2.3.3.1, < 3.0)
231
- powerpack (~> 0.1)
232
- rainbow (>= 2.2.2, < 3.0)
233
- ruby-progressbar (~> 1.7)
234
- unicode-display_width (~> 1.0, >= 1.0.1)
235
- ruby-progressbar (1.10.0)
236
- rubyzip (1.2.2)
237
- selenium-webdriver (3.141.0)
238
- childprocess (~> 0.5)
239
- rubyzip (~> 1.2, >= 1.2.2)
240
- sourcemap (0.1.1)
241
- sprockets (3.7.2)
242
- concurrent-ruby (~> 1.0)
243
- rack (> 1, < 3)
244
- sprockets-rails (3.2.1)
245
- actionpack (>= 4.0)
246
- activesupport (>= 4.0)
247
- sprockets (>= 3.0.0)
248
- sqlite3 (1.3.13)
249
- thor (0.20.0)
250
- thread_safe (0.3.6)
251
- tilt (2.0.8)
252
- timecop (0.8.1)
253
- tzinfo (1.2.5)
254
- thread_safe (~> 0.1)
255
- uglifier (4.1.20)
256
- execjs (>= 0.3.0, < 3)
257
- unicode-display_width (1.4.0)
258
- unparser (0.3.0)
259
- abstract_type (~> 0.0.7)
260
- adamantium (~> 0.2.0)
261
- concord (~> 0.1.5)
262
- diff-lcs (~> 1.3)
263
- equalizer (~> 0.0.9)
264
- parser (>= 2.3.1.2, < 2.6)
265
- procto (~> 0.0.2)
266
- webdrivers (3.6.0)
267
- net_http_ssl_fix
268
- nokogiri (~> 1.6)
269
- rubyzip (~> 1.0)
270
- selenium-webdriver (~> 3.0)
271
- websocket-driver (0.7.0)
272
- websocket-extensions (>= 0.1.0)
273
- websocket-extensions (0.1.3)
274
- xpath (3.2.0)
275
- nokogiri (~> 1.8)
276
-
277
- PLATFORMS
278
- ruby
279
-
280
- DEPENDENCIES
281
- bundler (~> 1.16)
282
- chromedriver-helper
283
- hyper-spec!
284
- hyperloop-config!
285
- opal-rails (~> 0.9.4)
286
- pry
287
- puma
288
- rails (>= 4.0.0)
289
- rake
290
- rspec (~> 3.7.0)
291
- rubocop (~> 0.51.0)
292
- sqlite3
293
- timecop (~> 0.8.1)
294
-
295
- BUNDLED WITH
296
- 1.17.3
@@ -1,32 +0,0 @@
1
- module ActiveSupport
2
- # Wrapping a string in this class gives you a prettier way to test
3
- # for equality. The value returned by <tt>Rails.env</tt> is wrapped
4
- # in a StringInquirer object, so instead of calling this:
5
- #
6
- # Rails.env == 'production'
7
- #
8
- # you can call this:
9
- #
10
- # Rails.env.production?
11
- #
12
- # == Instantiating a new StringInquirer
13
- #
14
- # vehicle = ActiveSupport::StringInquirer.new('car')
15
- # vehicle.car? # => true
16
- # vehicle.bike? # => false
17
- class StringInquirer < String
18
- private
19
-
20
- def respond_to_missing?(method_name, include_private = false)
21
- (method_name[-1] == "?") || super
22
- end
23
-
24
- def method_missing(method_name, *arguments)
25
- if method_name[-1] == "?"
26
- self == method_name[0..-2]
27
- else
28
- super
29
- end
30
- end
31
- end
32
- end
@@ -1,10 +0,0 @@
1
- module Hyperloop
2
- def self.env
3
- @environment ||= begin
4
- env = Rails.env if defined? Rails
5
- env ||= ENV['RACK_ENV']
6
- env = 'development' unless %w[development production test staging].include? env
7
- ActiveSupport::StringInquirer.new(env)
8
- end
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- module Hyperloop
2
- def self.env
3
- @environment ||= ActiveSupport::StringInquirer.new('development')
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Hyperloop
2
- def self.env
3
- @environment ||= ActiveSupport::StringInquirer.new('production')
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Hyperloop
2
- def self.env
3
- @environment ||= ActiveSupport::StringInquirer.new('staging')
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Hyperloop
2
- def self.env
3
- @environment ||= ActiveSupport::StringInquirer.new('test')
4
- end
5
- end
@@ -1,18 +0,0 @@
1
- module Hyperloop
2
- class << self
3
- def js_import(value, client_only: nil, server_only: nil, defines:)
4
- defines = [*defines]
5
- if RUBY_ENGINE != 'opal'
6
- import(value, client_only: client_only, server_only: server_only, js_import: true)
7
- else
8
- on_server = `typeof Opal.global.document === 'undefined'`
9
- return if (server_only && !on_server) || (client_only && on_server)
10
- defines.each do |name|
11
- next unless `Opal.global[#{name}] === undefined`
12
- raise "The package #{name} was not found. Add it to the webpack "\
13
- "#{client_only ? 'client_only.js' : 'client_and_server.js'} manifest."
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,5 +0,0 @@
1
- module Hyperloop
2
- def self.on_error(err, reason, details)
3
- # do whatever you want here... i.e. log, debug, etc
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- # This will eventually be moved into Opal
2
- class String
3
- def to_json
4
- `JSON.stringify(#{self})`
5
- end
6
- end