maintain 0.2.17 → 0.2.18

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ begin
17
17
  t.rcov_opts = ['--exclude', 'spec,gem']
18
18
  end
19
19
  rescue LoadError
20
- puts "Could not load Rspec. To run tests, use `gem install rspec`"
20
+ # puts "Could not load Rspec. To run tests, use `gem install rspec`"
21
21
  end
22
22
 
23
23
  begin
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.17
1
+ 0.2.18
@@ -14,7 +14,7 @@ end
14
14
  if proceed
15
15
  # Use load to have it evaluate the ActiveRecord::Base extension logic again, in the event
16
16
  # that we've already done that with a previous test.
17
- load 'lib/maintain.rb'
17
+ load 'maintain.rb'
18
18
  describe Maintain, "ActiveRecord::Base" do
19
19
  it "should automatically be extended" do
20
20
  ActiveRecord::Base.should respond_to(:maintain)
@@ -1,6 +1,7 @@
1
1
  # Specs for aggregation of state
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain, "aggregates" do
6
7
  before :each do
data/spec/bitwise_spec.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # Tests for the bitwise / bitmask functionality.
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -1,6 +1,7 @@
1
1
  # Basic class method specs
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -1,6 +1,7 @@
1
1
  # Comparing state values
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -8,10 +8,12 @@ rescue Gem::LoadError, LoadError
8
8
  puts 'Not testing DataMapper (unavailable)'
9
9
  end
10
10
 
11
+ require 'spec_helper'
12
+
11
13
  if proceed
12
14
  # Use load to have it evaluate the DataMapper extension logic again, in the event
13
15
  # that we've already done that with a previous test.
14
- load 'lib/maintain.rb'
16
+ load 'maintain.rb'
15
17
 
16
18
  DataMapper.setup(:default, "sqlite3::memory:")
17
19
 
@@ -1,6 +1,7 @@
1
1
  # Configuration point number one: setting and configuring states
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -58,7 +59,8 @@ describe Maintain do
58
59
  MaintainTest.maintain :existant_attribute do
59
60
  state :new, :default => true
60
61
  end
61
- MaintainTest.new.existant_attribute.to_i.should == 3361
62
+ # This changed in Ruby 1.9.2 on account of the String class not knowing WTF "to_i" is
63
+ MaintainTest.new.existant_attribute.size.should == 3
62
64
  end
63
65
 
64
66
 
data/spec/hooks_spec.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # Hooks on state entrance / exit. Needs more attention.
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain, "hooks" do
6
7
  before :each do
data/spec/integer_spec.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # Tests on integer-specific functionality
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -1,6 +1,7 @@
1
1
  # Basic class method specs
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
data/spec/object_spec.rb CHANGED
@@ -1,7 +1,9 @@
1
+ require 'spec_helper'
2
+
1
3
  describe 'Maintain' do
2
4
  it "should not monkey patch Object" do
3
5
  lambda {
4
- require "lib/maintain"
6
+ require 'maintain'
5
7
  }.should_not change(Object, :methods)
6
8
  end
7
9
  end
data/spec/proxy_spec.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # Comparing state values
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -1,6 +1,7 @@
1
1
  # Specs for assigning states
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
@@ -0,0 +1 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
@@ -1,6 +1,7 @@
1
1
  # Basic class method specs
2
2
 
3
- require 'lib/maintain'
3
+ require 'spec_helper'
4
+ require 'maintain'
4
5
 
5
6
  describe Maintain do
6
7
  before :each do
metadata CHANGED
@@ -1,33 +1,26 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: maintain
3
- version: !ruby/object:Gem::Version
4
- hash: 53
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.18
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 17
10
- version: 0.2.17
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Flip Sasser
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-14 00:00:00 -04:00
19
- default_executable:
12
+ date: 2011-11-01 00:00:00.000000000Z
20
13
  dependencies: []
21
-
22
- description: "\n Maintain is a simple state machine mixin for Ruby objects. It supports comparisons, bitmasks,\n and hooks that really work. It can be used for multiple attributes and will always do its best to\n stay out of your way and let your code drive the machine, and not vice versa.\n "
14
+ description: ! "\n Maintain is a simple state machine mixin for Ruby objects.
15
+ It supports comparisons, bitmasks,\n and hooks that really work. It can be
16
+ used for multiple attributes and will always do its best to\n stay out of your
17
+ way and let your code drive the machine, and not vice versa.\n "
23
18
  email: flip@x451.com
24
19
  executables: []
25
-
26
20
  extensions: []
27
-
28
- extra_rdoc_files:
21
+ extra_rdoc_files:
29
22
  - README.markdown
30
- files:
23
+ files:
31
24
  - .rspec
32
25
  - README.markdown
33
26
  - Rakefile
@@ -57,40 +50,30 @@ files:
57
50
  - spec/proxy_spec.rb
58
51
  - spec/setting_state_spec.rb
59
52
  - spec/spec.opts
53
+ - spec/spec_helper.rb
60
54
  - spec/subclass_spec.rb
61
- has_rdoc: true
62
55
  homepage: http://github.com/flipsasser/maintain
63
56
  licenses: []
64
-
65
57
  post_install_message:
66
58
  rdoc_options: []
67
-
68
- require_paths:
59
+ require_paths:
69
60
  - lib
70
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
71
62
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
79
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
68
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
88
73
  requirements: []
89
-
90
74
  rubyforge_project:
91
- rubygems_version: 1.6.2
75
+ rubygems_version: 1.8.10
92
76
  signing_key:
93
77
  specification_version: 3
94
78
  summary: A Ruby state machine that lets your code do the driving
95
79
  test_files: []
96
-