trek 0.1.12 → 0.1.13

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: bcca487a933ebe86ba5e95e8d6ef7bd786ffa4a96e8d8155f0898cd387109cee
4
- data.tar.gz: 188f713348ecee4568fff807d15b8d6bf92ec01c875e6a59dfbaefbbf7e2f6ec
3
+ metadata.gz: 55936551def2bb25e098d7f095626b1c65851faced1f73d8421337b660c35dfc
4
+ data.tar.gz: a55b3f4506ed2cb97258790e8a67194b32a5c409c311625d92aacc7c5bfe78d6
5
5
  SHA512:
6
- metadata.gz: e6e77bc0ec3be5cc2127c4c1602bf4134c13808bddae692d9c5412fae283347d5c51a711e9bd205edea305ed9809a7f0d02bfcad14336698ef539be5840ea678
7
- data.tar.gz: 36a7ac56b65cbe436adb19e3696d1b3724a0ae15daba6eb7c5f1b46ebda6d5d616c8e012eadb551423cfbcb736aee33163e2b3baa2c0c3df95799ecb81eabe61
6
+ metadata.gz: 4eed1f56dace0fc8327f31f86294e2e1a3d394b25bcd662298191d4fd9f1c6a08442088c81cb7889e827ca66e9137c8f4498d6c9d614671daa78da6f4fd2fdc1
7
+ data.tar.gz: '06689e0c0b07925a1095ac88d17dc0eba1b0f4db8cbb9664162fc259fb58d795b71653c1f1cc3307fa420bd287d7f78983ce5efa73f412e23d5e98c71cbb3964'
data/.stylelintrc.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "extends": ["stylelint-config-standard"],
3
- "ignoreFiles": ["app/assets/builds/**/*.css", "node_modules/**/*.css", "vendor/**/*.css"],
3
+ "ignoreFiles": [
4
+ "app/assets/builds/**/*.css",
5
+ "node_modules/**/*.css",
6
+ "vendor/**/*.css"
7
+ ],
4
8
  "plugins": ["stylelint-order"],
5
9
  "rules": {
6
10
  "custom-property-pattern": "^[a-z0-9A-]+$",
@@ -8,6 +12,7 @@
8
12
  "order/properties-alphabetical-order": true,
9
13
  "selector-class-pattern": "^[a-z0-9-]+$",
10
14
  "selector-pseudo-class-no-unknown": null,
11
- "selector-id-pattern": "^[a-z0-9-]+$"
15
+ "selector-id-pattern": "^[a-z0-9-]+$",
16
+ "import-notation": "string"
12
17
  }
13
18
  }
data/.yarnrc.yml CHANGED
@@ -3,7 +3,7 @@ nodeLinker: node-modules
3
3
  npmScopes:
4
4
  etaminstudio:
5
5
  npmAlwaysAuth: true
6
- npmAuthToken: "${NPM_TOKEN-fallback}"
6
+ npmAuthToken: "${NPM_AUTH_TOKEN-fallback}"
7
7
  npmPublishRegistry: "https://git.etaminstud.io/api/v4/projects/229/packages/npm/"
8
8
 
9
9
  plugins:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trek (0.1.12)
4
+ trek (0.1.13)
5
5
  action_policy (~> 0.6)
6
6
  actioncable
7
7
  acts_as_list (~> 1.1)
data/Makefile ADDED
@@ -0,0 +1,12 @@
1
+ .PHONY: all
2
+
3
+ release:
4
+ @read -p "New version (current: $$(sed -n 's/.*VERSION = "\(.*\)"/\1/p' lib/trek/version.rb)): " version; \
5
+ if [ -z "$$version" ]; then echo "Version cannot be empty"; exit 1; fi; \
6
+ sed -i '' "s/VERSION = \".*\"/VERSION = \"$$version\"/" lib/trek/version.rb; \
7
+ sed -i '' "s/\"version\": \".*\"/\"version\": \"$$version\"/" package.json; \
8
+ bundle; \
9
+ git add -A; \
10
+ git commit -m "Version $$version"; \
11
+ bundle exec rake release; \
12
+ yarn npm publish
data/README.md CHANGED
@@ -205,14 +205,13 @@ When you're done, disable the local package:
205
205
 
206
206
  ### Publishing a new version
207
207
 
208
- To release a new version, update the version number in `version.rb` and `package.json`, then run `bundle`, commit the changes and follow the steps below.
208
+ make release
209
209
 
210
- #### Gem
210
+ This will:
211
211
 
212
- Run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
213
-
214
- #### NPM package with Yarn
215
-
216
- Generate a [personal token](https://git.etaminstud.io/-/user_settings/personal_access_tokens) with the `api` scope and run:
217
-
218
- NPM_TOKEN=YOUR_PERSONAL_TOKEN yarn npm publish
212
+ 1. Prompt for the new version number (showing the current version)
213
+ 2. Update the version in `lib/trek/version.rb` and `package.json`
214
+ 3. Run `bundle` to update the lockfile
215
+ 4. Commit all changes with message "Version X.Y.Z"
216
+ 5. Run `bundle exec rake release` (creates git tag, pushes commits/tag, pushes gem to [rubygems.org](https://rubygems.org))
217
+ 6. Run `yarn npm publish` (publishes the npm package). This requires a [personal token](https://git.etaminstud.io/-/user_settings/personal_access_tokens) with the `api` scope to be present in `NPM_AUTH_TOKEN`,
@@ -1,6 +1,6 @@
1
- @import url("./_colors.css");
2
- @import url("./_fonts.css");
3
- @import url("./_utilities.css");
1
+ @import "./_colors.css";
2
+ @import "./_fonts.css";
3
+ @import "./_utilities.css";
4
4
 
5
5
  html {
6
6
  box-sizing: border-box; /* natural box layout model to all elements */
@@ -11,6 +11,7 @@ module Trek
11
11
  has_many :paths,
12
12
  ->(page) { order(Arel.sql("page_paths.id = #{page.current_path_id&.to_i} DESC"), path: :asc) },
13
13
  class_name: "PagePath",
14
+ inverse_of: :page,
14
15
  dependent: :destroy
15
16
 
16
17
  after_save_commit :save_path
data/lib/trek/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Trek
4
- VERSION = "0.1.12"
4
+ VERSION = "0.1.13"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etaminstudio/trek",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "A modern CMS for Ruby on Rails",
5
5
  "main": "app/javascript/trek.js",
6
6
  "repository": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamed Bengrich
@@ -459,6 +459,7 @@ files:
459
459
  - Gemfile
460
460
  - Gemfile.lock
461
461
  - LICENSE
462
+ - Makefile
462
463
  - README.md
463
464
  - Rakefile
464
465
  - app/assets/icons/trek/add.svg