flipper-ui 0.28.2 → 1.0.0.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8fed58ea5900e4478b97d961a0905ac9506c597f6ec7d8c357f3d49447e7a10
4
- data.tar.gz: 849cfcb65686d60821e283dd0aa20aa09e245b00325605c8ff006379e7c33ecf
3
+ metadata.gz: 51136f4674b89c34557c196b1c619456346511b086f03123d3ac62748d3f8d81
4
+ data.tar.gz: df55d343690ba8f9a2031197df69bcc59ff8bb3a24be78f41b8272dd2ac57bfb
5
5
  SHA512:
6
- metadata.gz: a7a69270c0478ef8f182b35bc68080c46514dde496464ae0afc2586a313deb40496c73f8970918bb295350169a4fe20cb6839655eefd2b46ccd8c723222bce1f
7
- data.tar.gz: a6b6e6dad992a75461e6833cb52ecc4453d7ba64a90c4b8c529640e1ae8bf904b6ed763692d67b5bba2385a75a780d1a3212c502e5795cd0231d94a4db25ee8c
6
+ metadata.gz: 1a82e78c3d75daa1200dbfadaabeada531cd8bdf79647f81231c41bd575843c6af64412069b364096cfb2558b2a02707c90936eb2db1a585f7e352451ebe45e7
7
+ data.tar.gz: 3bb8c2d3dc65637870cc74d9ab3d4623582c575dba512c464084285cd7ef51ee8afd0745f35339d44141624ff79cc340fcee875ddc30959d117ca27770122186
data/flipper-ui.gemspec CHANGED
@@ -8,10 +8,10 @@ end
8
8
 
9
9
  Gem::Specification.new do |gem|
10
10
  gem.authors = ['John Nunemaker']
11
- gem.email = ['nunemaker@gmail.com']
11
+ gem.email = 'support@flippercloud.io'
12
12
  gem.summary = 'UI for the Flipper gem'
13
13
  gem.license = 'MIT'
14
- gem.homepage = 'https://github.com/jnunemaker/flipper'
14
+ gem.homepage = 'https://www.flippercloud.io/docs/ui'
15
15
 
16
16
  gem.files = `git ls-files`.split("\n").select(&flipper_ui_files) + ['lib/flipper/version.rb']
17
17
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_ui_files)
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.version = Flipper::VERSION
21
21
  gem.metadata = Flipper::METADATA
22
22
 
23
- gem.add_dependency 'rack', '>= 1.4', '< 3'
23
+ gem.add_dependency 'rack', '>= 1.4', '< 4'
24
24
  gem.add_dependency 'rack-protection', '>= 1.5.3', '<= 4.0.0'
25
25
  gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
26
26
  gem.add_dependency 'erubi', '>= 1.0.0', '< 2.0.0'
@@ -108,7 +108,7 @@ module Flipper
108
108
  @flipper = flipper
109
109
  @request = request
110
110
  @code = 200
111
- @headers = { 'Content-Type' => 'text/plain' }
111
+ @headers = { 'content-type' => 'text/plain' }
112
112
  @breadcrumbs =
113
113
  if Flipper::UI.configuration.application_breadcrumb_href
114
114
  [Breadcrumb.new('App', Flipper::UI.configuration.application_breadcrumb_href)]
@@ -158,20 +158,20 @@ module Flipper
158
158
  #
159
159
  # Returns a response.
160
160
  def view_response(name)
161
- header 'Content-Type', 'text/html'
162
- header 'Content-Security-Policy', CONTENT_SECURITY_POLICY
161
+ header 'content-type', 'text/html'
162
+ header 'content-security-policy', CONTENT_SECURITY_POLICY
163
163
  body = view_with_layout { view_without_layout name }
164
164
  halt [@code, @headers, [body]]
165
165
  end
166
166
 
167
167
  # Public: Dumps an object as json and returns rack response with that as
168
- # the body. Automatically sets Content-Type to "application/json".
168
+ # the body. Automatically sets content-type to "application/json".
169
169
  #
170
170
  # object - The Object that should be dumped as json.
171
171
  #
172
172
  # Returns a response.
173
173
  def json_response(object)
174
- header 'Content-Type', 'application/json'
174
+ header 'content-type', 'application/json'
175
175
  body = case object
176
176
  when String
177
177
  object
@@ -186,7 +186,7 @@ module Flipper
186
186
  # location - The String location to set the Location header to.
187
187
  def redirect_to(location)
188
188
  status 302
189
- header 'Location', "#{script_name}#{Rack::Utils.escape_path(location)}"
189
+ header 'location', "#{script_name}#{Rack::Utils.escape_path(location)}"
190
190
  halt [@code, @headers, ['']]
191
191
  end
192
192
 
data/lib/flipper/ui.rb CHANGED
@@ -22,7 +22,7 @@ module Flipper
22
22
  env_key = options.fetch(:env_key, 'flipper')
23
23
  rack_protection_options = options.fetch(:rack_protection, use: :authenticity_token)
24
24
 
25
- app = ->(_) { [200, { 'Content-Type' => 'text/html' }, ['']] }
25
+ app = ->(_) { [200, { 'content-type' => 'text/html' }, ['']] }
26
26
  builder = Rack::Builder.new
27
27
  yield builder if block_given?
28
28
  builder.use Rack::Protection, rack_protection_options
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.28.2'.freeze
2
+ VERSION = '1.0.0.pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.2
4
+ version: 1.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3'
22
+ version: '4'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3'
32
+ version: '4'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rack-protection
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,14 +56,14 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: 0.28.2
59
+ version: 1.0.0.pre
60
60
  type: :runtime
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: 0.28.2
66
+ version: 1.0.0.pre
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: erubi
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -99,8 +99,7 @@ dependencies:
99
99
  - !ruby/object:Gem::Version
100
100
  version: '7'
101
101
  description:
102
- email:
103
- - nunemaker@gmail.com
102
+ email: support@flippercloud.io
104
103
  executables: []
105
104
  extensions: []
106
105
  extra_rdoc_files: []
@@ -171,10 +170,14 @@ files:
171
170
  - spec/flipper/ui/decorators/gate_spec.rb
172
171
  - spec/flipper/ui/util_spec.rb
173
172
  - spec/flipper/ui_spec.rb
174
- homepage: https://github.com/jnunemaker/flipper
173
+ homepage: https://www.flippercloud.io/docs/ui
175
174
  licenses:
176
175
  - MIT
177
176
  metadata:
177
+ documentation_uri: https://www.flippercloud.io/docs
178
+ homepage_uri: https://www.flippercloud.io
179
+ source_code_uri: https://github.com/jnunemaker/flipper
180
+ bug_tracker_uri: https://github.com/jnunemaker/flipper/issues
178
181
  changelog_uri: https://github.com/jnunemaker/flipper/blob/main/Changelog.md
179
182
  post_install_message:
180
183
  rdoc_options: []
@@ -187,9 +190,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
190
  version: '0'
188
191
  required_rubygems_version: !ruby/object:Gem::Requirement
189
192
  requirements:
190
- - - ">="
193
+ - - ">"
191
194
  - !ruby/object:Gem::Version
192
- version: '0'
195
+ version: 1.3.1
193
196
  requirements: []
194
197
  rubygems_version: 3.3.7
195
198
  signing_key: