statesman-sequel 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b05a7034b18e128887bc0f807e5cf35490b491d2
4
+ data.tar.gz: d7c34b49ec10e3ea435702b56e517f1ddc3bc3a0
5
+ SHA512:
6
+ metadata.gz: 5f5b63f2d1686d0cdd2a6f8d346517fd6b2e17462dffba52f356ddf340ce62a2d52c682fba6982468fbcd5bc6b5bdde0ae43e72c713ad986824a28a64c40cc26
7
+ data.tar.gz: 5a6d02d9c16586da30e18cbae83af7ca373cfca99da847094564493d742b3b8cb634fa41a0e74f11738f872f08731d9b97fcb4ba3e99f7a0ac97daa1aeaa9bc2
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ statesman-sequel (0.1.0)
5
+ sequel (~> 4.0)
6
+ statesman (~> 2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ coderay (1.1.1)
12
+ method_source (0.8.2)
13
+ minitest (5.10.1)
14
+ minitest-hooks (1.4.0)
15
+ pry (0.10.4)
16
+ coderay (~> 1.1.0)
17
+ method_source (~> 0.8.1)
18
+ slop (~> 3.4)
19
+ rake (10.5.0)
20
+ rb-readline (0.5.3)
21
+ sequel (4.41.0)
22
+ slop (3.6.0)
23
+ sqlite3 (1.3.12)
24
+ statesman (2.0.1)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ bundler (~> 1.11)
31
+ minitest (~> 5.0)
32
+ minitest-hooks
33
+ pry
34
+ rake (~> 10.0)
35
+ rb-readline
36
+ sqlite3 (~> 1.3)
37
+ statesman-sequel!
38
+
39
+ BUNDLED WITH
40
+ 1.12.5
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Amadeus Folego
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,175 @@
1
+ # Sequel Statesman
2
+
3
+ Ships Sequel adapter and a Sequel plugin for Statesman
4
+
5
+ ## Regular Configuration
6
+
7
+ Similar to the ActiveRecord configuration but with the changes required for
8
+ Sequel:
9
+
10
+ ```ruby
11
+ require 'sequel-statesman'
12
+
13
+ Statesman.configure do
14
+ storage_adapter(Statesman::Adapters::Sequel)
15
+ end
16
+
17
+ class UserStateMachine
18
+ include Statesman::Machine
19
+
20
+ state :invited, initial: true
21
+ state :registered
22
+
23
+ transition from: :invited, to: :registered
24
+ end
25
+
26
+ class UserTransition < Sequel::Model
27
+ include Statesman::Adapters::SequelTransition
28
+
29
+ many_to_one :user
30
+ end
31
+
32
+ class User < Sequel::Model
33
+ include Statesman::Adapters::SequelQueries
34
+
35
+ one_to_many :user_transitions
36
+
37
+ def state_machine
38
+ @state_machine ||= UserStateMachine.new(self, transition_class: UserTransition)
39
+ end
40
+
41
+ def self.transition_class
42
+ UserTransition
43
+ end
44
+ private_class_method :transition_class
45
+
46
+ def self.initial_state
47
+ :invited
48
+ end
49
+ private_class_method :initial_state
50
+ end
51
+ ```
52
+
53
+ Create your transitions table:
54
+
55
+ ```ruby
56
+ Sequel.migration do
57
+ up do
58
+ create_table(:user_transitions) do
59
+ primary_key :id
60
+
61
+ String :to_state, null: false, size: 255
62
+ String :metadata, default: "{}"
63
+ Integer :sort_key, null: false
64
+ TrueClass :most_recent, null: false
65
+ # Remove last argument above if your database does not support
66
+ # partial indexes
67
+
68
+ foreign_key :user_id, :users, null: false
69
+
70
+ index %i[user_id sort_key], unique: true
71
+ index %i[user_id most_recent], unique: true, where: 'most_recent'
72
+ # Remove last argument above if your database does not support
73
+ # partial indexes
74
+ end
75
+ end
76
+
77
+ down do
78
+ drop_table(:user_transitions)
79
+ end
80
+ end
81
+ ```
82
+
83
+ ## JSON Column
84
+
85
+ If you want to use your database support for json on the `metadata` column,
86
+ just don't include `SequelTransition` on your transition model and also
87
+ perform the adjusts on the migration
88
+
89
+ ## Sequel Plugin
90
+
91
+ You will perform the same configuration above, except for the model:
92
+
93
+ ```ruby
94
+ class User < Sequel::Model
95
+ plugin :statesman
96
+ end
97
+ ```
98
+
99
+ The following methods will be delegated to the state machine:
100
+
101
+ - `#current_state`
102
+ - `#state_history`
103
+ - `#last_transition`
104
+
105
+ The following methods will be defined on your model:
106
+
107
+ - `.initial_state`
108
+ - `#state_machine`
109
+ - `#state_name?` method for each state on your state machine
110
+ - `#state_name!(metadata={})` method for each state on your state machine.
111
+ - `#transition_metadata` last metadata available
112
+ - `#merge_transition_metadata(metadata)` update last metadata available
113
+ - `#refresh` overriden to also reload your states
114
+
115
+ ### Configuration
116
+
117
+ You may perform individual model configuration when the plugin is included:
118
+
119
+ ```ruby
120
+ plugin :statesman, transition_class: UserEvent,
121
+ state_machine_class: UserMachine
122
+ ```
123
+
124
+ Or globally:
125
+
126
+ ```ruby
127
+ require 'sequel/plugins/statesman'
128
+ Sequel::Plugins::Statesman.configure!({
129
+ transition_class: ->(model) { "#{model.name}Event".constantize }
130
+ state_machine_class: ->(model) { "#{model.name}Machine".constantize }
131
+ })
132
+ ```
133
+
134
+ The defaults are:
135
+
136
+ ```ruby
137
+ {
138
+ # Define #state! and #state? methods
139
+ define_state_methods: true,
140
+ # Transitions are automatically destroyed when the parent instance is destroyed
141
+ destroy_transitions: true,
142
+ # Include SequelQueries automatically
143
+ include_queries: true,
144
+ # The transition class for the model
145
+ transition_class: ->(model) { "#{model.name}Transition".constantize },
146
+ # The state machine for the model
147
+ state_machine_class: ->(model) { "#{model.name}StateMachine".constantize }
148
+ }
149
+ ```
150
+
151
+ ### Sequel Timestamps
152
+
153
+ If your transition classes use the timestamps plugin you may include
154
+ the `statesman_timestamps` plugin to add the following `DatasetMethods`:
155
+
156
+ - `.state_changed_after(date)` to filter records after the last transition
157
+ - `.state_changed_before(date)` to filter records before the last transition
158
+
159
+ You may configure the columns to be used, (default `created_at`):
160
+
161
+ ```ruby
162
+ plugin :statesman_timestamps, created: :creation_date
163
+
164
+ # or globally
165
+ require 'sequel/plugins/statesman_timestamps'
166
+ Sequel::Plugins::StatesmanTimestamps.configure! created: :creation_date
167
+ ```
168
+
169
+ ## Contributing
170
+
171
+ Bug reports and pull requests are welcome on GitHub at https://github.com/badosu/statesman-sequel
172
+
173
+ ## License
174
+
175
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task default: :spec
@@ -0,0 +1,108 @@
1
+ require 'statesman-sequel'
2
+
3
+ module Sequel
4
+ module Plugins
5
+ module Statesman
6
+ OPTS = {}.freeze
7
+
8
+ DEFAULTS = {
9
+ define_state_methods: true,
10
+ destroy_transitions: true,
11
+ include_queries: true,
12
+ transition_class: ->(model) { "#{model.name}Transition".constantize },
13
+ state_machine_class: ->(model) { "#{model.name}StateMachine".constantize }
14
+ }
15
+
16
+ def self.configure!(opts=OPTS)
17
+ DEFAULTS.merge!(opts)
18
+ end
19
+
20
+ def self.configure(model, opts=OPTS)
21
+ opts = DEFAULTS.merge(opts)
22
+
23
+ model.instance_eval do
24
+ if opts[:state_machine_class].respond_to? :to_proc
25
+ @state_machine_class = opts[:state_machine_class].call(self)
26
+ else
27
+ @state_machine_class = opts[:state_machine_class]
28
+ end
29
+
30
+ if opts[:transition_class].respond_to? :to_proc
31
+ @transition_class = opts[:transition_class].call(self)
32
+ else
33
+ @transition_class = opts[:transition_class]
34
+ end
35
+
36
+ if opts[:define_state_methods]
37
+ @state_machine_class.states.each do |state|
38
+ define_method(:"#{state}!") do |metadata = {}|
39
+ state_machine.transition_to!(state, metadata)
40
+ end
41
+
42
+ define_method(:"#{state}?") do
43
+ current_state == state
44
+ end
45
+ end
46
+ end
47
+
48
+ if opts[:include_queries]
49
+ include ::Statesman::Adapters::SequelQueries
50
+ end
51
+
52
+ if opts[:destroy_transitions]
53
+ plugin :association_dependencies
54
+ add_association_dependencies transition_name => :destroy
55
+ end
56
+ end
57
+ end
58
+
59
+ module ClassMethods
60
+ attr_reader :transition_class
61
+ attr_reader :state_machine_class
62
+
63
+ def initial_state
64
+ state_machine_class.initial_state
65
+ end
66
+ end
67
+
68
+ module InstanceMethods
69
+ def transition_metadata
70
+ transition = last_transition(force_reload: true)
71
+
72
+ transition && transition.metadata
73
+ end
74
+
75
+ def merge_transition_metadata!(value)
76
+ metadata = transition_metadata
77
+
78
+ last_transition.update(metadata: metadata.merge(value))
79
+ end
80
+
81
+ def refresh
82
+ state_machine.last_transition(force_reload: true)
83
+
84
+ super
85
+ end
86
+
87
+ def current_state(*args)
88
+ state_machine.current_state(*args)
89
+ end
90
+
91
+ def last_transition(*args)
92
+ state_machine.last_transition(*args)
93
+ end
94
+
95
+ def state_history(*args)
96
+ state_machine.history(*args)
97
+ end
98
+
99
+ def state_machine
100
+ @state_machine ||= model.state_machine_class.new(
101
+ self,
102
+ transition_class: model.transition_class
103
+ )
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,35 @@
1
+ module Sequel
2
+ module Plugins
3
+ module StatesmanTimestamps
4
+ OPTS = {}.freeze
5
+
6
+ DEFAULTS = {
7
+ create: :created_at
8
+ }
9
+
10
+ def self.configure!(opts=OPTS)
11
+ DEFAULTS.merge!(opts)
12
+ end
13
+
14
+ def self.configure(model, opts=OPTS)
15
+ opts = DEFAULTS.merge(opts)
16
+
17
+ model.instance_eval do
18
+ @statesman_timestamp_options = opts
19
+ end
20
+ end
21
+
22
+ module DatasetMethods
23
+ def state_changed_after(date)
24
+ where(%["#{model.most_recent_transition_association_name
25
+ }"."#{@statesman_timestamp_options[:create]}" > ?], date)
26
+ end
27
+
28
+ def state_changed_before(date)
29
+ where(%["#{model.most_recent_transition_association_name
30
+ }"."#{@statesman_timestamp_options[:create]}" < ?], date)
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,84 @@
1
+ module Statesman
2
+ module Adapters
3
+ class Sequel
4
+ attr_reader :transition_class, :parent_model, :observer
5
+
6
+ def initialize(transition_class, parent_model, observer, options={})
7
+ @transition_class = transition_class
8
+ @parent_model = parent_model
9
+ @observer = observer
10
+ end
11
+
12
+ def create(from, to, metadata = {})
13
+ create_transition(from.to_s, to.to_s, metadata)
14
+ ensure
15
+ @last_transition = nil
16
+ end
17
+
18
+ def history
19
+ history_dataset.all
20
+ end
21
+
22
+ def last(force_reload: false)
23
+ @last_transition = nil if force_reload
24
+ @last_transition ||= history_dataset.last
25
+ end
26
+
27
+ private
28
+
29
+ def history_dataset
30
+ transitions_for_parent.order(:sort_key)
31
+ end
32
+
33
+ def transitions_for_parent
34
+ @parent_model.send("#{transition_table_name}_dataset")
35
+ end
36
+
37
+ def next_sort_key
38
+ (last && last.sort_key + 10) || 10
39
+ end
40
+
41
+ def create_transition(from, to, metadata)
42
+ transition = transition_class.new(
43
+ to_state: to,
44
+ sort_key: next_sort_key,
45
+ metadata: metadata,
46
+ most_recent: true,
47
+ parent_model_foreign_key => @parent_model.pk
48
+ )
49
+
50
+ parent_model_class.db.transaction do
51
+ @observer.execute(:before, from, to, transition)
52
+ unset_old_most_recent
53
+ transition.save
54
+ @last_transition = transition
55
+ @observer.execute(:after, from, to, transition)
56
+ end
57
+
58
+ @observer.execute(:after_commit, from, to, transition)
59
+
60
+ transition
61
+ end
62
+
63
+ def transition_table_name
64
+ @transition_table_name ||= @transition_class.table_name
65
+ end
66
+
67
+ def parent_model_class
68
+ @parent_model_class ||= @parent_model.class
69
+ end
70
+
71
+ def parent_association_name
72
+ parent_model_class.table_name.to_s.singularize.to_sym
73
+ end
74
+
75
+ def parent_model_foreign_key
76
+ @transition_class.association_reflection(parent_association_name)[:key]
77
+ end
78
+
79
+ def unset_old_most_recent
80
+ transitions_for_parent.update(most_recent: false)
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,57 @@
1
+ module Statesman
2
+ module Adapters
3
+ module SequelQueries
4
+ def self.included(base)
5
+ base.instance_eval do
6
+ extend(ClassMethods)
7
+
8
+ one_to_many(transition_name)
9
+
10
+ one_to_one(most_recent_transition_association_name,
11
+ class: transition_class,
12
+ conditions: { most_recent: true })
13
+
14
+ dataset_module(DatasetMethods)
15
+ end
16
+ end
17
+
18
+ def self.states_where(model, states)
19
+ if states.include? model.initial_state.to_s
20
+ "#{model.most_recent_transition_association_name}.to_state IN ? OR #{
21
+ model.most_recent_transition_association_name}.to_state IS NULL"
22
+ else
23
+ "#{model.most_recent_transition_association_name}.to_state IN ? AND #{
24
+ model.most_recent_transition_association_name}.to_state IS NOT NULL"
25
+ end
26
+ end
27
+
28
+ module DatasetMethods
29
+ def in_state(*states)
30
+ association_left_join(model.most_recent_transition_association_name).
31
+ where(SequelQueries.states_where(model, states.map!(&:to_s)), states)
32
+ end
33
+
34
+ def not_in_state(*states)
35
+ association_left_join(model.most_recent_transition_association_name).
36
+ exclude(SequelQueries.states_where(model, states.map!(&:to_s)), states)
37
+ end
38
+
39
+ def order_by_activity
40
+ most_recent_transition = model.most_recent_transition_association_name
41
+ association_left_join(model.most_recent_transition_association_name).
42
+ order(::Sequel.desc("#{most_recent_transition}__updated_at".to_sym))
43
+ end
44
+ end
45
+
46
+ module ClassMethods
47
+ def transition_name
48
+ @transition_name ||= transition_class.name.underscore.pluralize.to_sym
49
+ end
50
+
51
+ def most_recent_transition_association_name
52
+ @most_recent_transition_association_name ||= :"most_recent_#{transition_name.to_s.singularize}"
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,13 @@
1
+ module Statesman
2
+ module Adapters
3
+ module SequelTransition
4
+ def self.included(base)
5
+ base.instance_eval do
6
+ plugin :serialization
7
+
8
+ serialize_attributes :json, :metadata
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module StatesmanSequel
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,13 @@
1
+ require 'sequel'
2
+ require 'statesman'
3
+ require 'statesman-sequel/version'
4
+
5
+ module Statesman
6
+ module Adapters
7
+ autoload :Sequel, 'statesman/adapters/sequel'
8
+ autoload :SequelQueries, 'statesman/adapters/sequel_queries'
9
+ autoload :SequelTransition, 'statesman/adapters/sequel_transition'
10
+ end
11
+ end
12
+
13
+ Sequel.extension :inflector
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require 'statesman-sequel/version'
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = "statesman-sequel"
10
+ spec.version = StatesmanSequel::VERSION
11
+ spec.authors = ["Amadeus Folego"]
12
+ spec.email = ["amadeusfolego@gmail.com"]
13
+
14
+ spec.summary = %q{Statesman adapter and plugin for Sequel}
15
+ spec.description = %q{Statesman adapter and plugin for Sequel}
16
+ spec.homepage = "https://github.com/badosu/statesman-sequel"
17
+ spec.license = "MIT"
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec)/}) }
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency "sequel", "~> 4.0"
25
+ spec.add_dependency "statesman", "~> 2.0"
26
+ spec.add_development_dependency "bundler", "~> 1.11"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "minitest", "~> 5.0"
29
+ spec.add_development_dependency "sqlite3", "~> 1.3"
30
+ spec.add_development_dependency "minitest-hooks"
31
+ spec.add_development_dependency "pry"
32
+ spec.add_development_dependency "rb-readline"
33
+ end
metadata ADDED
@@ -0,0 +1,183 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: statesman-sequel
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Amadeus Folego
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-12-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sequel
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: statesman
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.11'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.11'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest-hooks
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rb-readline
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Statesman adapter and plugin for Sequel
140
+ email:
141
+ - amadeusfolego@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - Gemfile
147
+ - Gemfile.lock
148
+ - LICENSE.txt
149
+ - README.md
150
+ - Rakefile
151
+ - lib/sequel/plugins/statesman.rb
152
+ - lib/sequel/plugins/statesman_timestamps.rb
153
+ - lib/statesman-sequel.rb
154
+ - lib/statesman-sequel/version.rb
155
+ - lib/statesman/adapters/sequel.rb
156
+ - lib/statesman/adapters/sequel_queries.rb
157
+ - lib/statesman/adapters/sequel_transition.rb
158
+ - statesman-sequel.gemspec
159
+ homepage: https://github.com/badosu/statesman-sequel
160
+ licenses:
161
+ - MIT
162
+ metadata: {}
163
+ post_install_message:
164
+ rdoc_options: []
165
+ require_paths:
166
+ - lib
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ required_rubygems_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ requirements: []
178
+ rubyforge_project:
179
+ rubygems_version: 2.5.1
180
+ signing_key:
181
+ specification_version: 4
182
+ summary: Statesman adapter and plugin for Sequel
183
+ test_files: []