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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47e8cee5cb338748d42b5226c5ca16644b709fa4
4
- data.tar.gz: 2b8d255d63a0c16bfaed0bf1ba4c81bfd660c430
3
+ metadata.gz: a0a2486b9dc1fb4311eebceb66dcf1969503d4f3
4
+ data.tar.gz: b402295f7a7c0f293680fd5bab11255753c45df1
5
5
  SHA512:
6
- metadata.gz: 8180a3c85469f82ded79279da4a60d544ca0d1a87d8fcb027d54ddd640c003c58abace449d82f7a91662ba941b634e7850d6df7d6d28620d57673a031e75a4ff
7
- data.tar.gz: 97be6d3ce6a00cb19ca413be71825301e0b90a9eab46655a50b538dc317f52a7ca8221301739cac608200ced2e2f528bef46f07c3bed11ddd2674663a83cb40f
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
- # Rails 3.x
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
@@ -1,3 +1,3 @@
1
1
  module StateMachine
2
- VERSION = '2.0.0.beta1'
2
+ VERSION = '2.0.0.beta2'
3
3
  end
@@ -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.require_paths = ["lib"]
13
- ignores = File.read(".gitignore").split.map {|i| i.sub(/\/$/, "/*").sub(/^[^\/]/, "**/\\0")}
14
- s.files = (Dir[".*"] + Dir["**/*"]).select {|f| File.file?(f) && !ignores.any? {|i| File.fnmatch(i, "/#{f}")}}
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree-state_machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta1
4
+ version: 2.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer