administrate-field-state_machine 0.0.4 → 0.1.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
2
  SHA1:
3
- metadata.gz: 5104f6a81f8d126bb507180f972922ce4b1bdf36
4
- data.tar.gz: 623dd9b2016fd42686aa87fac13bf5fffcff54f9
3
+ metadata.gz: 4bd1bcea996958cdb9170d258ad2a24eccd2b784
4
+ data.tar.gz: aa9d7d076a48330971554a12ef0831c90e6974d2
5
5
  SHA512:
6
- metadata.gz: 5558a44c213a0b8ef0ffbf0305e0c59e401a28312a545e1682c3284036682c6fc56519c56dc287e090ff0694b4d2db4662bbb0da7de7d0cf243cc0f5550c62af
7
- data.tar.gz: 1d53b1dc6d4472e8cc675306486d9090388843f3ed7352713fcf8127405385ff1064c4b0aae21f3a26731657fe5e950a255757dfea13c517c62947492d805332
6
+ metadata.gz: 68566227ffce2e2ce8356deb44c7dffe49a2e8db1d1bb038918e6d904e5750a05245e6ae45eba152770876ad5b2a7051d5d17fb15e517493216dc73b2df93f47
7
+ data.tar.gz: ff058a87275c22cb562a6b5c5eade1572b3ac029f0c7a7b9a8e849d26b45535f2005889d02aabebd51a3d3bf3d2a5b545d0ca5cc40918958b685bcca62512ce1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.1.0](https://github.com/z-productions/administrate-field-state_machine/tree/v0.1.0) (2016-12-13)
4
+ [Full Changelog](https://github.com/z-productions/administrate-field-state_machine/compare/v0.0.4...v0.1.0)
5
+
6
+ * Add current state in edit mode
7
+
3
8
  ## [v0.0.4](https://github.com/z-productions/administrate-field-state_machine/tree/v0.0.4) (2016-11-29)
4
9
  [Full Changelog](https://github.com/z-productions/administrate-field-state_machine/compare/v0.0.3...v0.0.4)
5
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- administrate-field-state_machine (0.0.4)
4
+ administrate-field-state_machine (0.1.0)
5
5
  administrate (~> 0.3.0)
6
6
  rails (>= 4.2)
7
7
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ so you will have to fork and [patch it](https://git.io/vXhCo) yourself.
15
15
  Add it to your `Gemfile`:
16
16
 
17
17
  ```ruby
18
- gem 'administrate-field-state_machine', '~> 0.0.4'
18
+ gem 'administrate-field-state_machine', '~> 0.1.0'
19
19
  ```
20
20
 
21
21
  Run:
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'administrate-field-state_machine'
5
- gem.version = '0.0.4'
5
+ gem.version = '0.1.0'
6
6
  gem.authors = ['Michele Gerarduzzi']
7
7
  gem.email = ['michele.gerarduzzi@gmail.com']
8
8
  gem.homepage = 'https://github.com/z-productions/administrate-field-state_machine'
@@ -0,0 +1,4 @@
1
+ .field-unit--state-machine .field-unit__field select {
2
+ display: inline-block;
3
+ width: auto;
4
+ }
@@ -17,6 +17,7 @@ Saving the state will trigger the event callbacks defined in the state machine.
17
17
  <%= f.label field.attribute %>
18
18
  </div>
19
19
  <div class="field-unit__field">
20
+ <%= field %> &rarr;
20
21
  <%= f.select(
21
22
  :state_event,
22
23
  options_from_collection_for_select(
@@ -4,7 +4,9 @@ require 'rails'
4
4
  module Administrate
5
5
  module Field
6
6
  class StateMachine < Administrate::Field::Base
7
- class Engine < ::Rails::Engine; end
7
+ class Engine < ::Rails::Engine
8
+ Administrate::Engine.add_stylesheet 'administrate-field-state_machine/application'
9
+ end
8
10
 
9
11
  def self.searchable?
10
12
  true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-field-state_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michele Gerarduzzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -52,6 +52,7 @@ files:
52
52
  - LICENSE.md
53
53
  - README.md
54
54
  - administrate-field-state_machine.gemspec
55
+ - app/assets/stylesheets/administrate-field-state_machine/application.css
55
56
  - app/views/fields/state_machine/_form.html.erb
56
57
  - app/views/fields/state_machine/_index.html.erb
57
58
  - app/views/fields/state_machine/_show.html.erb