constantinopolis 0.4.0 → 1.0.0

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: af26277c62738a2b83ed8983c7d2ea627970f6b539a67b6703357e27dfabf096
4
- data.tar.gz: 6baab655c0c6d01b6908aaf40abe627712df4dcef5249d4c354f666444ac105e
3
+ metadata.gz: c228dfc642441323ee8c10c521f25d14ce7a2c379cce1016eb1c5d91d697b016
4
+ data.tar.gz: 2b7855b2ccdc89a87783c5ab04a26d8006dc3cb7dddaad3a2ac3730ff1f88ee4
5
5
  SHA512:
6
- metadata.gz: ac8c8f350fed7bc35341aa04f428a629d992fb1fde5b927664c899d23b3bc60579ddc21d751011e42b6a5855ebcca1015927e8b300dd36be9837b92980d061ec
7
- data.tar.gz: bd2e9b149506889fd1e10ad6dfb2eefb21f2bf971a71159dbf4dcd467493311b51c55e9eb35fd31b63c39795755732f67e7c08ca4c33bcd16791245b1858d8ee
6
+ metadata.gz: cac0477d3f002c214edefc790cee6fc38967e7fdee639d523b1f35a440b18cbd618c31969ede6efb467242a774df157bbd147afe9cc3514eb4c0ee650825853c
7
+ data.tar.gz: 6686dec769bc13931642ada6c0be2fa630e69e5bb34725ba2abff79feeb45b1fb9c41218d68f9905a2471ad8998232666b66eedf984b66689964d1fb1614feb9
@@ -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", "~> 2.7"
23
+ spec.add_development_dependency "capybara", "~> 3.37"
24
24
  spec.add_development_dependency "launchy", "~> 2.4"
25
- spec.add_development_dependency "poltergeist", "~> 1.10"
26
- spec.add_development_dependency "sinatra", "~> 1.4"
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
@@ -20,6 +20,7 @@ module Constantinopolis
20
20
  when '4' then ActiveSupport::FileUpdateChecker
21
21
  when '5' then Rails.application.config.file_watcher || ActiveSupport::FileUpdateChecker
22
22
  when '6' then Rails.application.config.file_watcher || ActiveSupport::FileUpdateChecker
23
+ when '7' then Rails.application.config.file_watcher || ActiveSupport::FileUpdateChecker
23
24
  else raise 'Unsupported rails version!'
24
25
  end
25
26
  end
@@ -29,6 +30,7 @@ module Constantinopolis
29
30
  when '4' then ActionDispatch::Reloader
30
31
  when '5' then ActiveSupport::Reloader
31
32
  when '6' then ActiveSupport::Reloader
33
+ when '7' then ActiveSupport::Reloader
32
34
  else raise 'Unsupported rails version!'
33
35
  end
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module Constantinopolis
2
- VERSION = "0.4.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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.load(ERB.new(file).result))
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 'capybara/poltergeist'
5
+ require 'selenium-webdriver'
6
6
  require 'sinatra'
7
7
 
8
- Capybara.default_driver = :poltergeist
9
- Capybara.javascript_driver = :poltergeist
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.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - itmammoth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-30 00:00:00.000000000 Z
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: '2.7'
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: '2.7'
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: poltergeist
70
+ name: selenium-webdriver
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.10'
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: '1.10'
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: '1.4'
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: '1.4'
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.
@@ -139,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
153
  - !ruby/object:Gem::Version
140
154
  version: '0'
141
155
  requirements: []
142
- rubygems_version: 3.2.15
156
+ rubygems_version: 3.3.7
143
157
  signing_key:
144
158
  specification_version: 4
145
159
  summary: Setting constants solution for ruby applications.