pages_core 3.8.0 → 3.9.0
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 +4 -4
- data/Rakefile +37 -0
- data/app/assets/builds/pages_core/admin-dist.js +11 -11
- data/app/controllers/admin/images_controller.rb +1 -1
- data/app/javascript/components/Attachments/Attachment.jsx +2 -2
- data/app/javascript/components/Attachments/AttachmentEditor.jsx +2 -2
- data/app/javascript/components/EditableImage.jsx +1 -1
- data/app/javascript/components/FileUploadButton.jsx +27 -34
- data/app/javascript/components/ImageEditor/Form.jsx +2 -2
- data/app/javascript/components/ImageEditor.jsx +1 -1
- data/app/javascript/components/ImageGrid/GridImage.jsx +1 -1
- data/app/javascript/components/ImageGrid.jsx +1 -1
- data/app/javascript/components/ImageUploader.jsx +1 -1
- data/app/javascript/components/Modal.jsx +1 -1
- data/app/javascript/components/Toast.jsx +1 -1
- data/app/javascript/components.js +1 -0
- data/app/javascript/index.js +5 -0
- data/app/javascript/{components → stores}/ModalStore.jsx +0 -0
- data/app/javascript/{components → stores}/ToastStore.jsx +0 -0
- data/app/javascript/stores.js +2 -0
- data/app/models/role.rb +6 -16
- data/lib/pages_core/cache_sweeper.rb +0 -9
- data/lib/pages_core/configuration/base.rb +3 -1
- data/lib/pages_core/pub_sub.rb +1 -2
- data/lib/pages_core/version.rb +3 -1
- metadata +20 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2692e584d5de6e4afb27ab99239182658ab625bbfa210a36e66ceabda3e0be2
|
4
|
+
data.tar.gz: a56a734875e5727c9b078f596543aea3907be51f35f4952583849ff88f26e5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba7516de39aec3fcff0011afd6a18b25ba03e551447d5c42b7c34ab15c26cdefeb2ff5bf5338af081f445b92583e35ad639cb1a96b0515bbf351b1c70329c4f9
|
7
|
+
data.tar.gz: c4cd9ecf532d80e6253d0e05fc79c839fd5b4c29d825cae830339690e1e3cd6b9a779850711cf15b32fdfc0f1dd5bc9ec77607ee8da5278a48fd7ced6a4a201f
|
data/Rakefile
CHANGED
@@ -8,5 +8,42 @@ load "rails/tasks/engine.rake"
|
|
8
8
|
|
9
9
|
RSpec::Core::RakeTask.new
|
10
10
|
|
11
|
+
def current_version
|
12
|
+
Semantic::Version.new(PagesCore::VERSION)
|
13
|
+
end
|
14
|
+
|
15
|
+
def write_version(version)
|
16
|
+
puts "Updating version to #{version}..."
|
17
|
+
File.open(File.expand_path("./VERSION", __dir__), "w") do |fh|
|
18
|
+
fh.write(version.to_s)
|
19
|
+
end
|
20
|
+
`npm version #{version} --git-tag-version=false`
|
21
|
+
`bundle`
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Increment to next patch version"
|
25
|
+
task "version:patch" => :environment do
|
26
|
+
write_version(current_version.patch!)
|
27
|
+
end
|
28
|
+
|
29
|
+
desc "Increment to next minor version"
|
30
|
+
task "version:minor" => :environment do
|
31
|
+
write_version(current_version.minor!)
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Increment to next major version"
|
35
|
+
task "version:major" => :environment do
|
36
|
+
write_version(current_version.major!)
|
37
|
+
end
|
38
|
+
|
39
|
+
desc "Push NPM package"
|
40
|
+
task "release:npm" => :environment do
|
41
|
+
system("npm publish --access public")
|
42
|
+
end
|
43
|
+
|
44
|
+
Rake::Task["release"].enhance do
|
45
|
+
Rake::Task["release:npm"].invoke
|
46
|
+
end
|
47
|
+
|
11
48
|
task default: :spec
|
12
49
|
task test: :spec
|