rtiss_acts_as_versioned 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +4 -4
- data/init.rb +1 -1
- data/lib/{acts_as_versioned.rb → rtiss_acts_as_versioned.rb} +1 -1
- data/rtiss_acts_as_versioned.gemspec +2 -2
- data/test/abstract_unit.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ def name
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def version
|
16
|
-
line = File.read("lib
|
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
|
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
|
136
|
+
libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
|
137
137
|
unless libfiles.empty?
|
138
|
-
puts "Directory `lib` should only contain a
|
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 '
|
2
|
+
require 'rtiss_acts_as_versioned'
|
@@ -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.
|
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/
|
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
|
data/test/abstract_unit.rb
CHANGED
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
rescue LoadError
|
16
16
|
end
|
17
17
|
|
18
|
-
require '
|
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.
|
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/
|
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:
|
105
|
+
hash: 3289500801185242447
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|