yasm 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ v0.0.7
2
+ -- no API changes. But now uses the "symbolism" gem for class -> symbol -> class conversions.
3
+
4
+ v0.0.6
5
+ -- bug fix: check to see if CouchRest is defined? before trying to see if base is ancestor of it
6
+
1
7
  v0.0.5
2
8
  -- feature: before_action and after_action callbacks on state containers (see README).
3
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
data/lib/yasm.rb CHANGED
@@ -1,7 +1,6 @@
1
- require 'active_support/core_ext/string'
2
1
  require 'active_support/time'
2
+ require 'symbolism'
3
3
  require 'yasm/exceptions'
4
- require 'yasm/conversions'
5
4
  require 'yasm/manager'
6
5
  require 'yasm/version'
7
6
  require 'yasm/state'
data/yasm.gemspec CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency(%q<activesupport>, ["~> 3.0"])
24
24
  s.add_dependency(%q<i18n>, ["~> 0.5.0"])
25
+ s.add_dependency(%q<symbolism>, ["~> 0.0.0"])
25
26
  s.add_development_dependency(%q<couchrest_model>, [">= 0"])
26
27
  s.add_development_dependency(%q<cucumber>, ["~> 0.10.0"])
27
28
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yasm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Parker
@@ -50,9 +50,25 @@ dependencies:
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- name: couchrest_model
53
+ name: symbolism
54
54
  prerelease: false
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ hash: 31
61
+ segments:
62
+ - 0
63
+ - 0
64
+ - 0
65
+ version: 0.0.0
66
+ type: :runtime
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: couchrest_model
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
56
72
  none: false
57
73
  requirements:
58
74
  - - ">="
@@ -62,11 +78,11 @@ dependencies:
62
78
  - 0
63
79
  version: "0"
64
80
  type: :development
65
- version_requirements: *id003
81
+ version_requirements: *id004
66
82
  - !ruby/object:Gem::Dependency
67
83
  name: cucumber
68
84
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
85
+ requirement: &id005 !ruby/object:Gem::Requirement
70
86
  none: false
71
87
  requirements:
72
88
  - - ~>
@@ -78,7 +94,7 @@ dependencies:
78
94
  - 0
79
95
  version: 0.10.0
80
96
  type: :development
81
- version_requirements: *id004
97
+ version_requirements: *id005
82
98
  description: Breaks up states, actions, and contexts into seperate classes.moonmaster9000@gmail.com
83
99
  email: moonmaster9000@gmail.com
84
100
  executables: []
@@ -114,9 +130,6 @@ files:
114
130
  - lib/yasm/context/state_configuration.rb
115
131
  - lib/yasm/context/state_configuration/action_hook.rb
116
132
  - lib/yasm/context/state_container.rb
117
- - lib/yasm/conversions.rb
118
- - lib/yasm/conversions/class.rb
119
- - lib/yasm/conversions/symbol.rb
120
133
  - lib/yasm/exceptions.rb
121
134
  - lib/yasm/exceptions/final_state_exception.rb
122
135
  - lib/yasm/exceptions/invalid_action_exception.rb
@@ -1,2 +0,0 @@
1
- require 'yasm/conversions/class'
2
- require 'yasm/conversions/symbol'
@@ -1,17 +0,0 @@
1
- module Yasm
2
- module Conversions
3
- module Class
4
- def to_sym
5
- self.to_s.underscore.to_sym
6
- end
7
-
8
- def to_class
9
- self
10
- end
11
- end
12
- end
13
- end
14
-
15
- class Class
16
- include Yasm::Conversions::Class
17
- end
@@ -1,13 +0,0 @@
1
- module Yasm
2
- module Conversions
3
- module Symbol
4
- def to_class
5
- self.to_s.camelize.constantize
6
- end
7
- end
8
- end
9
- end
10
-
11
- class Symbol
12
- include Yasm::Conversions::Symbol
13
- end