transitions 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +10 -3
- data/CHANGELOG.md +4 -0
- data/README.md +23 -16
- data/lib/transitions/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e55aa8a7f0f38f8999f825fccd4d8d7fe0891c9
|
4
|
+
data.tar.gz: d5fa39fd8b267931511f9f11e5820982ff8fdc80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f0b94f49e68756946a20fa98993e6bcd59ae9035647d2b8a6fc2d9475112f8ec5eec3c81a7695a6d1d95ca931dee872adafe1ebb91ca0b83778bf240bba39be
|
7
|
+
data.tar.gz: 100ae8e228de1386b6c5ae2ea83be8ef1974126fb789a15ae121fdeeb88596cbc429671eb6f31bb72cf5b7fc1ad55ff1cffea2244cbfcba07d359415a98427c8
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.2.3
|
data/.travis.yml
CHANGED
@@ -1,9 +1,16 @@
|
|
1
|
+
sudo: false
|
2
|
+
cache: bundler
|
3
|
+
language: ruby
|
1
4
|
rvm:
|
2
|
-
- 1.9.3
|
3
|
-
- 2.0.0
|
4
5
|
- 2.1
|
5
|
-
-
|
6
|
+
- 2.2
|
6
7
|
- rbx-2
|
8
|
+
- jruby
|
9
|
+
matrix:
|
10
|
+
fast_finish: true
|
11
|
+
notifications:
|
12
|
+
email:
|
13
|
+
- timo.roessner@googlemail.com
|
7
14
|
gemfile:
|
8
15
|
- gemfiles/rails_3_0.gemfile
|
9
16
|
- gemfiles/rails_3_1.gemfile
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,22 +10,6 @@
|
|
10
10
|
|
11
11
|
`transitions` is a ruby state machine implementation.
|
12
12
|
|
13
|
-
### Ruby Compatibility
|
14
|
-
|
15
|
-
Supported versions:
|
16
|
-
|
17
|
-
* 1.9.3
|
18
|
-
* 2.0
|
19
|
-
* 2.1
|
20
|
-
|
21
|
-
`transitions` does not work with ruby 1.8.7 (see [this
|
22
|
-
issue](https://github.com/troessner/transitions/issues/86) for example).
|
23
|
-
|
24
|
-
### Supported Rails versions:
|
25
|
-
|
26
|
-
* 3
|
27
|
-
* 4
|
28
|
-
|
29
13
|
### Installation
|
30
14
|
|
31
15
|
#### Rails
|
@@ -45,6 +29,11 @@ include ActiveModel::Transitions
|
|
45
29
|
gem install transitions
|
46
30
|
```
|
47
31
|
|
32
|
+
… and this into your class:
|
33
|
+
```ruby
|
34
|
+
include Transitions
|
35
|
+
```
|
36
|
+
|
48
37
|
### Using transitions
|
49
38
|
```ruby
|
50
39
|
class Product
|
@@ -376,6 +365,24 @@ class Product < ActiveRecord::Base
|
|
376
365
|
end
|
377
366
|
```
|
378
367
|
|
368
|
+
### Ruby Compatibility
|
369
|
+
|
370
|
+
Supported versions:
|
371
|
+
|
372
|
+
* 2.1
|
373
|
+
* 2.2
|
374
|
+
|
375
|
+
Supported implementations:
|
376
|
+
|
377
|
+
* MRI
|
378
|
+
* Rubinius
|
379
|
+
* Jruby
|
380
|
+
|
381
|
+
### Supported Rails versions:
|
382
|
+
|
383
|
+
* 3
|
384
|
+
* 4
|
385
|
+
|
379
386
|
### Known bugs / limitations
|
380
387
|
|
381
388
|
* Right now it seems like `transitions` does not play well with `mongoid`. A
|
data/lib/transitions/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transitions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Kuzma
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: 1.3.6
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project: transitions
|
190
|
-
rubygems_version: 2.4.5
|
190
|
+
rubygems_version: 2.4.5.1
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: State machine extracted from ActiveModel
|