statesman 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ TMP_GENERATOR_PATH = File.expand_path('../generator-tmp', __FILE__)
6
6
  shared_examples 'a generator' do
7
7
  destination TMP_GENERATOR_PATH
8
8
  before { prepare_destination }
9
- let(:gen) { generator %w[Yummy::Bacon Yummy::BaconTransition] }
9
+ let(:gen) { generator %w(Yummy::Bacon Yummy::BaconTransition) }
10
10
 
11
11
  it 'invokes create_model_file method' do
12
12
  expect(gen).to receive(:create_model_file)
@@ -15,11 +15,11 @@ shared_examples 'a generator' do
15
15
 
16
16
  describe 'it runs the generator and check things out' do
17
17
 
18
- before { run_generator %w[Yummy::Bacon Yummy::BaconTransition] }
18
+ before { run_generator %w(Yummy::Bacon Yummy::BaconTransition) }
19
19
 
20
20
  describe 'it generates a correctly named file' do
21
21
  subject { file(migration_name) }
22
- it { should be_a_migration }
22
+ it { is_expected.to be_a_migration }
23
23
  end
24
24
 
25
25
  end
data/statesman.gemspec CHANGED
@@ -20,12 +20,13 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_development_dependency "rspec", "~> 2.14.1"
24
- spec.add_development_dependency "guard-rspec", "~> 3.0.2"
25
- spec.add_development_dependency "rubocop", "~> 0.18.1"
26
- spec.add_development_dependency "guard-rubocop", "~> 0.2.2"
23
+ spec.add_development_dependency "rspec", "~> 3.0"
24
+ spec.add_development_dependency "rspec-its", "~> 1.0"
25
+ spec.add_development_dependency "guard-rspec", "~> 4.3"
26
+ spec.add_development_dependency "rubocop", "~> 0.24.1"
27
+ spec.add_development_dependency "guard-rubocop", "~> 1.1"
27
28
  spec.add_development_dependency "sqlite3", "~> 1.3.8"
28
29
  spec.add_development_dependency "mongoid", "~> 3.1.5"
29
30
  spec.add_development_dependency "rails", "~> 3.2"
30
- spec.add_development_dependency "ammeter", "~> 1.0.0"
31
+ spec.add_development_dependency "ammeter", "~> 1.1"
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statesman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Marr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-25 00:00:00.000000000 Z
12
+ date: 2014-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -45,56 +45,70 @@ dependencies:
45
45
  requirements:
46
46
  - - ~>
47
47
  - !ruby/object:Gem::Version
48
- version: 2.14.1
48
+ version: '3.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 2.14.1
55
+ version: '3.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec-its
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: '1.0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '1.0'
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: guard-rspec
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
74
  - - ~>
61
75
  - !ruby/object:Gem::Version
62
- version: 3.0.2
76
+ version: '4.3'
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
81
  - - ~>
68
82
  - !ruby/object:Gem::Version
69
- version: 3.0.2
83
+ version: '4.3'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: rubocop
72
86
  requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
88
  - - ~>
75
89
  - !ruby/object:Gem::Version
76
- version: 0.18.1
90
+ version: 0.24.1
77
91
  type: :development
78
92
  prerelease: false
79
93
  version_requirements: !ruby/object:Gem::Requirement
80
94
  requirements:
81
95
  - - ~>
82
96
  - !ruby/object:Gem::Version
83
- version: 0.18.1
97
+ version: 0.24.1
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: guard-rubocop
86
100
  requirement: !ruby/object:Gem::Requirement
87
101
  requirements:
88
102
  - - ~>
89
103
  - !ruby/object:Gem::Version
90
- version: 0.2.2
104
+ version: '1.1'
91
105
  type: :development
92
106
  prerelease: false
93
107
  version_requirements: !ruby/object:Gem::Requirement
94
108
  requirements:
95
109
  - - ~>
96
110
  - !ruby/object:Gem::Version
97
- version: 0.2.2
111
+ version: '1.1'
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: sqlite3
100
114
  requirement: !ruby/object:Gem::Requirement
@@ -143,14 +157,14 @@ dependencies:
143
157
  requirements:
144
158
  - - ~>
145
159
  - !ruby/object:Gem::Version
146
- version: 1.0.0
160
+ version: '1.1'
147
161
  type: :development
148
162
  prerelease: false
149
163
  version_requirements: !ruby/object:Gem::Requirement
150
164
  requirements:
151
165
  - - ~>
152
166
  - !ruby/object:Gem::Version
153
- version: 1.0.0
167
+ version: '1.1'
154
168
  description: A statesmanlike state machine library
155
169
  email:
156
170
  - developers@gocardless.com
@@ -187,6 +201,7 @@ files:
187
201
  - lib/statesman/adapters/mongoid_transition.rb
188
202
  - lib/statesman/callback.rb
189
203
  - lib/statesman/config.rb
204
+ - lib/statesman/event_transitions.rb
190
205
  - lib/statesman/exceptions.rb
191
206
  - lib/statesman/guard.rb
192
207
  - lib/statesman/machine.rb