strict_machine 0.2.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af5b761971dfb358c71f10ac26f27fe6e8bd5d2d
4
- data.tar.gz: c09dd654724097dc1db5c1ca9d4106460a3c8303
3
+ metadata.gz: 9e21c71461362b2c86679c14bf638d729f47d2a0
4
+ data.tar.gz: 6288394dfa44d4f18b650b35f33521ddc0b8817e
5
5
  SHA512:
6
- metadata.gz: fb18988d67119ceab8121d57c61c12ab65dd7ba1b55a1ad009d24343488b33a1557185c3f4938cc66671a2425ec9cf3157ef11b7c014cb1093683e7bbd949aad
7
- data.tar.gz: 28c3aa5e21a28d1247c4fee56e9b3d0864be384dd831251d9f685cb556bca515c69db7fa81826afa8560d6aa67d56d8f64d9f48bcee5958504a223262b6bc59a
6
+ metadata.gz: a09633553405e5e81f27e394cff480b0126a7217189f0a3aa171b1d58140035220e763de86e07ef2e435de5e932a818402dafdfc1c1ac6bb78dd2875ee24d937
7
+ data.tar.gz: 892f45b484201627e166efdbcb458c2cb220821bd3ad5e4cffe8217c0201cde461c273e1f50c643ac1ddd5ca110527615fbd7957c88e0b5956210d3f73076aca
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # StrictMachine
2
2
 
3
+ [![Code Climate](https://codeclimate.com/github/sardaukar/strict_machine/badges/gpa.svg)](https://codeclimate.com/github/sardaukar/strict_machine)
4
+
3
5
  Easily add state-machine functionality to your Ruby classes.
4
6
 
5
7
  ## Installation
@@ -1,7 +1,7 @@
1
1
  require_relative "ext/object"
2
2
 
3
3
  module StrictMachine
4
- VERSION = "0.2.1".freeze
4
+ VERSION = "0.2.2".freeze
5
5
 
6
6
  class << self; attr_accessor :list; end
7
7
  end
@@ -5,7 +5,6 @@ module StrictMachine
5
5
  module MountStateMachine
6
6
  def self.included(base)
7
7
  base.extend ClassMethods
8
- base.include InstanceMethods
9
8
  end
10
9
  end
11
10
  end
@@ -8,6 +8,8 @@ module StrictMachine
8
8
  define_method(:strict_machine_class) { klass }
9
9
  define_method(:strict_machine_attr) { "@#{state_attr}".to_sym }
10
10
  end
11
+
12
+ self.include InstanceMethods
11
13
  end
12
14
  end
13
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strict_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Antunes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-14 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -127,7 +127,7 @@ specification_version: 4
127
127
  summary: State machine functionality for Ruby classes
128
128
  test_files:
129
129
  - spec/dsl_spec.rb
130
- - spec/mountable_machine_spec.rb
131
- - spec/spec_helper.rb
132
130
  - spec/dummy/dummy.rb
133
131
  - spec/dummy/dummy_state_machine.rb
132
+ - spec/mountable_machine_spec.rb
133
+ - spec/spec_helper.rb