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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c06e01260f4df13e69b5c05623b50e09fff1bf24
4
- data.tar.gz: b8fdb09c2921978f1fee738dc43dec9e30b0676c
2
+ SHA256:
3
+ metadata.gz: c228dfc642441323ee8c10c521f25d14ce7a2c379cce1016eb1c5d91d697b016
4
+ data.tar.gz: 2b7855b2ccdc89a87783c5ab04a26d8006dc3cb7dddaad3a2ac3730ff1f88ee4
5
5
  SHA512:
6
- metadata.gz: 7b49feb6c0b8e470a37ee453478c69686937ebc9acec7fd11dba1fa80ff5186a7bb6cf41b59ac6fc6d9fddb5a77cd6598c10a5eea74706b77b5b4c259b346705
7
- data.tar.gz: 5c60a0264a2101604d849c529d1569529041086b6c26d539e88f175b109e9242107651d9e1d8332998240f48764a633ac54916587db821290120fe48bb00a60f
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Constantinopolis
2
- VERSION = "0.3.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.3.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: 2016-08-19 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.
@@ -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
- rubyforge_project:
143
- rubygems_version: 2.6.6
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: