spree-state_machine 2.0.0.beta1 → 2.0.0.beta2
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 +4 -4
- data/README.md +0 -19
- data/lib/state_machine/initializers/rails.rb +2 -16
- data/lib/state_machine/version.rb +1 -1
- data/state_machine.gemspec +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a2486b9dc1fb4311eebceb66dcf1969503d4f3
|
4
|
+
data.tar.gz: b402295f7a7c0f293680fd5bab11255753c45df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89d85832d0831d9e84788f4c51c89ec766abcde2e6a5fed594de473ece6ead7eb3d5b2a57b58c2710c476547b075582298cc32348e827b2cee08ddb010918e40
|
7
|
+
data.tar.gz: 2d661a8e417b277212520b11e25bdf0fa80814bd782356f384700129bdcb9d428081829d81ca51c483f9ea0ffad3a1378dd572eea9c12698c383e099adc033a8
|
data/README.md
CHANGED
@@ -1085,18 +1085,6 @@ started, following the steps below.
|
|
1085
1085
|
|
1086
1086
|
#### 1. Install the gem
|
1087
1087
|
|
1088
|
-
If using Rails 2.x:
|
1089
|
-
|
1090
|
-
```ruby
|
1091
|
-
# In config/environment.rb
|
1092
|
-
...
|
1093
|
-
Rails::Initializer.run do |config|
|
1094
|
-
...
|
1095
|
-
config.gem 'state_machine', :version => '~> 1.0'
|
1096
|
-
...
|
1097
|
-
end
|
1098
|
-
```
|
1099
|
-
|
1100
1088
|
If using Rails 3.x or up:
|
1101
1089
|
|
1102
1090
|
```ruby
|
@@ -1144,13 +1132,6 @@ For example,
|
|
1144
1132
|
rake state_machine:draw CLASS=Vehicle
|
1145
1133
|
```
|
1146
1134
|
|
1147
|
-
If you are using this library as a gem in Rails 2.x, the following must be added
|
1148
|
-
to the end of your application's Rakefile in order for the above task to work:
|
1149
|
-
|
1150
|
-
```ruby
|
1151
|
-
require 'tasks/state_machine'
|
1152
|
-
```
|
1153
|
-
|
1154
1135
|
### Merb
|
1155
1136
|
|
1156
1137
|
#### Rake tasks
|
@@ -4,22 +4,8 @@ if defined?(Rails)
|
|
4
4
|
StateMachine::Integrations.all.each do |integration|
|
5
5
|
locale_paths << integration.locale_path if integration.available? && integration.locale_path
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
if defined?(Rails::Engine)
|
9
|
-
|
10
|
-
class StateMachine::RailsEngine < Rails::Engine
|
11
|
-
rake_tasks do
|
12
|
-
load 'tasks/state_machine.rb'
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0
|
17
|
-
StateMachine::RailsEngine.paths.config.locales = locale_paths
|
18
|
-
else
|
19
|
-
StateMachine::RailsEngine.paths['config/locales'] = locale_paths
|
20
|
-
end
|
21
|
-
elsif defined?(I18n)
|
22
|
-
# Rails 2.x
|
23
|
-
I18n.load_path.unshift(*locale_paths)
|
9
|
+
StateMachine::RailsEngine.paths['config/locales'] = locale_paths
|
24
10
|
end
|
25
11
|
end
|
data/state_machine.gemspec
CHANGED
@@ -9,10 +9,9 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.homepage = "http://www.pluginaweek.org"
|
10
10
|
s.description = "Adds support for creating state machines for attributes on any Ruby class"
|
11
11
|
s.summary = "State machines for attributes"
|
12
|
-
s.
|
13
|
-
|
14
|
-
s.
|
15
|
-
s.test_files = s.files.grep(/^test\//)
|
12
|
+
s.files = `git ls-files`.split("\n")
|
13
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
s.require_path = 'lib'
|
16
15
|
s.rdoc_options = %w(--line-numbers --inline-source --title state_machine --main README.md)
|
17
16
|
s.extra_rdoc_files = %w(README.md CHANGELOG.md LICENSE)
|
18
17
|
|