constantinopolis 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/constantinopolis.gemspec +4 -3
- data/lib/constantinopolis/rails_reloader.rb +4 -0
- data/lib/constantinopolis/version.rb +1 -1
- data/lib/constantinopolis.rb +1 -1
- data/spec/js/constantinopolis_js_spec.rb +3 -3
- metadata +27 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c228dfc642441323ee8c10c521f25d14ce7a2c379cce1016eb1c5d91d697b016
|
4
|
+
data.tar.gz: 2b7855b2ccdc89a87783c5ab04a26d8006dc3cb7dddaad3a2ac3730ff1f88ee4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cac0477d3f002c214edefc790cee6fc38967e7fdee639d523b1f35a440b18cbd618c31969ede6efb467242a774df157bbd147afe9cc3514eb4c0ee650825853c
|
7
|
+
data.tar.gz: 6686dec769bc13931642ada6c0be2fa630e69e5bb34725ba2abff79feeb45b1fb9c41218d68f9905a2471ad8998232666b66eedf984b66689964d1fb1614feb9
|
data/constantinopolis.gemspec
CHANGED
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "rspec", "~> 3.4"
|
22
22
|
spec.add_development_dependency "pry-byebug", "~> 3.4"
|
23
|
-
spec.add_development_dependency "capybara", "~>
|
23
|
+
spec.add_development_dependency "capybara", "~> 3.37"
|
24
24
|
spec.add_development_dependency "launchy", "~> 2.4"
|
25
|
-
spec.add_development_dependency "
|
26
|
-
spec.add_development_dependency "sinatra", "~>
|
25
|
+
spec.add_development_dependency "selenium-webdriver", "~> 4.5" # Needs chromedriver
|
26
|
+
spec.add_development_dependency "sinatra", "~> 3.0"
|
27
|
+
spec.add_development_dependency "puma", "~> 5.6"
|
27
28
|
end
|
@@ -19,6 +19,8 @@ module Constantinopolis
|
|
19
19
|
case Rails.version[0]
|
20
20
|
when '4' then ActiveSupport::FileUpdateChecker
|
21
21
|
when '5' then Rails.application.config.file_watcher || ActiveSupport::FileUpdateChecker
|
22
|
+
when '6' then Rails.application.config.file_watcher || ActiveSupport::FileUpdateChecker
|
23
|
+
when '7' then Rails.application.config.file_watcher || ActiveSupport::FileUpdateChecker
|
22
24
|
else raise 'Unsupported rails version!'
|
23
25
|
end
|
24
26
|
end
|
@@ -27,6 +29,8 @@ module Constantinopolis
|
|
27
29
|
case Rails.version[0]
|
28
30
|
when '4' then ActionDispatch::Reloader
|
29
31
|
when '5' then ActiveSupport::Reloader
|
32
|
+
when '6' then ActiveSupport::Reloader
|
33
|
+
when '7' then ActiveSupport::Reloader
|
30
34
|
else raise 'Unsupported rails version!'
|
31
35
|
end
|
32
36
|
end
|
data/lib/constantinopolis.rb
CHANGED
@@ -63,7 +63,7 @@ module Constantinopolis
|
|
63
63
|
def initialize
|
64
64
|
raise "Must locate yaml file!" unless self.class.yml
|
65
65
|
file = open(self.class.yml).read
|
66
|
-
hash = set_accessor(YAML.
|
66
|
+
hash = set_accessor(YAML.unsafe_load(ERB.new(file).result))
|
67
67
|
@constants = self.class.namespace ? hash[self.class.namespace.to_s] : hash
|
68
68
|
end
|
69
69
|
|
@@ -2,11 +2,11 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
require 'capybara'
|
4
4
|
require 'capybara/rspec'
|
5
|
-
require '
|
5
|
+
require 'selenium-webdriver'
|
6
6
|
require 'sinatra'
|
7
7
|
|
8
|
-
Capybara.default_driver = :
|
9
|
-
Capybara.javascript_driver = :
|
8
|
+
Capybara.default_driver = :selenium_chrome
|
9
|
+
Capybara.javascript_driver = :selenium_chrome
|
10
10
|
Capybara.save_path = File.dirname(__FILE__) + '/../tmp'
|
11
11
|
|
12
12
|
class SettingRack < Constantinopolis::Fort
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constantinopolis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- itmammoth
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.37'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.37'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: launchy
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,33 +67,47 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: selenium-webdriver
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '4.5'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '4.5'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sinatra
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: puma
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '5.6'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '5.6'
|
97
111
|
description: Constantinopolis allows you to set constants from your ERBed YAML file.
|
98
112
|
Remarkably, your constants are available not only in ruby context, but in javascript's.
|
99
113
|
It works with Rails, Sinatra, or any Ruby projects.
|
@@ -124,7 +138,7 @@ homepage: https://github.com/itmammoth/constantinopolis
|
|
124
138
|
licenses:
|
125
139
|
- MIT
|
126
140
|
metadata: {}
|
127
|
-
post_install_message:
|
141
|
+
post_install_message:
|
128
142
|
rdoc_options: []
|
129
143
|
require_paths:
|
130
144
|
- lib
|
@@ -139,9 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
153
|
- !ruby/object:Gem::Version
|
140
154
|
version: '0'
|
141
155
|
requirements: []
|
142
|
-
|
143
|
-
|
144
|
-
signing_key:
|
156
|
+
rubygems_version: 3.3.7
|
157
|
+
signing_key:
|
145
158
|
specification_version: 4
|
146
159
|
summary: Setting constants solution for ruby applications.
|
147
160
|
test_files:
|