tramway-core 1.18.3.1 → 1.18.3.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -2
  3. data/lib/tramway/core/version.rb +1 -1
  4. metadata +4 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54caa49641af517f7999adde3d7f7f757b528456b0d1a7e999de0af99419b08a
4
- data.tar.gz: 1ebba7d8790d3dfd465dfd3dbe4f9118bb235f09b3daed23d4914a442f673aa4
3
+ metadata.gz: c4642075ecb6eb14dd53a6c0c34da6089ca1e8ffac92baee5e750c8d3ca215c9
4
+ data.tar.gz: 496474d5bdb285a300f1d8877da45d68743b4527c4a1974915395406a798cd6a
5
5
  SHA512:
6
- metadata.gz: 9e5e6af1ec6aaed1a8abca8347ccdfcc871e753e520a4b39fbaf24f1b30fa44a723e876c5c3cb25f9426d5411a311fc3e4399f33b3f1aa0a156c3234049bfa31
7
- data.tar.gz: d38c5cdaaedf73eeb3eadbae99405852afd4aecb50e6c4b406b4e8e0ea9903c59644b9b1c558eb66623a49e82e4279b0241ad957fbe2443385ef9199e3db3907
6
+ metadata.gz: 4d0b406d85678d22316cef99327f517c3d9ee709519458a233ae9bacaac22a8a22afdea28a28379bcc37e2e81d2a841f862aff216531d066272e37612dff9365
7
+ data.tar.gz: f4fd66bbbecd7bea23b934208fc7b8e721e4bd9054bf5f67946be29eaa17cd854a25d0b303b5f792f388ebd137c70e48e60b5f9a4d00ed24eb9cb1bb5876f81a
data/README.md CHANGED
@@ -177,7 +177,23 @@ Something like this:
177
177
  copy_to_clipboard "some_id" # some_id is HTML id of element. Content of this element will be copied to the clipboard after pressing the button
178
178
  ```
179
179
 
180
- ## How to create model that will be an Application Model for the Tramway
180
+ # Every Tramway application need initialized @application object (or if you create Tramway plugin, it should be @application_engine object).
181
+
182
+ You don't need to initialize this object yourself, just configurate application with Tramway. You have **2** options of this:
183
+
184
+ ## Option 1. If you want to change @application object just in the code base.
185
+
186
+ ```shell
187
+ rails g tramway:core:application
188
+ ```
189
+
190
+ *config/initializers/tramway.rb*
191
+
192
+ ```ruby
193
+ Tramway::Core.initialize_application name: :your_application_name
194
+ ```
195
+
196
+ ## Option 2. If you want to change @application object from admin panel. How to create model that will be an Application Model for the Tramway
181
197
 
182
198
  #### 1. Generate model that you to use. We create Organization, for example
183
199
 
@@ -196,7 +212,7 @@ Tramway::Core.initialize_application model_class: Organization
196
212
 
197
213
  ```ruby
198
214
  rails c
199
- Organization.create! public_name: 'Tramway', name: :organization, tagline: 'Tramway is not buggy, LOL!'
215
+ Organization.create! public_name: 'Tramway', name: :organization, tagline: 'Tramway is not buggy, LOL!', main_image: 'https://raw.githubusercontent.com/ulmic/tramway-dev/develop/logo.png'
200
216
  ```
201
217
 
202
218
  #### 4. Add model to singleton to the `tramway-admin` admin panel to be able to change its data
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '1.18.3.1'
5
+ VERSION = '1.18.3.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.3.1
4
+ version: 1.18.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-02 00:00:00.000000000 Z
12
+ date: 2020-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: audited
@@ -119,22 +119,16 @@ dependencies:
119
119
  name: haml-rails
120
120
  requirement: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.0'
125
122
  - - ">="
126
123
  - !ruby/object:Gem::Version
127
- version: 1.0.0
124
+ version: '0'
128
125
  type: :runtime
129
126
  prerelease: false
130
127
  version_requirements: !ruby/object:Gem::Requirement
131
128
  requirements:
132
- - - "~>"
133
- - !ruby/object:Gem::Version
134
- version: '1.0'
135
129
  - - ">="
136
130
  - !ruby/object:Gem::Version
137
- version: 1.0.0
131
+ version: '0'
138
132
  - !ruby/object:Gem::Dependency
139
133
  name: kaminari
140
134
  requirement: !ruby/object:Gem::Requirement