rtiss_acts_as_versioned 0.7.2 → 0.7.3

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.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ def name
13
13
  end
14
14
 
15
15
  def version
16
- line = File.read("lib/acts_as_versioned.rb")[/^\s*VERSION\s*=\s*.*/]
16
+ line = File.read("lib//#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
17
17
  line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
18
18
  end
19
19
 
@@ -70,7 +70,7 @@ end
70
70
 
71
71
  desc "Open an irb session preloaded with this library"
72
72
  task :console do
73
- sh "irb -rubygems -r ./lib/acts_as_versioned.rb"
73
+ sh "irb -rubygems -r ./lib//#{name}.rb"
74
74
  end
75
75
 
76
76
  #############################################################################
@@ -133,9 +133,9 @@ task :gemspec => :validate do
133
133
  end
134
134
 
135
135
  task :validate do
136
- libfiles = Dir['lib/*'] - ["lib/acts_as_versioned.rb", "lib/acts_as_versioned"]
136
+ libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
137
137
  unless libfiles.empty?
138
- puts "Directory `lib` should only contain a `acts_as_versioned..rb` file and `acts_as_versioned` dir."
138
+ puts "Directory `lib` should only contain a `/#{name}.rb` file and `/#{name}` dir."
139
139
  exit!
140
140
  end
141
141
  unless Dir['VERSION*'].empty?
data/init.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  # encoding: utf-8
2
- require 'acts_as_versioned'
2
+ require 'rtiss_acts_as_versioned'
@@ -20,7 +20,7 @@
20
20
  # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
- VERSION = '0.7.2'
23
+ VERSION = '0.7.3'
24
24
 
25
25
  module ActiveRecord #:nodoc:
26
26
  module Acts #:nodoc:
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  ## If your rubyforge_project name is different, then edit it and comment out
16
16
  ## the sub! line in the Rakefile
17
17
  s.name = 'rtiss_acts_as_versioned'
18
- s.version = '0.7.2'
18
+ s.version = '0.7.3'
19
19
  s.date = '2014-02-03'
20
20
  s.rubyforge_project = 'rtiss_acts_as_versioned'
21
21
 
@@ -66,7 +66,7 @@ to use technoweenie's version (can be found also on github)"
66
66
  RUNNING_UNIT_TESTS
67
67
  Rakefile
68
68
  init.rb
69
- lib/acts_as_versioned.rb
69
+ lib/rtiss_acts_as_versioned.rb
70
70
  rtiss_acts_as_versioned.gemspec
71
71
  test/abstract_unit.rb
72
72
  test/database.yml
@@ -15,7 +15,7 @@ begin
15
15
  rescue LoadError
16
16
  end
17
17
 
18
- require 'acts_as_versioned'
18
+ require 'rtiss_acts_as_versioned'
19
19
 
20
20
  config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
21
21
  ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtiss_acts_as_versioned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -66,7 +66,7 @@ files:
66
66
  - RUNNING_UNIT_TESTS
67
67
  - Rakefile
68
68
  - init.rb
69
- - lib/acts_as_versioned.rb
69
+ - lib/rtiss_acts_as_versioned.rb
70
70
  - rtiss_acts_as_versioned.gemspec
71
71
  - test/abstract_unit.rb
72
72
  - test/database.yml
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: -4385912415049936283
105
+ hash: 3289500801185242447
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements: