state_machines 0.1.0 → 0.1.1

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: c50330d0782d72bdf4e9ed537340c4072b573b6b
4
- data.tar.gz: d057ae65cec153e36b69ea5c227035d28629c314
3
+ metadata.gz: 6c8f59bcc8fc3bd9bc6c1cabb0872b9c408b6bfd
4
+ data.tar.gz: 07144b06a3bb7e8f20e6c23bfc04369c4dec5e4a
5
5
  SHA512:
6
- metadata.gz: 362c90ff95ddf0535fef6743f267958d1c8c45be68c3bf7026dc10f20d89e48bf02333344d0692456b84ab09c737e7b7e754c766e9bfc9ea243689a2e7a5f0a5
7
- data.tar.gz: 1bad1ea983e9946dc60f5a373ccd1cc180e1287d4b8f3410f4d7579987d67c584501e7c156d620bc9a8ca3864fc1eac4e6c2c96f401987b9073694c10a7de9c7
6
+ metadata.gz: 34091a04ce15920471155299080ec48c4a6494a0cf95512c669b312f2ba907e888ee8c0c61fd36c05948c45cfaf1283ec21b408a747338c8afbad1911f1b6873
7
+ data.tar.gz: 325b5a778bc84a6cbb0553c51229f90be54952c10c8362c493763fd23ac1df2b54ce60de8a6bb66563ab8a00462f2df0ddcabb74998fb74e607a9062c4af26ec
data/README.md CHANGED
@@ -26,8 +26,8 @@ Or install it yourself as:
26
26
 
27
27
  Ruby versions officially supported and tested:
28
28
 
29
- * Ruby (MRI) 1.9.3+
30
- * JRuby (1.9)
29
+ * Ruby (MRI) 2.0.0+
30
+ * JRuby
31
31
  * Rubinius
32
32
 
33
33
  For graphing state machine:
@@ -42,6 +42,7 @@ For documenting state machines:
42
42
  ## TODO
43
43
 
44
44
  Add matchers/assertions for rspec and minitest
45
+ Fix integration dependency
45
46
 
46
47
  ## Contributing
47
48
 
data/Rakefile CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rake/testtask'
3
3
  Rake::TestTask.new(:functional) do |t|
4
- # t.pattern = 'test/**/*_test.rb'
5
4
  t.test_files = FileList['test/functional/*_test.rb']
6
5
  end
7
6
 
@@ -1,5 +1,3 @@
1
- require 'state_machines/macro_methods'
2
-
3
1
  Class.class_eval do
4
2
  include StateMachines::MacroMethods
5
3
  end
@@ -114,7 +114,8 @@ module StateMachines
114
114
  private
115
115
 
116
116
  def name_spaced_integrations
117
- self.constants.each do |const|
117
+ # FIXME, Integrations should be add before their dependencies.
118
+ self.constants.reverse.each do |const|
118
119
  integration = self.const_get(const)
119
120
  add(integration)
120
121
  end
@@ -8,7 +8,7 @@ module StateMachines
8
8
 
9
9
  # Creates a new matcher for querying against the given set of values
10
10
  def initialize(values = [])
11
- @values = values.is_a?(Array) ? values : [values]
11
+ @values = values.is_a?(Array) ? values : [values]
12
12
  end
13
13
 
14
14
  # Generates a subset of values that exists in both the set of values being
@@ -9,7 +9,6 @@ module StateMachines
9
9
  # behavior can be utilized.
10
10
  class State
11
11
 
12
-
13
12
  # The state machine for which this state is defined
14
13
  attr_accessor :machine
15
14
 
@@ -28,10 +28,10 @@ module StateMachines
28
28
  # Whether the transition is only existing temporarily for the object
29
29
  attr_writer :transient
30
30
 
31
- # Determines whether the curreny ruby implementation supports pausing and
31
+ # Determines whether the current ruby implementation supports pausing and
32
32
  # resuming transitions
33
33
  def self.pause_supported?
34
- !defined?(RUBY_ENGINE) || %w(ruby maglev).include?(RUBY_ENGINE)
34
+ %w(ruby maglev).include?(RUBY_ENGINE)
35
35
  end
36
36
 
37
37
  # Creates a new, specific transition
@@ -1,3 +1,3 @@
1
1
  module StateMachines
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-04 00:00:00.000000000 Z
12
+ date: 2015-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler